From 206b3d06f41f3aca073074e05c6964644b43cd0a Mon Sep 17 00:00:00 2001 From: Sasha Melentyev Date: Sun, 15 Oct 2023 16:18:22 +0300 Subject: [PATCH] chore: use stdlib HTTP methods consts --- examples/ex_2ch/oas_client_gen.go | 65 +- examples/ex_ent/oas_client_gen.go | 49 +- examples/ex_firecracker/oas_client_gen.go | 105 +- examples/ex_github/oas_client_gen.go | 2913 ++++++------ examples/ex_gotd/oas_client_gen.go | 349 +- examples/ex_k8s/oas_client_gen.go | 1849 ++++---- examples/ex_manga/oas_client_gen.go | 25 +- examples/ex_oauth2/oas_client_gen.go | 17 +- examples/ex_openai/oas_client_gen.go | 113 +- examples/ex_petstore/oas_client_gen.go | 13 +- .../ex_petstore_expanded/oas_client_gen.go | 17 +- examples/ex_route_params/oas_client_gen.go | 13 +- examples/ex_telegram/oas_client_gen.go | 329 +- examples/ex_test_format/oas_client_gen.go | 4001 +++++++++-------- examples/ex_tinkoff/oas_client_gen.go | 85 +- gen/_template/client.tmpl | 4 +- gen/templates.go | 34 + .../referenced_path_item/oas_client_gen.go | 5 +- .../integration/sample_api/oas_client_gen.go | 121 +- .../sample_api_ns/oas_client_gen.go | 121 +- .../integration/sample_err/oas_client_gen.go | 9 +- .../integration/techempower/oas_client_gen.go | 21 +- .../integration/test_allof/oas_client_gen.go | 33 +- .../integration/test_anyof/oas_client_gen.go | 13 +- .../test_customformats/oas_client_gen.go | 9 +- .../test_enum_naming/oas_client_gen.go | 5 +- .../integration/test_form/oas_client_gen.go | 37 +- .../test_http_requests/oas_client_gen.go | 25 +- .../test_http_responses/oas_client_gen.go | 61 +- .../test_naming_extensions/oas_client_gen.go | 5 +- .../test_parameters/oas_client_gen.go | 37 +- .../test_security/oas_client_gen.go | 17 +- .../test_servers/oas_client_gen.go | 5 +- .../test_single_endpoint/oas_client_gen.go | 5 +- .../test_webhooks/oas_client_gen.go | 11 +- 35 files changed, 5294 insertions(+), 5227 deletions(-) diff --git a/examples/ex_2ch/oas_client_gen.go b/examples/ex_2ch/oas_client_gen.go index f705ce540..636a81c22 100644 --- a/examples/ex_2ch/oas_client_gen.go +++ b/examples/ex_2ch/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -186,7 +187,7 @@ func (c *Client) APICaptcha2chcaptchaIDGet(ctx context.Context, params APICaptch func (c *Client) sendAPICaptcha2chcaptchaIDGet(ctx context.Context, params APICaptcha2chcaptchaIDGetParams) (res *Captcha, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/captcha/2chcaptcha/id"), } @@ -262,7 +263,7 @@ func (c *Client) sendAPICaptcha2chcaptchaIDGet(ctx context.Context, params APICa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -295,7 +296,7 @@ func (c *Client) APICaptcha2chcaptchaShowGet(ctx context.Context, params APICapt func (c *Client) sendAPICaptcha2chcaptchaShowGet(ctx context.Context, params APICaptcha2chcaptchaShowGetParams) (res APICaptcha2chcaptchaShowGetRes, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/captcha/2chcaptcha/show"), } @@ -351,7 +352,7 @@ func (c *Client) sendAPICaptcha2chcaptchaShowGet(ctx context.Context, params API u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -388,7 +389,7 @@ func (c *Client) APICaptchaAppIDPublicKeyGet(ctx context.Context, params APICapt func (c *Client) sendAPICaptchaAppIDPublicKeyGet(ctx context.Context, params APICaptchaAppIDPublicKeyGetParams) (res *Captcha, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/captcha/app/id/{public_key}"), } @@ -482,7 +483,7 @@ func (c *Client) sendAPICaptchaAppIDPublicKeyGet(ctx context.Context, params API u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -515,7 +516,7 @@ func (c *Client) APICaptchaInvisibleRecaptchaIDGet(ctx context.Context, params A func (c *Client) sendAPICaptchaInvisibleRecaptchaIDGet(ctx context.Context, params APICaptchaInvisibleRecaptchaIDGetParams) (res *Captcha, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/captcha/invisible_recaptcha/id"), } @@ -591,7 +592,7 @@ func (c *Client) sendAPICaptchaInvisibleRecaptchaIDGet(ctx context.Context, para u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -624,7 +625,7 @@ func (c *Client) APICaptchaInvisibleRecaptchaMobileGet(ctx context.Context) erro func (c *Client) sendAPICaptchaInvisibleRecaptchaMobileGet(ctx context.Context) (res *APICaptchaInvisibleRecaptchaMobileGetOK, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/captcha/invisible_recaptcha/mobile"), } @@ -662,7 +663,7 @@ func (c *Client) sendAPICaptchaInvisibleRecaptchaMobileGet(ctx context.Context) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -695,7 +696,7 @@ func (c *Client) APICaptchaRecaptchaIDGet(ctx context.Context, params APICaptcha func (c *Client) sendAPICaptchaRecaptchaIDGet(ctx context.Context, params APICaptchaRecaptchaIDGetParams) (res *Captcha, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/captcha/recaptcha/id"), } @@ -771,7 +772,7 @@ func (c *Client) sendAPICaptchaRecaptchaIDGet(ctx context.Context, params APICap u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -804,7 +805,7 @@ func (c *Client) APICaptchaRecaptchaMobileGet(ctx context.Context) error { func (c *Client) sendAPICaptchaRecaptchaMobileGet(ctx context.Context) (res *APICaptchaRecaptchaMobileGetOK, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/captcha/recaptcha/mobile"), } @@ -842,7 +843,7 @@ func (c *Client) sendAPICaptchaRecaptchaMobileGet(ctx context.Context) (res *API uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -875,7 +876,7 @@ func (c *Client) APIDislikeGet(ctx context.Context, params APIDislikeGetParams) func (c *Client) sendAPIDislikeGet(ctx context.Context, params APIDislikeGetParams) (res *Like, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/dislike"), } @@ -945,7 +946,7 @@ func (c *Client) sendAPIDislikeGet(ctx context.Context, params APIDislikeGetPara u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -978,7 +979,7 @@ func (c *Client) APILikeGet(ctx context.Context, params APILikeGetParams) (*Like func (c *Client) sendAPILikeGet(ctx context.Context, params APILikeGetParams) (res *Like, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/like"), } @@ -1048,7 +1049,7 @@ func (c *Client) sendAPILikeGet(ctx context.Context, params APILikeGetParams) (r u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1083,7 +1084,7 @@ func (c *Client) APIMobileV2AfterBoardThreadNumGet(ctx context.Context, params A func (c *Client) sendAPIMobileV2AfterBoardThreadNumGet(ctx context.Context, params APIMobileV2AfterBoardThreadNumGetParams) (res *MobileThreadPostsAfter, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/mobile/v2/after/{board}/{thread}/{num}"), } @@ -1177,7 +1178,7 @@ func (c *Client) sendAPIMobileV2AfterBoardThreadNumGet(ctx context.Context, para uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1210,7 +1211,7 @@ func (c *Client) APIMobileV2BoardsGet(ctx context.Context) (Boards, error) { func (c *Client) sendAPIMobileV2BoardsGet(ctx context.Context) (res Boards, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/mobile/v2/boards"), } @@ -1248,7 +1249,7 @@ func (c *Client) sendAPIMobileV2BoardsGet(ctx context.Context) (res Boards, err uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1281,7 +1282,7 @@ func (c *Client) APIMobileV2InfoBoardThreadGet(ctx context.Context, params APIMo func (c *Client) sendAPIMobileV2InfoBoardThreadGet(ctx context.Context, params APIMobileV2InfoBoardThreadGetParams) (res *MobileThreadLastInfo, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/mobile/v2/info/{board}/{thread}"), } @@ -1356,7 +1357,7 @@ func (c *Client) sendAPIMobileV2InfoBoardThreadGet(ctx context.Context, params A uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1389,7 +1390,7 @@ func (c *Client) APIMobileV2PostBoardNumGet(ctx context.Context, params APIMobil func (c *Client) sendAPIMobileV2PostBoardNumGet(ctx context.Context, params APIMobileV2PostBoardNumGetParams) (res *MobilePost, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/mobile/v2/post/{board}/{num}"), } @@ -1464,7 +1465,7 @@ func (c *Client) sendAPIMobileV2PostBoardNumGet(ctx context.Context, params APIM uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1497,7 +1498,7 @@ func (c *Client) UserPassloginPost(ctx context.Context, request OptUserPasslogin func (c *Client) sendUserPassloginPost(ctx context.Context, request OptUserPassloginPostReq, params UserPassloginPostParams) (res *Passcode, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/user/passlogin"), } @@ -1553,7 +1554,7 @@ func (c *Client) sendUserPassloginPost(ctx context.Context, request OptUserPassl u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1589,7 +1590,7 @@ func (c *Client) UserPostingPost(ctx context.Context, request OptUserPostingPost func (c *Client) sendUserPostingPost(ctx context.Context, request OptUserPostingPostReq) (res UserPostingPostOK, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/user/posting"), } // Validate request before sending. @@ -1643,7 +1644,7 @@ func (c *Client) sendUserPostingPost(ctx context.Context, request OptUserPosting uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1679,7 +1680,7 @@ func (c *Client) UserReportPost(ctx context.Context, request OptUserReportPostRe func (c *Client) sendUserReportPost(ctx context.Context, request OptUserReportPostReq) (res *Report, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/user/report"), } @@ -1717,7 +1718,7 @@ func (c *Client) sendUserReportPost(ctx context.Context, request OptUserReportPo uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/examples/ex_ent/oas_client_gen.go b/examples/ex_ent/oas_client_gen.go index 3e210b497..a728397cb 100644 --- a/examples/ex_ent/oas_client_gen.go +++ b/examples/ex_ent/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -158,7 +159,7 @@ func (c *Client) CreatePet(ctx context.Context, request *CreatePetReq) (CreatePe func (c *Client) sendCreatePet(ctx context.Context, request *CreatePetReq) (res CreatePetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("createPet"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/pets"), } @@ -196,7 +197,7 @@ func (c *Client) sendCreatePet(ctx context.Context, request *CreatePetReq) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -233,7 +234,7 @@ func (c *Client) CreatePetCategories(ctx context.Context, request *CreatePetCate func (c *Client) sendCreatePetCategories(ctx context.Context, request *CreatePetCategoriesReq, params CreatePetCategoriesParams) (res CreatePetCategoriesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("createPetCategories"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/pets/{id}/categories"), } @@ -290,7 +291,7 @@ func (c *Client) sendCreatePetCategories(ctx context.Context, request *CreatePet uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -327,7 +328,7 @@ func (c *Client) CreatePetFriends(ctx context.Context, request *CreatePetFriends func (c *Client) sendCreatePetFriends(ctx context.Context, request *CreatePetFriendsReq, params CreatePetFriendsParams) (res CreatePetFriendsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("createPetFriends"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/pets/{id}/friends"), } @@ -384,7 +385,7 @@ func (c *Client) sendCreatePetFriends(ctx context.Context, request *CreatePetFri uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -421,7 +422,7 @@ func (c *Client) CreatePetOwner(ctx context.Context, request *CreatePetOwnerReq, func (c *Client) sendCreatePetOwner(ctx context.Context, request *CreatePetOwnerReq, params CreatePetOwnerParams) (res CreatePetOwnerRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("createPetOwner"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/pets/{id}/owner"), } @@ -478,7 +479,7 @@ func (c *Client) sendCreatePetOwner(ctx context.Context, request *CreatePetOwner uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -515,7 +516,7 @@ func (c *Client) DeletePet(ctx context.Context, params DeletePetParams) (DeleteP func (c *Client) sendDeletePet(ctx context.Context, params DeletePetParams) (res DeletePetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("deletePet"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/pets/{id}"), } @@ -571,7 +572,7 @@ func (c *Client) sendDeletePet(ctx context.Context, params DeletePetParams) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -605,7 +606,7 @@ func (c *Client) DeletePetOwner(ctx context.Context, params DeletePetOwnerParams func (c *Client) sendDeletePetOwner(ctx context.Context, params DeletePetOwnerParams) (res DeletePetOwnerRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("deletePetOwner"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/pets/{id}/owner"), } @@ -662,7 +663,7 @@ func (c *Client) sendDeletePetOwner(ctx context.Context, params DeletePetOwnerPa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -696,7 +697,7 @@ func (c *Client) ListPet(ctx context.Context, params ListPetParams) (ListPetRes, func (c *Client) sendListPet(ctx context.Context, params ListPetParams) (res ListPetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listPet"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/pets"), } @@ -772,7 +773,7 @@ func (c *Client) sendListPet(ctx context.Context, params ListPetParams) (res Lis u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -806,7 +807,7 @@ func (c *Client) ListPetCategories(ctx context.Context, params ListPetCategories func (c *Client) sendListPetCategories(ctx context.Context, params ListPetCategoriesParams) (res ListPetCategoriesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listPetCategories"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/pets/{id}/categories"), } @@ -901,7 +902,7 @@ func (c *Client) sendListPetCategories(ctx context.Context, params ListPetCatego u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -935,7 +936,7 @@ func (c *Client) ListPetFriends(ctx context.Context, params ListPetFriendsParams func (c *Client) sendListPetFriends(ctx context.Context, params ListPetFriendsParams) (res ListPetFriendsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listPetFriends"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/pets/{id}/friends"), } @@ -1030,7 +1031,7 @@ func (c *Client) sendListPetFriends(ctx context.Context, params ListPetFriendsPa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1064,7 +1065,7 @@ func (c *Client) ReadPet(ctx context.Context, params ReadPetParams) (ReadPetRes, func (c *Client) sendReadPet(ctx context.Context, params ReadPetParams) (res ReadPetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readPet"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/pets/{id}"), } @@ -1120,7 +1121,7 @@ func (c *Client) sendReadPet(ctx context.Context, params ReadPetParams) (res Rea uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1154,7 +1155,7 @@ func (c *Client) ReadPetOwner(ctx context.Context, params ReadPetOwnerParams) (R func (c *Client) sendReadPetOwner(ctx context.Context, params ReadPetOwnerParams) (res ReadPetOwnerRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readPetOwner"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/pets/{id}/owner"), } @@ -1211,7 +1212,7 @@ func (c *Client) sendReadPetOwner(ctx context.Context, params ReadPetOwnerParams uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1245,7 +1246,7 @@ func (c *Client) UpdatePet(ctx context.Context, request *UpdatePetReq, params Up func (c *Client) sendUpdatePet(ctx context.Context, request *UpdatePetReq, params UpdatePetParams) (res UpdatePetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("updatePet"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/pets/{id}"), } @@ -1301,7 +1302,7 @@ func (c *Client) sendUpdatePet(ctx context.Context, request *UpdatePetReq, param uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/examples/ex_firecracker/oas_client_gen.go b/examples/ex_firecracker/oas_client_gen.go index d2f335bad..c70441b86 100644 --- a/examples/ex_firecracker/oas_client_gen.go +++ b/examples/ex_firecracker/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -260,7 +261,7 @@ func (c *Client) CreateSnapshot(ctx context.Context, request *SnapshotCreatePara func (c *Client) sendCreateSnapshot(ctx context.Context, request *SnapshotCreateParams) (res CreateSnapshotRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("createSnapshot"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/snapshot/create"), } // Validate request before sending. @@ -307,7 +308,7 @@ func (c *Client) sendCreateSnapshot(ctx context.Context, request *SnapshotCreate uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -344,7 +345,7 @@ func (c *Client) CreateSyncAction(ctx context.Context, request *InstanceActionIn func (c *Client) sendCreateSyncAction(ctx context.Context, request *InstanceActionInfo) (res CreateSyncActionRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("createSyncAction"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/actions"), } // Validate request before sending. @@ -391,7 +392,7 @@ func (c *Client) sendCreateSyncAction(ctx context.Context, request *InstanceActi uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -428,7 +429,7 @@ func (c *Client) DescribeBalloonConfig(ctx context.Context) (DescribeBalloonConf func (c *Client) sendDescribeBalloonConfig(ctx context.Context) (res DescribeBalloonConfigRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("describeBalloonConfig"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/balloon"), } @@ -466,7 +467,7 @@ func (c *Client) sendDescribeBalloonConfig(ctx context.Context) (res DescribeBal uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -500,7 +501,7 @@ func (c *Client) DescribeBalloonStats(ctx context.Context) (DescribeBalloonStats func (c *Client) sendDescribeBalloonStats(ctx context.Context) (res DescribeBalloonStatsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("describeBalloonStats"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/balloon/statistics"), } @@ -538,7 +539,7 @@ func (c *Client) sendDescribeBalloonStats(ctx context.Context) (res DescribeBall uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -572,7 +573,7 @@ func (c *Client) DescribeInstance(ctx context.Context) (*InstanceInfo, error) { func (c *Client) sendDescribeInstance(ctx context.Context) (res *InstanceInfo, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("describeInstance"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/"), } @@ -610,7 +611,7 @@ func (c *Client) sendDescribeInstance(ctx context.Context) (res *InstanceInfo, e uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -644,7 +645,7 @@ func (c *Client) GetExportVmConfig(ctx context.Context) (*FullVmConfiguration, e func (c *Client) sendGetExportVmConfig(ctx context.Context) (res *FullVmConfiguration, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getExportVmConfig"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/vm/config"), } @@ -682,7 +683,7 @@ func (c *Client) sendGetExportVmConfig(ctx context.Context) (res *FullVmConfigur uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -718,7 +719,7 @@ func (c *Client) GetMachineConfiguration(ctx context.Context) (*MachineConfigura func (c *Client) sendGetMachineConfiguration(ctx context.Context) (res *MachineConfiguration, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getMachineConfiguration"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/machine-config"), } @@ -756,7 +757,7 @@ func (c *Client) sendGetMachineConfiguration(ctx context.Context) (res *MachineC uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -791,7 +792,7 @@ func (c *Client) LoadSnapshot(ctx context.Context, request *SnapshotLoadParams) func (c *Client) sendLoadSnapshot(ctx context.Context, request *SnapshotLoadParams) (res LoadSnapshotRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("loadSnapshot"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/snapshot/load"), } @@ -829,7 +830,7 @@ func (c *Client) sendLoadSnapshot(ctx context.Context, request *SnapshotLoadPara uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -865,7 +866,7 @@ func (c *Client) MmdsConfigPut(ctx context.Context, request *MmdsConfig) (MmdsCo func (c *Client) sendMmdsConfigPut(ctx context.Context, request *MmdsConfig) (res MmdsConfigPutRes, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/mmds/config"), } @@ -903,7 +904,7 @@ func (c *Client) sendMmdsConfigPut(ctx context.Context, request *MmdsConfig) (re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -939,7 +940,7 @@ func (c *Client) MmdsGet(ctx context.Context) (MmdsGetRes, error) { func (c *Client) sendMmdsGet(ctx context.Context) (res MmdsGetRes, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/mmds"), } @@ -977,7 +978,7 @@ func (c *Client) sendMmdsGet(ctx context.Context) (res MmdsGetRes, err error) { uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1010,7 +1011,7 @@ func (c *Client) MmdsPatch(ctx context.Context, request *MmdsPatchReq) (MmdsPatc func (c *Client) sendMmdsPatch(ctx context.Context, request *MmdsPatchReq) (res MmdsPatchRes, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/mmds"), } @@ -1048,7 +1049,7 @@ func (c *Client) sendMmdsPatch(ctx context.Context, request *MmdsPatchReq) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1084,7 +1085,7 @@ func (c *Client) MmdsPut(ctx context.Context, request *MmdsPutReq) (MmdsPutRes, func (c *Client) sendMmdsPut(ctx context.Context, request *MmdsPutReq) (res MmdsPutRes, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/mmds"), } @@ -1122,7 +1123,7 @@ func (c *Client) sendMmdsPut(ctx context.Context, request *MmdsPutReq) (res Mmds uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1160,7 +1161,7 @@ func (c *Client) PatchBalloon(ctx context.Context, request *BalloonUpdate) (Patc func (c *Client) sendPatchBalloon(ctx context.Context, request *BalloonUpdate) (res PatchBalloonRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("patchBalloon"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/balloon"), } @@ -1198,7 +1199,7 @@ func (c *Client) sendPatchBalloon(ctx context.Context, request *BalloonUpdate) ( uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1236,7 +1237,7 @@ func (c *Client) PatchBalloonStatsInterval(ctx context.Context, request *Balloon func (c *Client) sendPatchBalloonStatsInterval(ctx context.Context, request *BalloonStatsUpdate) (res PatchBalloonStatsIntervalRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("patchBalloonStatsInterval"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/balloon/statistics"), } @@ -1274,7 +1275,7 @@ func (c *Client) sendPatchBalloonStatsInterval(ctx context.Context, request *Bal uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1312,7 +1313,7 @@ func (c *Client) PatchGuestDriveByID(ctx context.Context, request *PartialDrive, func (c *Client) sendPatchGuestDriveByID(ctx context.Context, request *PartialDrive, params PatchGuestDriveByIDParams) (res PatchGuestDriveByIDRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("patchGuestDriveByID"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/drives/{drive_id}"), } // Validate request before sending. @@ -1377,7 +1378,7 @@ func (c *Client) sendPatchGuestDriveByID(ctx context.Context, request *PartialDr uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1414,7 +1415,7 @@ func (c *Client) PatchGuestNetworkInterfaceByID(ctx context.Context, request *Pa func (c *Client) sendPatchGuestNetworkInterfaceByID(ctx context.Context, request *PartialNetworkInterface, params PatchGuestNetworkInterfaceByIDParams) (res PatchGuestNetworkInterfaceByIDRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("patchGuestNetworkInterfaceByID"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/network-interfaces/{iface_id}"), } // Validate request before sending. @@ -1479,7 +1480,7 @@ func (c *Client) sendPatchGuestNetworkInterfaceByID(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1517,7 +1518,7 @@ func (c *Client) PatchMachineConfiguration(ctx context.Context, request OptMachi func (c *Client) sendPatchMachineConfiguration(ctx context.Context, request OptMachineConfiguration) (res PatchMachineConfigurationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("patchMachineConfiguration"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/machine-config"), } // Validate request before sending. @@ -1571,7 +1572,7 @@ func (c *Client) sendPatchMachineConfiguration(ctx context.Context, request OptM uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1608,7 +1609,7 @@ func (c *Client) PatchVm(ctx context.Context, request *VM) (PatchVmRes, error) { func (c *Client) sendPatchVm(ctx context.Context, request *VM) (res PatchVmRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("patchVm"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/vm"), } // Validate request before sending. @@ -1655,7 +1656,7 @@ func (c *Client) sendPatchVm(ctx context.Context, request *VM) (res PatchVmRes, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1693,7 +1694,7 @@ func (c *Client) PutBalloon(ctx context.Context, request *Balloon) (PutBalloonRe func (c *Client) sendPutBalloon(ctx context.Context, request *Balloon) (res PutBalloonRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("putBalloon"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/balloon"), } @@ -1731,7 +1732,7 @@ func (c *Client) sendPutBalloon(ctx context.Context, request *Balloon) (res PutB uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1769,7 +1770,7 @@ func (c *Client) PutGuestBootSource(ctx context.Context, request *BootSource) (P func (c *Client) sendPutGuestBootSource(ctx context.Context, request *BootSource) (res PutGuestBootSourceRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("putGuestBootSource"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/boot-source"), } @@ -1807,7 +1808,7 @@ func (c *Client) sendPutGuestBootSource(ctx context.Context, request *BootSource uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1845,7 +1846,7 @@ func (c *Client) PutGuestDriveByID(ctx context.Context, request *Drive, params P func (c *Client) sendPutGuestDriveByID(ctx context.Context, request *Drive, params PutGuestDriveByIDParams) (res PutGuestDriveByIDRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("putGuestDriveByID"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/drives/{drive_id}"), } // Validate request before sending. @@ -1910,7 +1911,7 @@ func (c *Client) sendPutGuestDriveByID(ctx context.Context, request *Drive, para uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1947,7 +1948,7 @@ func (c *Client) PutGuestNetworkInterfaceByID(ctx context.Context, request *Netw func (c *Client) sendPutGuestNetworkInterfaceByID(ctx context.Context, request *NetworkInterface, params PutGuestNetworkInterfaceByIDParams) (res PutGuestNetworkInterfaceByIDRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("putGuestNetworkInterfaceByID"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/network-interfaces/{iface_id}"), } // Validate request before sending. @@ -2012,7 +2013,7 @@ func (c *Client) sendPutGuestNetworkInterfaceByID(ctx context.Context, request * uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2050,7 +2051,7 @@ func (c *Client) PutGuestVsock(ctx context.Context, request *Vsock) (PutGuestVso func (c *Client) sendPutGuestVsock(ctx context.Context, request *Vsock) (res PutGuestVsockRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("putGuestVsock"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/vsock"), } // Validate request before sending. @@ -2097,7 +2098,7 @@ func (c *Client) sendPutGuestVsock(ctx context.Context, request *Vsock) (res Put uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2134,7 +2135,7 @@ func (c *Client) PutLogger(ctx context.Context, request *Logger) (PutLoggerRes, func (c *Client) sendPutLogger(ctx context.Context, request *Logger) (res PutLoggerRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("putLogger"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/logger"), } // Validate request before sending. @@ -2181,7 +2182,7 @@ func (c *Client) sendPutLogger(ctx context.Context, request *Logger) (res PutLog uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2221,7 +2222,7 @@ func (c *Client) PutMachineConfiguration(ctx context.Context, request OptMachine func (c *Client) sendPutMachineConfiguration(ctx context.Context, request OptMachineConfiguration) (res PutMachineConfigurationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("putMachineConfiguration"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/machine-config"), } // Validate request before sending. @@ -2275,7 +2276,7 @@ func (c *Client) sendPutMachineConfiguration(ctx context.Context, request OptMac uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2312,7 +2313,7 @@ func (c *Client) PutMetrics(ctx context.Context, request *Metrics) (PutMetricsRe func (c *Client) sendPutMetrics(ctx context.Context, request *Metrics) (res PutMetricsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("putMetrics"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/metrics"), } @@ -2350,7 +2351,7 @@ func (c *Client) sendPutMetrics(ctx context.Context, request *Metrics) (res PutM uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/examples/ex_github/oas_client_gen.go b/examples/ex_github/oas_client_gen.go index a366b4847..ff909e7d5 100644 --- a/examples/ex_github/oas_client_gen.go +++ b/examples/ex_github/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -7838,7 +7839,7 @@ func (c *Client) ActionsAddRepoAccessToSelfHostedRunnerGroupInOrg(ctx context.Co func (c *Client) sendActionsAddRepoAccessToSelfHostedRunnerGroupInOrg(ctx context.Context, params ActionsAddRepoAccessToSelfHostedRunnerGroupInOrgParams) (res *ActionsAddRepoAccessToSelfHostedRunnerGroupInOrgNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/add-repo-access-to-self-hosted-runner-group-in-org"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"), } @@ -7932,7 +7933,7 @@ func (c *Client) sendActionsAddRepoAccessToSelfHostedRunnerGroupInOrg(ctx contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -7970,7 +7971,7 @@ func (c *Client) ActionsAddSelectedRepoToOrgSecret(ctx context.Context, params A func (c *Client) sendActionsAddSelectedRepoToOrgSecret(ctx context.Context, params ActionsAddSelectedRepoToOrgSecretParams) (res ActionsAddSelectedRepoToOrgSecretRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/add-selected-repo-to-org-secret"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"), } @@ -8064,7 +8065,7 @@ func (c *Client) sendActionsAddSelectedRepoToOrgSecret(ctx context.Context, para uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -8103,7 +8104,7 @@ func (c *Client) ActionsAddSelfHostedRunnerToGroupForOrg(ctx context.Context, pa func (c *Client) sendActionsAddSelfHostedRunnerToGroupForOrg(ctx context.Context, params ActionsAddSelfHostedRunnerToGroupForOrgParams) (res *ActionsAddSelfHostedRunnerToGroupForOrgNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/add-self-hosted-runner-to-group-for-org"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}"), } @@ -8197,7 +8198,7 @@ func (c *Client) sendActionsAddSelfHostedRunnerToGroupForOrg(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -8235,7 +8236,7 @@ func (c *Client) ActionsApproveWorkflowRun(ctx context.Context, params ActionsAp func (c *Client) sendActionsApproveWorkflowRun(ctx context.Context, params ActionsApproveWorkflowRunParams) (res ActionsApproveWorkflowRunRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/approve-workflow-run"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/runs/{run_id}/approve"), } @@ -8330,7 +8331,7 @@ func (c *Client) sendActionsApproveWorkflowRun(ctx context.Context, params Actio uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -8366,7 +8367,7 @@ func (c *Client) ActionsCancelWorkflowRun(ctx context.Context, params ActionsCan func (c *Client) sendActionsCancelWorkflowRun(ctx context.Context, params ActionsCancelWorkflowRunParams) (res *ActionsCancelWorkflowRunAccepted, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/cancel-workflow-run"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/runs/{run_id}/cancel"), } @@ -8461,7 +8462,7 @@ func (c *Client) sendActionsCancelWorkflowRun(ctx context.Context, params Action uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -8548,7 +8549,7 @@ func (c *Client) ActionsCreateOrUpdateEnvironmentSecret(ctx context.Context, req func (c *Client) sendActionsCreateOrUpdateEnvironmentSecret(ctx context.Context, request *ActionsCreateOrUpdateEnvironmentSecretReq, params ActionsCreateOrUpdateEnvironmentSecretParams) (res ActionsCreateOrUpdateEnvironmentSecretRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/create-or-update-environment-secret"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"), } // Validate request before sending. @@ -8651,7 +8652,7 @@ func (c *Client) sendActionsCreateOrUpdateEnvironmentSecret(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -8741,7 +8742,7 @@ func (c *Client) ActionsCreateOrUpdateOrgSecret(ctx context.Context, request *Ac func (c *Client) sendActionsCreateOrUpdateOrgSecret(ctx context.Context, request *ActionsCreateOrUpdateOrgSecretReq, params ActionsCreateOrUpdateOrgSecretParams) (res ActionsCreateOrUpdateOrgSecretRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/create-or-update-org-secret"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/orgs/{org}/actions/secrets/{secret_name}"), } // Validate request before sending. @@ -8825,7 +8826,7 @@ func (c *Client) sendActionsCreateOrUpdateOrgSecret(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -8915,7 +8916,7 @@ func (c *Client) ActionsCreateOrUpdateRepoSecret(ctx context.Context, request *A func (c *Client) sendActionsCreateOrUpdateRepoSecret(ctx context.Context, request *ActionsCreateOrUpdateRepoSecretReq, params ActionsCreateOrUpdateRepoSecretParams) (res ActionsCreateOrUpdateRepoSecretRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/create-or-update-repo-secret"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/secrets/{secret_name}"), } // Validate request before sending. @@ -9018,7 +9019,7 @@ func (c *Client) sendActionsCreateOrUpdateRepoSecret(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -9062,7 +9063,7 @@ func (c *Client) ActionsCreateRegistrationTokenForOrg(ctx context.Context, param func (c *Client) sendActionsCreateRegistrationTokenForOrg(ctx context.Context, params ActionsCreateRegistrationTokenForOrgParams) (res *AuthenticationToken, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/create-registration-token-for-org"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/orgs/{org}/actions/runners/registration-token"), } @@ -9119,7 +9120,7 @@ func (c *Client) sendActionsCreateRegistrationTokenForOrg(ctx context.Context, p uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -9161,7 +9162,7 @@ func (c *Client) ActionsCreateRegistrationTokenForRepo(ctx context.Context, para func (c *Client) sendActionsCreateRegistrationTokenForRepo(ctx context.Context, params ActionsCreateRegistrationTokenForRepoParams) (res *AuthenticationToken, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/create-registration-token-for-repo"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/runners/registration-token"), } @@ -9237,7 +9238,7 @@ func (c *Client) sendActionsCreateRegistrationTokenForRepo(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -9280,7 +9281,7 @@ func (c *Client) ActionsCreateRemoveTokenForOrg(ctx context.Context, params Acti func (c *Client) sendActionsCreateRemoveTokenForOrg(ctx context.Context, params ActionsCreateRemoveTokenForOrgParams) (res *AuthenticationToken, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/create-remove-token-for-org"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/orgs/{org}/actions/runners/remove-token"), } @@ -9337,7 +9338,7 @@ func (c *Client) sendActionsCreateRemoveTokenForOrg(ctx context.Context, params uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -9379,7 +9380,7 @@ func (c *Client) ActionsCreateRemoveTokenForRepo(ctx context.Context, params Act func (c *Client) sendActionsCreateRemoveTokenForRepo(ctx context.Context, params ActionsCreateRemoveTokenForRepoParams) (res *AuthenticationToken, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/create-remove-token-for-repo"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/runners/remove-token"), } @@ -9455,7 +9456,7 @@ func (c *Client) sendActionsCreateRemoveTokenForRepo(ctx context.Context, params uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -9493,7 +9494,7 @@ func (c *Client) ActionsCreateSelfHostedRunnerGroupForOrg(ctx context.Context, r func (c *Client) sendActionsCreateSelfHostedRunnerGroupForOrg(ctx context.Context, request *ActionsCreateSelfHostedRunnerGroupForOrgReq, params ActionsCreateSelfHostedRunnerGroupForOrgParams) (res *RunnerGroupsOrg, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/create-self-hosted-runner-group-for-org"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/orgs/{org}/actions/runner-groups"), } // Validate request before sending. @@ -9559,7 +9560,7 @@ func (c *Client) sendActionsCreateSelfHostedRunnerGroupForOrg(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -9598,7 +9599,7 @@ func (c *Client) ActionsDeleteArtifact(ctx context.Context, params ActionsDelete func (c *Client) sendActionsDeleteArtifact(ctx context.Context, params ActionsDeleteArtifactParams) (res *ActionsDeleteArtifactNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/delete-artifact"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/artifacts/{artifact_id}"), } @@ -9692,7 +9693,7 @@ func (c *Client) sendActionsDeleteArtifact(ctx context.Context, params ActionsDe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -9728,7 +9729,7 @@ func (c *Client) ActionsDeleteEnvironmentSecret(ctx context.Context, params Acti func (c *Client) sendActionsDeleteEnvironmentSecret(ctx context.Context, params ActionsDeleteEnvironmentSecretParams) (res *ActionsDeleteEnvironmentSecretNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/delete-environment-secret"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"), } @@ -9822,7 +9823,7 @@ func (c *Client) sendActionsDeleteEnvironmentSecret(ctx context.Context, params uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -9858,7 +9859,7 @@ func (c *Client) ActionsDeleteOrgSecret(ctx context.Context, params ActionsDelet func (c *Client) sendActionsDeleteOrgSecret(ctx context.Context, params ActionsDeleteOrgSecretParams) (res *ActionsDeleteOrgSecretNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/delete-org-secret"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/orgs/{org}/actions/secrets/{secret_name}"), } @@ -9933,7 +9934,7 @@ func (c *Client) sendActionsDeleteOrgSecret(ctx context.Context, params ActionsD uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -9969,7 +9970,7 @@ func (c *Client) ActionsDeleteRepoSecret(ctx context.Context, params ActionsDele func (c *Client) sendActionsDeleteRepoSecret(ctx context.Context, params ActionsDeleteRepoSecretParams) (res *ActionsDeleteRepoSecretNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/delete-repo-secret"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/secrets/{secret_name}"), } @@ -10063,7 +10064,7 @@ func (c *Client) sendActionsDeleteRepoSecret(ctx context.Context, params Actions uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -10099,7 +10100,7 @@ func (c *Client) ActionsDeleteSelfHostedRunnerFromOrg(ctx context.Context, param func (c *Client) sendActionsDeleteSelfHostedRunnerFromOrg(ctx context.Context, params ActionsDeleteSelfHostedRunnerFromOrgParams) (res *ActionsDeleteSelfHostedRunnerFromOrgNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/delete-self-hosted-runner-from-org"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/orgs/{org}/actions/runners/{runner_id}"), } @@ -10174,7 +10175,7 @@ func (c *Client) sendActionsDeleteSelfHostedRunnerFromOrg(ctx context.Context, p uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -10211,7 +10212,7 @@ func (c *Client) ActionsDeleteSelfHostedRunnerFromRepo(ctx context.Context, para func (c *Client) sendActionsDeleteSelfHostedRunnerFromRepo(ctx context.Context, params ActionsDeleteSelfHostedRunnerFromRepoParams) (res *ActionsDeleteSelfHostedRunnerFromRepoNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/delete-self-hosted-runner-from-repo"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/runners/{runner_id}"), } @@ -10305,7 +10306,7 @@ func (c *Client) sendActionsDeleteSelfHostedRunnerFromRepo(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -10343,7 +10344,7 @@ func (c *Client) ActionsDeleteSelfHostedRunnerGroupFromOrg(ctx context.Context, func (c *Client) sendActionsDeleteSelfHostedRunnerGroupFromOrg(ctx context.Context, params ActionsDeleteSelfHostedRunnerGroupFromOrgParams) (res *ActionsDeleteSelfHostedRunnerGroupFromOrgNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/delete-self-hosted-runner-group-from-org"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/orgs/{org}/actions/runner-groups/{runner_group_id}"), } @@ -10418,7 +10419,7 @@ func (c *Client) sendActionsDeleteSelfHostedRunnerGroupFromOrg(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -10456,7 +10457,7 @@ func (c *Client) ActionsDeleteWorkflowRun(ctx context.Context, params ActionsDel func (c *Client) sendActionsDeleteWorkflowRun(ctx context.Context, params ActionsDeleteWorkflowRunParams) (res *ActionsDeleteWorkflowRunNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/delete-workflow-run"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/runs/{run_id}"), } @@ -10550,7 +10551,7 @@ func (c *Client) sendActionsDeleteWorkflowRun(ctx context.Context, params Action uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -10586,7 +10587,7 @@ func (c *Client) ActionsDeleteWorkflowRunLogs(ctx context.Context, params Action func (c *Client) sendActionsDeleteWorkflowRunLogs(ctx context.Context, params ActionsDeleteWorkflowRunLogsParams) (res *ActionsDeleteWorkflowRunLogsNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/delete-workflow-run-logs"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/runs/{run_id}/logs"), } @@ -10681,7 +10682,7 @@ func (c *Client) sendActionsDeleteWorkflowRunLogs(ctx context.Context, params Ac uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -10720,7 +10721,7 @@ func (c *Client) ActionsDisableSelectedRepositoryGithubActionsOrganization(ctx c func (c *Client) sendActionsDisableSelectedRepositoryGithubActionsOrganization(ctx context.Context, params ActionsDisableSelectedRepositoryGithubActionsOrganizationParams) (res *ActionsDisableSelectedRepositoryGithubActionsOrganizationNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/disable-selected-repository-github-actions-organization"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/orgs/{org}/actions/permissions/repositories/{repository_id}"), } @@ -10795,7 +10796,7 @@ func (c *Client) sendActionsDisableSelectedRepositoryGithubActionsOrganization(c uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -10835,7 +10836,7 @@ func (c *Client) ActionsDownloadArtifact(ctx context.Context, params ActionsDown func (c *Client) sendActionsDownloadArtifact(ctx context.Context, params ActionsDownloadArtifactParams) (res *ActionsDownloadArtifactFound, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/download-artifact"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"), } @@ -10948,7 +10949,7 @@ func (c *Client) sendActionsDownloadArtifact(ctx context.Context, params Actions uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -10990,7 +10991,7 @@ func (c *Client) ActionsDownloadJobLogsForWorkflowRun(ctx context.Context, param func (c *Client) sendActionsDownloadJobLogsForWorkflowRun(ctx context.Context, params ActionsDownloadJobLogsForWorkflowRunParams) (res *ActionsDownloadJobLogsForWorkflowRunFound, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/download-job-logs-for-workflow-run"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/jobs/{job_id}/logs"), } @@ -11085,7 +11086,7 @@ func (c *Client) sendActionsDownloadJobLogsForWorkflowRun(ctx context.Context, p uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11125,7 +11126,7 @@ func (c *Client) ActionsDownloadWorkflowRunLogs(ctx context.Context, params Acti func (c *Client) sendActionsDownloadWorkflowRunLogs(ctx context.Context, params ActionsDownloadWorkflowRunLogsParams) (res *ActionsDownloadWorkflowRunLogsFound, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/download-workflow-run-logs"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/runs/{run_id}/logs"), } @@ -11220,7 +11221,7 @@ func (c *Client) sendActionsDownloadWorkflowRunLogs(ctx context.Context, params uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11259,7 +11260,7 @@ func (c *Client) ActionsEnableSelectedRepositoryGithubActionsOrganization(ctx co func (c *Client) sendActionsEnableSelectedRepositoryGithubActionsOrganization(ctx context.Context, params ActionsEnableSelectedRepositoryGithubActionsOrganizationParams) (res *ActionsEnableSelectedRepositoryGithubActionsOrganizationNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/enable-selected-repository-github-actions-organization"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/orgs/{org}/actions/permissions/repositories/{repository_id}"), } @@ -11334,7 +11335,7 @@ func (c *Client) sendActionsEnableSelectedRepositoryGithubActionsOrganization(ct uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11373,7 +11374,7 @@ func (c *Client) ActionsGetAllowedActionsOrganization(ctx context.Context, param func (c *Client) sendActionsGetAllowedActionsOrganization(ctx context.Context, params ActionsGetAllowedActionsOrganizationParams) (res *SelectedActions, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/get-allowed-actions-organization"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/actions/permissions/selected-actions"), } @@ -11430,7 +11431,7 @@ func (c *Client) sendActionsGetAllowedActionsOrganization(ctx context.Context, p uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11469,7 +11470,7 @@ func (c *Client) ActionsGetAllowedActionsRepository(ctx context.Context, params func (c *Client) sendActionsGetAllowedActionsRepository(ctx context.Context, params ActionsGetAllowedActionsRepositoryParams) (res *SelectedActions, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/get-allowed-actions-repository"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/permissions/selected-actions"), } @@ -11545,7 +11546,7 @@ func (c *Client) sendActionsGetAllowedActionsRepository(ctx context.Context, par uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11581,7 +11582,7 @@ func (c *Client) ActionsGetArtifact(ctx context.Context, params ActionsGetArtifa func (c *Client) sendActionsGetArtifact(ctx context.Context, params ActionsGetArtifactParams) (res *Artifact, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/get-artifact"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/artifacts/{artifact_id}"), } @@ -11675,7 +11676,7 @@ func (c *Client) sendActionsGetArtifact(ctx context.Context, params ActionsGetAr uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11712,7 +11713,7 @@ func (c *Client) ActionsGetEnvironmentPublicKey(ctx context.Context, params Acti func (c *Client) sendActionsGetEnvironmentPublicKey(ctx context.Context, params ActionsGetEnvironmentPublicKeyParams) (res *ActionsPublicKey, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/get-environment-public-key"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repositories/{repository_id}/environments/{environment_name}/secrets/public-key"), } @@ -11788,7 +11789,7 @@ func (c *Client) sendActionsGetEnvironmentPublicKey(ctx context.Context, params uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11824,7 +11825,7 @@ func (c *Client) ActionsGetEnvironmentSecret(ctx context.Context, params Actions func (c *Client) sendActionsGetEnvironmentSecret(ctx context.Context, params ActionsGetEnvironmentSecretParams) (res *ActionsSecret, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/get-environment-secret"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"), } @@ -11918,7 +11919,7 @@ func (c *Client) sendActionsGetEnvironmentSecret(ctx context.Context, params Act uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11954,7 +11955,7 @@ func (c *Client) ActionsGetGithubActionsPermissionsOrganization(ctx context.Cont func (c *Client) sendActionsGetGithubActionsPermissionsOrganization(ctx context.Context, params ActionsGetGithubActionsPermissionsOrganizationParams) (res *ActionsOrganizationPermissions, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/get-github-actions-permissions-organization"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/actions/permissions"), } @@ -12011,7 +12012,7 @@ func (c *Client) sendActionsGetGithubActionsPermissionsOrganization(ctx context. uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12048,7 +12049,7 @@ func (c *Client) ActionsGetGithubActionsPermissionsRepository(ctx context.Contex func (c *Client) sendActionsGetGithubActionsPermissionsRepository(ctx context.Context, params ActionsGetGithubActionsPermissionsRepositoryParams) (res *ActionsRepositoryPermissions, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/get-github-actions-permissions-repository"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/permissions"), } @@ -12124,7 +12125,7 @@ func (c *Client) sendActionsGetGithubActionsPermissionsRepository(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12160,7 +12161,7 @@ func (c *Client) ActionsGetJobForWorkflowRun(ctx context.Context, params Actions func (c *Client) sendActionsGetJobForWorkflowRun(ctx context.Context, params ActionsGetJobForWorkflowRunParams) (res *Job, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/get-job-for-workflow-run"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/jobs/{job_id}"), } @@ -12254,7 +12255,7 @@ func (c *Client) sendActionsGetJobForWorkflowRun(ctx context.Context, params Act uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12291,7 +12292,7 @@ func (c *Client) ActionsGetOrgPublicKey(ctx context.Context, params ActionsGetOr func (c *Client) sendActionsGetOrgPublicKey(ctx context.Context, params ActionsGetOrgPublicKeyParams) (res *ActionsPublicKey, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/get-org-public-key"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/actions/secrets/public-key"), } @@ -12348,7 +12349,7 @@ func (c *Client) sendActionsGetOrgPublicKey(ctx context.Context, params ActionsG uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12384,7 +12385,7 @@ func (c *Client) ActionsGetOrgSecret(ctx context.Context, params ActionsGetOrgSe func (c *Client) sendActionsGetOrgSecret(ctx context.Context, params ActionsGetOrgSecretParams) (res *OrganizationActionsSecret, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/get-org-secret"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/actions/secrets/{secret_name}"), } @@ -12459,7 +12460,7 @@ func (c *Client) sendActionsGetOrgSecret(ctx context.Context, params ActionsGetO uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12496,7 +12497,7 @@ func (c *Client) ActionsGetRepoPublicKey(ctx context.Context, params ActionsGetR func (c *Client) sendActionsGetRepoPublicKey(ctx context.Context, params ActionsGetRepoPublicKeyParams) (res *ActionsPublicKey, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/get-repo-public-key"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/secrets/public-key"), } @@ -12572,7 +12573,7 @@ func (c *Client) sendActionsGetRepoPublicKey(ctx context.Context, params Actions uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12608,7 +12609,7 @@ func (c *Client) ActionsGetRepoSecret(ctx context.Context, params ActionsGetRepo func (c *Client) sendActionsGetRepoSecret(ctx context.Context, params ActionsGetRepoSecretParams) (res *ActionsSecret, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/get-repo-secret"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/secrets/{secret_name}"), } @@ -12702,7 +12703,7 @@ func (c *Client) sendActionsGetRepoSecret(ctx context.Context, params ActionsGet uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12738,7 +12739,7 @@ func (c *Client) ActionsGetReviewsForRun(ctx context.Context, params ActionsGetR func (c *Client) sendActionsGetReviewsForRun(ctx context.Context, params ActionsGetReviewsForRunParams) (res []EnvironmentApprovals, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/get-reviews-for-run"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/runs/{run_id}/approvals"), } @@ -12833,7 +12834,7 @@ func (c *Client) sendActionsGetReviewsForRun(ctx context.Context, params Actions uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12868,7 +12869,7 @@ func (c *Client) ActionsGetSelfHostedRunnerForOrg(ctx context.Context, params Ac func (c *Client) sendActionsGetSelfHostedRunnerForOrg(ctx context.Context, params ActionsGetSelfHostedRunnerForOrgParams) (res *Runner, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/get-self-hosted-runner-for-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/actions/runners/{runner_id}"), } @@ -12943,7 +12944,7 @@ func (c *Client) sendActionsGetSelfHostedRunnerForOrg(ctx context.Context, param uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12979,7 +12980,7 @@ func (c *Client) ActionsGetSelfHostedRunnerForRepo(ctx context.Context, params A func (c *Client) sendActionsGetSelfHostedRunnerForRepo(ctx context.Context, params ActionsGetSelfHostedRunnerForRepoParams) (res *Runner, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/get-self-hosted-runner-for-repo"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/runners/{runner_id}"), } @@ -13073,7 +13074,7 @@ func (c *Client) sendActionsGetSelfHostedRunnerForRepo(ctx context.Context, para uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13111,7 +13112,7 @@ func (c *Client) ActionsGetSelfHostedRunnerGroupForOrg(ctx context.Context, para func (c *Client) sendActionsGetSelfHostedRunnerGroupForOrg(ctx context.Context, params ActionsGetSelfHostedRunnerGroupForOrgParams) (res *RunnerGroupsOrg, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/get-self-hosted-runner-group-for-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/actions/runner-groups/{runner_group_id}"), } @@ -13186,7 +13187,7 @@ func (c *Client) sendActionsGetSelfHostedRunnerGroupForOrg(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13222,7 +13223,7 @@ func (c *Client) ActionsGetWorkflowRun(ctx context.Context, params ActionsGetWor func (c *Client) sendActionsGetWorkflowRun(ctx context.Context, params ActionsGetWorkflowRunParams) (res *WorkflowRun, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/get-workflow-run"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/runs/{run_id}"), } @@ -13316,7 +13317,7 @@ func (c *Client) sendActionsGetWorkflowRun(ctx context.Context, params ActionsGe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13359,7 +13360,7 @@ func (c *Client) ActionsGetWorkflowRunUsage(ctx context.Context, params ActionsG func (c *Client) sendActionsGetWorkflowRunUsage(ctx context.Context, params ActionsGetWorkflowRunUsageParams) (res *WorkflowRunUsage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/get-workflow-run-usage"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/runs/{run_id}/timing"), } @@ -13454,7 +13455,7 @@ func (c *Client) sendActionsGetWorkflowRunUsage(ctx context.Context, params Acti uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13490,7 +13491,7 @@ func (c *Client) ActionsListArtifactsForRepo(ctx context.Context, params Actions func (c *Client) sendActionsListArtifactsForRepo(ctx context.Context, params ActionsListArtifactsForRepoParams) (res *ActionsListArtifactsForRepoOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/list-artifacts-for-repo"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/artifacts"), } @@ -13604,7 +13605,7 @@ func (c *Client) sendActionsListArtifactsForRepo(ctx context.Context, params Act u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13640,7 +13641,7 @@ func (c *Client) ActionsListEnvironmentSecrets(ctx context.Context, params Actio func (c *Client) sendActionsListEnvironmentSecrets(ctx context.Context, params ActionsListEnvironmentSecretsParams) (res *ActionsListEnvironmentSecretsOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/list-environment-secrets"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repositories/{repository_id}/environments/{environment_name}/secrets"), } @@ -13754,7 +13755,7 @@ func (c *Client) sendActionsListEnvironmentSecrets(ctx context.Context, params A u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13792,7 +13793,7 @@ func (c *Client) ActionsListJobsForWorkflowRun(ctx context.Context, params Actio func (c *Client) sendActionsListJobsForWorkflowRun(ctx context.Context, params ActionsListJobsForWorkflowRunParams) (res *ActionsListJobsForWorkflowRunOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/list-jobs-for-workflow-run"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/runs/{run_id}/jobs"), } @@ -13942,7 +13943,7 @@ func (c *Client) sendActionsListJobsForWorkflowRun(ctx context.Context, params A u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13978,7 +13979,7 @@ func (c *Client) ActionsListOrgSecrets(ctx context.Context, params ActionsListOr func (c *Client) sendActionsListOrgSecrets(ctx context.Context, params ActionsListOrgSecretsParams) (res *ActionsListOrgSecretsOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/list-org-secrets"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/actions/secrets"), } @@ -14073,7 +14074,7 @@ func (c *Client) sendActionsListOrgSecrets(ctx context.Context, params ActionsLi u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -14111,7 +14112,7 @@ func (c *Client) ActionsListRepoAccessToSelfHostedRunnerGroupInOrg(ctx context.C func (c *Client) sendActionsListRepoAccessToSelfHostedRunnerGroupInOrg(ctx context.Context, params ActionsListRepoAccessToSelfHostedRunnerGroupInOrgParams) (res *ActionsListRepoAccessToSelfHostedRunnerGroupInOrgOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/list-repo-access-to-self-hosted-runner-group-in-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories"), } @@ -14225,7 +14226,7 @@ func (c *Client) sendActionsListRepoAccessToSelfHostedRunnerGroupInOrg(ctx conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -14261,7 +14262,7 @@ func (c *Client) ActionsListRepoSecrets(ctx context.Context, params ActionsListR func (c *Client) sendActionsListRepoSecrets(ctx context.Context, params ActionsListRepoSecretsParams) (res *ActionsListRepoSecretsOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/list-repo-secrets"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/secrets"), } @@ -14375,7 +14376,7 @@ func (c *Client) sendActionsListRepoSecrets(ctx context.Context, params ActionsL u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -14411,7 +14412,7 @@ func (c *Client) ActionsListRepoWorkflows(ctx context.Context, params ActionsLis func (c *Client) sendActionsListRepoWorkflows(ctx context.Context, params ActionsListRepoWorkflowsParams) (res *ActionsListRepoWorkflowsOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/list-repo-workflows"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/workflows"), } @@ -14525,7 +14526,7 @@ func (c *Client) sendActionsListRepoWorkflows(ctx context.Context, params Action u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -14560,7 +14561,7 @@ func (c *Client) ActionsListRunnerApplicationsForOrg(ctx context.Context, params func (c *Client) sendActionsListRunnerApplicationsForOrg(ctx context.Context, params ActionsListRunnerApplicationsForOrgParams) (res []RunnerApplication, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/list-runner-applications-for-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/actions/runners/downloads"), } @@ -14617,7 +14618,7 @@ func (c *Client) sendActionsListRunnerApplicationsForOrg(ctx context.Context, pa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -14652,7 +14653,7 @@ func (c *Client) ActionsListRunnerApplicationsForRepo(ctx context.Context, param func (c *Client) sendActionsListRunnerApplicationsForRepo(ctx context.Context, params ActionsListRunnerApplicationsForRepoParams) (res []RunnerApplication, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/list-runner-applications-for-repo"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/runners/downloads"), } @@ -14728,7 +14729,7 @@ func (c *Client) sendActionsListRunnerApplicationsForRepo(ctx context.Context, p uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -14765,7 +14766,7 @@ func (c *Client) ActionsListSelectedReposForOrgSecret(ctx context.Context, param func (c *Client) sendActionsListSelectedReposForOrgSecret(ctx context.Context, params ActionsListSelectedReposForOrgSecretParams) (res *ActionsListSelectedReposForOrgSecretOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/list-selected-repos-for-org-secret"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/actions/secrets/{secret_name}/repositories"), } @@ -14879,7 +14880,7 @@ func (c *Client) sendActionsListSelectedReposForOrgSecret(ctx context.Context, p u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -14918,7 +14919,7 @@ func (c *Client) ActionsListSelectedRepositoriesEnabledGithubActionsOrganization func (c *Client) sendActionsListSelectedRepositoriesEnabledGithubActionsOrganization(ctx context.Context, params ActionsListSelectedRepositoriesEnabledGithubActionsOrganizationParams) (res *ActionsListSelectedRepositoriesEnabledGithubActionsOrganizationOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/list-selected-repositories-enabled-github-actions-organization"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/actions/permissions/repositories"), } @@ -15013,7 +15014,7 @@ func (c *Client) sendActionsListSelectedRepositoriesEnabledGithubActionsOrganiza u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -15051,7 +15052,7 @@ func (c *Client) ActionsListSelfHostedRunnerGroupsForOrg(ctx context.Context, pa func (c *Client) sendActionsListSelfHostedRunnerGroupsForOrg(ctx context.Context, params ActionsListSelfHostedRunnerGroupsForOrgParams) (res *ActionsListSelfHostedRunnerGroupsForOrgOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/list-self-hosted-runner-groups-for-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/actions/runner-groups"), } @@ -15146,7 +15147,7 @@ func (c *Client) sendActionsListSelfHostedRunnerGroupsForOrg(ctx context.Context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -15181,7 +15182,7 @@ func (c *Client) ActionsListSelfHostedRunnersForOrg(ctx context.Context, params func (c *Client) sendActionsListSelfHostedRunnersForOrg(ctx context.Context, params ActionsListSelfHostedRunnersForOrgParams) (res *ActionsListSelfHostedRunnersForOrgOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/list-self-hosted-runners-for-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/actions/runners"), } @@ -15276,7 +15277,7 @@ func (c *Client) sendActionsListSelfHostedRunnersForOrg(ctx context.Context, par u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -15311,7 +15312,7 @@ func (c *Client) ActionsListSelfHostedRunnersForRepo(ctx context.Context, params func (c *Client) sendActionsListSelfHostedRunnersForRepo(ctx context.Context, params ActionsListSelfHostedRunnersForRepoParams) (res *ActionsListSelfHostedRunnersForRepoOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/list-self-hosted-runners-for-repo"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/runners"), } @@ -15425,7 +15426,7 @@ func (c *Client) sendActionsListSelfHostedRunnersForRepo(ctx context.Context, pa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -15463,7 +15464,7 @@ func (c *Client) ActionsListSelfHostedRunnersInGroupForOrg(ctx context.Context, func (c *Client) sendActionsListSelfHostedRunnersInGroupForOrg(ctx context.Context, params ActionsListSelfHostedRunnersInGroupForOrgParams) (res *ActionsListSelfHostedRunnersInGroupForOrgOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/list-self-hosted-runners-in-group-for-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/actions/runner-groups/{runner_group_id}/runners"), } @@ -15577,7 +15578,7 @@ func (c *Client) sendActionsListSelfHostedRunnersInGroupForOrg(ctx context.Conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -15613,7 +15614,7 @@ func (c *Client) ActionsListWorkflowRunArtifacts(ctx context.Context, params Act func (c *Client) sendActionsListWorkflowRunArtifacts(ctx context.Context, params ActionsListWorkflowRunArtifactsParams) (res *ActionsListWorkflowRunArtifactsOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/list-workflow-run-artifacts"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"), } @@ -15746,7 +15747,7 @@ func (c *Client) sendActionsListWorkflowRunArtifacts(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -15785,7 +15786,7 @@ func (c *Client) ActionsListWorkflowRunsForRepo(ctx context.Context, params Acti func (c *Client) sendActionsListWorkflowRunsForRepo(ctx context.Context, params ActionsListWorkflowRunsForRepoParams) (res *ActionsListWorkflowRunsForRepoOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/list-workflow-runs-for-repo"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/runs"), } @@ -15984,7 +15985,7 @@ func (c *Client) sendActionsListWorkflowRunsForRepo(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16025,7 +16026,7 @@ func (c *Client) ActionsReRunWorkflow(ctx context.Context, params ActionsReRunWo func (c *Client) sendActionsReRunWorkflow(ctx context.Context, params ActionsReRunWorkflowParams) (res *ActionsReRunWorkflowCreated, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/re-run-workflow"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/runs/{run_id}/rerun"), } @@ -16120,7 +16121,7 @@ func (c *Client) sendActionsReRunWorkflow(ctx context.Context, params ActionsReR uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16161,7 +16162,7 @@ func (c *Client) ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg(ctx context func (c *Client) sendActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg(ctx context.Context, params ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgParams) (res *ActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrgNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/remove-repo-access-to-self-hosted-runner-group-in-org"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"), } @@ -16255,7 +16256,7 @@ func (c *Client) sendActionsRemoveRepoAccessToSelfHostedRunnerGroupInOrg(ctx con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16293,7 +16294,7 @@ func (c *Client) ActionsRemoveSelectedRepoFromOrgSecret(ctx context.Context, par func (c *Client) sendActionsRemoveSelectedRepoFromOrgSecret(ctx context.Context, params ActionsRemoveSelectedRepoFromOrgSecretParams) (res ActionsRemoveSelectedRepoFromOrgSecretRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/remove-selected-repo-from-org-secret"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"), } @@ -16387,7 +16388,7 @@ func (c *Client) sendActionsRemoveSelectedRepoFromOrgSecret(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16426,7 +16427,7 @@ func (c *Client) ActionsRemoveSelfHostedRunnerFromGroupForOrg(ctx context.Contex func (c *Client) sendActionsRemoveSelfHostedRunnerFromGroupForOrg(ctx context.Context, params ActionsRemoveSelfHostedRunnerFromGroupForOrgParams) (res *ActionsRemoveSelfHostedRunnerFromGroupForOrgNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/remove-self-hosted-runner-from-group-for-org"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}"), } @@ -16520,7 +16521,7 @@ func (c *Client) sendActionsRemoveSelfHostedRunnerFromGroupForOrg(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16556,7 +16557,7 @@ func (c *Client) ActionsRetryWorkflow(ctx context.Context, params ActionsRetryWo func (c *Client) sendActionsRetryWorkflow(ctx context.Context, params ActionsRetryWorkflowParams) (res *ActionsRetryWorkflowCreated, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/retry-workflow"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/runs/{run_id}/retry"), } @@ -16651,7 +16652,7 @@ func (c *Client) sendActionsRetryWorkflow(ctx context.Context, params ActionsRet uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16686,7 +16687,7 @@ func (c *Client) ActionsReviewPendingDeploymentsForRun(ctx context.Context, requ func (c *Client) sendActionsReviewPendingDeploymentsForRun(ctx context.Context, request *ActionsReviewPendingDeploymentsForRunReq, params ActionsReviewPendingDeploymentsForRunParams) (res []Deployment, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/review-pending-deployments-for-run"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"), } // Validate request before sending. @@ -16790,7 +16791,7 @@ func (c *Client) sendActionsReviewPendingDeploymentsForRun(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16837,7 +16838,7 @@ func (c *Client) ActionsSetAllowedActionsOrganization(ctx context.Context, reque func (c *Client) sendActionsSetAllowedActionsOrganization(ctx context.Context, request OptSelectedActions, params ActionsSetAllowedActionsOrganizationParams) (res *ActionsSetAllowedActionsOrganizationNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/set-allowed-actions-organization"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/orgs/{org}/actions/permissions/selected-actions"), } @@ -16894,7 +16895,7 @@ func (c *Client) sendActionsSetAllowedActionsOrganization(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16940,7 +16941,7 @@ func (c *Client) ActionsSetAllowedActionsRepository(ctx context.Context, request func (c *Client) sendActionsSetAllowedActionsRepository(ctx context.Context, request OptSelectedActions, params ActionsSetAllowedActionsRepositoryParams) (res *ActionsSetAllowedActionsRepositoryNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/set-allowed-actions-repository"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/permissions/selected-actions"), } @@ -17016,7 +17017,7 @@ func (c *Client) sendActionsSetAllowedActionsRepository(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -17058,7 +17059,7 @@ func (c *Client) ActionsSetGithubActionsPermissionsOrganization(ctx context.Cont func (c *Client) sendActionsSetGithubActionsPermissionsOrganization(ctx context.Context, request *ActionsSetGithubActionsPermissionsOrganizationReq, params ActionsSetGithubActionsPermissionsOrganizationParams) (res *ActionsSetGithubActionsPermissionsOrganizationNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/set-github-actions-permissions-organization"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/orgs/{org}/actions/permissions"), } // Validate request before sending. @@ -17124,7 +17125,7 @@ func (c *Client) sendActionsSetGithubActionsPermissionsOrganization(ctx context. uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -17167,7 +17168,7 @@ func (c *Client) ActionsSetGithubActionsPermissionsRepository(ctx context.Contex func (c *Client) sendActionsSetGithubActionsPermissionsRepository(ctx context.Context, request *ActionsSetGithubActionsPermissionsRepositoryReq, params ActionsSetGithubActionsPermissionsRepositoryParams) (res *ActionsSetGithubActionsPermissionsRepositoryNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/set-github-actions-permissions-repository"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/actions/permissions"), } // Validate request before sending. @@ -17252,7 +17253,7 @@ func (c *Client) sendActionsSetGithubActionsPermissionsRepository(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -17294,7 +17295,7 @@ func (c *Client) ActionsSetRepoAccessToSelfHostedRunnerGroupInOrg(ctx context.Co func (c *Client) sendActionsSetRepoAccessToSelfHostedRunnerGroupInOrg(ctx context.Context, request *ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgReq, params ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgParams) (res *ActionsSetRepoAccessToSelfHostedRunnerGroupInOrgNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/set-repo-access-to-self-hosted-runner-group-in-org"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories"), } // Validate request before sending. @@ -17379,7 +17380,7 @@ func (c *Client) sendActionsSetRepoAccessToSelfHostedRunnerGroupInOrg(ctx contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -17420,7 +17421,7 @@ func (c *Client) ActionsSetSelectedReposForOrgSecret(ctx context.Context, reques func (c *Client) sendActionsSetSelectedReposForOrgSecret(ctx context.Context, request *ActionsSetSelectedReposForOrgSecretReq, params ActionsSetSelectedReposForOrgSecretParams) (res *ActionsSetSelectedReposForOrgSecretNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/set-selected-repos-for-org-secret"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/orgs/{org}/actions/secrets/{secret_name}/repositories"), } // Validate request before sending. @@ -17505,7 +17506,7 @@ func (c *Client) sendActionsSetSelectedReposForOrgSecret(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -17547,7 +17548,7 @@ func (c *Client) ActionsSetSelectedRepositoriesEnabledGithubActionsOrganization( func (c *Client) sendActionsSetSelectedRepositoriesEnabledGithubActionsOrganization(ctx context.Context, request *ActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationReq, params ActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationParams) (res *ActionsSetSelectedRepositoriesEnabledGithubActionsOrganizationNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/set-selected-repositories-enabled-github-actions-organization"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/orgs/{org}/actions/permissions/repositories"), } // Validate request before sending. @@ -17613,7 +17614,7 @@ func (c *Client) sendActionsSetSelectedRepositoriesEnabledGithubActionsOrganizat uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -17654,7 +17655,7 @@ func (c *Client) ActionsSetSelfHostedRunnersInGroupForOrg(ctx context.Context, r func (c *Client) sendActionsSetSelfHostedRunnersInGroupForOrg(ctx context.Context, request *ActionsSetSelfHostedRunnersInGroupForOrgReq, params ActionsSetSelfHostedRunnersInGroupForOrgParams) (res *ActionsSetSelfHostedRunnersInGroupForOrgNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/set-self-hosted-runners-in-group-for-org"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/orgs/{org}/actions/runner-groups/{runner_group_id}/runners"), } // Validate request before sending. @@ -17739,7 +17740,7 @@ func (c *Client) sendActionsSetSelfHostedRunnersInGroupForOrg(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -17780,7 +17781,7 @@ func (c *Client) ActionsUpdateSelfHostedRunnerGroupForOrg(ctx context.Context, r func (c *Client) sendActionsUpdateSelfHostedRunnerGroupForOrg(ctx context.Context, request *ActionsUpdateSelfHostedRunnerGroupForOrgReq, params ActionsUpdateSelfHostedRunnerGroupForOrgParams) (res *RunnerGroupsOrg, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("actions/update-self-hosted-runner-group-for-org"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/orgs/{org}/actions/runner-groups/{runner_group_id}"), } // Validate request before sending. @@ -17864,7 +17865,7 @@ func (c *Client) sendActionsUpdateSelfHostedRunnerGroupForOrg(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -17901,7 +17902,7 @@ func (c *Client) ActivityCheckRepoIsStarredByAuthenticatedUser(ctx context.Conte func (c *Client) sendActivityCheckRepoIsStarredByAuthenticatedUser(ctx context.Context, params ActivityCheckRepoIsStarredByAuthenticatedUserParams) (res ActivityCheckRepoIsStarredByAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/check-repo-is-starred-by-authenticated-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/starred/{owner}/{repo}"), } @@ -17976,7 +17977,7 @@ func (c *Client) sendActivityCheckRepoIsStarredByAuthenticatedUser(ctx context.C uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -18012,7 +18013,7 @@ func (c *Client) ActivityDeleteRepoSubscription(ctx context.Context, params Acti func (c *Client) sendActivityDeleteRepoSubscription(ctx context.Context, params ActivityDeleteRepoSubscriptionParams) (res *ActivityDeleteRepoSubscriptionNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/delete-repo-subscription"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/subscription"), } @@ -18088,7 +18089,7 @@ func (c *Client) sendActivityDeleteRepoSubscription(ctx context.Context, params uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -18126,7 +18127,7 @@ func (c *Client) ActivityDeleteThreadSubscription(ctx context.Context, params Ac func (c *Client) sendActivityDeleteThreadSubscription(ctx context.Context, params ActivityDeleteThreadSubscriptionParams) (res ActivityDeleteThreadSubscriptionRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/delete-thread-subscription"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/notifications/threads/{thread_id}/subscription"), } @@ -18183,7 +18184,7 @@ func (c *Client) sendActivityDeleteThreadSubscription(ctx context.Context, param uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -18231,7 +18232,7 @@ func (c *Client) ActivityGetFeeds(ctx context.Context) (*Feed, error) { func (c *Client) sendActivityGetFeeds(ctx context.Context) (res *Feed, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/get-feeds"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/feeds"), } @@ -18269,7 +18270,7 @@ func (c *Client) sendActivityGetFeeds(ctx context.Context) (res *Feed, err error uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -18303,7 +18304,7 @@ func (c *Client) ActivityGetRepoSubscription(ctx context.Context, params Activit func (c *Client) sendActivityGetRepoSubscription(ctx context.Context, params ActivityGetRepoSubscriptionParams) (res ActivityGetRepoSubscriptionRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/get-repo-subscription"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/subscription"), } @@ -18379,7 +18380,7 @@ func (c *Client) sendActivityGetRepoSubscription(ctx context.Context, params Act uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -18413,7 +18414,7 @@ func (c *Client) ActivityGetThread(ctx context.Context, params ActivityGetThread func (c *Client) sendActivityGetThread(ctx context.Context, params ActivityGetThreadParams) (res ActivityGetThreadRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/get-thread"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/notifications/threads/{thread_id}"), } @@ -18469,7 +18470,7 @@ func (c *Client) sendActivityGetThread(ctx context.Context, params ActivityGetTh uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -18506,7 +18507,7 @@ func (c *Client) ActivityGetThreadSubscriptionForAuthenticatedUser(ctx context.C func (c *Client) sendActivityGetThreadSubscriptionForAuthenticatedUser(ctx context.Context, params ActivityGetThreadSubscriptionForAuthenticatedUserParams) (res ActivityGetThreadSubscriptionForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/get-thread-subscription-for-authenticated-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/notifications/threads/{thread_id}/subscription"), } @@ -18563,7 +18564,7 @@ func (c *Client) sendActivityGetThreadSubscriptionForAuthenticatedUser(ctx conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -18598,7 +18599,7 @@ func (c *Client) ActivityListEventsForAuthenticatedUser(ctx context.Context, par func (c *Client) sendActivityListEventsForAuthenticatedUser(ctx context.Context, params ActivityListEventsForAuthenticatedUserParams) (res []Event, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/list-events-for-authenticated-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/users/{username}/events"), } @@ -18693,7 +18694,7 @@ func (c *Client) sendActivityListEventsForAuthenticatedUser(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -18727,7 +18728,7 @@ func (c *Client) ActivityListNotificationsForAuthenticatedUser(ctx context.Conte func (c *Client) sendActivityListNotificationsForAuthenticatedUser(ctx context.Context, params ActivityListNotificationsForAuthenticatedUserParams) (res ActivityListNotificationsForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/list-notifications-for-authenticated-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/notifications"), } @@ -18871,7 +18872,7 @@ func (c *Client) sendActivityListNotificationsForAuthenticatedUser(ctx context.C u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -18905,7 +18906,7 @@ func (c *Client) ActivityListOrgEventsForAuthenticatedUser(ctx context.Context, func (c *Client) sendActivityListOrgEventsForAuthenticatedUser(ctx context.Context, params ActivityListOrgEventsForAuthenticatedUserParams) (res []Event, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/list-org-events-for-authenticated-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/users/{username}/events/orgs/{org}"), } @@ -19018,7 +19019,7 @@ func (c *Client) sendActivityListOrgEventsForAuthenticatedUser(ctx context.Conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -19053,7 +19054,7 @@ func (c *Client) ActivityListPublicEvents(ctx context.Context, params ActivityLi func (c *Client) sendActivityListPublicEvents(ctx context.Context, params ActivityListPublicEventsParams) (res ActivityListPublicEventsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/list-public-events"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/events"), } @@ -19129,7 +19130,7 @@ func (c *Client) sendActivityListPublicEvents(ctx context.Context, params Activi u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -19163,7 +19164,7 @@ func (c *Client) ActivityListPublicEventsForRepoNetwork(ctx context.Context, par func (c *Client) sendActivityListPublicEventsForRepoNetwork(ctx context.Context, params ActivityListPublicEventsForRepoNetworkParams) (res ActivityListPublicEventsForRepoNetworkRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/list-public-events-for-repo-network"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/networks/{owner}/{repo}/events"), } @@ -19277,7 +19278,7 @@ func (c *Client) sendActivityListPublicEventsForRepoNetwork(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -19311,7 +19312,7 @@ func (c *Client) ActivityListPublicEventsForUser(ctx context.Context, params Act func (c *Client) sendActivityListPublicEventsForUser(ctx context.Context, params ActivityListPublicEventsForUserParams) (res []Event, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/list-public-events-for-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/users/{username}/events/public"), } @@ -19406,7 +19407,7 @@ func (c *Client) sendActivityListPublicEventsForUser(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -19440,7 +19441,7 @@ func (c *Client) ActivityListPublicOrgEvents(ctx context.Context, params Activit func (c *Client) sendActivityListPublicOrgEvents(ctx context.Context, params ActivityListPublicOrgEventsParams) (res []Event, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/list-public-org-events"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/events"), } @@ -19535,7 +19536,7 @@ func (c *Client) sendActivityListPublicOrgEvents(ctx context.Context, params Act u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -19571,7 +19572,7 @@ func (c *Client) ActivityListReceivedEventsForUser(ctx context.Context, params A func (c *Client) sendActivityListReceivedEventsForUser(ctx context.Context, params ActivityListReceivedEventsForUserParams) (res []Event, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/list-received-events-for-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/users/{username}/received_events"), } @@ -19666,7 +19667,7 @@ func (c *Client) sendActivityListReceivedEventsForUser(ctx context.Context, para u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -19700,7 +19701,7 @@ func (c *Client) ActivityListReceivedPublicEventsForUser(ctx context.Context, pa func (c *Client) sendActivityListReceivedPublicEventsForUser(ctx context.Context, params ActivityListReceivedPublicEventsForUserParams) (res []Event, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/list-received-public-events-for-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/users/{username}/received_events/public"), } @@ -19795,7 +19796,7 @@ func (c *Client) sendActivityListReceivedPublicEventsForUser(ctx context.Context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -19829,7 +19830,7 @@ func (c *Client) ActivityListRepoEvents(ctx context.Context, params ActivityList func (c *Client) sendActivityListRepoEvents(ctx context.Context, params ActivityListRepoEventsParams) (res []Event, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/list-repo-events"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/events"), } @@ -19943,7 +19944,7 @@ func (c *Client) sendActivityListRepoEvents(ctx context.Context, params Activity u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -19977,7 +19978,7 @@ func (c *Client) ActivityListRepoNotificationsForAuthenticatedUser(ctx context.C func (c *Client) sendActivityListRepoNotificationsForAuthenticatedUser(ctx context.Context, params ActivityListRepoNotificationsForAuthenticatedUserParams) (res *ActivityListRepoNotificationsForAuthenticatedUserOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/list-repo-notifications-for-authenticated-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/notifications"), } @@ -20159,7 +20160,7 @@ func (c *Client) sendActivityListRepoNotificationsForAuthenticatedUser(ctx conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -20195,7 +20196,7 @@ func (c *Client) ActivityListReposStarredByAuthenticatedUser(ctx context.Context func (c *Client) sendActivityListReposStarredByAuthenticatedUser(ctx context.Context, params ActivityListReposStarredByAuthenticatedUserParams) (res ActivityListReposStarredByAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/list-repos-starred-by-authenticated-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/starred"), } @@ -20305,7 +20306,7 @@ func (c *Client) sendActivityListReposStarredByAuthenticatedUser(ctx context.Con u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -20339,7 +20340,7 @@ func (c *Client) ActivityListReposWatchedByUser(ctx context.Context, params Acti func (c *Client) sendActivityListReposWatchedByUser(ctx context.Context, params ActivityListReposWatchedByUserParams) (res *ActivityListReposWatchedByUserOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/list-repos-watched-by-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/users/{username}/subscriptions"), } @@ -20434,7 +20435,7 @@ func (c *Client) sendActivityListReposWatchedByUser(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -20468,7 +20469,7 @@ func (c *Client) ActivityListWatchedReposForAuthenticatedUser(ctx context.Contex func (c *Client) sendActivityListWatchedReposForAuthenticatedUser(ctx context.Context, params ActivityListWatchedReposForAuthenticatedUserParams) (res ActivityListWatchedReposForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/list-watched-repos-for-authenticated-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/subscriptions"), } @@ -20544,7 +20545,7 @@ func (c *Client) sendActivityListWatchedReposForAuthenticatedUser(ctx context.Co u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -20578,7 +20579,7 @@ func (c *Client) ActivityListWatchersForRepo(ctx context.Context, params Activit func (c *Client) sendActivityListWatchersForRepo(ctx context.Context, params ActivityListWatchersForRepoParams) (res *ActivityListWatchersForRepoOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/list-watchers-for-repo"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/subscribers"), } @@ -20692,7 +20693,7 @@ func (c *Client) sendActivityListWatchersForRepo(ctx context.Context, params Act u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -20732,7 +20733,7 @@ func (c *Client) ActivityMarkNotificationsAsRead(ctx context.Context, request Op func (c *Client) sendActivityMarkNotificationsAsRead(ctx context.Context, request OptActivityMarkNotificationsAsReadReq) (res ActivityMarkNotificationsAsReadRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/mark-notifications-as-read"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/notifications"), } @@ -20770,7 +20771,7 @@ func (c *Client) sendActivityMarkNotificationsAsRead(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -20813,7 +20814,7 @@ func (c *Client) ActivityMarkRepoNotificationsAsRead(ctx context.Context, reques func (c *Client) sendActivityMarkRepoNotificationsAsRead(ctx context.Context, request OptActivityMarkRepoNotificationsAsReadReq, params ActivityMarkRepoNotificationsAsReadParams) (res ActivityMarkRepoNotificationsAsReadRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/mark-repo-notifications-as-read"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/notifications"), } @@ -20889,7 +20890,7 @@ func (c *Client) sendActivityMarkRepoNotificationsAsRead(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -20926,7 +20927,7 @@ func (c *Client) ActivityMarkThreadAsRead(ctx context.Context, params ActivityMa func (c *Client) sendActivityMarkThreadAsRead(ctx context.Context, params ActivityMarkThreadAsReadParams) (res ActivityMarkThreadAsReadRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/mark-thread-as-read"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/notifications/threads/{thread_id}"), } @@ -20982,7 +20983,7 @@ func (c *Client) sendActivityMarkThreadAsRead(ctx context.Context, params Activi uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -21019,7 +21020,7 @@ func (c *Client) ActivitySetRepoSubscription(ctx context.Context, request OptAct func (c *Client) sendActivitySetRepoSubscription(ctx context.Context, request OptActivitySetRepoSubscriptionReq, params ActivitySetRepoSubscriptionParams) (res *RepositorySubscription, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/set-repo-subscription"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/subscription"), } @@ -21095,7 +21096,7 @@ func (c *Client) sendActivitySetRepoSubscription(ctx context.Context, request Op uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -21139,7 +21140,7 @@ func (c *Client) ActivitySetThreadSubscription(ctx context.Context, request OptA func (c *Client) sendActivitySetThreadSubscription(ctx context.Context, request OptActivitySetThreadSubscriptionReq, params ActivitySetThreadSubscriptionParams) (res ActivitySetThreadSubscriptionRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/set-thread-subscription"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/notifications/threads/{thread_id}/subscription"), } @@ -21196,7 +21197,7 @@ func (c *Client) sendActivitySetThreadSubscription(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -21235,7 +21236,7 @@ func (c *Client) ActivityStarRepoForAuthenticatedUser(ctx context.Context, param func (c *Client) sendActivityStarRepoForAuthenticatedUser(ctx context.Context, params ActivityStarRepoForAuthenticatedUserParams) (res ActivityStarRepoForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/star-repo-for-authenticated-user"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/user/starred/{owner}/{repo}"), } @@ -21310,7 +21311,7 @@ func (c *Client) sendActivityStarRepoForAuthenticatedUser(ctx context.Context, p uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -21344,7 +21345,7 @@ func (c *Client) ActivityUnstarRepoForAuthenticatedUser(ctx context.Context, par func (c *Client) sendActivityUnstarRepoForAuthenticatedUser(ctx context.Context, params ActivityUnstarRepoForAuthenticatedUserParams) (res ActivityUnstarRepoForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("activity/unstar-repo-for-authenticated-user"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/user/starred/{owner}/{repo}"), } @@ -21419,7 +21420,7 @@ func (c *Client) sendActivityUnstarRepoForAuthenticatedUser(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -21458,7 +21459,7 @@ func (c *Client) AppsAddRepoToInstallation(ctx context.Context, params AppsAddRe func (c *Client) sendAppsAddRepoToInstallation(ctx context.Context, params AppsAddRepoToInstallationParams) (res AppsAddRepoToInstallationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/add-repo-to-installation"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/user/installations/{installation_id}/repositories/{repository_id}"), } @@ -21533,7 +21534,7 @@ func (c *Client) sendAppsAddRepoToInstallation(ctx context.Context, params AppsA uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -21572,7 +21573,7 @@ func (c *Client) AppsCheckToken(ctx context.Context, request *AppsCheckTokenReq, func (c *Client) sendAppsCheckToken(ctx context.Context, request *AppsCheckTokenReq, params AppsCheckTokenParams) (res AppsCheckTokenRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/check-token"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/applications/{client_id}/token"), } @@ -21629,7 +21630,7 @@ func (c *Client) sendAppsCheckToken(ctx context.Context, request *AppsCheckToken uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -21675,7 +21676,7 @@ func (c *Client) AppsCreateContentAttachment(ctx context.Context, request *AppsC func (c *Client) sendAppsCreateContentAttachment(ctx context.Context, request *AppsCreateContentAttachmentReq, params AppsCreateContentAttachmentParams) (res AppsCreateContentAttachmentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/create-content-attachment"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/content_references/{content_reference_id}/attachments"), } // Validate request before sending. @@ -21779,7 +21780,7 @@ func (c *Client) sendAppsCreateContentAttachment(ctx context.Context, request *A uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -21819,7 +21820,7 @@ func (c *Client) AppsCreateFromManifest(ctx context.Context, request *AppsCreate func (c *Client) sendAppsCreateFromManifest(ctx context.Context, request *AppsCreateFromManifestReq, params AppsCreateFromManifestParams) (res AppsCreateFromManifestRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/create-from-manifest"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/app-manifests/{code}/conversions"), } @@ -21876,7 +21877,7 @@ func (c *Client) sendAppsCreateFromManifest(ctx context.Context, request *AppsCr uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -21922,7 +21923,7 @@ func (c *Client) AppsCreateInstallationAccessToken(ctx context.Context, request func (c *Client) sendAppsCreateInstallationAccessToken(ctx context.Context, request OptAppsCreateInstallationAccessTokenReq, params AppsCreateInstallationAccessTokenParams) (res AppsCreateInstallationAccessTokenRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/create-installation-access-token"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/app/installations/{installation_id}/access_tokens"), } // Validate request before sending. @@ -21995,7 +21996,7 @@ func (c *Client) sendAppsCreateInstallationAccessToken(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -22041,7 +22042,7 @@ func (c *Client) AppsDeleteAuthorization(ctx context.Context, request *AppsDelet func (c *Client) sendAppsDeleteAuthorization(ctx context.Context, request *AppsDeleteAuthorizationReq, params AppsDeleteAuthorizationParams) (res AppsDeleteAuthorizationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/delete-authorization"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/applications/{client_id}/grant"), } @@ -22098,7 +22099,7 @@ func (c *Client) sendAppsDeleteAuthorization(ctx context.Context, request *AppsD uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -22140,7 +22141,7 @@ func (c *Client) AppsDeleteInstallation(ctx context.Context, params AppsDeleteIn func (c *Client) sendAppsDeleteInstallation(ctx context.Context, params AppsDeleteInstallationParams) (res AppsDeleteInstallationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/delete-installation"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/app/installations/{installation_id}"), } @@ -22196,7 +22197,7 @@ func (c *Client) sendAppsDeleteInstallation(ctx context.Context, params AppsDele uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -22233,7 +22234,7 @@ func (c *Client) AppsDeleteToken(ctx context.Context, request *AppsDeleteTokenRe func (c *Client) sendAppsDeleteToken(ctx context.Context, request *AppsDeleteTokenReq, params AppsDeleteTokenParams) (res AppsDeleteTokenRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/delete-token"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/applications/{client_id}/token"), } @@ -22290,7 +22291,7 @@ func (c *Client) sendAppsDeleteToken(ctx context.Context, request *AppsDeleteTok uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -22334,7 +22335,7 @@ func (c *Client) AppsGetAuthenticated(ctx context.Context) (*Integration, error) func (c *Client) sendAppsGetAuthenticated(ctx context.Context) (res *Integration, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/get-authenticated"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/app"), } @@ -22372,7 +22373,7 @@ func (c *Client) sendAppsGetAuthenticated(ctx context.Context) (res *Integration uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -22413,7 +22414,7 @@ func (c *Client) AppsGetBySlug(ctx context.Context, params AppsGetBySlugParams) func (c *Client) sendAppsGetBySlug(ctx context.Context, params AppsGetBySlugParams) (res AppsGetBySlugRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/get-by-slug"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apps/{app_slug}"), } @@ -22469,7 +22470,7 @@ func (c *Client) sendAppsGetBySlug(ctx context.Context, params AppsGetBySlugPara uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -22510,7 +22511,7 @@ func (c *Client) AppsGetSubscriptionPlanForAccount(ctx context.Context, params A func (c *Client) sendAppsGetSubscriptionPlanForAccount(ctx context.Context, params AppsGetSubscriptionPlanForAccountParams) (res AppsGetSubscriptionPlanForAccountRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/get-subscription-plan-for-account"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/marketplace_listing/accounts/{account_id}"), } @@ -22566,7 +22567,7 @@ func (c *Client) sendAppsGetSubscriptionPlanForAccount(ctx context.Context, para uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -22607,7 +22608,7 @@ func (c *Client) AppsGetSubscriptionPlanForAccountStubbed(ctx context.Context, p func (c *Client) sendAppsGetSubscriptionPlanForAccountStubbed(ctx context.Context, params AppsGetSubscriptionPlanForAccountStubbedParams) (res AppsGetSubscriptionPlanForAccountStubbedRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/get-subscription-plan-for-account-stubbed"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/marketplace_listing/stubbed/accounts/{account_id}"), } @@ -22663,7 +22664,7 @@ func (c *Client) sendAppsGetSubscriptionPlanForAccountStubbed(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -22701,7 +22702,7 @@ func (c *Client) AppsGetWebhookConfigForApp(ctx context.Context) (*WebhookConfig func (c *Client) sendAppsGetWebhookConfigForApp(ctx context.Context) (res *WebhookConfig, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/get-webhook-config-for-app"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/app/hook/config"), } @@ -22739,7 +22740,7 @@ func (c *Client) sendAppsGetWebhookConfigForApp(ctx context.Context) (res *Webho uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -22776,7 +22777,7 @@ func (c *Client) AppsGetWebhookDelivery(ctx context.Context, params AppsGetWebho func (c *Client) sendAppsGetWebhookDelivery(ctx context.Context, params AppsGetWebhookDeliveryParams) (res AppsGetWebhookDeliveryRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/get-webhook-delivery"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/app/hook/deliveries/{delivery_id}"), } @@ -22832,7 +22833,7 @@ func (c *Client) sendAppsGetWebhookDelivery(ctx context.Context, params AppsGetW uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -22874,7 +22875,7 @@ func (c *Client) AppsListAccountsForPlan(ctx context.Context, params AppsListAcc func (c *Client) sendAppsListAccountsForPlan(ctx context.Context, params AppsListAccountsForPlanParams) (res AppsListAccountsForPlanRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/list-accounts-for-plan"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/marketplace_listing/plans/{plan_id}/accounts"), } @@ -23003,7 +23004,7 @@ func (c *Client) sendAppsListAccountsForPlan(ctx context.Context, params AppsLis u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -23045,7 +23046,7 @@ func (c *Client) AppsListAccountsForPlanStubbed(ctx context.Context, params Apps func (c *Client) sendAppsListAccountsForPlanStubbed(ctx context.Context, params AppsListAccountsForPlanStubbedParams) (res AppsListAccountsForPlanStubbedRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/list-accounts-for-plan-stubbed"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/marketplace_listing/stubbed/plans/{plan_id}/accounts"), } @@ -23174,7 +23175,7 @@ func (c *Client) sendAppsListAccountsForPlanStubbed(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -23214,7 +23215,7 @@ func (c *Client) AppsListInstallationReposForAuthenticatedUser(ctx context.Conte func (c *Client) sendAppsListInstallationReposForAuthenticatedUser(ctx context.Context, params AppsListInstallationReposForAuthenticatedUserParams) (res AppsListInstallationReposForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/list-installation-repos-for-authenticated-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/installations/{installation_id}/repositories"), } @@ -23309,7 +23310,7 @@ func (c *Client) sendAppsListInstallationReposForAuthenticatedUser(ctx context.C u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -23348,7 +23349,7 @@ func (c *Client) AppsListPlans(ctx context.Context, params AppsListPlansParams) func (c *Client) sendAppsListPlans(ctx context.Context, params AppsListPlansParams) (res AppsListPlansRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/list-plans"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/marketplace_listing/plans"), } @@ -23424,7 +23425,7 @@ func (c *Client) sendAppsListPlans(ctx context.Context, params AppsListPlansPara u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -23463,7 +23464,7 @@ func (c *Client) AppsListPlansStubbed(ctx context.Context, params AppsListPlansS func (c *Client) sendAppsListPlansStubbed(ctx context.Context, params AppsListPlansStubbedParams) (res AppsListPlansStubbedRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/list-plans-stubbed"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/marketplace_listing/stubbed/plans"), } @@ -23539,7 +23540,7 @@ func (c *Client) sendAppsListPlansStubbed(ctx context.Context, params AppsListPl u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -23576,7 +23577,7 @@ func (c *Client) AppsListReposAccessibleToInstallation(ctx context.Context, para func (c *Client) sendAppsListReposAccessibleToInstallation(ctx context.Context, params AppsListReposAccessibleToInstallationParams) (res AppsListReposAccessibleToInstallationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/list-repos-accessible-to-installation"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/installation/repositories"), } @@ -23652,7 +23653,7 @@ func (c *Client) sendAppsListReposAccessibleToInstallation(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -23688,7 +23689,7 @@ func (c *Client) AppsListSubscriptionsForAuthenticatedUser(ctx context.Context, func (c *Client) sendAppsListSubscriptionsForAuthenticatedUser(ctx context.Context, params AppsListSubscriptionsForAuthenticatedUserParams) (res AppsListSubscriptionsForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/list-subscriptions-for-authenticated-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/marketplace_purchases"), } @@ -23764,7 +23765,7 @@ func (c *Client) sendAppsListSubscriptionsForAuthenticatedUser(ctx context.Conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -23800,7 +23801,7 @@ func (c *Client) AppsListSubscriptionsForAuthenticatedUserStubbed(ctx context.Co func (c *Client) sendAppsListSubscriptionsForAuthenticatedUserStubbed(ctx context.Context, params AppsListSubscriptionsForAuthenticatedUserStubbedParams) (res AppsListSubscriptionsForAuthenticatedUserStubbedRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/list-subscriptions-for-authenticated-user-stubbed"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/marketplace_purchases/stubbed"), } @@ -23876,7 +23877,7 @@ func (c *Client) sendAppsListSubscriptionsForAuthenticatedUserStubbed(ctx contex u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -23913,7 +23914,7 @@ func (c *Client) AppsListWebhookDeliveries(ctx context.Context, params AppsListW func (c *Client) sendAppsListWebhookDeliveries(ctx context.Context, params AppsListWebhookDeliveriesParams) (res AppsListWebhookDeliveriesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/list-webhook-deliveries"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/app/hook/deliveries"), } @@ -23989,7 +23990,7 @@ func (c *Client) sendAppsListWebhookDeliveries(ctx context.Context, params AppsL u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -24026,7 +24027,7 @@ func (c *Client) AppsRedeliverWebhookDelivery(ctx context.Context, params AppsRe func (c *Client) sendAppsRedeliverWebhookDelivery(ctx context.Context, params AppsRedeliverWebhookDeliveryParams) (res AppsRedeliverWebhookDeliveryRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/redeliver-webhook-delivery"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/app/hook/deliveries/{delivery_id}/attempts"), } @@ -24083,7 +24084,7 @@ func (c *Client) sendAppsRedeliverWebhookDelivery(ctx context.Context, params Ap uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -24122,7 +24123,7 @@ func (c *Client) AppsRemoveRepoFromInstallation(ctx context.Context, params Apps func (c *Client) sendAppsRemoveRepoFromInstallation(ctx context.Context, params AppsRemoveRepoFromInstallationParams) (res AppsRemoveRepoFromInstallationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/remove-repo-from-installation"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/user/installations/{installation_id}/repositories/{repository_id}"), } @@ -24197,7 +24198,7 @@ func (c *Client) sendAppsRemoveRepoFromInstallation(ctx context.Context, params uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -24236,7 +24237,7 @@ func (c *Client) AppsResetToken(ctx context.Context, request *AppsResetTokenReq, func (c *Client) sendAppsResetToken(ctx context.Context, request *AppsResetTokenReq, params AppsResetTokenParams) (res AppsResetTokenRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/reset-token"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/applications/{client_id}/token"), } @@ -24293,7 +24294,7 @@ func (c *Client) sendAppsResetToken(ctx context.Context, request *AppsResetToken uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -24339,7 +24340,7 @@ func (c *Client) AppsRevokeInstallationAccessToken(ctx context.Context) error { func (c *Client) sendAppsRevokeInstallationAccessToken(ctx context.Context) (res *AppsRevokeInstallationAccessTokenNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/revoke-installation-access-token"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/installation/token"), } @@ -24377,7 +24378,7 @@ func (c *Client) sendAppsRevokeInstallationAccessToken(ctx context.Context) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -24416,7 +24417,7 @@ func (c *Client) AppsScopeToken(ctx context.Context, request *AppsScopeTokenReq, func (c *Client) sendAppsScopeToken(ctx context.Context, request *AppsScopeTokenReq, params AppsScopeTokenParams) (res AppsScopeTokenRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/scope-token"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/applications/{client_id}/token/scoped"), } // Validate request before sending. @@ -24482,7 +24483,7 @@ func (c *Client) sendAppsScopeToken(ctx context.Context, request *AppsScopeToken uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -24524,7 +24525,7 @@ func (c *Client) AppsSuspendInstallation(ctx context.Context, params AppsSuspend func (c *Client) sendAppsSuspendInstallation(ctx context.Context, params AppsSuspendInstallationParams) (res AppsSuspendInstallationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/suspend-installation"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/app/installations/{installation_id}/suspended"), } @@ -24581,7 +24582,7 @@ func (c *Client) sendAppsSuspendInstallation(ctx context.Context, params AppsSus uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -24618,7 +24619,7 @@ func (c *Client) AppsUnsuspendInstallation(ctx context.Context, params AppsUnsus func (c *Client) sendAppsUnsuspendInstallation(ctx context.Context, params AppsUnsuspendInstallationParams) (res AppsUnsuspendInstallationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/unsuspend-installation"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/app/installations/{installation_id}/suspended"), } @@ -24675,7 +24676,7 @@ func (c *Client) sendAppsUnsuspendInstallation(ctx context.Context, params AppsU uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -24713,7 +24714,7 @@ func (c *Client) AppsUpdateWebhookConfigForApp(ctx context.Context, request OptA func (c *Client) sendAppsUpdateWebhookConfigForApp(ctx context.Context, request OptAppsUpdateWebhookConfigForAppReq) (res *WebhookConfig, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("apps/update-webhook-config-for-app"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/app/hook/config"), } // Validate request before sending. @@ -24767,7 +24768,7 @@ func (c *Client) sendAppsUpdateWebhookConfigForApp(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -24811,7 +24812,7 @@ func (c *Client) BillingGetGithubActionsBillingGhe(ctx context.Context, params B func (c *Client) sendBillingGetGithubActionsBillingGhe(ctx context.Context, params BillingGetGithubActionsBillingGheParams) (res *ActionsBillingUsage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("billing/get-github-actions-billing-ghe"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/settings/billing/actions"), } @@ -24868,7 +24869,7 @@ func (c *Client) sendBillingGetGithubActionsBillingGhe(ctx context.Context, para uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -24909,7 +24910,7 @@ func (c *Client) BillingGetGithubActionsBillingOrg(ctx context.Context, params B func (c *Client) sendBillingGetGithubActionsBillingOrg(ctx context.Context, params BillingGetGithubActionsBillingOrgParams) (res *ActionsBillingUsage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("billing/get-github-actions-billing-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/settings/billing/actions"), } @@ -24966,7 +24967,7 @@ func (c *Client) sendBillingGetGithubActionsBillingOrg(ctx context.Context, para uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -25007,7 +25008,7 @@ func (c *Client) BillingGetGithubActionsBillingUser(ctx context.Context, params func (c *Client) sendBillingGetGithubActionsBillingUser(ctx context.Context, params BillingGetGithubActionsBillingUserParams) (res *ActionsBillingUsage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("billing/get-github-actions-billing-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/users/{username}/settings/billing/actions"), } @@ -25064,7 +25065,7 @@ func (c *Client) sendBillingGetGithubActionsBillingUser(ctx context.Context, par uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -25102,7 +25103,7 @@ func (c *Client) BillingGetGithubPackagesBillingGhe(ctx context.Context, params func (c *Client) sendBillingGetGithubPackagesBillingGhe(ctx context.Context, params BillingGetGithubPackagesBillingGheParams) (res *PackagesBillingUsage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("billing/get-github-packages-billing-ghe"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/settings/billing/packages"), } @@ -25159,7 +25160,7 @@ func (c *Client) sendBillingGetGithubPackagesBillingGhe(ctx context.Context, par uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -25197,7 +25198,7 @@ func (c *Client) BillingGetGithubPackagesBillingOrg(ctx context.Context, params func (c *Client) sendBillingGetGithubPackagesBillingOrg(ctx context.Context, params BillingGetGithubPackagesBillingOrgParams) (res *PackagesBillingUsage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("billing/get-github-packages-billing-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/settings/billing/packages"), } @@ -25254,7 +25255,7 @@ func (c *Client) sendBillingGetGithubPackagesBillingOrg(ctx context.Context, par uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -25292,7 +25293,7 @@ func (c *Client) BillingGetGithubPackagesBillingUser(ctx context.Context, params func (c *Client) sendBillingGetGithubPackagesBillingUser(ctx context.Context, params BillingGetGithubPackagesBillingUserParams) (res *PackagesBillingUsage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("billing/get-github-packages-billing-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/users/{username}/settings/billing/packages"), } @@ -25349,7 +25350,7 @@ func (c *Client) sendBillingGetGithubPackagesBillingUser(ctx context.Context, pa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -25387,7 +25388,7 @@ func (c *Client) BillingGetSharedStorageBillingGhe(ctx context.Context, params B func (c *Client) sendBillingGetSharedStorageBillingGhe(ctx context.Context, params BillingGetSharedStorageBillingGheParams) (res *CombinedBillingUsage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("billing/get-shared-storage-billing-ghe"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/settings/billing/shared-storage"), } @@ -25444,7 +25445,7 @@ func (c *Client) sendBillingGetSharedStorageBillingGhe(ctx context.Context, para uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -25482,7 +25483,7 @@ func (c *Client) BillingGetSharedStorageBillingOrg(ctx context.Context, params B func (c *Client) sendBillingGetSharedStorageBillingOrg(ctx context.Context, params BillingGetSharedStorageBillingOrgParams) (res *CombinedBillingUsage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("billing/get-shared-storage-billing-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/settings/billing/shared-storage"), } @@ -25539,7 +25540,7 @@ func (c *Client) sendBillingGetSharedStorageBillingOrg(ctx context.Context, para uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -25577,7 +25578,7 @@ func (c *Client) BillingGetSharedStorageBillingUser(ctx context.Context, params func (c *Client) sendBillingGetSharedStorageBillingUser(ctx context.Context, params BillingGetSharedStorageBillingUserParams) (res *CombinedBillingUsage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("billing/get-shared-storage-billing-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/users/{username}/settings/billing/shared-storage"), } @@ -25634,7 +25635,7 @@ func (c *Client) sendBillingGetSharedStorageBillingUser(ctx context.Context, par uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -25676,7 +25677,7 @@ func (c *Client) ChecksCreateSuite(ctx context.Context, request *ChecksCreateSui func (c *Client) sendChecksCreateSuite(ctx context.Context, request *ChecksCreateSuiteReq, params ChecksCreateSuiteParams) (res ChecksCreateSuiteRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("checks/create-suite"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/check-suites"), } @@ -25752,7 +25753,7 @@ func (c *Client) sendChecksCreateSuite(ctx context.Context, request *ChecksCreat uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -25794,7 +25795,7 @@ func (c *Client) ChecksGet(ctx context.Context, params ChecksGetParams) (*CheckR func (c *Client) sendChecksGet(ctx context.Context, params ChecksGetParams) (res *CheckRun, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("checks/get"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/check-runs/{check_run_id}"), } @@ -25888,7 +25889,7 @@ func (c *Client) sendChecksGet(ctx context.Context, params ChecksGetParams) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -25927,7 +25928,7 @@ func (c *Client) ChecksGetSuite(ctx context.Context, params ChecksGetSuiteParams func (c *Client) sendChecksGetSuite(ctx context.Context, params ChecksGetSuiteParams) (res *CheckSuite, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("checks/get-suite"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/check-suites/{check_suite_id}"), } @@ -26021,7 +26022,7 @@ func (c *Client) sendChecksGetSuite(ctx context.Context, params ChecksGetSuitePa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -26058,7 +26059,7 @@ func (c *Client) ChecksListAnnotations(ctx context.Context, params ChecksListAnn func (c *Client) sendChecksListAnnotations(ctx context.Context, params ChecksListAnnotationsParams) (res *ChecksListAnnotationsOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("checks/list-annotations"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"), } @@ -26191,7 +26192,7 @@ func (c *Client) sendChecksListAnnotations(ctx context.Context, params ChecksLis u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -26231,7 +26232,7 @@ func (c *Client) ChecksListForRef(ctx context.Context, params ChecksListForRefPa func (c *Client) sendChecksListForRef(ctx context.Context, params ChecksListForRefParams) (res *ChecksListForRefOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("checks/list-for-ref"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/commits/{ref}/check-runs"), } @@ -26432,7 +26433,7 @@ func (c *Client) sendChecksListForRef(ctx context.Context, params ChecksListForR u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -26471,7 +26472,7 @@ func (c *Client) ChecksListForSuite(ctx context.Context, params ChecksListForSui func (c *Client) sendChecksListForSuite(ctx context.Context, params ChecksListForSuiteParams) (res *ChecksListForSuiteOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("checks/list-for-suite"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"), } @@ -26655,7 +26656,7 @@ func (c *Client) sendChecksListForSuite(ctx context.Context, params ChecksListFo u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -26695,7 +26696,7 @@ func (c *Client) ChecksListSuitesForRef(ctx context.Context, params ChecksListSu func (c *Client) sendChecksListSuitesForRef(ctx context.Context, params ChecksListSuitesForRefParams) (res *ChecksListSuitesForRefOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("checks/list-suites-for-ref"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/commits/{ref}/check-suites"), } @@ -26862,7 +26863,7 @@ func (c *Client) sendChecksListSuitesForRef(ctx context.Context, params ChecksLi u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -26901,7 +26902,7 @@ func (c *Client) ChecksRerequestSuite(ctx context.Context, params ChecksRereques func (c *Client) sendChecksRerequestSuite(ctx context.Context, params ChecksRerequestSuiteParams) (res *ChecksRerequestSuiteCreated, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("checks/rerequest-suite"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"), } @@ -26996,7 +26997,7 @@ func (c *Client) sendChecksRerequestSuite(ctx context.Context, params ChecksRere uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -27034,7 +27035,7 @@ func (c *Client) ChecksSetSuitesPreferences(ctx context.Context, request *Checks func (c *Client) sendChecksSetSuitesPreferences(ctx context.Context, request *ChecksSetSuitesPreferencesReq, params ChecksSetSuitesPreferencesParams) (res *CheckSuitePreference, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("checks/set-suites-preferences"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/check-suites/preferences"), } @@ -27110,7 +27111,7 @@ func (c *Client) sendChecksSetSuitesPreferences(ctx context.Context, request *Ch uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -27205,7 +27206,7 @@ func (c *Client) CodeScanningDeleteAnalysis(ctx context.Context, params CodeScan func (c *Client) sendCodeScanningDeleteAnalysis(ctx context.Context, params CodeScanningDeleteAnalysisParams) (res CodeScanningDeleteAnalysisRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("code-scanning/delete-analysis"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"), } @@ -27320,7 +27321,7 @@ func (c *Client) sendCodeScanningDeleteAnalysis(ctx context.Context, params Code u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -27360,7 +27361,7 @@ func (c *Client) CodeScanningGetAlert(ctx context.Context, params CodeScanningGe func (c *Client) sendCodeScanningGetAlert(ctx context.Context, params CodeScanningGetAlertParams) (res CodeScanningGetAlertRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("code-scanning/get-alert"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"), } @@ -27457,7 +27458,7 @@ func (c *Client) sendCodeScanningGetAlert(ctx context.Context, params CodeScanni uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -27509,7 +27510,7 @@ func (c *Client) CodeScanningGetAnalysis(ctx context.Context, params CodeScannin func (c *Client) sendCodeScanningGetAnalysis(ctx context.Context, params CodeScanningGetAnalysisParams) (res CodeScanningGetAnalysisRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("code-scanning/get-analysis"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"), } @@ -27603,7 +27604,7 @@ func (c *Client) sendCodeScanningGetAnalysis(ctx context.Context, params CodeSca uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -27642,7 +27643,7 @@ func (c *Client) CodeScanningGetSarif(ctx context.Context, params CodeScanningGe func (c *Client) sendCodeScanningGetSarif(ctx context.Context, params CodeScanningGetSarifParams) (res CodeScanningGetSarifRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("code-scanning/get-sarif"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"), } @@ -27736,7 +27737,7 @@ func (c *Client) sendCodeScanningGetSarif(ctx context.Context, params CodeScanni uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -27772,7 +27773,7 @@ func (c *Client) CodeScanningListAlertInstances(ctx context.Context, params Code func (c *Client) sendCodeScanningListAlertInstances(ctx context.Context, params CodeScanningListAlertInstancesParams) (res CodeScanningListAlertInstancesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("code-scanning/list-alert-instances"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"), } @@ -27928,7 +27929,7 @@ func (c *Client) sendCodeScanningListAlertInstances(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -27969,7 +27970,7 @@ func (c *Client) CodeScanningListAlertsForRepo(ctx context.Context, params CodeS func (c *Client) sendCodeScanningListAlertsForRepo(ctx context.Context, params CodeScanningListAlertsForRepoParams) (res CodeScanningListAlertsForRepoRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("code-scanning/list-alerts-for-repo"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/code-scanning/alerts"), } @@ -28160,7 +28161,7 @@ func (c *Client) sendCodeScanningListAlertsForRepo(ctx context.Context, params C u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -28208,7 +28209,7 @@ func (c *Client) CodeScanningListRecentAnalyses(ctx context.Context, params Code func (c *Client) sendCodeScanningListRecentAnalyses(ctx context.Context, params CodeScanningListRecentAnalysesParams) (res CodeScanningListRecentAnalysesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("code-scanning/list-recent-analyses"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/code-scanning/analyses"), } @@ -28402,7 +28403,7 @@ func (c *Client) sendCodeScanningListRecentAnalyses(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -28438,7 +28439,7 @@ func (c *Client) CodeScanningUpdateAlert(ctx context.Context, request *CodeScann func (c *Client) sendCodeScanningUpdateAlert(ctx context.Context, request *CodeScanningUpdateAlertReq, params CodeScanningUpdateAlertParams) (res CodeScanningUpdateAlertRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("code-scanning/update-alert"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"), } // Validate request before sending. @@ -28544,7 +28545,7 @@ func (c *Client) sendCodeScanningUpdateAlert(ctx context.Context, request *CodeS uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -28607,7 +28608,7 @@ func (c *Client) CodeScanningUploadSarif(ctx context.Context, request *CodeScann func (c *Client) sendCodeScanningUploadSarif(ctx context.Context, request *CodeScanningUploadSarifReq, params CodeScanningUploadSarifParams) (res CodeScanningUploadSarifRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("code-scanning/upload-sarif"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/code-scanning/sarifs"), } // Validate request before sending. @@ -28692,7 +28693,7 @@ func (c *Client) sendCodeScanningUploadSarif(ctx context.Context, request *CodeS uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -28729,7 +28730,7 @@ func (c *Client) CodesOfConductGetAllCodesOfConduct(ctx context.Context) (CodesO func (c *Client) sendCodesOfConductGetAllCodesOfConduct(ctx context.Context) (res CodesOfConductGetAllCodesOfConductRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("codes-of-conduct/get-all-codes-of-conduct"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/codes_of_conduct"), } @@ -28767,7 +28768,7 @@ func (c *Client) sendCodesOfConductGetAllCodesOfConduct(ctx context.Context) (re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -28801,7 +28802,7 @@ func (c *Client) CodesOfConductGetConductCode(ctx context.Context, params CodesO func (c *Client) sendCodesOfConductGetConductCode(ctx context.Context, params CodesOfConductGetConductCodeParams) (res CodesOfConductGetConductCodeRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("codes-of-conduct/get-conduct-code"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/codes_of_conduct/{key}"), } @@ -28857,7 +28858,7 @@ func (c *Client) sendCodesOfConductGetConductCode(ctx context.Context, params Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -28891,7 +28892,7 @@ func (c *Client) EmojisGet(ctx context.Context) (EmojisGetRes, error) { func (c *Client) sendEmojisGet(ctx context.Context) (res EmojisGetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("emojis/get"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/emojis"), } @@ -28929,7 +28930,7 @@ func (c *Client) sendEmojisGet(ctx context.Context) (res EmojisGetRes, err error uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -28967,7 +28968,7 @@ func (c *Client) EnterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnterprise( func (c *Client) sendEnterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnterprise(ctx context.Context, params EnterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnterpriseParams) (res *EnterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnterpriseNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/add-org-access-to-self-hosted-runner-group-in-enterprise"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}"), } @@ -29061,7 +29062,7 @@ func (c *Client) sendEnterpriseAdminAddOrgAccessToSelfHostedRunnerGroupInEnterpr uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -29097,7 +29098,7 @@ func (c *Client) EnterpriseAdminAddSelfHostedRunnerToGroupForEnterprise(ctx cont func (c *Client) sendEnterpriseAdminAddSelfHostedRunnerToGroupForEnterprise(ctx context.Context, params EnterpriseAdminAddSelfHostedRunnerToGroupForEnterpriseParams) (res *EnterpriseAdminAddSelfHostedRunnerToGroupForEnterpriseNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/add-self-hosted-runner-to-group-for-enterprise"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}"), } @@ -29191,7 +29192,7 @@ func (c *Client) sendEnterpriseAdminAddSelfHostedRunnerToGroupForEnterprise(ctx uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -29232,7 +29233,7 @@ func (c *Client) EnterpriseAdminCreateRegistrationTokenForEnterprise(ctx context func (c *Client) sendEnterpriseAdminCreateRegistrationTokenForEnterprise(ctx context.Context, params EnterpriseAdminCreateRegistrationTokenForEnterpriseParams) (res *AuthenticationToken, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/create-registration-token-for-enterprise"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/actions/runners/registration-token"), } @@ -29289,7 +29290,7 @@ func (c *Client) sendEnterpriseAdminCreateRegistrationTokenForEnterprise(ctx con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -29332,7 +29333,7 @@ func (c *Client) EnterpriseAdminCreateRemoveTokenForEnterprise(ctx context.Conte func (c *Client) sendEnterpriseAdminCreateRemoveTokenForEnterprise(ctx context.Context, params EnterpriseAdminCreateRemoveTokenForEnterpriseParams) (res *AuthenticationToken, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/create-remove-token-for-enterprise"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/actions/runners/remove-token"), } @@ -29389,7 +29390,7 @@ func (c *Client) sendEnterpriseAdminCreateRemoveTokenForEnterprise(ctx context.C uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -29424,7 +29425,7 @@ func (c *Client) EnterpriseAdminCreateSelfHostedRunnerGroupForEnterprise(ctx con func (c *Client) sendEnterpriseAdminCreateSelfHostedRunnerGroupForEnterprise(ctx context.Context, request *EnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseReq, params EnterpriseAdminCreateSelfHostedRunnerGroupForEnterpriseParams) (res *RunnerGroupsEnterprise, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/create-self-hosted-runner-group-for-enterprise"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/actions/runner-groups"), } // Validate request before sending. @@ -29490,7 +29491,7 @@ func (c *Client) sendEnterpriseAdminCreateSelfHostedRunnerGroupForEnterprise(ctx uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -29528,7 +29529,7 @@ func (c *Client) EnterpriseAdminDeleteScimGroupFromEnterprise(ctx context.Contex func (c *Client) sendEnterpriseAdminDeleteScimGroupFromEnterprise(ctx context.Context, params EnterpriseAdminDeleteScimGroupFromEnterpriseParams) (res *EnterpriseAdminDeleteScimGroupFromEnterpriseNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/delete-scim-group-from-enterprise"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}"), } @@ -29603,7 +29604,7 @@ func (c *Client) sendEnterpriseAdminDeleteScimGroupFromEnterprise(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -29639,7 +29640,7 @@ func (c *Client) EnterpriseAdminDeleteSelfHostedRunnerFromEnterprise(ctx context func (c *Client) sendEnterpriseAdminDeleteSelfHostedRunnerFromEnterprise(ctx context.Context, params EnterpriseAdminDeleteSelfHostedRunnerFromEnterpriseParams) (res *EnterpriseAdminDeleteSelfHostedRunnerFromEnterpriseNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/delete-self-hosted-runner-from-enterprise"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/actions/runners/{runner_id}"), } @@ -29714,7 +29715,7 @@ func (c *Client) sendEnterpriseAdminDeleteSelfHostedRunnerFromEnterprise(ctx con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -29749,7 +29750,7 @@ func (c *Client) EnterpriseAdminDeleteSelfHostedRunnerGroupFromEnterprise(ctx co func (c *Client) sendEnterpriseAdminDeleteSelfHostedRunnerGroupFromEnterprise(ctx context.Context, params EnterpriseAdminDeleteSelfHostedRunnerGroupFromEnterpriseParams) (res *EnterpriseAdminDeleteSelfHostedRunnerGroupFromEnterpriseNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/delete-self-hosted-runner-group-from-enterprise"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}"), } @@ -29824,7 +29825,7 @@ func (c *Client) sendEnterpriseAdminDeleteSelfHostedRunnerGroupFromEnterprise(ct uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -29859,7 +29860,7 @@ func (c *Client) EnterpriseAdminDeleteUserFromEnterprise(ctx context.Context, pa func (c *Client) sendEnterpriseAdminDeleteUserFromEnterprise(ctx context.Context, params EnterpriseAdminDeleteUserFromEnterpriseParams) (res *EnterpriseAdminDeleteUserFromEnterpriseNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/delete-user-from-enterprise"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}"), } @@ -29934,7 +29935,7 @@ func (c *Client) sendEnterpriseAdminDeleteUserFromEnterprise(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -29972,7 +29973,7 @@ func (c *Client) EnterpriseAdminDisableSelectedOrganizationGithubActionsEnterpri func (c *Client) sendEnterpriseAdminDisableSelectedOrganizationGithubActionsEnterprise(ctx context.Context, params EnterpriseAdminDisableSelectedOrganizationGithubActionsEnterpriseParams) (res *EnterpriseAdminDisableSelectedOrganizationGithubActionsEnterpriseNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/disable-selected-organization-github-actions-enterprise"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/actions/permissions/organizations/{org_id}"), } @@ -30047,7 +30048,7 @@ func (c *Client) sendEnterpriseAdminDisableSelectedOrganizationGithubActionsEnte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -30085,7 +30086,7 @@ func (c *Client) EnterpriseAdminEnableSelectedOrganizationGithubActionsEnterpris func (c *Client) sendEnterpriseAdminEnableSelectedOrganizationGithubActionsEnterprise(ctx context.Context, params EnterpriseAdminEnableSelectedOrganizationGithubActionsEnterpriseParams) (res *EnterpriseAdminEnableSelectedOrganizationGithubActionsEnterpriseNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/enable-selected-organization-github-actions-enterprise"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/actions/permissions/organizations/{org_id}"), } @@ -30160,7 +30161,7 @@ func (c *Client) sendEnterpriseAdminEnableSelectedOrganizationGithubActionsEnter uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -30198,7 +30199,7 @@ func (c *Client) EnterpriseAdminGetAllowedActionsEnterprise(ctx context.Context, func (c *Client) sendEnterpriseAdminGetAllowedActionsEnterprise(ctx context.Context, params EnterpriseAdminGetAllowedActionsEnterpriseParams) (res *SelectedActions, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/get-allowed-actions-enterprise"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/actions/permissions/selected-actions"), } @@ -30255,7 +30256,7 @@ func (c *Client) sendEnterpriseAdminGetAllowedActionsEnterprise(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -30290,7 +30291,7 @@ func (c *Client) EnterpriseAdminGetAuditLog(ctx context.Context, params Enterpri func (c *Client) sendEnterpriseAdminGetAuditLog(ctx context.Context, params EnterpriseAdminGetAuditLogParams) (res []AuditLogEvent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/get-audit-log"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/audit-log"), } @@ -30470,7 +30471,7 @@ func (c *Client) sendEnterpriseAdminGetAuditLog(ctx context.Context, params Ente u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -30505,7 +30506,7 @@ func (c *Client) EnterpriseAdminGetGithubActionsPermissionsEnterprise(ctx contex func (c *Client) sendEnterpriseAdminGetGithubActionsPermissionsEnterprise(ctx context.Context, params EnterpriseAdminGetGithubActionsPermissionsEnterpriseParams) (res *ActionsEnterprisePermissions, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/get-github-actions-permissions-enterprise"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/actions/permissions"), } @@ -30562,7 +30563,7 @@ func (c *Client) sendEnterpriseAdminGetGithubActionsPermissionsEnterprise(ctx co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -30597,7 +30598,7 @@ func (c *Client) EnterpriseAdminGetProvisioningInformationForEnterpriseGroup(ctx func (c *Client) sendEnterpriseAdminGetProvisioningInformationForEnterpriseGroup(ctx context.Context, params EnterpriseAdminGetProvisioningInformationForEnterpriseGroupParams) (res *ScimEnterpriseGroup, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/get-provisioning-information-for-enterprise-group"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}"), } @@ -30693,7 +30694,7 @@ func (c *Client) sendEnterpriseAdminGetProvisioningInformationForEnterpriseGroup u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -30728,7 +30729,7 @@ func (c *Client) EnterpriseAdminGetProvisioningInformationForEnterpriseUser(ctx func (c *Client) sendEnterpriseAdminGetProvisioningInformationForEnterpriseUser(ctx context.Context, params EnterpriseAdminGetProvisioningInformationForEnterpriseUserParams) (res *ScimEnterpriseUser, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/get-provisioning-information-for-enterprise-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}"), } @@ -30803,7 +30804,7 @@ func (c *Client) sendEnterpriseAdminGetProvisioningInformationForEnterpriseUser( uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -30838,7 +30839,7 @@ func (c *Client) EnterpriseAdminGetSelfHostedRunnerForEnterprise(ctx context.Con func (c *Client) sendEnterpriseAdminGetSelfHostedRunnerForEnterprise(ctx context.Context, params EnterpriseAdminGetSelfHostedRunnerForEnterpriseParams) (res *Runner, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/get-self-hosted-runner-for-enterprise"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/actions/runners/{runner_id}"), } @@ -30913,7 +30914,7 @@ func (c *Client) sendEnterpriseAdminGetSelfHostedRunnerForEnterprise(ctx context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -30948,7 +30949,7 @@ func (c *Client) EnterpriseAdminGetSelfHostedRunnerGroupForEnterprise(ctx contex func (c *Client) sendEnterpriseAdminGetSelfHostedRunnerGroupForEnterprise(ctx context.Context, params EnterpriseAdminGetSelfHostedRunnerGroupForEnterpriseParams) (res *RunnerGroupsEnterprise, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/get-self-hosted-runner-group-for-enterprise"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}"), } @@ -31023,7 +31024,7 @@ func (c *Client) sendEnterpriseAdminGetSelfHostedRunnerGroupForEnterprise(ctx co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -31058,7 +31059,7 @@ func (c *Client) EnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterprise func (c *Client) sendEnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterprise(ctx context.Context, params EnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterpriseParams) (res *EnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterpriseOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/list-org-access-to-self-hosted-runner-group-in-enterprise"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations"), } @@ -31172,7 +31173,7 @@ func (c *Client) sendEnterpriseAdminListOrgAccessToSelfHostedRunnerGroupInEnterp u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -31207,7 +31208,7 @@ func (c *Client) EnterpriseAdminListProvisionedGroupsEnterprise(ctx context.Cont func (c *Client) sendEnterpriseAdminListProvisionedGroupsEnterprise(ctx context.Context, params EnterpriseAdminListProvisionedGroupsEnterpriseParams) (res *ScimGroupListEnterprise, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/list-provisioned-groups-enterprise"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/scim/v2/enterprises/{enterprise}/Groups"), } @@ -31336,7 +31337,7 @@ func (c *Client) sendEnterpriseAdminListProvisionedGroupsEnterprise(ctx context. u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -31396,7 +31397,7 @@ func (c *Client) EnterpriseAdminListProvisionedIdentitiesEnterprise(ctx context. func (c *Client) sendEnterpriseAdminListProvisionedIdentitiesEnterprise(ctx context.Context, params EnterpriseAdminListProvisionedIdentitiesEnterpriseParams) (res *ScimUserListEnterprise, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/list-provisioned-identities-enterprise"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/scim/v2/enterprises/{enterprise}/Users"), } @@ -31508,7 +31509,7 @@ func (c *Client) sendEnterpriseAdminListProvisionedIdentitiesEnterprise(ctx cont u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -31543,7 +31544,7 @@ func (c *Client) EnterpriseAdminListRunnerApplicationsForEnterprise(ctx context. func (c *Client) sendEnterpriseAdminListRunnerApplicationsForEnterprise(ctx context.Context, params EnterpriseAdminListRunnerApplicationsForEnterpriseParams) (res []RunnerApplication, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/list-runner-applications-for-enterprise"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/actions/runners/downloads"), } @@ -31600,7 +31601,7 @@ func (c *Client) sendEnterpriseAdminListRunnerApplicationsForEnterprise(ctx cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -31638,7 +31639,7 @@ func (c *Client) EnterpriseAdminListSelectedOrganizationsEnabledGithubActionsEnt func (c *Client) sendEnterpriseAdminListSelectedOrganizationsEnabledGithubActionsEnterprise(ctx context.Context, params EnterpriseAdminListSelectedOrganizationsEnabledGithubActionsEnterpriseParams) (res *EnterpriseAdminListSelectedOrganizationsEnabledGithubActionsEnterpriseOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/list-selected-organizations-enabled-github-actions-enterprise"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/actions/permissions/organizations"), } @@ -31733,7 +31734,7 @@ func (c *Client) sendEnterpriseAdminListSelectedOrganizationsEnabledGithubAction u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -31768,7 +31769,7 @@ func (c *Client) EnterpriseAdminListSelfHostedRunnerGroupsForEnterprise(ctx cont func (c *Client) sendEnterpriseAdminListSelfHostedRunnerGroupsForEnterprise(ctx context.Context, params EnterpriseAdminListSelfHostedRunnerGroupsForEnterpriseParams) (res *EnterpriseAdminListSelfHostedRunnerGroupsForEnterpriseOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/list-self-hosted-runner-groups-for-enterprise"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/actions/runner-groups"), } @@ -31863,7 +31864,7 @@ func (c *Client) sendEnterpriseAdminListSelfHostedRunnerGroupsForEnterprise(ctx u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -31898,7 +31899,7 @@ func (c *Client) EnterpriseAdminListSelfHostedRunnersForEnterprise(ctx context.C func (c *Client) sendEnterpriseAdminListSelfHostedRunnersForEnterprise(ctx context.Context, params EnterpriseAdminListSelfHostedRunnersForEnterpriseParams) (res *EnterpriseAdminListSelfHostedRunnersForEnterpriseOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/list-self-hosted-runners-for-enterprise"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/actions/runners"), } @@ -31993,7 +31994,7 @@ func (c *Client) sendEnterpriseAdminListSelfHostedRunnersForEnterprise(ctx conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -32028,7 +32029,7 @@ func (c *Client) EnterpriseAdminListSelfHostedRunnersInGroupForEnterprise(ctx co func (c *Client) sendEnterpriseAdminListSelfHostedRunnersInGroupForEnterprise(ctx context.Context, params EnterpriseAdminListSelfHostedRunnersInGroupForEnterpriseParams) (res *EnterpriseAdminListSelfHostedRunnersInGroupForEnterpriseOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/list-self-hosted-runners-in-group-for-enterprise"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners"), } @@ -32142,7 +32143,7 @@ func (c *Client) sendEnterpriseAdminListSelfHostedRunnersInGroupForEnterprise(ct u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -32180,7 +32181,7 @@ func (c *Client) EnterpriseAdminProvisionAndInviteEnterpriseGroup(ctx context.Co func (c *Client) sendEnterpriseAdminProvisionAndInviteEnterpriseGroup(ctx context.Context, request *EnterpriseAdminProvisionAndInviteEnterpriseGroupReq, params EnterpriseAdminProvisionAndInviteEnterpriseGroupParams) (res *ScimEnterpriseGroup, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/provision-and-invite-enterprise-group"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/scim/v2/enterprises/{enterprise}/Groups"), } // Validate request before sending. @@ -32246,7 +32247,7 @@ func (c *Client) sendEnterpriseAdminProvisionAndInviteEnterpriseGroup(ctx contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -32289,7 +32290,7 @@ func (c *Client) EnterpriseAdminProvisionAndInviteEnterpriseUser(ctx context.Con func (c *Client) sendEnterpriseAdminProvisionAndInviteEnterpriseUser(ctx context.Context, request *EnterpriseAdminProvisionAndInviteEnterpriseUserReq, params EnterpriseAdminProvisionAndInviteEnterpriseUserParams) (res *ScimEnterpriseUser, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/provision-and-invite-enterprise-user"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/scim/v2/enterprises/{enterprise}/Users"), } // Validate request before sending. @@ -32355,7 +32356,7 @@ func (c *Client) sendEnterpriseAdminProvisionAndInviteEnterpriseUser(ctx context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -32396,7 +32397,7 @@ func (c *Client) EnterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEnterpri func (c *Client) sendEnterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEnterprise(ctx context.Context, params EnterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEnterpriseParams) (res *EnterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEnterpriseNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/remove-org-access-to-self-hosted-runner-group-in-enterprise"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}"), } @@ -32490,7 +32491,7 @@ func (c *Client) sendEnterpriseAdminRemoveOrgAccessToSelfHostedRunnerGroupInEnte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -32526,7 +32527,7 @@ func (c *Client) EnterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterprise(ctx func (c *Client) sendEnterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterprise(ctx context.Context, params EnterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterpriseParams) (res *EnterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterpriseNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/remove-self-hosted-runner-from-group-for-enterprise"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}"), } @@ -32620,7 +32621,7 @@ func (c *Client) sendEnterpriseAdminRemoveSelfHostedRunnerFromGroupForEnterprise uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -32658,7 +32659,7 @@ func (c *Client) EnterpriseAdminSetAllowedActionsEnterprise(ctx context.Context, func (c *Client) sendEnterpriseAdminSetAllowedActionsEnterprise(ctx context.Context, request *SelectedActions, params EnterpriseAdminSetAllowedActionsEnterpriseParams) (res *EnterpriseAdminSetAllowedActionsEnterpriseNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/set-allowed-actions-enterprise"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/actions/permissions/selected-actions"), } @@ -32715,7 +32716,7 @@ func (c *Client) sendEnterpriseAdminSetAllowedActionsEnterprise(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -32753,7 +32754,7 @@ func (c *Client) EnterpriseAdminSetGithubActionsPermissionsEnterprise(ctx contex func (c *Client) sendEnterpriseAdminSetGithubActionsPermissionsEnterprise(ctx context.Context, request *EnterpriseAdminSetGithubActionsPermissionsEnterpriseReq, params EnterpriseAdminSetGithubActionsPermissionsEnterpriseParams) (res *EnterpriseAdminSetGithubActionsPermissionsEnterpriseNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/set-github-actions-permissions-enterprise"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/actions/permissions"), } // Validate request before sending. @@ -32819,7 +32820,7 @@ func (c *Client) sendEnterpriseAdminSetGithubActionsPermissionsEnterprise(ctx co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -32862,7 +32863,7 @@ func (c *Client) EnterpriseAdminSetInformationForProvisionedEnterpriseGroup(ctx func (c *Client) sendEnterpriseAdminSetInformationForProvisionedEnterpriseGroup(ctx context.Context, request *EnterpriseAdminSetInformationForProvisionedEnterpriseGroupReq, params EnterpriseAdminSetInformationForProvisionedEnterpriseGroupParams) (res *ScimEnterpriseGroup, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/set-information-for-provisioned-enterprise-group"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}"), } // Validate request before sending. @@ -32946,7 +32947,7 @@ func (c *Client) sendEnterpriseAdminSetInformationForProvisionedEnterpriseGroup( uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -32992,7 +32993,7 @@ func (c *Client) EnterpriseAdminSetInformationForProvisionedEnterpriseUser(ctx c func (c *Client) sendEnterpriseAdminSetInformationForProvisionedEnterpriseUser(ctx context.Context, request *EnterpriseAdminSetInformationForProvisionedEnterpriseUserReq, params EnterpriseAdminSetInformationForProvisionedEnterpriseUserParams) (res *ScimEnterpriseUser, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/set-information-for-provisioned-enterprise-user"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}"), } // Validate request before sending. @@ -33076,7 +33077,7 @@ func (c *Client) sendEnterpriseAdminSetInformationForProvisionedEnterpriseUser(c uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -33115,7 +33116,7 @@ func (c *Client) EnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterprise( func (c *Client) sendEnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterprise(ctx context.Context, request *EnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpriseReq, params EnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpriseParams) (res *EnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpriseNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/set-org-access-to-self-hosted-runner-group-in-enterprise"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations"), } // Validate request before sending. @@ -33200,7 +33201,7 @@ func (c *Client) sendEnterpriseAdminSetOrgAccessToSelfHostedRunnerGroupInEnterpr uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -33241,7 +33242,7 @@ func (c *Client) EnterpriseAdminSetSelectedOrganizationsEnabledGithubActionsEnte func (c *Client) sendEnterpriseAdminSetSelectedOrganizationsEnabledGithubActionsEnterprise(ctx context.Context, request *EnterpriseAdminSetSelectedOrganizationsEnabledGithubActionsEnterpriseReq, params EnterpriseAdminSetSelectedOrganizationsEnabledGithubActionsEnterpriseParams) (res *EnterpriseAdminSetSelectedOrganizationsEnabledGithubActionsEnterpriseNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/set-selected-organizations-enabled-github-actions-enterprise"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/actions/permissions/organizations"), } // Validate request before sending. @@ -33307,7 +33308,7 @@ func (c *Client) sendEnterpriseAdminSetSelectedOrganizationsEnabledGithubActions uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -33345,7 +33346,7 @@ func (c *Client) EnterpriseAdminSetSelfHostedRunnersInGroupForEnterprise(ctx con func (c *Client) sendEnterpriseAdminSetSelfHostedRunnersInGroupForEnterprise(ctx context.Context, request *EnterpriseAdminSetSelfHostedRunnersInGroupForEnterpriseReq, params EnterpriseAdminSetSelfHostedRunnersInGroupForEnterpriseParams) (res *EnterpriseAdminSetSelfHostedRunnersInGroupForEnterpriseNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/set-self-hosted-runners-in-group-for-enterprise"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners"), } // Validate request before sending. @@ -33430,7 +33431,7 @@ func (c *Client) sendEnterpriseAdminSetSelfHostedRunnersInGroupForEnterprise(ctx uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -33472,7 +33473,7 @@ func (c *Client) EnterpriseAdminUpdateAttributeForEnterpriseGroup(ctx context.Co func (c *Client) sendEnterpriseAdminUpdateAttributeForEnterpriseGroup(ctx context.Context, request *EnterpriseAdminUpdateAttributeForEnterpriseGroupReq, params EnterpriseAdminUpdateAttributeForEnterpriseGroupParams) (res *ScimEnterpriseGroup, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/update-attribute-for-enterprise-group"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/scim/v2/enterprises/{enterprise}/Groups/{scim_group_id}"), } // Validate request before sending. @@ -33556,7 +33557,7 @@ func (c *Client) sendEnterpriseAdminUpdateAttributeForEnterpriseGroup(ctx contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -33615,7 +33616,7 @@ func (c *Client) EnterpriseAdminUpdateAttributeForEnterpriseUser(ctx context.Con func (c *Client) sendEnterpriseAdminUpdateAttributeForEnterpriseUser(ctx context.Context, request *EnterpriseAdminUpdateAttributeForEnterpriseUserReq, params EnterpriseAdminUpdateAttributeForEnterpriseUserParams) (res *ScimEnterpriseUser, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/update-attribute-for-enterprise-user"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/scim/v2/enterprises/{enterprise}/Users/{scim_user_id}"), } // Validate request before sending. @@ -33699,7 +33700,7 @@ func (c *Client) sendEnterpriseAdminUpdateAttributeForEnterpriseUser(ctx context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -33737,7 +33738,7 @@ func (c *Client) EnterpriseAdminUpdateSelfHostedRunnerGroupForEnterprise(ctx con func (c *Client) sendEnterpriseAdminUpdateSelfHostedRunnerGroupForEnterprise(ctx context.Context, request OptEnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseReq, params EnterpriseAdminUpdateSelfHostedRunnerGroupForEnterpriseParams) (res *RunnerGroupsEnterprise, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("enterprise-admin/update-self-hosted-runner-group-for-enterprise"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}"), } // Validate request before sending. @@ -33828,7 +33829,7 @@ func (c *Client) sendEnterpriseAdminUpdateSelfHostedRunnerGroupForEnterprise(ctx uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -33865,7 +33866,7 @@ func (c *Client) GistsCheckIsStarred(ctx context.Context, params GistsCheckIsSta func (c *Client) sendGistsCheckIsStarred(ctx context.Context, params GistsCheckIsStarredParams) (res GistsCheckIsStarredRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("gists/check-is-starred"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/gists/{gist_id}/star"), } @@ -33922,7 +33923,7 @@ func (c *Client) sendGistsCheckIsStarred(ctx context.Context, params GistsCheckI uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -33958,7 +33959,7 @@ func (c *Client) GistsCreate(ctx context.Context, request *GistsCreateReq) (Gist func (c *Client) sendGistsCreate(ctx context.Context, request *GistsCreateReq) (res GistsCreateRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("gists/create"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/gists"), } // Validate request before sending. @@ -34005,7 +34006,7 @@ func (c *Client) sendGistsCreate(ctx context.Context, request *GistsCreateReq) ( uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -34042,7 +34043,7 @@ func (c *Client) GistsCreateComment(ctx context.Context, request *GistsCreateCom func (c *Client) sendGistsCreateComment(ctx context.Context, request *GistsCreateCommentReq, params GistsCreateCommentParams) (res GistsCreateCommentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("gists/create-comment"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/gists/{gist_id}/comments"), } // Validate request before sending. @@ -34108,7 +34109,7 @@ func (c *Client) sendGistsCreateComment(ctx context.Context, request *GistsCreat uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -34145,7 +34146,7 @@ func (c *Client) GistsDelete(ctx context.Context, params GistsDeleteParams) (Gis func (c *Client) sendGistsDelete(ctx context.Context, params GistsDeleteParams) (res GistsDeleteRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("gists/delete"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/gists/{gist_id}"), } @@ -34201,7 +34202,7 @@ func (c *Client) sendGistsDelete(ctx context.Context, params GistsDeleteParams) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -34235,7 +34236,7 @@ func (c *Client) GistsDeleteComment(ctx context.Context, params GistsDeleteComme func (c *Client) sendGistsDeleteComment(ctx context.Context, params GistsDeleteCommentParams) (res GistsDeleteCommentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("gists/delete-comment"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/gists/{gist_id}/comments/{comment_id}"), } @@ -34310,7 +34311,7 @@ func (c *Client) sendGistsDeleteComment(ctx context.Context, params GistsDeleteC uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -34344,7 +34345,7 @@ func (c *Client) GistsFork(ctx context.Context, params GistsForkParams) (GistsFo func (c *Client) sendGistsFork(ctx context.Context, params GistsForkParams) (res GistsForkRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("gists/fork"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/gists/{gist_id}/forks"), } @@ -34401,7 +34402,7 @@ func (c *Client) sendGistsFork(ctx context.Context, params GistsForkParams) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -34435,7 +34436,7 @@ func (c *Client) GistsGet(ctx context.Context, params GistsGetParams) (GistsGetR func (c *Client) sendGistsGet(ctx context.Context, params GistsGetParams) (res GistsGetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("gists/get"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/gists/{gist_id}"), } @@ -34491,7 +34492,7 @@ func (c *Client) sendGistsGet(ctx context.Context, params GistsGetParams) (res G uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -34525,7 +34526,7 @@ func (c *Client) GistsGetComment(ctx context.Context, params GistsGetCommentPara func (c *Client) sendGistsGetComment(ctx context.Context, params GistsGetCommentParams) (res GistsGetCommentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("gists/get-comment"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/gists/{gist_id}/comments/{comment_id}"), } @@ -34600,7 +34601,7 @@ func (c *Client) sendGistsGetComment(ctx context.Context, params GistsGetComment uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -34634,7 +34635,7 @@ func (c *Client) GistsGetRevision(ctx context.Context, params GistsGetRevisionPa func (c *Client) sendGistsGetRevision(ctx context.Context, params GistsGetRevisionParams) (res GistsGetRevisionRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("gists/get-revision"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/gists/{gist_id}/{sha}"), } @@ -34709,7 +34710,7 @@ func (c *Client) sendGistsGetRevision(ctx context.Context, params GistsGetRevisi uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -34744,7 +34745,7 @@ func (c *Client) GistsList(ctx context.Context, params GistsListParams) (GistsLi func (c *Client) sendGistsList(ctx context.Context, params GistsListParams) (res GistsListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("gists/list"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/gists"), } @@ -34837,7 +34838,7 @@ func (c *Client) sendGistsList(ctx context.Context, params GistsListParams) (res u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -34871,7 +34872,7 @@ func (c *Client) GistsListComments(ctx context.Context, params GistsListComments func (c *Client) sendGistsListComments(ctx context.Context, params GistsListCommentsParams) (res GistsListCommentsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("gists/list-comments"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/gists/{gist_id}/comments"), } @@ -34966,7 +34967,7 @@ func (c *Client) sendGistsListComments(ctx context.Context, params GistsListComm u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -35000,7 +35001,7 @@ func (c *Client) GistsListCommits(ctx context.Context, params GistsListCommitsPa func (c *Client) sendGistsListCommits(ctx context.Context, params GistsListCommitsParams) (res GistsListCommitsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("gists/list-commits"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/gists/{gist_id}/commits"), } @@ -35095,7 +35096,7 @@ func (c *Client) sendGistsListCommits(ctx context.Context, params GistsListCommi u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -35129,7 +35130,7 @@ func (c *Client) GistsListForUser(ctx context.Context, params GistsListForUserPa func (c *Client) sendGistsListForUser(ctx context.Context, params GistsListForUserParams) (res GistsListForUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("gists/list-for-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/users/{username}/gists"), } @@ -35241,7 +35242,7 @@ func (c *Client) sendGistsListForUser(ctx context.Context, params GistsListForUs u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -35275,7 +35276,7 @@ func (c *Client) GistsListForks(ctx context.Context, params GistsListForksParams func (c *Client) sendGistsListForks(ctx context.Context, params GistsListForksParams) (res GistsListForksRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("gists/list-forks"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/gists/{gist_id}/forks"), } @@ -35370,7 +35371,7 @@ func (c *Client) sendGistsListForks(ctx context.Context, params GistsListForksPa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -35407,7 +35408,7 @@ func (c *Client) GistsListPublic(ctx context.Context, params GistsListPublicPara func (c *Client) sendGistsListPublic(ctx context.Context, params GistsListPublicParams) (res GistsListPublicRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("gists/list-public"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/gists/public"), } @@ -35500,7 +35501,7 @@ func (c *Client) sendGistsListPublic(ctx context.Context, params GistsListPublic u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -35534,7 +35535,7 @@ func (c *Client) GistsListStarred(ctx context.Context, params GistsListStarredPa func (c *Client) sendGistsListStarred(ctx context.Context, params GistsListStarredParams) (res GistsListStarredRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("gists/list-starred"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/gists/starred"), } @@ -35627,7 +35628,7 @@ func (c *Client) sendGistsListStarred(ctx context.Context, params GistsListStarr u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -35663,7 +35664,7 @@ func (c *Client) GistsStar(ctx context.Context, params GistsStarParams) (GistsSt func (c *Client) sendGistsStar(ctx context.Context, params GistsStarParams) (res GistsStarRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("gists/star"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/gists/{gist_id}/star"), } @@ -35720,7 +35721,7 @@ func (c *Client) sendGistsStar(ctx context.Context, params GistsStarParams) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -35754,7 +35755,7 @@ func (c *Client) GistsUnstar(ctx context.Context, params GistsUnstarParams) (Gis func (c *Client) sendGistsUnstar(ctx context.Context, params GistsUnstarParams) (res GistsUnstarRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("gists/unstar"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/gists/{gist_id}/star"), } @@ -35811,7 +35812,7 @@ func (c *Client) sendGistsUnstar(ctx context.Context, params GistsUnstarParams) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -35845,7 +35846,7 @@ func (c *Client) GistsUpdateComment(ctx context.Context, request *GistsUpdateCom func (c *Client) sendGistsUpdateComment(ctx context.Context, request *GistsUpdateCommentReq, params GistsUpdateCommentParams) (res GistsUpdateCommentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("gists/update-comment"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/gists/{gist_id}/comments/{comment_id}"), } // Validate request before sending. @@ -35929,7 +35930,7 @@ func (c *Client) sendGistsUpdateComment(ctx context.Context, request *GistsUpdat uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -35966,7 +35967,7 @@ func (c *Client) GitCreateBlob(ctx context.Context, request *GitCreateBlobReq, p func (c *Client) sendGitCreateBlob(ctx context.Context, request *GitCreateBlobReq, params GitCreateBlobParams) (res GitCreateBlobRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("git/create-blob"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/git/blobs"), } @@ -36042,7 +36043,7 @@ func (c *Client) sendGitCreateBlob(ctx context.Context, request *GitCreateBlobRe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -36112,7 +36113,7 @@ func (c *Client) GitCreateCommit(ctx context.Context, request *GitCreateCommitRe func (c *Client) sendGitCreateCommit(ctx context.Context, request *GitCreateCommitReq, params GitCreateCommitParams) (res GitCreateCommitRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("git/create-commit"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/git/commits"), } @@ -36188,7 +36189,7 @@ func (c *Client) sendGitCreateCommit(ctx context.Context, request *GitCreateComm uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -36227,7 +36228,7 @@ func (c *Client) GitCreateRef(ctx context.Context, request *GitCreateRefReq, par func (c *Client) sendGitCreateRef(ctx context.Context, request *GitCreateRefReq, params GitCreateRefParams) (res GitCreateRefRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("git/create-ref"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/git/refs"), } @@ -36303,7 +36304,7 @@ func (c *Client) sendGitCreateRef(ctx context.Context, request *GitCreateRefReq, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -36376,7 +36377,7 @@ func (c *Client) GitCreateTag(ctx context.Context, request *GitCreateTagReq, par func (c *Client) sendGitCreateTag(ctx context.Context, request *GitCreateTagReq, params GitCreateTagParams) (res GitCreateTagRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("git/create-tag"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/git/tags"), } // Validate request before sending. @@ -36461,7 +36462,7 @@ func (c *Client) sendGitCreateTag(ctx context.Context, request *GitCreateTagReq, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -36504,7 +36505,7 @@ func (c *Client) GitCreateTree(ctx context.Context, request *GitCreateTreeReq, p func (c *Client) sendGitCreateTree(ctx context.Context, request *GitCreateTreeReq, params GitCreateTreeParams) (res GitCreateTreeRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("git/create-tree"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/git/trees"), } // Validate request before sending. @@ -36589,7 +36590,7 @@ func (c *Client) sendGitCreateTree(ctx context.Context, request *GitCreateTreeRe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -36626,7 +36627,7 @@ func (c *Client) GitDeleteRef(ctx context.Context, params GitDeleteRefParams) (G func (c *Client) sendGitDeleteRef(ctx context.Context, params GitDeleteRefParams) (res GitDeleteRefRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("git/delete-ref"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/git/refs/{ref}"), } @@ -36720,7 +36721,7 @@ func (c *Client) sendGitDeleteRef(ctx context.Context, params GitDeleteRefParams uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -36755,7 +36756,7 @@ func (c *Client) GitGetBlob(ctx context.Context, params GitGetBlobParams) (GitGe func (c *Client) sendGitGetBlob(ctx context.Context, params GitGetBlobParams) (res GitGetBlobRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("git/get-blob"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/git/blobs/{file_sha}"), } @@ -36849,7 +36850,7 @@ func (c *Client) sendGitGetBlob(ctx context.Context, params GitGetBlobParams) (r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -36916,7 +36917,7 @@ func (c *Client) GitGetCommit(ctx context.Context, params GitGetCommitParams) (G func (c *Client) sendGitGetCommit(ctx context.Context, params GitGetCommitParams) (res GitGetCommitRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("git/get-commit"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/git/commits/{commit_sha}"), } @@ -37010,7 +37011,7 @@ func (c *Client) sendGitGetCommit(ctx context.Context, params GitGetCommitParams uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -37051,7 +37052,7 @@ func (c *Client) GitGetRef(ctx context.Context, params GitGetRefParams) (GitGetR func (c *Client) sendGitGetRef(ctx context.Context, params GitGetRefParams) (res GitGetRefRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("git/get-ref"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/git/ref/{ref}"), } @@ -37145,7 +37146,7 @@ func (c *Client) sendGitGetRef(ctx context.Context, params GitGetRefParams) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -37210,7 +37211,7 @@ func (c *Client) GitGetTag(ctx context.Context, params GitGetTagParams) (GitGetT func (c *Client) sendGitGetTag(ctx context.Context, params GitGetTagParams) (res GitGetTagRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("git/get-tag"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/git/tags/{tag_sha}"), } @@ -37304,7 +37305,7 @@ func (c *Client) sendGitGetTag(ctx context.Context, params GitGetTagParams) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -37341,7 +37342,7 @@ func (c *Client) GitGetTree(ctx context.Context, params GitGetTreeParams) (GitGe func (c *Client) sendGitGetTree(ctx context.Context, params GitGetTreeParams) (res GitGetTreeRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("git/get-tree"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/git/trees/{tree_sha}"), } @@ -37456,7 +37457,7 @@ func (c *Client) sendGitGetTree(ctx context.Context, params GitGetTreeParams) (r u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -37504,7 +37505,7 @@ func (c *Client) GitListMatchingRefs(ctx context.Context, params GitListMatching func (c *Client) sendGitListMatchingRefs(ctx context.Context, params GitListMatchingRefsParams) (res *GitListMatchingRefsOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("git/list-matching-refs"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/git/matching-refs/{ref}"), } @@ -37636,7 +37637,7 @@ func (c *Client) sendGitListMatchingRefs(ctx context.Context, params GitListMatc u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -37670,7 +37671,7 @@ func (c *Client) GitUpdateRef(ctx context.Context, request *GitUpdateRefReq, par func (c *Client) sendGitUpdateRef(ctx context.Context, request *GitUpdateRefReq, params GitUpdateRefParams) (res GitUpdateRefRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("git/update-ref"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/git/refs/{ref}"), } @@ -37764,7 +37765,7 @@ func (c *Client) sendGitUpdateRef(ctx context.Context, request *GitUpdateRefReq, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -37802,7 +37803,7 @@ func (c *Client) GitignoreGetAllTemplates(ctx context.Context) (GitignoreGetAllT func (c *Client) sendGitignoreGetAllTemplates(ctx context.Context) (res GitignoreGetAllTemplatesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("gitignore/get-all-templates"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/gitignore/templates"), } @@ -37840,7 +37841,7 @@ func (c *Client) sendGitignoreGetAllTemplates(ctx context.Context) (res Gitignor uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -37876,7 +37877,7 @@ func (c *Client) GitignoreGetTemplate(ctx context.Context, params GitignoreGetTe func (c *Client) sendGitignoreGetTemplate(ctx context.Context, params GitignoreGetTemplateParams) (res GitignoreGetTemplateRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("gitignore/get-template"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/gitignore/templates/{name}"), } @@ -37932,7 +37933,7 @@ func (c *Client) sendGitignoreGetTemplate(ctx context.Context, params GitignoreG uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -37966,7 +37967,7 @@ func (c *Client) InteractionsRemoveRestrictionsForAuthenticatedUser(ctx context. func (c *Client) sendInteractionsRemoveRestrictionsForAuthenticatedUser(ctx context.Context) (res *InteractionsRemoveRestrictionsForAuthenticatedUserNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("interactions/remove-restrictions-for-authenticated-user"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/user/interaction-limits"), } @@ -38004,7 +38005,7 @@ func (c *Client) sendInteractionsRemoveRestrictionsForAuthenticatedUser(ctx cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -38039,7 +38040,7 @@ func (c *Client) InteractionsRemoveRestrictionsForOrg(ctx context.Context, param func (c *Client) sendInteractionsRemoveRestrictionsForOrg(ctx context.Context, params InteractionsRemoveRestrictionsForOrgParams) (res *InteractionsRemoveRestrictionsForOrgNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("interactions/remove-restrictions-for-org"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/orgs/{org}/interaction-limits"), } @@ -38096,7 +38097,7 @@ func (c *Client) sendInteractionsRemoveRestrictionsForOrg(ctx context.Context, p uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -38133,7 +38134,7 @@ func (c *Client) InteractionsRemoveRestrictionsForRepo(ctx context.Context, para func (c *Client) sendInteractionsRemoveRestrictionsForRepo(ctx context.Context, params InteractionsRemoveRestrictionsForRepoParams) (res InteractionsRemoveRestrictionsForRepoRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("interactions/remove-restrictions-for-repo"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/interaction-limits"), } @@ -38209,7 +38210,7 @@ func (c *Client) sendInteractionsRemoveRestrictionsForRepo(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -38245,7 +38246,7 @@ func (c *Client) InteractionsSetRestrictionsForAuthenticatedUser(ctx context.Con func (c *Client) sendInteractionsSetRestrictionsForAuthenticatedUser(ctx context.Context, request *InteractionLimit) (res InteractionsSetRestrictionsForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("interactions/set-restrictions-for-authenticated-user"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/user/interaction-limits"), } // Validate request before sending. @@ -38292,7 +38293,7 @@ func (c *Client) sendInteractionsSetRestrictionsForAuthenticatedUser(ctx context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -38332,7 +38333,7 @@ func (c *Client) InteractionsSetRestrictionsForOrg(ctx context.Context, request func (c *Client) sendInteractionsSetRestrictionsForOrg(ctx context.Context, request *InteractionLimit, params InteractionsSetRestrictionsForOrgParams) (res InteractionsSetRestrictionsForOrgRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("interactions/set-restrictions-for-org"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/orgs/{org}/interaction-limits"), } // Validate request before sending. @@ -38398,7 +38399,7 @@ func (c *Client) sendInteractionsSetRestrictionsForOrg(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -38438,7 +38439,7 @@ func (c *Client) InteractionsSetRestrictionsForRepo(ctx context.Context, request func (c *Client) sendInteractionsSetRestrictionsForRepo(ctx context.Context, request *InteractionLimit, params InteractionsSetRestrictionsForRepoParams) (res InteractionsSetRestrictionsForRepoRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("interactions/set-restrictions-for-repo"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/interaction-limits"), } // Validate request before sending. @@ -38523,7 +38524,7 @@ func (c *Client) sendInteractionsSetRestrictionsForRepo(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -38560,7 +38561,7 @@ func (c *Client) IssuesAddAssignees(ctx context.Context, request OptIssuesAddAss func (c *Client) sendIssuesAddAssignees(ctx context.Context, request OptIssuesAddAssigneesReq, params IssuesAddAssigneesParams) (res *IssueSimple, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/add-assignees"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/issues/{issue_number}/assignees"), } @@ -38655,7 +38656,7 @@ func (c *Client) sendIssuesAddAssignees(ctx context.Context, request OptIssuesAd uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -38695,7 +38696,7 @@ func (c *Client) IssuesCheckUserCanBeAssigned(ctx context.Context, params Issues func (c *Client) sendIssuesCheckUserCanBeAssigned(ctx context.Context, params IssuesCheckUserCanBeAssignedParams) (res IssuesCheckUserCanBeAssignedRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/check-user-can-be-assigned"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/assignees/{assignee}"), } @@ -38789,7 +38790,7 @@ func (c *Client) sendIssuesCheckUserCanBeAssigned(ctx context.Context, params Is uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -38832,7 +38833,7 @@ func (c *Client) IssuesCreate(ctx context.Context, request *IssuesCreateReq, par func (c *Client) sendIssuesCreate(ctx context.Context, request *IssuesCreateReq, params IssuesCreateParams) (res IssuesCreateRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/create"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/issues"), } @@ -38908,7 +38909,7 @@ func (c *Client) sendIssuesCreate(ctx context.Context, request *IssuesCreateReq, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -38951,7 +38952,7 @@ func (c *Client) IssuesCreateComment(ctx context.Context, request *IssuesCreateC func (c *Client) sendIssuesCreateComment(ctx context.Context, request *IssuesCreateCommentReq, params IssuesCreateCommentParams) (res IssuesCreateCommentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/create-comment"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/issues/{issue_number}/comments"), } @@ -39046,7 +39047,7 @@ func (c *Client) sendIssuesCreateComment(ctx context.Context, request *IssuesCre uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -39083,7 +39084,7 @@ func (c *Client) IssuesCreateLabel(ctx context.Context, request *IssuesCreateLab func (c *Client) sendIssuesCreateLabel(ctx context.Context, request *IssuesCreateLabelReq, params IssuesCreateLabelParams) (res IssuesCreateLabelRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/create-label"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/labels"), } @@ -39159,7 +39160,7 @@ func (c *Client) sendIssuesCreateLabel(ctx context.Context, request *IssuesCreat uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -39196,7 +39197,7 @@ func (c *Client) IssuesCreateMilestone(ctx context.Context, request *IssuesCreat func (c *Client) sendIssuesCreateMilestone(ctx context.Context, request *IssuesCreateMilestoneReq, params IssuesCreateMilestoneParams) (res IssuesCreateMilestoneRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/create-milestone"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/milestones"), } // Validate request before sending. @@ -39281,7 +39282,7 @@ func (c *Client) sendIssuesCreateMilestone(ctx context.Context, request *IssuesC uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -39318,7 +39319,7 @@ func (c *Client) IssuesDeleteComment(ctx context.Context, params IssuesDeleteCom func (c *Client) sendIssuesDeleteComment(ctx context.Context, params IssuesDeleteCommentParams) (res *IssuesDeleteCommentNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/delete-comment"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/issues/comments/{comment_id}"), } @@ -39412,7 +39413,7 @@ func (c *Client) sendIssuesDeleteComment(ctx context.Context, params IssuesDelet uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -39446,7 +39447,7 @@ func (c *Client) IssuesDeleteLabel(ctx context.Context, params IssuesDeleteLabel func (c *Client) sendIssuesDeleteLabel(ctx context.Context, params IssuesDeleteLabelParams) (res *IssuesDeleteLabelNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/delete-label"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/labels/{name}"), } @@ -39540,7 +39541,7 @@ func (c *Client) sendIssuesDeleteLabel(ctx context.Context, params IssuesDeleteL uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -39574,7 +39575,7 @@ func (c *Client) IssuesDeleteMilestone(ctx context.Context, params IssuesDeleteM func (c *Client) sendIssuesDeleteMilestone(ctx context.Context, params IssuesDeleteMilestoneParams) (res IssuesDeleteMilestoneRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/delete-milestone"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/milestones/{milestone_number}"), } @@ -39668,7 +39669,7 @@ func (c *Client) sendIssuesDeleteMilestone(ctx context.Context, params IssuesDel uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -39720,7 +39721,7 @@ func (c *Client) IssuesGet(ctx context.Context, params IssuesGetParams) (IssuesG func (c *Client) sendIssuesGet(ctx context.Context, params IssuesGetParams) (res IssuesGetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/get"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/issues/{issue_number}"), } @@ -39814,7 +39815,7 @@ func (c *Client) sendIssuesGet(ctx context.Context, params IssuesGetParams) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -39848,7 +39849,7 @@ func (c *Client) IssuesGetComment(ctx context.Context, params IssuesGetCommentPa func (c *Client) sendIssuesGetComment(ctx context.Context, params IssuesGetCommentParams) (res IssuesGetCommentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/get-comment"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/issues/comments/{comment_id}"), } @@ -39942,7 +39943,7 @@ func (c *Client) sendIssuesGetComment(ctx context.Context, params IssuesGetComme uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -39976,7 +39977,7 @@ func (c *Client) IssuesGetEvent(ctx context.Context, params IssuesGetEventParams func (c *Client) sendIssuesGetEvent(ctx context.Context, params IssuesGetEventParams) (res IssuesGetEventRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/get-event"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/issues/events/{event_id}"), } @@ -40070,7 +40071,7 @@ func (c *Client) sendIssuesGetEvent(ctx context.Context, params IssuesGetEventPa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -40104,7 +40105,7 @@ func (c *Client) IssuesGetLabel(ctx context.Context, params IssuesGetLabelParams func (c *Client) sendIssuesGetLabel(ctx context.Context, params IssuesGetLabelParams) (res IssuesGetLabelRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/get-label"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/labels/{name}"), } @@ -40198,7 +40199,7 @@ func (c *Client) sendIssuesGetLabel(ctx context.Context, params IssuesGetLabelPa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -40232,7 +40233,7 @@ func (c *Client) IssuesGetMilestone(ctx context.Context, params IssuesGetMilesto func (c *Client) sendIssuesGetMilestone(ctx context.Context, params IssuesGetMilestoneParams) (res IssuesGetMilestoneRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/get-milestone"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/milestones/{milestone_number}"), } @@ -40326,7 +40327,7 @@ func (c *Client) sendIssuesGetMilestone(ctx context.Context, params IssuesGetMil uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -40372,7 +40373,7 @@ func (c *Client) IssuesList(ctx context.Context, params IssuesListParams) (Issue func (c *Client) sendIssuesList(ctx context.Context, params IssuesListParams) (res IssuesListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/list"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/issues"), } @@ -40618,7 +40619,7 @@ func (c *Client) sendIssuesList(ctx context.Context, params IssuesListParams) (r u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -40653,7 +40654,7 @@ func (c *Client) IssuesListAssignees(ctx context.Context, params IssuesListAssig func (c *Client) sendIssuesListAssignees(ctx context.Context, params IssuesListAssigneesParams) (res IssuesListAssigneesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/list-assignees"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/assignees"), } @@ -40767,7 +40768,7 @@ func (c *Client) sendIssuesListAssignees(ctx context.Context, params IssuesListA u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -40801,7 +40802,7 @@ func (c *Client) IssuesListComments(ctx context.Context, params IssuesListCommen func (c *Client) sendIssuesListComments(ctx context.Context, params IssuesListCommentsParams) (res IssuesListCommentsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/list-comments"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/issues/{issue_number}/comments"), } @@ -40951,7 +40952,7 @@ func (c *Client) sendIssuesListComments(ctx context.Context, params IssuesListCo u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -40985,7 +40986,7 @@ func (c *Client) IssuesListCommentsForRepo(ctx context.Context, params IssuesLis func (c *Client) sendIssuesListCommentsForRepo(ctx context.Context, params IssuesListCommentsForRepoParams) (res IssuesListCommentsForRepoRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/list-comments-for-repo"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/issues/comments"), } @@ -41150,7 +41151,7 @@ func (c *Client) sendIssuesListCommentsForRepo(ctx context.Context, params Issue u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -41184,7 +41185,7 @@ func (c *Client) IssuesListEventsForRepo(ctx context.Context, params IssuesListE func (c *Client) sendIssuesListEventsForRepo(ctx context.Context, params IssuesListEventsForRepoParams) (res IssuesListEventsForRepoRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/list-events-for-repo"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/issues/events"), } @@ -41298,7 +41299,7 @@ func (c *Client) sendIssuesListEventsForRepo(ctx context.Context, params IssuesL u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -41340,7 +41341,7 @@ func (c *Client) IssuesListForAuthenticatedUser(ctx context.Context, params Issu func (c *Client) sendIssuesListForAuthenticatedUser(ctx context.Context, params IssuesListForAuthenticatedUserParams) (res IssuesListForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/list-for-authenticated-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/issues"), } @@ -41518,7 +41519,7 @@ func (c *Client) sendIssuesListForAuthenticatedUser(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -41560,7 +41561,7 @@ func (c *Client) IssuesListForOrg(ctx context.Context, params IssuesListForOrgPa func (c *Client) sendIssuesListForOrg(ctx context.Context, params IssuesListForOrgParams) (res IssuesListForOrgRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/list-for-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/issues"), } @@ -41757,7 +41758,7 @@ func (c *Client) sendIssuesListForOrg(ctx context.Context, params IssuesListForO u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -41799,7 +41800,7 @@ func (c *Client) IssuesListForRepo(ctx context.Context, params IssuesListForRepo func (c *Client) sendIssuesListForRepo(ctx context.Context, params IssuesListForRepoParams) (res IssuesListForRepoRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/list-for-repo"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/issues"), } @@ -42066,7 +42067,7 @@ func (c *Client) sendIssuesListForRepo(ctx context.Context, params IssuesListFor u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -42100,7 +42101,7 @@ func (c *Client) IssuesListLabelsForMilestone(ctx context.Context, params Issues func (c *Client) sendIssuesListLabelsForMilestone(ctx context.Context, params IssuesListLabelsForMilestoneParams) (res *IssuesListLabelsForMilestoneOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/list-labels-for-milestone"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/milestones/{milestone_number}/labels"), } @@ -42233,7 +42234,7 @@ func (c *Client) sendIssuesListLabelsForMilestone(ctx context.Context, params Is u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -42267,7 +42268,7 @@ func (c *Client) IssuesListLabelsForRepo(ctx context.Context, params IssuesListL func (c *Client) sendIssuesListLabelsForRepo(ctx context.Context, params IssuesListLabelsForRepoParams) (res IssuesListLabelsForRepoRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/list-labels-for-repo"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/labels"), } @@ -42381,7 +42382,7 @@ func (c *Client) sendIssuesListLabelsForRepo(ctx context.Context, params IssuesL u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -42415,7 +42416,7 @@ func (c *Client) IssuesListLabelsOnIssue(ctx context.Context, params IssuesListL func (c *Client) sendIssuesListLabelsOnIssue(ctx context.Context, params IssuesListLabelsOnIssueParams) (res IssuesListLabelsOnIssueRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/list-labels-on-issue"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/issues/{issue_number}/labels"), } @@ -42548,7 +42549,7 @@ func (c *Client) sendIssuesListLabelsOnIssue(ctx context.Context, params IssuesL u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -42582,7 +42583,7 @@ func (c *Client) IssuesListMilestones(ctx context.Context, params IssuesListMile func (c *Client) sendIssuesListMilestones(ctx context.Context, params IssuesListMilestonesParams) (res IssuesListMilestonesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/list-milestones"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/milestones"), } @@ -42747,7 +42748,7 @@ func (c *Client) sendIssuesListMilestones(ctx context.Context, params IssuesList u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -42784,7 +42785,7 @@ func (c *Client) IssuesLock(ctx context.Context, request OptNilIssuesLockReq, pa func (c *Client) sendIssuesLock(ctx context.Context, request OptNilIssuesLockReq, params IssuesLockParams) (res IssuesLockRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/lock"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/issues/{issue_number}/lock"), } // Validate request before sending. @@ -42895,7 +42896,7 @@ func (c *Client) sendIssuesLock(ctx context.Context, request OptNilIssuesLockReq uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -42932,7 +42933,7 @@ func (c *Client) IssuesRemoveAllLabels(ctx context.Context, params IssuesRemoveA func (c *Client) sendIssuesRemoveAllLabels(ctx context.Context, params IssuesRemoveAllLabelsParams) (res IssuesRemoveAllLabelsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/remove-all-labels"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/issues/{issue_number}/labels"), } @@ -43027,7 +43028,7 @@ func (c *Client) sendIssuesRemoveAllLabels(ctx context.Context, params IssuesRem uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -43061,7 +43062,7 @@ func (c *Client) IssuesRemoveAssignees(ctx context.Context, request OptIssuesRem func (c *Client) sendIssuesRemoveAssignees(ctx context.Context, request OptIssuesRemoveAssigneesReq, params IssuesRemoveAssigneesParams) (res *IssueSimple, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/remove-assignees"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/issues/{issue_number}/assignees"), } @@ -43156,7 +43157,7 @@ func (c *Client) sendIssuesRemoveAssignees(ctx context.Context, request OptIssue uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -43194,7 +43195,7 @@ func (c *Client) IssuesRemoveLabel(ctx context.Context, params IssuesRemoveLabel func (c *Client) sendIssuesRemoveLabel(ctx context.Context, params IssuesRemoveLabelParams) (res IssuesRemoveLabelRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/remove-label"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"), } @@ -43307,7 +43308,7 @@ func (c *Client) sendIssuesRemoveLabel(ctx context.Context, params IssuesRemoveL uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -43341,7 +43342,7 @@ func (c *Client) IssuesUnlock(ctx context.Context, params IssuesUnlockParams) (I func (c *Client) sendIssuesUnlock(ctx context.Context, params IssuesUnlockParams) (res IssuesUnlockRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/unlock"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/issues/{issue_number}/lock"), } @@ -43436,7 +43437,7 @@ func (c *Client) sendIssuesUnlock(ctx context.Context, params IssuesUnlockParams uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -43470,7 +43471,7 @@ func (c *Client) IssuesUpdate(ctx context.Context, request OptIssuesUpdateReq, p func (c *Client) sendIssuesUpdate(ctx context.Context, request OptIssuesUpdateReq, params IssuesUpdateParams) (res IssuesUpdateRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/update"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/issues/{issue_number}"), } // Validate request before sending. @@ -43580,7 +43581,7 @@ func (c *Client) sendIssuesUpdate(ctx context.Context, request OptIssuesUpdateRe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -43617,7 +43618,7 @@ func (c *Client) IssuesUpdateComment(ctx context.Context, request *IssuesUpdateC func (c *Client) sendIssuesUpdateComment(ctx context.Context, request *IssuesUpdateCommentReq, params IssuesUpdateCommentParams) (res IssuesUpdateCommentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/update-comment"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/issues/comments/{comment_id}"), } @@ -43711,7 +43712,7 @@ func (c *Client) sendIssuesUpdateComment(ctx context.Context, request *IssuesUpd uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -43748,7 +43749,7 @@ func (c *Client) IssuesUpdateLabel(ctx context.Context, request OptIssuesUpdateL func (c *Client) sendIssuesUpdateLabel(ctx context.Context, request OptIssuesUpdateLabelReq, params IssuesUpdateLabelParams) (res *Label, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/update-label"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/labels/{name}"), } @@ -43842,7 +43843,7 @@ func (c *Client) sendIssuesUpdateLabel(ctx context.Context, request OptIssuesUpd uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -43879,7 +43880,7 @@ func (c *Client) IssuesUpdateMilestone(ctx context.Context, request OptIssuesUpd func (c *Client) sendIssuesUpdateMilestone(ctx context.Context, request OptIssuesUpdateMilestoneReq, params IssuesUpdateMilestoneParams) (res *Milestone, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("issues/update-milestone"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/milestones/{milestone_number}"), } // Validate request before sending. @@ -43989,7 +43990,7 @@ func (c *Client) sendIssuesUpdateMilestone(ctx context.Context, request OptIssue uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -44026,7 +44027,7 @@ func (c *Client) LicensesGet(ctx context.Context, params LicensesGetParams) (Lic func (c *Client) sendLicensesGet(ctx context.Context, params LicensesGetParams) (res LicensesGetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("licenses/get"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/licenses/{license}"), } @@ -44082,7 +44083,7 @@ func (c *Client) sendLicensesGet(ctx context.Context, params LicensesGetParams) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -44116,7 +44117,7 @@ func (c *Client) LicensesGetAllCommonlyUsed(ctx context.Context, params Licenses func (c *Client) sendLicensesGetAllCommonlyUsed(ctx context.Context, params LicensesGetAllCommonlyUsedParams) (res LicensesGetAllCommonlyUsedRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("licenses/get-all-commonly-used"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/licenses"), } @@ -44209,7 +44210,7 @@ func (c *Client) sendLicensesGetAllCommonlyUsed(ctx context.Context, params Lice u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -44247,7 +44248,7 @@ func (c *Client) LicensesGetForRepo(ctx context.Context, params LicensesGetForRe func (c *Client) sendLicensesGetForRepo(ctx context.Context, params LicensesGetForRepoParams) (res *LicenseContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("licenses/get-for-repo"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/license"), } @@ -44323,7 +44324,7 @@ func (c *Client) sendLicensesGetForRepo(ctx context.Context, params LicensesGetF uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -44357,7 +44358,7 @@ func (c *Client) MarkdownRender(ctx context.Context, request *MarkdownRenderReq) func (c *Client) sendMarkdownRender(ctx context.Context, request *MarkdownRenderReq) (res MarkdownRenderRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("markdown/render"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/markdown"), } // Validate request before sending. @@ -44404,7 +44405,7 @@ func (c *Client) sendMarkdownRender(ctx context.Context, request *MarkdownRender uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -44444,7 +44445,7 @@ func (c *Client) MarkdownRenderRaw(ctx context.Context, request MarkdownRenderRa func (c *Client) sendMarkdownRenderRaw(ctx context.Context, request MarkdownRenderRawReq) (res MarkdownRenderRawRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("markdown/render-raw"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/markdown/raw"), } // Validate request before sending. @@ -44493,7 +44494,7 @@ func (c *Client) sendMarkdownRenderRaw(ctx context.Context, request MarkdownRend uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -44534,7 +44535,7 @@ func (c *Client) MetaGet(ctx context.Context) (MetaGetRes, error) { func (c *Client) sendMetaGet(ctx context.Context) (res MetaGetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("meta/get"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/meta"), } @@ -44572,7 +44573,7 @@ func (c *Client) sendMetaGet(ctx context.Context) (res MetaGetRes, err error) { uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -44606,7 +44607,7 @@ func (c *Client) MetaGetOctocat(ctx context.Context, params MetaGetOctocatParams func (c *Client) sendMetaGetOctocat(ctx context.Context, params MetaGetOctocatParams) (res MetaGetOctocatOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("meta/get-octocat"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/octocat"), } @@ -44665,7 +44666,7 @@ func (c *Client) sendMetaGetOctocat(ctx context.Context, params MetaGetOctocatPa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -44699,7 +44700,7 @@ func (c *Client) MetaGetZen(ctx context.Context) (MetaGetZenOK, error) { func (c *Client) sendMetaGetZen(ctx context.Context) (res MetaGetZenOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("meta/get-zen"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/zen"), } @@ -44737,7 +44738,7 @@ func (c *Client) sendMetaGetZen(ctx context.Context) (res MetaGetZenOK, err erro uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -44771,7 +44772,7 @@ func (c *Client) MetaRoot(ctx context.Context) (*MetaRootOK, error) { func (c *Client) sendMetaRoot(ctx context.Context) (res *MetaRootOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("meta/root"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/"), } @@ -44809,7 +44810,7 @@ func (c *Client) sendMetaRoot(ctx context.Context) (res *MetaRootOK, err error) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -44843,7 +44844,7 @@ func (c *Client) MigrationsCancelImport(ctx context.Context, params MigrationsCa func (c *Client) sendMigrationsCancelImport(ctx context.Context, params MigrationsCancelImportParams) (res *MigrationsCancelImportNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("migrations/cancel-import"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/import"), } @@ -44919,7 +44920,7 @@ func (c *Client) sendMigrationsCancelImport(ctx context.Context, params Migratio uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -44957,7 +44958,7 @@ func (c *Client) MigrationsDeleteArchiveForAuthenticatedUser(ctx context.Context func (c *Client) sendMigrationsDeleteArchiveForAuthenticatedUser(ctx context.Context, params MigrationsDeleteArchiveForAuthenticatedUserParams) (res MigrationsDeleteArchiveForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("migrations/delete-archive-for-authenticated-user"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/user/migrations/{migration_id}/archive"), } @@ -45014,7 +45015,7 @@ func (c *Client) sendMigrationsDeleteArchiveForAuthenticatedUser(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -45049,7 +45050,7 @@ func (c *Client) MigrationsDeleteArchiveForOrg(ctx context.Context, params Migra func (c *Client) sendMigrationsDeleteArchiveForOrg(ctx context.Context, params MigrationsDeleteArchiveForOrgParams) (res MigrationsDeleteArchiveForOrgRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("migrations/delete-archive-for-org"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/orgs/{org}/migrations/{migration_id}/archive"), } @@ -45125,7 +45126,7 @@ func (c *Client) sendMigrationsDeleteArchiveForOrg(ctx context.Context, params M uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -45159,7 +45160,7 @@ func (c *Client) MigrationsDownloadArchiveForOrg(ctx context.Context, params Mig func (c *Client) sendMigrationsDownloadArchiveForOrg(ctx context.Context, params MigrationsDownloadArchiveForOrgParams) (res MigrationsDownloadArchiveForOrgRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("migrations/download-archive-for-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/migrations/{migration_id}/archive"), } @@ -45235,7 +45236,7 @@ func (c *Client) sendMigrationsDownloadArchiveForOrg(ctx context.Context, params uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -45289,7 +45290,7 @@ func (c *Client) MigrationsGetArchiveForAuthenticatedUser(ctx context.Context, p func (c *Client) sendMigrationsGetArchiveForAuthenticatedUser(ctx context.Context, params MigrationsGetArchiveForAuthenticatedUserParams) (res MigrationsGetArchiveForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("migrations/get-archive-for-authenticated-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/migrations/{migration_id}/archive"), } @@ -45346,7 +45347,7 @@ func (c *Client) sendMigrationsGetArchiveForAuthenticatedUser(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -45387,7 +45388,7 @@ func (c *Client) MigrationsGetCommitAuthors(ctx context.Context, params Migratio func (c *Client) sendMigrationsGetCommitAuthors(ctx context.Context, params MigrationsGetCommitAuthorsParams) (res MigrationsGetCommitAuthorsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("migrations/get-commit-authors"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/import/authors"), } @@ -45484,7 +45485,7 @@ func (c *Client) sendMigrationsGetCommitAuthors(ctx context.Context, params Migr u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -45570,7 +45571,7 @@ func (c *Client) MigrationsGetImportStatus(ctx context.Context, params Migration func (c *Client) sendMigrationsGetImportStatus(ctx context.Context, params MigrationsGetImportStatusParams) (res MigrationsGetImportStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("migrations/get-import-status"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/import"), } @@ -45646,7 +45647,7 @@ func (c *Client) sendMigrationsGetImportStatus(ctx context.Context, params Migra uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -45680,7 +45681,7 @@ func (c *Client) MigrationsGetLargeFiles(ctx context.Context, params MigrationsG func (c *Client) sendMigrationsGetLargeFiles(ctx context.Context, params MigrationsGetLargeFilesParams) (res []PorterLargeFile, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("migrations/get-large-files"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/import/large_files"), } @@ -45756,7 +45757,7 @@ func (c *Client) sendMigrationsGetLargeFiles(ctx context.Context, params Migrati uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -45797,7 +45798,7 @@ func (c *Client) MigrationsGetStatusForAuthenticatedUser(ctx context.Context, pa func (c *Client) sendMigrationsGetStatusForAuthenticatedUser(ctx context.Context, params MigrationsGetStatusForAuthenticatedUserParams) (res MigrationsGetStatusForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("migrations/get-status-for-authenticated-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/migrations/{migration_id}"), } @@ -45880,7 +45881,7 @@ func (c *Client) sendMigrationsGetStatusForAuthenticatedUser(ctx context.Context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -45919,7 +45920,7 @@ func (c *Client) MigrationsGetStatusForOrg(ctx context.Context, params Migration func (c *Client) sendMigrationsGetStatusForOrg(ctx context.Context, params MigrationsGetStatusForOrgParams) (res MigrationsGetStatusForOrgRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("migrations/get-status-for-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/migrations/{migration_id}"), } @@ -46021,7 +46022,7 @@ func (c *Client) sendMigrationsGetStatusForOrg(ctx context.Context, params Migra u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -46055,7 +46056,7 @@ func (c *Client) MigrationsListForAuthenticatedUser(ctx context.Context, params func (c *Client) sendMigrationsListForAuthenticatedUser(ctx context.Context, params MigrationsListForAuthenticatedUserParams) (res MigrationsListForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("migrations/list-for-authenticated-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/migrations"), } @@ -46131,7 +46132,7 @@ func (c *Client) sendMigrationsListForAuthenticatedUser(ctx context.Context, par u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -46165,7 +46166,7 @@ func (c *Client) MigrationsListForOrg(ctx context.Context, params MigrationsList func (c *Client) sendMigrationsListForOrg(ctx context.Context, params MigrationsListForOrgParams) (res *MigrationsListForOrgOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("migrations/list-for-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/migrations"), } @@ -46283,7 +46284,7 @@ func (c *Client) sendMigrationsListForOrg(ctx context.Context, params Migrations u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -46317,7 +46318,7 @@ func (c *Client) MigrationsListReposForOrg(ctx context.Context, params Migration func (c *Client) sendMigrationsListReposForOrg(ctx context.Context, params MigrationsListReposForOrgParams) (res MigrationsListReposForOrgRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("migrations/list-repos-for-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/migrations/{migration_id}/repositories"), } @@ -46431,7 +46432,7 @@ func (c *Client) sendMigrationsListReposForOrg(ctx context.Context, params Migra u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -46465,7 +46466,7 @@ func (c *Client) MigrationsListReposForUser(ctx context.Context, params Migratio func (c *Client) sendMigrationsListReposForUser(ctx context.Context, params MigrationsListReposForUserParams) (res MigrationsListReposForUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("migrations/list-repos-for-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/migrations/{migration_id}/repositories"), } @@ -46560,7 +46561,7 @@ func (c *Client) sendMigrationsListReposForUser(ctx context.Context, params Migr u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -46595,7 +46596,7 @@ func (c *Client) MigrationsMapCommitAuthor(ctx context.Context, request OptMigra func (c *Client) sendMigrationsMapCommitAuthor(ctx context.Context, request OptMigrationsMapCommitAuthorReq, params MigrationsMapCommitAuthorParams) (res MigrationsMapCommitAuthorRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("migrations/map-commit-author"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/import/authors/{author_id}"), } @@ -46689,7 +46690,7 @@ func (c *Client) sendMigrationsMapCommitAuthor(ctx context.Context, request OptM uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -46729,7 +46730,7 @@ func (c *Client) MigrationsSetLfsPreference(ctx context.Context, request *Migrat func (c *Client) sendMigrationsSetLfsPreference(ctx context.Context, request *MigrationsSetLfsPreferenceReq, params MigrationsSetLfsPreferenceParams) (res MigrationsSetLfsPreferenceRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("migrations/set-lfs-preference"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/import/lfs"), } // Validate request before sending. @@ -46814,7 +46815,7 @@ func (c *Client) sendMigrationsSetLfsPreference(ctx context.Context, request *Mi uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -46851,7 +46852,7 @@ func (c *Client) MigrationsStartForAuthenticatedUser(ctx context.Context, reques func (c *Client) sendMigrationsStartForAuthenticatedUser(ctx context.Context, request *MigrationsStartForAuthenticatedUserReq) (res MigrationsStartForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("migrations/start-for-authenticated-user"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/user/migrations"), } // Validate request before sending. @@ -46898,7 +46899,7 @@ func (c *Client) sendMigrationsStartForAuthenticatedUser(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -46935,7 +46936,7 @@ func (c *Client) MigrationsStartForOrg(ctx context.Context, request *MigrationsS func (c *Client) sendMigrationsStartForOrg(ctx context.Context, request *MigrationsStartForOrgReq, params MigrationsStartForOrgParams) (res MigrationsStartForOrgRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("migrations/start-for-org"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/orgs/{org}/migrations"), } // Validate request before sending. @@ -47001,7 +47002,7 @@ func (c *Client) sendMigrationsStartForOrg(ctx context.Context, request *Migrati uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -47038,7 +47039,7 @@ func (c *Client) MigrationsStartImport(ctx context.Context, request *MigrationsS func (c *Client) sendMigrationsStartImport(ctx context.Context, request *MigrationsStartImportReq, params MigrationsStartImportParams) (res MigrationsStartImportRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("migrations/start-import"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/import"), } // Validate request before sending. @@ -47123,7 +47124,7 @@ func (c *Client) sendMigrationsStartImport(ctx context.Context, request *Migrati uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -47164,7 +47165,7 @@ func (c *Client) MigrationsUnlockRepoForAuthenticatedUser(ctx context.Context, p func (c *Client) sendMigrationsUnlockRepoForAuthenticatedUser(ctx context.Context, params MigrationsUnlockRepoForAuthenticatedUserParams) (res MigrationsUnlockRepoForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("migrations/unlock-repo-for-authenticated-user"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/user/migrations/{migration_id}/repos/{repo_name}/lock"), } @@ -47240,7 +47241,7 @@ func (c *Client) sendMigrationsUnlockRepoForAuthenticatedUser(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -47276,7 +47277,7 @@ func (c *Client) MigrationsUnlockRepoForOrg(ctx context.Context, params Migratio func (c *Client) sendMigrationsUnlockRepoForOrg(ctx context.Context, params MigrationsUnlockRepoForOrgParams) (res MigrationsUnlockRepoForOrgRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("migrations/unlock-repo-for-org"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"), } @@ -47371,7 +47372,7 @@ func (c *Client) sendMigrationsUnlockRepoForOrg(ctx context.Context, params Migr uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -47407,7 +47408,7 @@ func (c *Client) MigrationsUpdateImport(ctx context.Context, request OptNilMigra func (c *Client) sendMigrationsUpdateImport(ctx context.Context, request OptNilMigrationsUpdateImportReq, params MigrationsUpdateImportParams) (res *Import, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("migrations/update-import"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/import"), } @@ -47483,7 +47484,7 @@ func (c *Client) sendMigrationsUpdateImport(ctx context.Context, request OptNilM uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -47549,7 +47550,7 @@ func (c *Client) OAuthAuthorizationsCreateAuthorization(ctx context.Context, req func (c *Client) sendOAuthAuthorizationsCreateAuthorization(ctx context.Context, request OptOAuthAuthorizationsCreateAuthorizationReq) (res OAuthAuthorizationsCreateAuthorizationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("oauth-authorizations/create-authorization"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/authorizations"), } // Validate request before sending. @@ -47603,7 +47604,7 @@ func (c *Client) sendOAuthAuthorizationsCreateAuthorization(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -47649,7 +47650,7 @@ func (c *Client) OAuthAuthorizationsDeleteAuthorization(ctx context.Context, par func (c *Client) sendOAuthAuthorizationsDeleteAuthorization(ctx context.Context, params OAuthAuthorizationsDeleteAuthorizationParams) (res OAuthAuthorizationsDeleteAuthorizationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("oauth-authorizations/delete-authorization"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/authorizations/{authorization_id}"), } @@ -47705,7 +47706,7 @@ func (c *Client) sendOAuthAuthorizationsDeleteAuthorization(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -47751,7 +47752,7 @@ func (c *Client) OAuthAuthorizationsDeleteGrant(ctx context.Context, params OAut func (c *Client) sendOAuthAuthorizationsDeleteGrant(ctx context.Context, params OAuthAuthorizationsDeleteGrantParams) (res OAuthAuthorizationsDeleteGrantRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("oauth-authorizations/delete-grant"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/applications/grants/{grant_id}"), } @@ -47807,7 +47808,7 @@ func (c *Client) sendOAuthAuthorizationsDeleteGrant(ctx context.Context, params uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -47850,7 +47851,7 @@ func (c *Client) OAuthAuthorizationsGetAuthorization(ctx context.Context, params func (c *Client) sendOAuthAuthorizationsGetAuthorization(ctx context.Context, params OAuthAuthorizationsGetAuthorizationParams) (res OAuthAuthorizationsGetAuthorizationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("oauth-authorizations/get-authorization"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/authorizations/{authorization_id}"), } @@ -47906,7 +47907,7 @@ func (c *Client) sendOAuthAuthorizationsGetAuthorization(ctx context.Context, pa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -47949,7 +47950,7 @@ func (c *Client) OAuthAuthorizationsGetGrant(ctx context.Context, params OAuthAu func (c *Client) sendOAuthAuthorizationsGetGrant(ctx context.Context, params OAuthAuthorizationsGetGrantParams) (res OAuthAuthorizationsGetGrantRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("oauth-authorizations/get-grant"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/applications/grants/{grant_id}"), } @@ -48005,7 +48006,7 @@ func (c *Client) sendOAuthAuthorizationsGetGrant(ctx context.Context, params OAu uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -48067,7 +48068,7 @@ func (c *Client) OAuthAuthorizationsGetOrCreateAuthorizationForApp(ctx context.C func (c *Client) sendOAuthAuthorizationsGetOrCreateAuthorizationForApp(ctx context.Context, request *OAuthAuthorizationsGetOrCreateAuthorizationForAppReq, params OAuthAuthorizationsGetOrCreateAuthorizationForAppParams) (res OAuthAuthorizationsGetOrCreateAuthorizationForAppRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("oauth-authorizations/get-or-create-authorization-for-app"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/authorizations/clients/{client_id}"), } // Validate request before sending. @@ -48132,7 +48133,7 @@ func (c *Client) sendOAuthAuthorizationsGetOrCreateAuthorizationForApp(ctx conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -48192,7 +48193,7 @@ func (c *Client) OAuthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprint func (c *Client) sendOAuthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprint(ctx context.Context, request *OAuthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintReq, params OAuthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintParams) (res OAuthAuthorizationsGetOrCreateAuthorizationForAppAndFingerprintRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("oauth-authorizations/get-or-create-authorization-for-app-and-fingerprint"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/authorizations/clients/{client_id}/{fingerprint}"), } // Validate request before sending. @@ -48276,7 +48277,7 @@ func (c *Client) sendOAuthAuthorizationsGetOrCreateAuthorizationForAppAndFingerp uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -48322,7 +48323,7 @@ func (c *Client) OAuthAuthorizationsListAuthorizations(ctx context.Context, para func (c *Client) sendOAuthAuthorizationsListAuthorizations(ctx context.Context, params OAuthAuthorizationsListAuthorizationsParams) (res OAuthAuthorizationsListAuthorizationsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("oauth-authorizations/list-authorizations"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/authorizations"), } @@ -48415,7 +48416,7 @@ func (c *Client) sendOAuthAuthorizationsListAuthorizations(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -48469,7 +48470,7 @@ func (c *Client) OAuthAuthorizationsListGrants(ctx context.Context, params OAuth func (c *Client) sendOAuthAuthorizationsListGrants(ctx context.Context, params OAuthAuthorizationsListGrantsParams) (res OAuthAuthorizationsListGrantsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("oauth-authorizations/list-grants"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/applications/grants"), } @@ -48562,7 +48563,7 @@ func (c *Client) sendOAuthAuthorizationsListGrants(ctx context.Context, params O u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -48609,7 +48610,7 @@ func (c *Client) OAuthAuthorizationsUpdateAuthorization(ctx context.Context, req func (c *Client) sendOAuthAuthorizationsUpdateAuthorization(ctx context.Context, request OptOAuthAuthorizationsUpdateAuthorizationReq, params OAuthAuthorizationsUpdateAuthorizationParams) (res OAuthAuthorizationsUpdateAuthorizationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("oauth-authorizations/update-authorization"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/authorizations/{authorization_id}"), } // Validate request before sending. @@ -48681,7 +48682,7 @@ func (c *Client) sendOAuthAuthorizationsUpdateAuthorization(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -48718,7 +48719,7 @@ func (c *Client) OrgsBlockUser(ctx context.Context, params OrgsBlockUserParams) func (c *Client) sendOrgsBlockUser(ctx context.Context, params OrgsBlockUserParams) (res OrgsBlockUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/block-user"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/orgs/{org}/blocks/{username}"), } @@ -48793,7 +48794,7 @@ func (c *Client) sendOrgsBlockUser(ctx context.Context, params OrgsBlockUserPara uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -48830,7 +48831,7 @@ func (c *Client) OrgsCancelInvitation(ctx context.Context, params OrgsCancelInvi func (c *Client) sendOrgsCancelInvitation(ctx context.Context, params OrgsCancelInvitationParams) (res OrgsCancelInvitationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/cancel-invitation"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/orgs/{org}/invitations/{invitation_id}"), } @@ -48905,7 +48906,7 @@ func (c *Client) sendOrgsCancelInvitation(ctx context.Context, params OrgsCancel uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -48939,7 +48940,7 @@ func (c *Client) OrgsCheckBlockedUser(ctx context.Context, params OrgsCheckBlock func (c *Client) sendOrgsCheckBlockedUser(ctx context.Context, params OrgsCheckBlockedUserParams) (res OrgsCheckBlockedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/check-blocked-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/blocks/{username}"), } @@ -49014,7 +49015,7 @@ func (c *Client) sendOrgsCheckBlockedUser(ctx context.Context, params OrgsCheckB uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -49048,7 +49049,7 @@ func (c *Client) OrgsCheckMembershipForUser(ctx context.Context, params OrgsChec func (c *Client) sendOrgsCheckMembershipForUser(ctx context.Context, params OrgsCheckMembershipForUserParams) (res OrgsCheckMembershipForUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/check-membership-for-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/members/{username}"), } @@ -49123,7 +49124,7 @@ func (c *Client) sendOrgsCheckMembershipForUser(ctx context.Context, params Orgs uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -49157,7 +49158,7 @@ func (c *Client) OrgsCheckPublicMembershipForUser(ctx context.Context, params Or func (c *Client) sendOrgsCheckPublicMembershipForUser(ctx context.Context, params OrgsCheckPublicMembershipForUserParams) (res OrgsCheckPublicMembershipForUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/check-public-membership-for-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/public_members/{username}"), } @@ -49232,7 +49233,7 @@ func (c *Client) sendOrgsCheckPublicMembershipForUser(ctx context.Context, param uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -49270,7 +49271,7 @@ func (c *Client) OrgsConvertMemberToOutsideCollaborator(ctx context.Context, par func (c *Client) sendOrgsConvertMemberToOutsideCollaborator(ctx context.Context, params OrgsConvertMemberToOutsideCollaboratorParams) (res OrgsConvertMemberToOutsideCollaboratorRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/convert-member-to-outside-collaborator"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/orgs/{org}/outside_collaborators/{username}"), } @@ -49345,7 +49346,7 @@ func (c *Client) sendOrgsConvertMemberToOutsideCollaborator(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -49387,7 +49388,7 @@ func (c *Client) OrgsCreateInvitation(ctx context.Context, request OptOrgsCreate func (c *Client) sendOrgsCreateInvitation(ctx context.Context, request OptOrgsCreateInvitationReq, params OrgsCreateInvitationParams) (res OrgsCreateInvitationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/create-invitation"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/orgs/{org}/invitations"), } // Validate request before sending. @@ -49460,7 +49461,7 @@ func (c *Client) sendOrgsCreateInvitation(ctx context.Context, request OptOrgsCr uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -49497,7 +49498,7 @@ func (c *Client) OrgsCreateWebhook(ctx context.Context, request *OrgsCreateWebho func (c *Client) sendOrgsCreateWebhook(ctx context.Context, request *OrgsCreateWebhookReq, params OrgsCreateWebhookParams) (res OrgsCreateWebhookRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/create-webhook"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/orgs/{org}/hooks"), } // Validate request before sending. @@ -49563,7 +49564,7 @@ func (c *Client) sendOrgsCreateWebhook(ctx context.Context, request *OrgsCreateW uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -49600,7 +49601,7 @@ func (c *Client) OrgsDeleteWebhook(ctx context.Context, params OrgsDeleteWebhook func (c *Client) sendOrgsDeleteWebhook(ctx context.Context, params OrgsDeleteWebhookParams) (res OrgsDeleteWebhookRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/delete-webhook"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/orgs/{org}/hooks/{hook_id}"), } @@ -49675,7 +49676,7 @@ func (c *Client) sendOrgsDeleteWebhook(ctx context.Context, params OrgsDeleteWeb uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -49717,7 +49718,7 @@ func (c *Client) OrgsGet(ctx context.Context, params OrgsGetParams) (OrgsGetRes, func (c *Client) sendOrgsGet(ctx context.Context, params OrgsGetParams) (res OrgsGetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/get"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}"), } @@ -49773,7 +49774,7 @@ func (c *Client) sendOrgsGet(ctx context.Context, params OrgsGetParams) (res Org uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -49812,7 +49813,7 @@ func (c *Client) OrgsGetAuditLog(ctx context.Context, params OrgsGetAuditLogPara func (c *Client) sendOrgsGetAuditLog(ctx context.Context, params OrgsGetAuditLogParams) (res []AuditLogEvent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/get-audit-log"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/audit-log"), } @@ -49992,7 +49993,7 @@ func (c *Client) sendOrgsGetAuditLog(ctx context.Context, params OrgsGetAuditLog u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -50026,7 +50027,7 @@ func (c *Client) OrgsGetMembershipForAuthenticatedUser(ctx context.Context, para func (c *Client) sendOrgsGetMembershipForAuthenticatedUser(ctx context.Context, params OrgsGetMembershipForAuthenticatedUserParams) (res OrgsGetMembershipForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/get-membership-for-authenticated-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/memberships/orgs/{org}"), } @@ -50082,7 +50083,7 @@ func (c *Client) sendOrgsGetMembershipForAuthenticatedUser(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -50118,7 +50119,7 @@ func (c *Client) OrgsGetMembershipForUser(ctx context.Context, params OrgsGetMem func (c *Client) sendOrgsGetMembershipForUser(ctx context.Context, params OrgsGetMembershipForUserParams) (res OrgsGetMembershipForUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/get-membership-for-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/memberships/{username}"), } @@ -50193,7 +50194,7 @@ func (c *Client) sendOrgsGetMembershipForUser(ctx context.Context, params OrgsGe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -50229,7 +50230,7 @@ func (c *Client) OrgsGetWebhook(ctx context.Context, params OrgsGetWebhookParams func (c *Client) sendOrgsGetWebhook(ctx context.Context, params OrgsGetWebhookParams) (res OrgsGetWebhookRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/get-webhook"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/hooks/{hook_id}"), } @@ -50304,7 +50305,7 @@ func (c *Client) sendOrgsGetWebhook(ctx context.Context, params OrgsGetWebhookPa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -50342,7 +50343,7 @@ func (c *Client) OrgsGetWebhookConfigForOrg(ctx context.Context, params OrgsGetW func (c *Client) sendOrgsGetWebhookConfigForOrg(ctx context.Context, params OrgsGetWebhookConfigForOrgParams) (res *WebhookConfig, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/get-webhook-config-for-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/hooks/{hook_id}/config"), } @@ -50418,7 +50419,7 @@ func (c *Client) sendOrgsGetWebhookConfigForOrg(ctx context.Context, params Orgs uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -50452,7 +50453,7 @@ func (c *Client) OrgsGetWebhookDelivery(ctx context.Context, params OrgsGetWebho func (c *Client) sendOrgsGetWebhookDelivery(ctx context.Context, params OrgsGetWebhookDeliveryParams) (res OrgsGetWebhookDeliveryRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/get-webhook-delivery"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"), } @@ -50546,7 +50547,7 @@ func (c *Client) sendOrgsGetWebhookDelivery(ctx context.Context, params OrgsGetW uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -50583,7 +50584,7 @@ func (c *Client) OrgsList(ctx context.Context, params OrgsListParams) (OrgsListR func (c *Client) sendOrgsList(ctx context.Context, params OrgsListParams) (res OrgsListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/list"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/organizations"), } @@ -50659,7 +50660,7 @@ func (c *Client) sendOrgsList(ctx context.Context, params OrgsListParams) (res O u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -50693,7 +50694,7 @@ func (c *Client) OrgsListBlockedUsers(ctx context.Context, params OrgsListBlocke func (c *Client) sendOrgsListBlockedUsers(ctx context.Context, params OrgsListBlockedUsersParams) (res OrgsListBlockedUsersRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/list-blocked-users"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/blocks"), } @@ -50750,7 +50751,7 @@ func (c *Client) sendOrgsListBlockedUsers(ctx context.Context, params OrgsListBl uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -50785,7 +50786,7 @@ func (c *Client) OrgsListFailedInvitations(ctx context.Context, params OrgsListF func (c *Client) sendOrgsListFailedInvitations(ctx context.Context, params OrgsListFailedInvitationsParams) (res OrgsListFailedInvitationsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/list-failed-invitations"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/failed_invitations"), } @@ -50880,7 +50881,7 @@ func (c *Client) sendOrgsListFailedInvitations(ctx context.Context, params OrgsL u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -50919,7 +50920,7 @@ func (c *Client) OrgsListForAuthenticatedUser(ctx context.Context, params OrgsLi func (c *Client) sendOrgsListForAuthenticatedUser(ctx context.Context, params OrgsListForAuthenticatedUserParams) (res OrgsListForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/list-for-authenticated-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/orgs"), } @@ -50995,7 +50996,7 @@ func (c *Client) sendOrgsListForAuthenticatedUser(ctx context.Context, params Or u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -51034,7 +51035,7 @@ func (c *Client) OrgsListForUser(ctx context.Context, params OrgsListForUserPara func (c *Client) sendOrgsListForUser(ctx context.Context, params OrgsListForUserParams) (res *OrgsListForUserOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/list-for-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/users/{username}/orgs"), } @@ -51129,7 +51130,7 @@ func (c *Client) sendOrgsListForUser(ctx context.Context, params OrgsListForUser u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -51164,7 +51165,7 @@ func (c *Client) OrgsListInvitationTeams(ctx context.Context, params OrgsListInv func (c *Client) sendOrgsListInvitationTeams(ctx context.Context, params OrgsListInvitationTeamsParams) (res OrgsListInvitationTeamsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/list-invitation-teams"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/invitations/{invitation_id}/teams"), } @@ -51278,7 +51279,7 @@ func (c *Client) sendOrgsListInvitationTeams(ctx context.Context, params OrgsLis u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -51313,7 +51314,7 @@ func (c *Client) OrgsListMembers(ctx context.Context, params OrgsListMembersPara func (c *Client) sendOrgsListMembers(ctx context.Context, params OrgsListMembersParams) (res OrgsListMembersRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/list-members"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/members"), } @@ -51442,7 +51443,7 @@ func (c *Client) sendOrgsListMembers(ctx context.Context, params OrgsListMembers u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -51476,7 +51477,7 @@ func (c *Client) OrgsListMembershipsForAuthenticatedUser(ctx context.Context, pa func (c *Client) sendOrgsListMembershipsForAuthenticatedUser(ctx context.Context, params OrgsListMembershipsForAuthenticatedUserParams) (res OrgsListMembershipsForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/list-memberships-for-authenticated-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/memberships/orgs"), } @@ -51569,7 +51570,7 @@ func (c *Client) sendOrgsListMembershipsForAuthenticatedUser(ctx context.Context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -51603,7 +51604,7 @@ func (c *Client) OrgsListOutsideCollaborators(ctx context.Context, params OrgsLi func (c *Client) sendOrgsListOutsideCollaborators(ctx context.Context, params OrgsListOutsideCollaboratorsParams) (res *OrgsListOutsideCollaboratorsOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/list-outside-collaborators"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/outside_collaborators"), } @@ -51715,7 +51716,7 @@ func (c *Client) sendOrgsListOutsideCollaborators(ctx context.Context, params Or u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -51752,7 +51753,7 @@ func (c *Client) OrgsListPendingInvitations(ctx context.Context, params OrgsList func (c *Client) sendOrgsListPendingInvitations(ctx context.Context, params OrgsListPendingInvitationsParams) (res OrgsListPendingInvitationsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/list-pending-invitations"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/invitations"), } @@ -51847,7 +51848,7 @@ func (c *Client) sendOrgsListPendingInvitations(ctx context.Context, params Orgs u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -51881,7 +51882,7 @@ func (c *Client) OrgsListPublicMembers(ctx context.Context, params OrgsListPubli func (c *Client) sendOrgsListPublicMembers(ctx context.Context, params OrgsListPublicMembersParams) (res *OrgsListPublicMembersOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/list-public-members"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/public_members"), } @@ -51976,7 +51977,7 @@ func (c *Client) sendOrgsListPublicMembers(ctx context.Context, params OrgsListP u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -52017,7 +52018,7 @@ func (c *Client) OrgsListSamlSSOAuthorizations(ctx context.Context, params OrgsL func (c *Client) sendOrgsListSamlSSOAuthorizations(ctx context.Context, params OrgsListSamlSSOAuthorizationsParams) (res []CredentialAuthorization, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/list-saml-sso-authorizations"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/credential-authorizations"), } @@ -52074,7 +52075,7 @@ func (c *Client) sendOrgsListSamlSSOAuthorizations(ctx context.Context, params O uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -52108,7 +52109,7 @@ func (c *Client) OrgsListWebhookDeliveries(ctx context.Context, params OrgsListW func (c *Client) sendOrgsListWebhookDeliveries(ctx context.Context, params OrgsListWebhookDeliveriesParams) (res OrgsListWebhookDeliveriesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/list-webhook-deliveries"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/hooks/{hook_id}/deliveries"), } @@ -52222,7 +52223,7 @@ func (c *Client) sendOrgsListWebhookDeliveries(ctx context.Context, params OrgsL u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -52256,7 +52257,7 @@ func (c *Client) OrgsListWebhooks(ctx context.Context, params OrgsListWebhooksPa func (c *Client) sendOrgsListWebhooks(ctx context.Context, params OrgsListWebhooksParams) (res OrgsListWebhooksRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/list-webhooks"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/hooks"), } @@ -52351,7 +52352,7 @@ func (c *Client) sendOrgsListWebhooks(ctx context.Context, params OrgsListWebhoo u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -52386,7 +52387,7 @@ func (c *Client) OrgsPingWebhook(ctx context.Context, params OrgsPingWebhookPara func (c *Client) sendOrgsPingWebhook(ctx context.Context, params OrgsPingWebhookParams) (res OrgsPingWebhookRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/ping-webhook"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/orgs/{org}/hooks/{hook_id}/pings"), } @@ -52462,7 +52463,7 @@ func (c *Client) sendOrgsPingWebhook(ctx context.Context, params OrgsPingWebhook uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -52496,7 +52497,7 @@ func (c *Client) OrgsRedeliverWebhookDelivery(ctx context.Context, params OrgsRe func (c *Client) sendOrgsRedeliverWebhookDelivery(ctx context.Context, params OrgsRedeliverWebhookDeliveryParams) (res OrgsRedeliverWebhookDeliveryRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/redeliver-webhook-delivery"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"), } @@ -52591,7 +52592,7 @@ func (c *Client) sendOrgsRedeliverWebhookDelivery(ctx context.Context, params Or uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -52626,7 +52627,7 @@ func (c *Client) OrgsRemoveMember(ctx context.Context, params OrgsRemoveMemberPa func (c *Client) sendOrgsRemoveMember(ctx context.Context, params OrgsRemoveMemberParams) (res OrgsRemoveMemberRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/remove-member"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/orgs/{org}/members/{username}"), } @@ -52701,7 +52702,7 @@ func (c *Client) sendOrgsRemoveMember(ctx context.Context, params OrgsRemoveMemb uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -52739,7 +52740,7 @@ func (c *Client) OrgsRemoveMembershipForUser(ctx context.Context, params OrgsRem func (c *Client) sendOrgsRemoveMembershipForUser(ctx context.Context, params OrgsRemoveMembershipForUserParams) (res OrgsRemoveMembershipForUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/remove-membership-for-user"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/orgs/{org}/memberships/{username}"), } @@ -52814,7 +52815,7 @@ func (c *Client) sendOrgsRemoveMembershipForUser(ctx context.Context, params Org uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -52848,7 +52849,7 @@ func (c *Client) OrgsRemoveOutsideCollaborator(ctx context.Context, params OrgsR func (c *Client) sendOrgsRemoveOutsideCollaborator(ctx context.Context, params OrgsRemoveOutsideCollaboratorParams) (res OrgsRemoveOutsideCollaboratorRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/remove-outside-collaborator"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/orgs/{org}/outside_collaborators/{username}"), } @@ -52923,7 +52924,7 @@ func (c *Client) sendOrgsRemoveOutsideCollaborator(ctx context.Context, params O uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -52957,7 +52958,7 @@ func (c *Client) OrgsRemovePublicMembershipForAuthenticatedUser(ctx context.Cont func (c *Client) sendOrgsRemovePublicMembershipForAuthenticatedUser(ctx context.Context, params OrgsRemovePublicMembershipForAuthenticatedUserParams) (res *OrgsRemovePublicMembershipForAuthenticatedUserNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/remove-public-membership-for-authenticated-user"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/orgs/{org}/public_members/{username}"), } @@ -53032,7 +53033,7 @@ func (c *Client) sendOrgsRemovePublicMembershipForAuthenticatedUser(ctx context. uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -53072,7 +53073,7 @@ func (c *Client) OrgsRemoveSamlSSOAuthorization(ctx context.Context, params Orgs func (c *Client) sendOrgsRemoveSamlSSOAuthorization(ctx context.Context, params OrgsRemoveSamlSSOAuthorizationParams) (res OrgsRemoveSamlSSOAuthorizationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/remove-saml-sso-authorization"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/orgs/{org}/credential-authorizations/{credential_id}"), } @@ -53147,7 +53148,7 @@ func (c *Client) sendOrgsRemoveSamlSSOAuthorization(ctx context.Context, params uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -53194,7 +53195,7 @@ func (c *Client) OrgsSetMembershipForUser(ctx context.Context, request OptOrgsSe func (c *Client) sendOrgsSetMembershipForUser(ctx context.Context, request OptOrgsSetMembershipForUserReq, params OrgsSetMembershipForUserParams) (res OrgsSetMembershipForUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/set-membership-for-user"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/orgs/{org}/memberships/{username}"), } // Validate request before sending. @@ -53285,7 +53286,7 @@ func (c *Client) sendOrgsSetMembershipForUser(ctx context.Context, request OptOr uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -53326,7 +53327,7 @@ func (c *Client) OrgsSetPublicMembershipForAuthenticatedUser(ctx context.Context func (c *Client) sendOrgsSetPublicMembershipForAuthenticatedUser(ctx context.Context, params OrgsSetPublicMembershipForAuthenticatedUserParams) (res OrgsSetPublicMembershipForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/set-public-membership-for-authenticated-user"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/orgs/{org}/public_members/{username}"), } @@ -53401,7 +53402,7 @@ func (c *Client) sendOrgsSetPublicMembershipForAuthenticatedUser(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -53435,7 +53436,7 @@ func (c *Client) OrgsUnblockUser(ctx context.Context, params OrgsUnblockUserPara func (c *Client) sendOrgsUnblockUser(ctx context.Context, params OrgsUnblockUserParams) (res *OrgsUnblockUserNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/unblock-user"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/orgs/{org}/blocks/{username}"), } @@ -53510,7 +53511,7 @@ func (c *Client) sendOrgsUnblockUser(ctx context.Context, params OrgsUnblockUser uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -53544,7 +53545,7 @@ func (c *Client) OrgsUpdateMembershipForAuthenticatedUser(ctx context.Context, r func (c *Client) sendOrgsUpdateMembershipForAuthenticatedUser(ctx context.Context, request *OrgsUpdateMembershipForAuthenticatedUserReq, params OrgsUpdateMembershipForAuthenticatedUserParams) (res OrgsUpdateMembershipForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/update-membership-for-authenticated-user"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/user/memberships/orgs/{org}"), } // Validate request before sending. @@ -53609,7 +53610,7 @@ func (c *Client) sendOrgsUpdateMembershipForAuthenticatedUser(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -53650,7 +53651,7 @@ func (c *Client) OrgsUpdateWebhook(ctx context.Context, request OptOrgsUpdateWeb func (c *Client) sendOrgsUpdateWebhook(ctx context.Context, request OptOrgsUpdateWebhookReq, params OrgsUpdateWebhookParams) (res OrgsUpdateWebhookRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/update-webhook"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/orgs/{org}/hooks/{hook_id}"), } // Validate request before sending. @@ -53741,7 +53742,7 @@ func (c *Client) sendOrgsUpdateWebhook(ctx context.Context, request OptOrgsUpdat uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -53782,7 +53783,7 @@ func (c *Client) OrgsUpdateWebhookConfigForOrg(ctx context.Context, request OptO func (c *Client) sendOrgsUpdateWebhookConfigForOrg(ctx context.Context, request OptOrgsUpdateWebhookConfigForOrgReq, params OrgsUpdateWebhookConfigForOrgParams) (res *WebhookConfig, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("orgs/update-webhook-config-for-org"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/orgs/{org}/hooks/{hook_id}/config"), } // Validate request before sending. @@ -53874,7 +53875,7 @@ func (c *Client) sendOrgsUpdateWebhookConfigForOrg(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -53916,7 +53917,7 @@ func (c *Client) PackagesDeletePackageForAuthenticatedUser(ctx context.Context, func (c *Client) sendPackagesDeletePackageForAuthenticatedUser(ctx context.Context, params PackagesDeletePackageForAuthenticatedUserParams) (res PackagesDeletePackageForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("packages/delete-package-for-authenticated-user"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/user/packages/{package_type}/{package_name}"), } @@ -53991,7 +53992,7 @@ func (c *Client) sendPackagesDeletePackageForAuthenticatedUser(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -54032,7 +54033,7 @@ func (c *Client) PackagesDeletePackageForOrg(ctx context.Context, params Package func (c *Client) sendPackagesDeletePackageForOrg(ctx context.Context, params PackagesDeletePackageForOrgParams) (res PackagesDeletePackageForOrgRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("packages/delete-package-for-org"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/orgs/{org}/packages/{package_type}/{package_name}"), } @@ -54126,7 +54127,7 @@ func (c *Client) sendPackagesDeletePackageForOrg(ctx context.Context, params Pac uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -54167,7 +54168,7 @@ func (c *Client) PackagesDeletePackageForUser(ctx context.Context, params Packag func (c *Client) sendPackagesDeletePackageForUser(ctx context.Context, params PackagesDeletePackageForUserParams) (res PackagesDeletePackageForUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("packages/delete-package-for-user"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/users/{username}/packages/{package_type}/{package_name}"), } @@ -54261,7 +54262,7 @@ func (c *Client) sendPackagesDeletePackageForUser(ctx context.Context, params Pa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -54300,7 +54301,7 @@ func (c *Client) PackagesDeletePackageVersionForAuthenticatedUser(ctx context.Co func (c *Client) sendPackagesDeletePackageVersionForAuthenticatedUser(ctx context.Context, params PackagesDeletePackageVersionForAuthenticatedUserParams) (res PackagesDeletePackageVersionForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("packages/delete-package-version-for-authenticated-user"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/user/packages/{package_type}/{package_name}/versions/{package_version_id}"), } @@ -54394,7 +54395,7 @@ func (c *Client) sendPackagesDeletePackageVersionForAuthenticatedUser(ctx contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -54435,7 +54436,7 @@ func (c *Client) PackagesDeletePackageVersionForOrg(ctx context.Context, params func (c *Client) sendPackagesDeletePackageVersionForOrg(ctx context.Context, params PackagesDeletePackageVersionForOrgParams) (res PackagesDeletePackageVersionForOrgRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("packages/delete-package-version-for-org"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"), } @@ -54548,7 +54549,7 @@ func (c *Client) sendPackagesDeletePackageVersionForOrg(ctx context.Context, par uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -54589,7 +54590,7 @@ func (c *Client) PackagesDeletePackageVersionForUser(ctx context.Context, params func (c *Client) sendPackagesDeletePackageVersionForUser(ctx context.Context, params PackagesDeletePackageVersionForUserParams) (res PackagesDeletePackageVersionForUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("packages/delete-package-version-for-user"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"), } @@ -54702,7 +54703,7 @@ func (c *Client) sendPackagesDeletePackageVersionForUser(ctx context.Context, pa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -54738,7 +54739,7 @@ func (c *Client) PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser func (c *Client) sendPackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser(ctx context.Context, params PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserParams) (res PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("packages/get-all-package-versions-for-package-owned-by-authenticated-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/packages/{package_type}/{package_name}/versions"), } @@ -54869,7 +54870,7 @@ func (c *Client) sendPackagesGetAllPackageVersionsForPackageOwnedByAuthenticated u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -54905,7 +54906,7 @@ func (c *Client) PackagesGetAllPackageVersionsForPackageOwnedByOrg(ctx context.C func (c *Client) sendPackagesGetAllPackageVersionsForPackageOwnedByOrg(ctx context.Context, params PackagesGetAllPackageVersionsForPackageOwnedByOrgParams) (res PackagesGetAllPackageVersionsForPackageOwnedByOrgRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("packages/get-all-package-versions-for-package-owned-by-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/packages/{package_type}/{package_name}/versions"), } @@ -55055,7 +55056,7 @@ func (c *Client) sendPackagesGetAllPackageVersionsForPackageOwnedByOrg(ctx conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -55091,7 +55092,7 @@ func (c *Client) PackagesGetAllPackageVersionsForPackageOwnedByUser(ctx context. func (c *Client) sendPackagesGetAllPackageVersionsForPackageOwnedByUser(ctx context.Context, params PackagesGetAllPackageVersionsForPackageOwnedByUserParams) (res PackagesGetAllPackageVersionsForPackageOwnedByUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("packages/get-all-package-versions-for-package-owned-by-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/users/{username}/packages/{package_type}/{package_name}/versions"), } @@ -55186,7 +55187,7 @@ func (c *Client) sendPackagesGetAllPackageVersionsForPackageOwnedByUser(ctx cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -55222,7 +55223,7 @@ func (c *Client) PackagesGetPackageForAuthenticatedUser(ctx context.Context, par func (c *Client) sendPackagesGetPackageForAuthenticatedUser(ctx context.Context, params PackagesGetPackageForAuthenticatedUserParams) (res *Package, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("packages/get-package-for-authenticated-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/packages/{package_type}/{package_name}"), } @@ -55297,7 +55298,7 @@ func (c *Client) sendPackagesGetPackageForAuthenticatedUser(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -55333,7 +55334,7 @@ func (c *Client) PackagesGetPackageForOrganization(ctx context.Context, params P func (c *Client) sendPackagesGetPackageForOrganization(ctx context.Context, params PackagesGetPackageForOrganizationParams) (res *Package, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("packages/get-package-for-organization"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/packages/{package_type}/{package_name}"), } @@ -55427,7 +55428,7 @@ func (c *Client) sendPackagesGetPackageForOrganization(ctx context.Context, para uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -55463,7 +55464,7 @@ func (c *Client) PackagesGetPackageForUser(ctx context.Context, params PackagesG func (c *Client) sendPackagesGetPackageForUser(ctx context.Context, params PackagesGetPackageForUserParams) (res *Package, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("packages/get-package-for-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/users/{username}/packages/{package_type}/{package_name}"), } @@ -55557,7 +55558,7 @@ func (c *Client) sendPackagesGetPackageForUser(ctx context.Context, params Packa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -55593,7 +55594,7 @@ func (c *Client) PackagesGetPackageVersionForAuthenticatedUser(ctx context.Conte func (c *Client) sendPackagesGetPackageVersionForAuthenticatedUser(ctx context.Context, params PackagesGetPackageVersionForAuthenticatedUserParams) (res *PackageVersion, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("packages/get-package-version-for-authenticated-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/packages/{package_type}/{package_name}/versions/{package_version_id}"), } @@ -55687,7 +55688,7 @@ func (c *Client) sendPackagesGetPackageVersionForAuthenticatedUser(ctx context.C uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -55723,7 +55724,7 @@ func (c *Client) PackagesGetPackageVersionForOrganization(ctx context.Context, p func (c *Client) sendPackagesGetPackageVersionForOrganization(ctx context.Context, params PackagesGetPackageVersionForOrganizationParams) (res *PackageVersion, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("packages/get-package-version-for-organization"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"), } @@ -55836,7 +55837,7 @@ func (c *Client) sendPackagesGetPackageVersionForOrganization(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -55873,7 +55874,7 @@ func (c *Client) PackagesGetPackageVersionForUser(ctx context.Context, params Pa func (c *Client) sendPackagesGetPackageVersionForUser(ctx context.Context, params PackagesGetPackageVersionForUserParams) (res *PackageVersion, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("packages/get-package-version-for-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"), } @@ -55986,7 +55987,7 @@ func (c *Client) sendPackagesGetPackageVersionForUser(ctx context.Context, param uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -56022,7 +56023,7 @@ func (c *Client) PackagesListPackagesForAuthenticatedUser(ctx context.Context, p func (c *Client) sendPackagesListPackagesForAuthenticatedUser(ctx context.Context, params PackagesListPackagesForAuthenticatedUserParams) (res []Package, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("packages/list-packages-for-authenticated-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/packages"), } @@ -56095,7 +56096,7 @@ func (c *Client) sendPackagesListPackagesForAuthenticatedUser(ctx context.Contex u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -56131,7 +56132,7 @@ func (c *Client) PackagesListPackagesForOrganization(ctx context.Context, params func (c *Client) sendPackagesListPackagesForOrganization(ctx context.Context, params PackagesListPackagesForOrganizationParams) (res PackagesListPackagesForOrganizationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("packages/list-packages-for-organization"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/packages"), } @@ -56223,7 +56224,7 @@ func (c *Client) sendPackagesListPackagesForOrganization(ctx context.Context, pa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -56259,7 +56260,7 @@ func (c *Client) PackagesListPackagesForUser(ctx context.Context, params Package func (c *Client) sendPackagesListPackagesForUser(ctx context.Context, params PackagesListPackagesForUserParams) (res PackagesListPackagesForUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("packages/list-packages-for-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/users/{username}/packages"), } @@ -56351,7 +56352,7 @@ func (c *Client) sendPackagesListPackagesForUser(ctx context.Context, params Pac u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -56394,7 +56395,7 @@ func (c *Client) PackagesRestorePackageForAuthenticatedUser(ctx context.Context, func (c *Client) sendPackagesRestorePackageForAuthenticatedUser(ctx context.Context, params PackagesRestorePackageForAuthenticatedUserParams) (res PackagesRestorePackageForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("packages/restore-package-for-authenticated-user"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/user/packages/{package_type}/{package_name}/restore"), } @@ -56491,7 +56492,7 @@ func (c *Client) sendPackagesRestorePackageForAuthenticatedUser(ctx context.Cont u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -56536,7 +56537,7 @@ func (c *Client) PackagesRestorePackageForOrg(ctx context.Context, params Packag func (c *Client) sendPackagesRestorePackageForOrg(ctx context.Context, params PackagesRestorePackageForOrgParams) (res PackagesRestorePackageForOrgRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("packages/restore-package-for-org"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/orgs/{org}/packages/{package_type}/{package_name}/restore"), } @@ -56652,7 +56653,7 @@ func (c *Client) sendPackagesRestorePackageForOrg(ctx context.Context, params Pa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -56697,7 +56698,7 @@ func (c *Client) PackagesRestorePackageForUser(ctx context.Context, params Packa func (c *Client) sendPackagesRestorePackageForUser(ctx context.Context, params PackagesRestorePackageForUserParams) (res PackagesRestorePackageForUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("packages/restore-package-for-user"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/users/{username}/packages/{package_type}/{package_name}/restore"), } @@ -56813,7 +56814,7 @@ func (c *Client) sendPackagesRestorePackageForUser(ctx context.Context, params P u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -56856,7 +56857,7 @@ func (c *Client) PackagesRestorePackageVersionForAuthenticatedUser(ctx context.C func (c *Client) sendPackagesRestorePackageVersionForAuthenticatedUser(ctx context.Context, params PackagesRestorePackageVersionForAuthenticatedUserParams) (res PackagesRestorePackageVersionForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("packages/restore-package-version-for-authenticated-user"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"), } @@ -56951,7 +56952,7 @@ func (c *Client) sendPackagesRestorePackageVersionForAuthenticatedUser(ctx conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -56996,7 +56997,7 @@ func (c *Client) PackagesRestorePackageVersionForOrg(ctx context.Context, params func (c *Client) sendPackagesRestorePackageVersionForOrg(ctx context.Context, params PackagesRestorePackageVersionForOrgParams) (res PackagesRestorePackageVersionForOrgRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("packages/restore-package-version-for-org"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"), } @@ -57110,7 +57111,7 @@ func (c *Client) sendPackagesRestorePackageVersionForOrg(ctx context.Context, pa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -57155,7 +57156,7 @@ func (c *Client) PackagesRestorePackageVersionForUser(ctx context.Context, param func (c *Client) sendPackagesRestorePackageVersionForUser(ctx context.Context, params PackagesRestorePackageVersionForUserParams) (res PackagesRestorePackageVersionForUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("packages/restore-package-version-for-user"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"), } @@ -57269,7 +57270,7 @@ func (c *Client) sendPackagesRestorePackageVersionForUser(ctx context.Context, p uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -57304,7 +57305,7 @@ func (c *Client) ProjectsAddCollaborator(ctx context.Context, request OptNilProj func (c *Client) sendProjectsAddCollaborator(ctx context.Context, request OptNilProjectsAddCollaboratorReq, params ProjectsAddCollaboratorParams) (res ProjectsAddCollaboratorRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("projects/add-collaborator"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/projects/{project_id}/collaborators/{username}"), } // Validate request before sending. @@ -57395,7 +57396,7 @@ func (c *Client) sendProjectsAddCollaborator(ctx context.Context, request OptNil uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -57432,7 +57433,7 @@ func (c *Client) ProjectsCreateColumn(ctx context.Context, request *ProjectsCrea func (c *Client) sendProjectsCreateColumn(ctx context.Context, request *ProjectsCreateColumnReq, params ProjectsCreateColumnParams) (res ProjectsCreateColumnRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("projects/create-column"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/projects/{project_id}/columns"), } @@ -57489,7 +57490,7 @@ func (c *Client) sendProjectsCreateColumn(ctx context.Context, request *Projects uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -57526,7 +57527,7 @@ func (c *Client) ProjectsCreateForAuthenticatedUser(ctx context.Context, request func (c *Client) sendProjectsCreateForAuthenticatedUser(ctx context.Context, request *ProjectsCreateForAuthenticatedUserReq) (res ProjectsCreateForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("projects/create-for-authenticated-user"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/user/projects"), } @@ -57564,7 +57565,7 @@ func (c *Client) sendProjectsCreateForAuthenticatedUser(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -57603,7 +57604,7 @@ func (c *Client) ProjectsCreateForOrg(ctx context.Context, request *ProjectsCrea func (c *Client) sendProjectsCreateForOrg(ctx context.Context, request *ProjectsCreateForOrgReq, params ProjectsCreateForOrgParams) (res ProjectsCreateForOrgRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("projects/create-for-org"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/orgs/{org}/projects"), } @@ -57660,7 +57661,7 @@ func (c *Client) sendProjectsCreateForOrg(ctx context.Context, request *Projects uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -57699,7 +57700,7 @@ func (c *Client) ProjectsCreateForRepo(ctx context.Context, request *ProjectsCre func (c *Client) sendProjectsCreateForRepo(ctx context.Context, request *ProjectsCreateForRepoReq, params ProjectsCreateForRepoParams) (res ProjectsCreateForRepoRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("projects/create-for-repo"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/projects"), } @@ -57775,7 +57776,7 @@ func (c *Client) sendProjectsCreateForRepo(ctx context.Context, request *Project uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -57812,7 +57813,7 @@ func (c *Client) ProjectsDelete(ctx context.Context, params ProjectsDeleteParams func (c *Client) sendProjectsDelete(ctx context.Context, params ProjectsDeleteParams) (res ProjectsDeleteRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("projects/delete"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/projects/{project_id}"), } @@ -57868,7 +57869,7 @@ func (c *Client) sendProjectsDelete(ctx context.Context, params ProjectsDeletePa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -57902,7 +57903,7 @@ func (c *Client) ProjectsDeleteCard(ctx context.Context, params ProjectsDeleteCa func (c *Client) sendProjectsDeleteCard(ctx context.Context, params ProjectsDeleteCardParams) (res ProjectsDeleteCardRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("projects/delete-card"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/projects/columns/cards/{card_id}"), } @@ -57958,7 +57959,7 @@ func (c *Client) sendProjectsDeleteCard(ctx context.Context, params ProjectsDele uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -57992,7 +57993,7 @@ func (c *Client) ProjectsDeleteColumn(ctx context.Context, params ProjectsDelete func (c *Client) sendProjectsDeleteColumn(ctx context.Context, params ProjectsDeleteColumnParams) (res ProjectsDeleteColumnRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("projects/delete-column"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/projects/columns/{column_id}"), } @@ -58048,7 +58049,7 @@ func (c *Client) sendProjectsDeleteColumn(ctx context.Context, params ProjectsDe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -58084,7 +58085,7 @@ func (c *Client) ProjectsGet(ctx context.Context, params ProjectsGetParams) (Pro func (c *Client) sendProjectsGet(ctx context.Context, params ProjectsGetParams) (res ProjectsGetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("projects/get"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/projects/{project_id}"), } @@ -58140,7 +58141,7 @@ func (c *Client) sendProjectsGet(ctx context.Context, params ProjectsGetParams) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -58174,7 +58175,7 @@ func (c *Client) ProjectsGetCard(ctx context.Context, params ProjectsGetCardPara func (c *Client) sendProjectsGetCard(ctx context.Context, params ProjectsGetCardParams) (res ProjectsGetCardRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("projects/get-card"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/projects/columns/cards/{card_id}"), } @@ -58230,7 +58231,7 @@ func (c *Client) sendProjectsGetCard(ctx context.Context, params ProjectsGetCard uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -58264,7 +58265,7 @@ func (c *Client) ProjectsGetColumn(ctx context.Context, params ProjectsGetColumn func (c *Client) sendProjectsGetColumn(ctx context.Context, params ProjectsGetColumnParams) (res ProjectsGetColumnRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("projects/get-column"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/projects/columns/{column_id}"), } @@ -58320,7 +58321,7 @@ func (c *Client) sendProjectsGetColumn(ctx context.Context, params ProjectsGetCo uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -58356,7 +58357,7 @@ func (c *Client) ProjectsGetPermissionForUser(ctx context.Context, params Projec func (c *Client) sendProjectsGetPermissionForUser(ctx context.Context, params ProjectsGetPermissionForUserParams) (res ProjectsGetPermissionForUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("projects/get-permission-for-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/projects/{project_id}/collaborators/{username}/permission"), } @@ -58432,7 +58433,7 @@ func (c *Client) sendProjectsGetPermissionForUser(ctx context.Context, params Pr uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -58466,7 +58467,7 @@ func (c *Client) ProjectsListCards(ctx context.Context, params ProjectsListCards func (c *Client) sendProjectsListCards(ctx context.Context, params ProjectsListCardsParams) (res ProjectsListCardsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("projects/list-cards"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/projects/columns/{column_id}/cards"), } @@ -58578,7 +58579,7 @@ func (c *Client) sendProjectsListCards(ctx context.Context, params ProjectsListC u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -58616,7 +58617,7 @@ func (c *Client) ProjectsListCollaborators(ctx context.Context, params ProjectsL func (c *Client) sendProjectsListCollaborators(ctx context.Context, params ProjectsListCollaboratorsParams) (res ProjectsListCollaboratorsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("projects/list-collaborators"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/projects/{project_id}/collaborators"), } @@ -58728,7 +58729,7 @@ func (c *Client) sendProjectsListCollaborators(ctx context.Context, params Proje u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -58762,7 +58763,7 @@ func (c *Client) ProjectsListColumns(ctx context.Context, params ProjectsListCol func (c *Client) sendProjectsListColumns(ctx context.Context, params ProjectsListColumnsParams) (res ProjectsListColumnsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("projects/list-columns"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/projects/{project_id}/columns"), } @@ -58857,7 +58858,7 @@ func (c *Client) sendProjectsListColumns(ctx context.Context, params ProjectsLis u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -58893,7 +58894,7 @@ func (c *Client) ProjectsListForOrg(ctx context.Context, params ProjectsListForO func (c *Client) sendProjectsListForOrg(ctx context.Context, params ProjectsListForOrgParams) (res ProjectsListForOrgRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("projects/list-for-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/projects"), } @@ -59005,7 +59006,7 @@ func (c *Client) sendProjectsListForOrg(ctx context.Context, params ProjectsList u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -59041,7 +59042,7 @@ func (c *Client) ProjectsListForRepo(ctx context.Context, params ProjectsListFor func (c *Client) sendProjectsListForRepo(ctx context.Context, params ProjectsListForRepoParams) (res ProjectsListForRepoRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("projects/list-for-repo"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/projects"), } @@ -59172,7 +59173,7 @@ func (c *Client) sendProjectsListForRepo(ctx context.Context, params ProjectsLis u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -59206,7 +59207,7 @@ func (c *Client) ProjectsListForUser(ctx context.Context, params ProjectsListFor func (c *Client) sendProjectsListForUser(ctx context.Context, params ProjectsListForUserParams) (res ProjectsListForUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("projects/list-for-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/users/{username}/projects"), } @@ -59318,7 +59319,7 @@ func (c *Client) sendProjectsListForUser(ctx context.Context, params ProjectsLis u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -59352,7 +59353,7 @@ func (c *Client) ProjectsMoveCard(ctx context.Context, request *ProjectsMoveCard func (c *Client) sendProjectsMoveCard(ctx context.Context, request *ProjectsMoveCardReq, params ProjectsMoveCardParams) (res ProjectsMoveCardRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("projects/move-card"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/projects/columns/cards/{card_id}/moves"), } // Validate request before sending. @@ -59418,7 +59419,7 @@ func (c *Client) sendProjectsMoveCard(ctx context.Context, request *ProjectsMove uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -59455,7 +59456,7 @@ func (c *Client) ProjectsMoveColumn(ctx context.Context, request *ProjectsMoveCo func (c *Client) sendProjectsMoveColumn(ctx context.Context, request *ProjectsMoveColumnReq, params ProjectsMoveColumnParams) (res ProjectsMoveColumnRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("projects/move-column"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/projects/columns/{column_id}/moves"), } // Validate request before sending. @@ -59521,7 +59522,7 @@ func (c *Client) sendProjectsMoveColumn(ctx context.Context, request *ProjectsMo uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -59559,7 +59560,7 @@ func (c *Client) ProjectsRemoveCollaborator(ctx context.Context, params Projects func (c *Client) sendProjectsRemoveCollaborator(ctx context.Context, params ProjectsRemoveCollaboratorParams) (res ProjectsRemoveCollaboratorRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("projects/remove-collaborator"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/projects/{project_id}/collaborators/{username}"), } @@ -59634,7 +59635,7 @@ func (c *Client) sendProjectsRemoveCollaborator(ctx context.Context, params Proj uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -59670,7 +59671,7 @@ func (c *Client) ProjectsUpdate(ctx context.Context, request OptProjectsUpdateRe func (c *Client) sendProjectsUpdate(ctx context.Context, request OptProjectsUpdateReq, params ProjectsUpdateParams) (res ProjectsUpdateRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("projects/update"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/projects/{project_id}"), } // Validate request before sending. @@ -59742,7 +59743,7 @@ func (c *Client) sendProjectsUpdate(ctx context.Context, request OptProjectsUpda uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -59779,7 +59780,7 @@ func (c *Client) ProjectsUpdateCard(ctx context.Context, request OptProjectsUpda func (c *Client) sendProjectsUpdateCard(ctx context.Context, request OptProjectsUpdateCardReq, params ProjectsUpdateCardParams) (res ProjectsUpdateCardRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("projects/update-card"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/projects/columns/cards/{card_id}"), } @@ -59835,7 +59836,7 @@ func (c *Client) sendProjectsUpdateCard(ctx context.Context, request OptProjects uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -59872,7 +59873,7 @@ func (c *Client) ProjectsUpdateColumn(ctx context.Context, request *ProjectsUpda func (c *Client) sendProjectsUpdateColumn(ctx context.Context, request *ProjectsUpdateColumnReq, params ProjectsUpdateColumnParams) (res ProjectsUpdateColumnRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("projects/update-column"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/projects/columns/{column_id}"), } @@ -59928,7 +59929,7 @@ func (c *Client) sendProjectsUpdateColumn(ctx context.Context, request *Projects uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -59965,7 +59966,7 @@ func (c *Client) PullsCheckIfMerged(ctx context.Context, params PullsCheckIfMerg func (c *Client) sendPullsCheckIfMerged(ctx context.Context, params PullsCheckIfMergedParams) (res PullsCheckIfMergedRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pulls/check-if-merged"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls/{pull_number}/merge"), } @@ -60060,7 +60061,7 @@ func (c *Client) sendPullsCheckIfMerged(ctx context.Context, params PullsCheckIf uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -60109,7 +60110,7 @@ func (c *Client) PullsCreate(ctx context.Context, request *PullsCreateReq, param func (c *Client) sendPullsCreate(ctx context.Context, request *PullsCreateReq, params PullsCreateParams) (res PullsCreateRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pulls/create"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls"), } @@ -60185,7 +60186,7 @@ func (c *Client) sendPullsCreate(ctx context.Context, request *PullsCreateReq, p uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -60231,7 +60232,7 @@ func (c *Client) PullsCreateReplyForReviewComment(ctx context.Context, request * func (c *Client) sendPullsCreateReplyForReviewComment(ctx context.Context, request *PullsCreateReplyForReviewCommentReq, params PullsCreateReplyForReviewCommentParams) (res PullsCreateReplyForReviewCommentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pulls/create-reply-for-review-comment"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"), } @@ -60345,7 +60346,7 @@ func (c *Client) sendPullsCreateReplyForReviewComment(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -60400,7 +60401,7 @@ func (c *Client) PullsCreateReview(ctx context.Context, request OptPullsCreateRe func (c *Client) sendPullsCreateReview(ctx context.Context, request OptPullsCreateReviewReq, params PullsCreateReviewParams) (res PullsCreateReviewRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pulls/create-review"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls/{pull_number}/reviews"), } // Validate request before sending. @@ -60511,7 +60512,7 @@ func (c *Client) sendPullsCreateReview(ctx context.Context, request OptPullsCrea uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -60567,7 +60568,7 @@ func (c *Client) PullsCreateReviewComment(ctx context.Context, request *PullsCre func (c *Client) sendPullsCreateReviewComment(ctx context.Context, request *PullsCreateReviewCommentReq, params PullsCreateReviewCommentParams) (res PullsCreateReviewCommentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pulls/create-review-comment"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls/{pull_number}/comments"), } // Validate request before sending. @@ -60671,7 +60672,7 @@ func (c *Client) sendPullsCreateReviewComment(ctx context.Context, request *Pull uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -60708,7 +60709,7 @@ func (c *Client) PullsDeletePendingReview(ctx context.Context, params PullsDelet func (c *Client) sendPullsDeletePendingReview(ctx context.Context, params PullsDeletePendingReviewParams) (res PullsDeletePendingReviewRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pulls/delete-pending-review"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"), } @@ -60821,7 +60822,7 @@ func (c *Client) sendPullsDeletePendingReview(ctx context.Context, params PullsD uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -60855,7 +60856,7 @@ func (c *Client) PullsDeleteReviewComment(ctx context.Context, params PullsDelet func (c *Client) sendPullsDeleteReviewComment(ctx context.Context, params PullsDeleteReviewCommentParams) (res PullsDeleteReviewCommentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pulls/delete-review-comment"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls/comments/{comment_id}"), } @@ -60949,7 +60950,7 @@ func (c *Client) sendPullsDeleteReviewComment(ctx context.Context, params PullsD uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -60985,7 +60986,7 @@ func (c *Client) PullsDismissReview(ctx context.Context, request *PullsDismissRe func (c *Client) sendPullsDismissReview(ctx context.Context, request *PullsDismissReviewReq, params PullsDismissReviewParams) (res PullsDismissReviewRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pulls/dismiss-review"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"), } @@ -61099,7 +61100,7 @@ func (c *Client) sendPullsDismissReview(ctx context.Context, request *PullsDismi uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -61169,7 +61170,7 @@ func (c *Client) PullsGet(ctx context.Context, params PullsGetParams) (PullsGetR func (c *Client) sendPullsGet(ctx context.Context, params PullsGetParams) (res PullsGetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pulls/get"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls/{pull_number}"), } @@ -61263,7 +61264,7 @@ func (c *Client) sendPullsGet(ctx context.Context, params PullsGetParams) (res P uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -61297,7 +61298,7 @@ func (c *Client) PullsGetReview(ctx context.Context, params PullsGetReviewParams func (c *Client) sendPullsGetReview(ctx context.Context, params PullsGetReviewParams) (res PullsGetReviewRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pulls/get-review"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"), } @@ -61410,7 +61411,7 @@ func (c *Client) sendPullsGetReview(ctx context.Context, params PullsGetReviewPa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -61444,7 +61445,7 @@ func (c *Client) PullsGetReviewComment(ctx context.Context, params PullsGetRevie func (c *Client) sendPullsGetReviewComment(ctx context.Context, params PullsGetReviewCommentParams) (res PullsGetReviewCommentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pulls/get-review-comment"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls/comments/{comment_id}"), } @@ -61538,7 +61539,7 @@ func (c *Client) sendPullsGetReviewComment(ctx context.Context, params PullsGetR uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -61576,7 +61577,7 @@ func (c *Client) PullsList(ctx context.Context, params PullsListParams) (PullsLi func (c *Client) sendPullsList(ctx context.Context, params PullsListParams) (res PullsListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pulls/list"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls"), } @@ -61775,7 +61776,7 @@ func (c *Client) sendPullsList(ctx context.Context, params PullsListParams) (res u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -61809,7 +61810,7 @@ func (c *Client) PullsListCommentsForReview(ctx context.Context, params PullsLis func (c *Client) sendPullsListCommentsForReview(ctx context.Context, params PullsListCommentsForReviewParams) (res PullsListCommentsForReviewRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pulls/list-comments-for-review"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"), } @@ -61961,7 +61962,7 @@ func (c *Client) sendPullsListCommentsForReview(ctx context.Context, params Pull u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -61997,7 +61998,7 @@ func (c *Client) PullsListCommits(ctx context.Context, params PullsListCommitsPa func (c *Client) sendPullsListCommits(ctx context.Context, params PullsListCommitsParams) (res *PullsListCommitsOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pulls/list-commits"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls/{pull_number}/commits"), } @@ -62130,7 +62131,7 @@ func (c *Client) sendPullsListCommits(ctx context.Context, params PullsListCommi u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -62165,7 +62166,7 @@ func (c *Client) PullsListFiles(ctx context.Context, params PullsListFilesParams func (c *Client) sendPullsListFiles(ctx context.Context, params PullsListFilesParams) (res PullsListFilesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pulls/list-files"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls/{pull_number}/files"), } @@ -62298,7 +62299,7 @@ func (c *Client) sendPullsListFiles(ctx context.Context, params PullsListFilesPa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -62332,7 +62333,7 @@ func (c *Client) PullsListRequestedReviewers(ctx context.Context, params PullsLi func (c *Client) sendPullsListRequestedReviewers(ctx context.Context, params PullsListRequestedReviewersParams) (res *PullRequestReviewRequestHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pulls/list-requested-reviewers"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"), } @@ -62465,7 +62466,7 @@ func (c *Client) sendPullsListRequestedReviewers(ctx context.Context, params Pul u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -62500,7 +62501,7 @@ func (c *Client) PullsListReviewComments(ctx context.Context, params PullsListRe func (c *Client) sendPullsListReviewComments(ctx context.Context, params PullsListReviewCommentsParams) (res *PullsListReviewCommentsOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pulls/list-review-comments"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls/{pull_number}/comments"), } @@ -62684,7 +62685,7 @@ func (c *Client) sendPullsListReviewComments(ctx context.Context, params PullsLi u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -62719,7 +62720,7 @@ func (c *Client) PullsListReviewCommentsForRepo(ctx context.Context, params Pull func (c *Client) sendPullsListReviewCommentsForRepo(ctx context.Context, params PullsListReviewCommentsForRepoParams) (res *PullsListReviewCommentsForRepoOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pulls/list-review-comments-for-repo"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls/comments"), } @@ -62884,7 +62885,7 @@ func (c *Client) sendPullsListReviewCommentsForRepo(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -62918,7 +62919,7 @@ func (c *Client) PullsListReviews(ctx context.Context, params PullsListReviewsPa func (c *Client) sendPullsListReviews(ctx context.Context, params PullsListReviewsParams) (res *PullsListReviewsOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pulls/list-reviews"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls/{pull_number}/reviews"), } @@ -63051,7 +63052,7 @@ func (c *Client) sendPullsListReviews(ctx context.Context, params PullsListRevie u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -63091,7 +63092,7 @@ func (c *Client) PullsMerge(ctx context.Context, request OptNilPullsMergeReq, pa func (c *Client) sendPullsMerge(ctx context.Context, request OptNilPullsMergeReq, params PullsMergeParams) (res PullsMergeRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pulls/merge"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls/{pull_number}/merge"), } // Validate request before sending. @@ -63202,7 +63203,7 @@ func (c *Client) sendPullsMerge(ctx context.Context, request OptNilPullsMergeReq uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -63239,7 +63240,7 @@ func (c *Client) PullsRemoveRequestedReviewers(ctx context.Context, request *Pul func (c *Client) sendPullsRemoveRequestedReviewers(ctx context.Context, request *PullsRemoveRequestedReviewersReq, params PullsRemoveRequestedReviewersParams) (res PullsRemoveRequestedReviewersRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pulls/remove-requested-reviewers"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"), } // Validate request before sending. @@ -63343,7 +63344,7 @@ func (c *Client) sendPullsRemoveRequestedReviewers(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -63380,7 +63381,7 @@ func (c *Client) PullsSubmitReview(ctx context.Context, request *PullsSubmitRevi func (c *Client) sendPullsSubmitReview(ctx context.Context, request *PullsSubmitReviewReq, params PullsSubmitReviewParams) (res PullsSubmitReviewRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pulls/submit-review"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"), } // Validate request before sending. @@ -63503,7 +63504,7 @@ func (c *Client) sendPullsSubmitReview(ctx context.Context, request *PullsSubmit uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -63547,7 +63548,7 @@ func (c *Client) PullsUpdate(ctx context.Context, request OptPullsUpdateReq, par func (c *Client) sendPullsUpdate(ctx context.Context, request OptPullsUpdateReq, params PullsUpdateParams) (res PullsUpdateRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pulls/update"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls/{pull_number}"), } // Validate request before sending. @@ -63657,7 +63658,7 @@ func (c *Client) sendPullsUpdate(ctx context.Context, request OptPullsUpdateReq, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -63695,7 +63696,7 @@ func (c *Client) PullsUpdateBranch(ctx context.Context, request OptNilPullsUpdat func (c *Client) sendPullsUpdateBranch(ctx context.Context, request OptNilPullsUpdateBranchReq, params PullsUpdateBranchParams) (res PullsUpdateBranchRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pulls/update-branch"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls/{pull_number}/update-branch"), } @@ -63790,7 +63791,7 @@ func (c *Client) sendPullsUpdateBranch(ctx context.Context, request OptNilPullsU uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -63827,7 +63828,7 @@ func (c *Client) PullsUpdateReview(ctx context.Context, request *PullsUpdateRevi func (c *Client) sendPullsUpdateReview(ctx context.Context, request *PullsUpdateReviewReq, params PullsUpdateReviewParams) (res PullsUpdateReviewRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pulls/update-review"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"), } @@ -63940,7 +63941,7 @@ func (c *Client) sendPullsUpdateReview(ctx context.Context, request *PullsUpdate uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -63977,7 +63978,7 @@ func (c *Client) PullsUpdateReviewComment(ctx context.Context, request *PullsUpd func (c *Client) sendPullsUpdateReviewComment(ctx context.Context, request *PullsUpdateReviewCommentReq, params PullsUpdateReviewCommentParams) (res *PullRequestReviewComment, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pulls/update-review-comment"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls/comments/{comment_id}"), } @@ -64071,7 +64072,7 @@ func (c *Client) sendPullsUpdateReviewComment(ctx context.Context, request *Pull uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -64111,7 +64112,7 @@ func (c *Client) RateLimitGet(ctx context.Context) (RateLimitGetRes, error) { func (c *Client) sendRateLimitGet(ctx context.Context) (res RateLimitGetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("rate-limit/get"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/rate_limit"), } @@ -64149,7 +64150,7 @@ func (c *Client) sendRateLimitGet(ctx context.Context) (res RateLimitGetRes, err uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -64185,7 +64186,7 @@ func (c *Client) ReactionsCreateForCommitComment(ctx context.Context, request *R func (c *Client) sendReactionsCreateForCommitComment(ctx context.Context, request *ReactionsCreateForCommitCommentReq, params ReactionsCreateForCommitCommentParams) (res ReactionsCreateForCommitCommentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("reactions/create-for-commit-comment"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/comments/{comment_id}/reactions"), } // Validate request before sending. @@ -64289,7 +64290,7 @@ func (c *Client) sendReactionsCreateForCommitComment(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -64327,7 +64328,7 @@ func (c *Client) ReactionsCreateForIssue(ctx context.Context, request *Reactions func (c *Client) sendReactionsCreateForIssue(ctx context.Context, request *ReactionsCreateForIssueReq, params ReactionsCreateForIssueParams) (res ReactionsCreateForIssueRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("reactions/create-for-issue"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/issues/{issue_number}/reactions"), } // Validate request before sending. @@ -64431,7 +64432,7 @@ func (c *Client) sendReactionsCreateForIssue(ctx context.Context, request *React uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -64470,7 +64471,7 @@ func (c *Client) ReactionsCreateForIssueComment(ctx context.Context, request *Re func (c *Client) sendReactionsCreateForIssueComment(ctx context.Context, request *ReactionsCreateForIssueCommentReq, params ReactionsCreateForIssueCommentParams) (res ReactionsCreateForIssueCommentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("reactions/create-for-issue-comment"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"), } // Validate request before sending. @@ -64574,7 +64575,7 @@ func (c *Client) sendReactionsCreateForIssueComment(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -64613,7 +64614,7 @@ func (c *Client) ReactionsCreateForPullRequestReviewComment(ctx context.Context, func (c *Client) sendReactionsCreateForPullRequestReviewComment(ctx context.Context, request *ReactionsCreateForPullRequestReviewCommentReq, params ReactionsCreateForPullRequestReviewCommentParams) (res ReactionsCreateForPullRequestReviewCommentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("reactions/create-for-pull-request-review-comment"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"), } // Validate request before sending. @@ -64717,7 +64718,7 @@ func (c *Client) sendReactionsCreateForPullRequestReviewComment(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -64755,7 +64756,7 @@ func (c *Client) ReactionsCreateForRelease(ctx context.Context, request *Reactio func (c *Client) sendReactionsCreateForRelease(ctx context.Context, request *ReactionsCreateForReleaseReq, params ReactionsCreateForReleaseParams) (res ReactionsCreateForReleaseRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("reactions/create-for-release"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/releases/{release_id}/reactions"), } // Validate request before sending. @@ -64859,7 +64860,7 @@ func (c *Client) sendReactionsCreateForRelease(ctx context.Context, request *Rea uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -64902,7 +64903,7 @@ func (c *Client) ReactionsCreateForTeamDiscussionCommentInOrg(ctx context.Contex func (c *Client) sendReactionsCreateForTeamDiscussionCommentInOrg(ctx context.Context, request *ReactionsCreateForTeamDiscussionCommentInOrgReq, params ReactionsCreateForTeamDiscussionCommentInOrgParams) (res ReactionsCreateForTeamDiscussionCommentInOrgRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("reactions/create-for-team-discussion-comment-in-org"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"), } // Validate request before sending. @@ -65025,7 +65026,7 @@ func (c *Client) sendReactionsCreateForTeamDiscussionCommentInOrg(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -65072,7 +65073,7 @@ func (c *Client) ReactionsCreateForTeamDiscussionCommentLegacy(ctx context.Conte func (c *Client) sendReactionsCreateForTeamDiscussionCommentLegacy(ctx context.Context, request *ReactionsCreateForTeamDiscussionCommentLegacyReq, params ReactionsCreateForTeamDiscussionCommentLegacyParams) (res *Reaction, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("reactions/create-for-team-discussion-comment-legacy"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions"), } // Validate request before sending. @@ -65176,7 +65177,7 @@ func (c *Client) sendReactionsCreateForTeamDiscussionCommentLegacy(ctx context.C uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -65220,7 +65221,7 @@ func (c *Client) ReactionsCreateForTeamDiscussionInOrg(ctx context.Context, requ func (c *Client) sendReactionsCreateForTeamDiscussionInOrg(ctx context.Context, request *ReactionsCreateForTeamDiscussionInOrgReq, params ReactionsCreateForTeamDiscussionInOrgParams) (res ReactionsCreateForTeamDiscussionInOrgRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("reactions/create-for-team-discussion-in-org"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"), } // Validate request before sending. @@ -65324,7 +65325,7 @@ func (c *Client) sendReactionsCreateForTeamDiscussionInOrg(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -65372,7 +65373,7 @@ func (c *Client) ReactionsCreateForTeamDiscussionLegacy(ctx context.Context, req func (c *Client) sendReactionsCreateForTeamDiscussionLegacy(ctx context.Context, request *ReactionsCreateForTeamDiscussionLegacyReq, params ReactionsCreateForTeamDiscussionLegacyParams) (res *Reaction, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("reactions/create-for-team-discussion-legacy"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/teams/{team_id}/discussions/{discussion_number}/reactions"), } // Validate request before sending. @@ -65457,7 +65458,7 @@ func (c *Client) sendReactionsCreateForTeamDiscussionLegacy(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -65496,7 +65497,7 @@ func (c *Client) ReactionsDeleteForCommitComment(ctx context.Context, params Rea func (c *Client) sendReactionsDeleteForCommitComment(ctx context.Context, params ReactionsDeleteForCommitCommentParams) (res *ReactionsDeleteForCommitCommentNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("reactions/delete-for-commit-comment"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"), } @@ -65609,7 +65610,7 @@ func (c *Client) sendReactionsDeleteForCommitComment(ctx context.Context, params uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -65645,7 +65646,7 @@ func (c *Client) ReactionsDeleteForIssue(ctx context.Context, params ReactionsDe func (c *Client) sendReactionsDeleteForIssue(ctx context.Context, params ReactionsDeleteForIssueParams) (res *ReactionsDeleteForIssueNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("reactions/delete-for-issue"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"), } @@ -65758,7 +65759,7 @@ func (c *Client) sendReactionsDeleteForIssue(ctx context.Context, params Reactio uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -65794,7 +65795,7 @@ func (c *Client) ReactionsDeleteForIssueComment(ctx context.Context, params Reac func (c *Client) sendReactionsDeleteForIssueComment(ctx context.Context, params ReactionsDeleteForIssueCommentParams) (res *ReactionsDeleteForIssueCommentNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("reactions/delete-for-issue-comment"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"), } @@ -65907,7 +65908,7 @@ func (c *Client) sendReactionsDeleteForIssueComment(ctx context.Context, params uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -65944,7 +65945,7 @@ func (c *Client) ReactionsDeleteForPullRequestComment(ctx context.Context, param func (c *Client) sendReactionsDeleteForPullRequestComment(ctx context.Context, params ReactionsDeleteForPullRequestCommentParams) (res *ReactionsDeleteForPullRequestCommentNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("reactions/delete-for-pull-request-comment"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"), } @@ -66057,7 +66058,7 @@ func (c *Client) sendReactionsDeleteForPullRequestComment(ctx context.Context, p uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -66098,7 +66099,7 @@ func (c *Client) ReactionsDeleteForTeamDiscussion(ctx context.Context, params Re func (c *Client) sendReactionsDeleteForTeamDiscussion(ctx context.Context, params ReactionsDeleteForTeamDiscussionParams) (res *ReactionsDeleteForTeamDiscussionNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("reactions/delete-for-team-discussion"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"), } @@ -66211,7 +66212,7 @@ func (c *Client) sendReactionsDeleteForTeamDiscussion(ctx context.Context, param uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -66250,7 +66251,7 @@ func (c *Client) ReactionsDeleteForTeamDiscussionComment(ctx context.Context, pa func (c *Client) sendReactionsDeleteForTeamDiscussionComment(ctx context.Context, params ReactionsDeleteForTeamDiscussionCommentParams) (res *ReactionsDeleteForTeamDiscussionCommentNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("reactions/delete-for-team-discussion-comment"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"), } @@ -66382,7 +66383,7 @@ func (c *Client) sendReactionsDeleteForTeamDiscussionComment(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -66425,7 +66426,7 @@ func (c *Client) ReactionsDeleteLegacy(ctx context.Context, params ReactionsDele func (c *Client) sendReactionsDeleteLegacy(ctx context.Context, params ReactionsDeleteLegacyParams) (res ReactionsDeleteLegacyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("reactions/delete-legacy"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/reactions/{reaction_id}"), } @@ -66481,7 +66482,7 @@ func (c *Client) sendReactionsDeleteLegacy(ctx context.Context, params Reactions uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -66515,7 +66516,7 @@ func (c *Client) ReactionsListForCommitComment(ctx context.Context, params React func (c *Client) sendReactionsListForCommitComment(ctx context.Context, params ReactionsListForCommitCommentParams) (res ReactionsListForCommitCommentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("reactions/list-for-commit-comment"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/comments/{comment_id}/reactions"), } @@ -66665,7 +66666,7 @@ func (c *Client) sendReactionsListForCommitComment(ctx context.Context, params R u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -66699,7 +66700,7 @@ func (c *Client) ReactionsListForIssue(ctx context.Context, params ReactionsList func (c *Client) sendReactionsListForIssue(ctx context.Context, params ReactionsListForIssueParams) (res ReactionsListForIssueRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("reactions/list-for-issue"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/issues/{issue_number}/reactions"), } @@ -66849,7 +66850,7 @@ func (c *Client) sendReactionsListForIssue(ctx context.Context, params Reactions u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -66883,7 +66884,7 @@ func (c *Client) ReactionsListForIssueComment(ctx context.Context, params Reacti func (c *Client) sendReactionsListForIssueComment(ctx context.Context, params ReactionsListForIssueCommentParams) (res ReactionsListForIssueCommentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("reactions/list-for-issue-comment"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"), } @@ -67033,7 +67034,7 @@ func (c *Client) sendReactionsListForIssueComment(ctx context.Context, params Re u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -67068,7 +67069,7 @@ func (c *Client) ReactionsListForPullRequestReviewComment(ctx context.Context, p func (c *Client) sendReactionsListForPullRequestReviewComment(ctx context.Context, params ReactionsListForPullRequestReviewCommentParams) (res ReactionsListForPullRequestReviewCommentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("reactions/list-for-pull-request-review-comment"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"), } @@ -67218,7 +67219,7 @@ func (c *Client) sendReactionsListForPullRequestReviewComment(ctx context.Contex u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -67256,7 +67257,7 @@ func (c *Client) ReactionsListForTeamDiscussionCommentInOrg(ctx context.Context, func (c *Client) sendReactionsListForTeamDiscussionCommentInOrg(ctx context.Context, params ReactionsListForTeamDiscussionCommentInOrgParams) (res *ReactionsListForTeamDiscussionCommentInOrgOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("reactions/list-for-team-discussion-comment-in-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"), } @@ -67425,7 +67426,7 @@ func (c *Client) sendReactionsListForTeamDiscussionCommentInOrg(ctx context.Cont u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -67467,7 +67468,7 @@ func (c *Client) ReactionsListForTeamDiscussionCommentLegacy(ctx context.Context func (c *Client) sendReactionsListForTeamDiscussionCommentLegacy(ctx context.Context, params ReactionsListForTeamDiscussionCommentLegacyParams) (res *ReactionsListForTeamDiscussionCommentLegacyOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("reactions/list-for-team-discussion-comment-legacy"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions"), } @@ -67617,7 +67618,7 @@ func (c *Client) sendReactionsListForTeamDiscussionCommentLegacy(ctx context.Con u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -67655,7 +67656,7 @@ func (c *Client) ReactionsListForTeamDiscussionInOrg(ctx context.Context, params func (c *Client) sendReactionsListForTeamDiscussionInOrg(ctx context.Context, params ReactionsListForTeamDiscussionInOrgParams) (res *ReactionsListForTeamDiscussionInOrgOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("reactions/list-for-team-discussion-in-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"), } @@ -67805,7 +67806,7 @@ func (c *Client) sendReactionsListForTeamDiscussionInOrg(ctx context.Context, pa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -67847,7 +67848,7 @@ func (c *Client) ReactionsListForTeamDiscussionLegacy(ctx context.Context, param func (c *Client) sendReactionsListForTeamDiscussionLegacy(ctx context.Context, params ReactionsListForTeamDiscussionLegacyParams) (res *ReactionsListForTeamDiscussionLegacyOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("reactions/list-for-team-discussion-legacy"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/teams/{team_id}/discussions/{discussion_number}/reactions"), } @@ -67978,7 +67979,7 @@ func (c *Client) sendReactionsListForTeamDiscussionLegacy(ctx context.Context, p u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -68012,7 +68013,7 @@ func (c *Client) ReposAcceptInvitation(ctx context.Context, params ReposAcceptIn func (c *Client) sendReposAcceptInvitation(ctx context.Context, params ReposAcceptInvitationParams) (res ReposAcceptInvitationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/accept-invitation"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/user/repository_invitations/{invitation_id}"), } @@ -68068,7 +68069,7 @@ func (c *Client) sendReposAcceptInvitation(ctx context.Context, params ReposAcce uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -68116,7 +68117,7 @@ func (c *Client) ReposAddAppAccessRestrictions(ctx context.Context, request OptR func (c *Client) sendReposAddAppAccessRestrictions(ctx context.Context, request OptReposAddAppAccessRestrictionsReq, params ReposAddAppAccessRestrictionsParams) (res ReposAddAppAccessRestrictionsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/add-app-access-restrictions"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"), } // Validate request before sending. @@ -68227,7 +68228,7 @@ func (c *Client) sendReposAddAppAccessRestrictions(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -68283,7 +68284,7 @@ func (c *Client) ReposAddCollaborator(ctx context.Context, request OptReposAddCo func (c *Client) sendReposAddCollaborator(ctx context.Context, request OptReposAddCollaboratorReq, params ReposAddCollaboratorParams) (res ReposAddCollaboratorRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/add-collaborator"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/collaborators/{username}"), } // Validate request before sending. @@ -68393,7 +68394,7 @@ func (c *Client) sendReposAddCollaborator(ctx context.Context, request OptReposA uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -68434,7 +68435,7 @@ func (c *Client) ReposAddStatusCheckContexts(ctx context.Context, request OptRep func (c *Client) sendReposAddStatusCheckContexts(ctx context.Context, request OptReposAddStatusCheckContextsReq, params ReposAddStatusCheckContextsParams) (res ReposAddStatusCheckContextsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/add-status-check-contexts"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"), } // Validate request before sending. @@ -68545,7 +68546,7 @@ func (c *Client) sendReposAddStatusCheckContexts(ctx context.Context, request Op uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -68596,7 +68597,7 @@ func (c *Client) ReposAddTeamAccessRestrictions(ctx context.Context, request Opt func (c *Client) sendReposAddTeamAccessRestrictions(ctx context.Context, request OptReposAddTeamAccessRestrictionsReq, params ReposAddTeamAccessRestrictionsParams) (res ReposAddTeamAccessRestrictionsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/add-team-access-restrictions"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"), } // Validate request before sending. @@ -68707,7 +68708,7 @@ func (c *Client) sendReposAddTeamAccessRestrictions(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -68757,7 +68758,7 @@ func (c *Client) ReposAddUserAccessRestrictions(ctx context.Context, request Opt func (c *Client) sendReposAddUserAccessRestrictions(ctx context.Context, request OptReposAddUserAccessRestrictionsReq, params ReposAddUserAccessRestrictionsParams) (res ReposAddUserAccessRestrictionsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/add-user-access-restrictions"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"), } // Validate request before sending. @@ -68868,7 +68869,7 @@ func (c *Client) sendReposAddUserAccessRestrictions(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -68909,7 +68910,7 @@ func (c *Client) ReposCheckCollaborator(ctx context.Context, params ReposCheckCo func (c *Client) sendReposCheckCollaborator(ctx context.Context, params ReposCheckCollaboratorParams) (res ReposCheckCollaboratorRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/check-collaborator"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/collaborators/{username}"), } @@ -69003,7 +69004,7 @@ func (c *Client) sendReposCheckCollaborator(ctx context.Context, params ReposChe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -69040,7 +69041,7 @@ func (c *Client) ReposCheckVulnerabilityAlerts(ctx context.Context, params Repos func (c *Client) sendReposCheckVulnerabilityAlerts(ctx context.Context, params ReposCheckVulnerabilityAlertsParams) (res ReposCheckVulnerabilityAlertsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/check-vulnerability-alerts"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/vulnerability-alerts"), } @@ -69116,7 +69117,7 @@ func (c *Client) sendReposCheckVulnerabilityAlerts(ctx context.Context, params R uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -69204,7 +69205,7 @@ func (c *Client) ReposCompareCommits(ctx context.Context, params ReposCompareCom func (c *Client) sendReposCompareCommits(ctx context.Context, params ReposCompareCommitsParams) (res ReposCompareCommitsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/compare-commits"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/compare/{basehead}"), } @@ -69336,7 +69337,7 @@ func (c *Client) sendReposCompareCommits(ctx context.Context, params ReposCompar u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -69370,7 +69371,7 @@ func (c *Client) ReposCreateAutolink(ctx context.Context, request *ReposCreateAu func (c *Client) sendReposCreateAutolink(ctx context.Context, request *ReposCreateAutolinkReq, params ReposCreateAutolinkParams) (res ReposCreateAutolinkRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/create-autolink"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/autolinks"), } @@ -69446,7 +69447,7 @@ func (c *Client) sendReposCreateAutolink(ctx context.Context, request *ReposCrea uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -69490,7 +69491,7 @@ func (c *Client) ReposCreateCommitComment(ctx context.Context, request *ReposCre func (c *Client) sendReposCreateCommitComment(ctx context.Context, request *ReposCreateCommitCommentReq, params ReposCreateCommitCommentParams) (res ReposCreateCommitCommentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/create-commit-comment"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/commits/{commit_sha}/comments"), } @@ -69585,7 +69586,7 @@ func (c *Client) sendReposCreateCommitComment(ctx context.Context, request *Repo uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -69628,7 +69629,7 @@ func (c *Client) ReposCreateCommitSignatureProtection(ctx context.Context, param func (c *Client) sendReposCreateCommitSignatureProtection(ctx context.Context, params ReposCreateCommitSignatureProtectionParams) (res ReposCreateCommitSignatureProtectionRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/create-commit-signature-protection"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"), } @@ -69723,7 +69724,7 @@ func (c *Client) sendReposCreateCommitSignatureProtection(ctx context.Context, p uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -69759,7 +69760,7 @@ func (c *Client) ReposCreateCommitStatus(ctx context.Context, request *ReposCrea func (c *Client) sendReposCreateCommitStatus(ctx context.Context, request *ReposCreateCommitStatusReq, params ReposCreateCommitStatusParams) (res *StatusHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/create-commit-status"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/statuses/{sha}"), } // Validate request before sending. @@ -69862,7 +69863,7 @@ func (c *Client) sendReposCreateCommitStatus(ctx context.Context, request *Repos uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -69899,7 +69900,7 @@ func (c *Client) ReposCreateDeployKey(ctx context.Context, request *ReposCreateD func (c *Client) sendReposCreateDeployKey(ctx context.Context, request *ReposCreateDeployKeyReq, params ReposCreateDeployKeyParams) (res ReposCreateDeployKeyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/create-deploy-key"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/keys"), } @@ -69975,7 +69976,7 @@ func (c *Client) sendReposCreateDeployKey(ctx context.Context, request *ReposCre uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -70067,7 +70068,7 @@ func (c *Client) ReposCreateDeployment(ctx context.Context, request *ReposCreate func (c *Client) sendReposCreateDeployment(ctx context.Context, request *ReposCreateDeploymentReq, params ReposCreateDeploymentParams) (res ReposCreateDeploymentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/create-deployment"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/deployments"), } @@ -70143,7 +70144,7 @@ func (c *Client) sendReposCreateDeployment(ctx context.Context, request *ReposCr uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -70182,7 +70183,7 @@ func (c *Client) ReposCreateDeploymentStatus(ctx context.Context, request *Repos func (c *Client) sendReposCreateDeploymentStatus(ctx context.Context, request *ReposCreateDeploymentStatusReq, params ReposCreateDeploymentStatusParams) (res ReposCreateDeploymentStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/create-deployment-status"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/deployments/{deployment_id}/statuses"), } // Validate request before sending. @@ -70286,7 +70287,7 @@ func (c *Client) sendReposCreateDeploymentStatus(ctx context.Context, request *R uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -70342,7 +70343,7 @@ func (c *Client) ReposCreateDispatchEvent(ctx context.Context, request *ReposCre func (c *Client) sendReposCreateDispatchEvent(ctx context.Context, request *ReposCreateDispatchEventReq, params ReposCreateDispatchEventParams) (res ReposCreateDispatchEventRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/create-dispatch-event"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/dispatches"), } // Validate request before sending. @@ -70427,7 +70428,7 @@ func (c *Client) sendReposCreateDispatchEvent(ctx context.Context, request *Repo uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -70470,7 +70471,7 @@ func (c *Client) ReposCreateForAuthenticatedUser(ctx context.Context, request *R func (c *Client) sendReposCreateForAuthenticatedUser(ctx context.Context, request *ReposCreateForAuthenticatedUserReq) (res ReposCreateForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/create-for-authenticated-user"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/user/repos"), } @@ -70508,7 +70509,7 @@ func (c *Client) sendReposCreateForAuthenticatedUser(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -70548,7 +70549,7 @@ func (c *Client) ReposCreateFork(ctx context.Context, request OptNilReposCreateF func (c *Client) sendReposCreateFork(ctx context.Context, request OptNilReposCreateForkReq, params ReposCreateForkParams) (res ReposCreateForkRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/create-fork"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/forks"), } @@ -70624,7 +70625,7 @@ func (c *Client) sendReposCreateFork(ctx context.Context, request OptNilReposCre uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -70668,7 +70669,7 @@ func (c *Client) ReposCreateInOrg(ctx context.Context, request *ReposCreateInOrg func (c *Client) sendReposCreateInOrg(ctx context.Context, request *ReposCreateInOrgReq, params ReposCreateInOrgParams) (res ReposCreateInOrgRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/create-in-org"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/orgs/{org}/repos"), } // Validate request before sending. @@ -70734,7 +70735,7 @@ func (c *Client) sendReposCreateInOrg(ctx context.Context, request *ReposCreateI uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -70771,7 +70772,7 @@ func (c *Client) ReposCreateOrUpdateFileContents(ctx context.Context, request *R func (c *Client) sendReposCreateOrUpdateFileContents(ctx context.Context, request *ReposCreateOrUpdateFileContentsReq, params ReposCreateOrUpdateFileContentsParams) (res ReposCreateOrUpdateFileContentsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/create-or-update-file-contents"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/contents/{path}"), } @@ -70865,7 +70866,7 @@ func (c *Client) sendReposCreateOrUpdateFileContents(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -70903,7 +70904,7 @@ func (c *Client) ReposCreatePagesSite(ctx context.Context, request NilReposCreat func (c *Client) sendReposCreatePagesSite(ctx context.Context, request NilReposCreatePagesSiteReq, params ReposCreatePagesSiteParams) (res ReposCreatePagesSiteRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/create-pages-site"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pages"), } // Validate request before sending. @@ -70995,7 +70996,7 @@ func (c *Client) sendReposCreatePagesSite(ctx context.Context, request NilReposC uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -71039,7 +71040,7 @@ func (c *Client) ReposCreateRelease(ctx context.Context, request *ReposCreateRel func (c *Client) sendReposCreateRelease(ctx context.Context, request *ReposCreateReleaseReq, params ReposCreateReleaseParams) (res ReposCreateReleaseRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/create-release"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/releases"), } @@ -71115,7 +71116,7 @@ func (c *Client) sendReposCreateRelease(ctx context.Context, request *ReposCreat uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -71163,7 +71164,7 @@ func (c *Client) ReposCreateUsingTemplate(ctx context.Context, request *ReposCre func (c *Client) sendReposCreateUsingTemplate(ctx context.Context, request *ReposCreateUsingTemplateReq, params ReposCreateUsingTemplateParams) (res *RepositoryHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/create-using-template"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{template_owner}/{template_repo}/generate"), } @@ -71239,7 +71240,7 @@ func (c *Client) sendReposCreateUsingTemplate(ctx context.Context, request *Repo uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -71278,7 +71279,7 @@ func (c *Client) ReposCreateWebhook(ctx context.Context, request OptNilReposCrea func (c *Client) sendReposCreateWebhook(ctx context.Context, request OptNilReposCreateWebhookReq, params ReposCreateWebhookParams) (res ReposCreateWebhookRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/create-webhook"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/hooks"), } // Validate request before sending. @@ -71370,7 +71371,7 @@ func (c *Client) sendReposCreateWebhook(ctx context.Context, request OptNilRepos uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -71407,7 +71408,7 @@ func (c *Client) ReposDeclineInvitation(ctx context.Context, params ReposDecline func (c *Client) sendReposDeclineInvitation(ctx context.Context, params ReposDeclineInvitationParams) (res ReposDeclineInvitationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/decline-invitation"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/user/repository_invitations/{invitation_id}"), } @@ -71463,7 +71464,7 @@ func (c *Client) sendReposDeclineInvitation(ctx context.Context, params ReposDec uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -71500,7 +71501,7 @@ func (c *Client) ReposDelete(ctx context.Context, params ReposDeleteParams) (Rep func (c *Client) sendReposDelete(ctx context.Context, params ReposDeleteParams) (res ReposDeleteRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/delete"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}"), } @@ -71575,7 +71576,7 @@ func (c *Client) sendReposDelete(ctx context.Context, params ReposDeleteParams) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -71614,7 +71615,7 @@ func (c *Client) ReposDeleteAccessRestrictions(ctx context.Context, params Repos func (c *Client) sendReposDeleteAccessRestrictions(ctx context.Context, params ReposDeleteAccessRestrictionsParams) (res *ReposDeleteAccessRestrictionsNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/delete-access-restrictions"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/restrictions"), } @@ -71709,7 +71710,7 @@ func (c *Client) sendReposDeleteAccessRestrictions(ctx context.Context, params R uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -71749,7 +71750,7 @@ func (c *Client) ReposDeleteAdminBranchProtection(ctx context.Context, params Re func (c *Client) sendReposDeleteAdminBranchProtection(ctx context.Context, params ReposDeleteAdminBranchProtectionParams) (res ReposDeleteAdminBranchProtectionRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/delete-admin-branch-protection"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"), } @@ -71844,7 +71845,7 @@ func (c *Client) sendReposDeleteAdminBranchProtection(ctx context.Context, param uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -71878,7 +71879,7 @@ func (c *Client) ReposDeleteAnEnvironment(ctx context.Context, params ReposDelet func (c *Client) sendReposDeleteAnEnvironment(ctx context.Context, params ReposDeleteAnEnvironmentParams) (res *ReposDeleteAnEnvironmentNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/delete-an-environment"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/environments/{environment_name}"), } @@ -71972,7 +71973,7 @@ func (c *Client) sendReposDeleteAnEnvironment(ctx context.Context, params ReposD uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -72007,7 +72008,7 @@ func (c *Client) ReposDeleteAutolink(ctx context.Context, params ReposDeleteAuto func (c *Client) sendReposDeleteAutolink(ctx context.Context, params ReposDeleteAutolinkParams) (res ReposDeleteAutolinkRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/delete-autolink"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/autolinks/{autolink_id}"), } @@ -72101,7 +72102,7 @@ func (c *Client) sendReposDeleteAutolink(ctx context.Context, params ReposDelete uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -72139,7 +72140,7 @@ func (c *Client) ReposDeleteBranchProtection(ctx context.Context, params ReposDe func (c *Client) sendReposDeleteBranchProtection(ctx context.Context, params ReposDeleteBranchProtectionParams) (res ReposDeleteBranchProtectionRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/delete-branch-protection"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection"), } @@ -72234,7 +72235,7 @@ func (c *Client) sendReposDeleteBranchProtection(ctx context.Context, params Rep uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -72268,7 +72269,7 @@ func (c *Client) ReposDeleteCommitComment(ctx context.Context, params ReposDelet func (c *Client) sendReposDeleteCommitComment(ctx context.Context, params ReposDeleteCommitCommentParams) (res ReposDeleteCommitCommentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/delete-commit-comment"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/comments/{comment_id}"), } @@ -72362,7 +72363,7 @@ func (c *Client) sendReposDeleteCommitComment(ctx context.Context, params ReposD uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -72403,7 +72404,7 @@ func (c *Client) ReposDeleteCommitSignatureProtection(ctx context.Context, param func (c *Client) sendReposDeleteCommitSignatureProtection(ctx context.Context, params ReposDeleteCommitSignatureProtectionParams) (res ReposDeleteCommitSignatureProtectionRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/delete-commit-signature-protection"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"), } @@ -72498,7 +72499,7 @@ func (c *Client) sendReposDeleteCommitSignatureProtection(ctx context.Context, p uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -72533,7 +72534,7 @@ func (c *Client) ReposDeleteDeployKey(ctx context.Context, params ReposDeleteDep func (c *Client) sendReposDeleteDeployKey(ctx context.Context, params ReposDeleteDeployKeyParams) (res *ReposDeleteDeployKeyNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/delete-deploy-key"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/keys/{key_id}"), } @@ -72627,7 +72628,7 @@ func (c *Client) sendReposDeleteDeployKey(ctx context.Context, params ReposDelet uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -72669,7 +72670,7 @@ func (c *Client) ReposDeleteDeployment(ctx context.Context, params ReposDeleteDe func (c *Client) sendReposDeleteDeployment(ctx context.Context, params ReposDeleteDeploymentParams) (res ReposDeleteDeploymentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/delete-deployment"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/deployments/{deployment_id}"), } @@ -72763,7 +72764,7 @@ func (c *Client) sendReposDeleteDeployment(ctx context.Context, params ReposDele uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -72804,7 +72805,7 @@ func (c *Client) ReposDeleteFile(ctx context.Context, request *ReposDeleteFileRe func (c *Client) sendReposDeleteFile(ctx context.Context, request *ReposDeleteFileReq, params ReposDeleteFileParams) (res ReposDeleteFileRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/delete-file"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/contents/{path}"), } @@ -72898,7 +72899,7 @@ func (c *Client) sendReposDeleteFile(ctx context.Context, request *ReposDeleteFi uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -72935,7 +72936,7 @@ func (c *Client) ReposDeleteInvitation(ctx context.Context, params ReposDeleteIn func (c *Client) sendReposDeleteInvitation(ctx context.Context, params ReposDeleteInvitationParams) (res *ReposDeleteInvitationNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/delete-invitation"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/invitations/{invitation_id}"), } @@ -73029,7 +73030,7 @@ func (c *Client) sendReposDeleteInvitation(ctx context.Context, params ReposDele uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -73063,7 +73064,7 @@ func (c *Client) ReposDeletePagesSite(ctx context.Context, params ReposDeletePag func (c *Client) sendReposDeletePagesSite(ctx context.Context, params ReposDeletePagesSiteParams) (res ReposDeletePagesSiteRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/delete-pages-site"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pages"), } @@ -73139,7 +73140,7 @@ func (c *Client) sendReposDeletePagesSite(ctx context.Context, params ReposDelet uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -73177,7 +73178,7 @@ func (c *Client) ReposDeletePullRequestReviewProtection(ctx context.Context, par func (c *Client) sendReposDeletePullRequestReviewProtection(ctx context.Context, params ReposDeletePullRequestReviewProtectionParams) (res ReposDeletePullRequestReviewProtectionRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/delete-pull-request-review-protection"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"), } @@ -73272,7 +73273,7 @@ func (c *Client) sendReposDeletePullRequestReviewProtection(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -73306,7 +73307,7 @@ func (c *Client) ReposDeleteRelease(ctx context.Context, params ReposDeleteRelea func (c *Client) sendReposDeleteRelease(ctx context.Context, params ReposDeleteReleaseParams) (res *ReposDeleteReleaseNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/delete-release"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/releases/{release_id}"), } @@ -73400,7 +73401,7 @@ func (c *Client) sendReposDeleteRelease(ctx context.Context, params ReposDeleteR uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -73434,7 +73435,7 @@ func (c *Client) ReposDeleteReleaseAsset(ctx context.Context, params ReposDelete func (c *Client) sendReposDeleteReleaseAsset(ctx context.Context, params ReposDeleteReleaseAssetParams) (res *ReposDeleteReleaseAssetNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/delete-release-asset"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/releases/assets/{asset_id}"), } @@ -73528,7 +73529,7 @@ func (c *Client) sendReposDeleteReleaseAsset(ctx context.Context, params ReposDe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -73562,7 +73563,7 @@ func (c *Client) ReposDeleteWebhook(ctx context.Context, params ReposDeleteWebho func (c *Client) sendReposDeleteWebhook(ctx context.Context, params ReposDeleteWebhookParams) (res ReposDeleteWebhookRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/delete-webhook"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/hooks/{hook_id}"), } @@ -73656,7 +73657,7 @@ func (c *Client) sendReposDeleteWebhook(ctx context.Context, params ReposDeleteW uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -73692,7 +73693,7 @@ func (c *Client) ReposDisableAutomatedSecurityFixes(ctx context.Context, params func (c *Client) sendReposDisableAutomatedSecurityFixes(ctx context.Context, params ReposDisableAutomatedSecurityFixesParams) (res *ReposDisableAutomatedSecurityFixesNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/disable-automated-security-fixes"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/automated-security-fixes"), } @@ -73768,7 +73769,7 @@ func (c *Client) sendReposDisableAutomatedSecurityFixes(ctx context.Context, par uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -73802,7 +73803,7 @@ func (c *Client) ReposDisableLfsForRepo(ctx context.Context, params ReposDisable func (c *Client) sendReposDisableLfsForRepo(ctx context.Context, params ReposDisableLfsForRepoParams) (res *ReposDisableLfsForRepoNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/disable-lfs-for-repo"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/lfs"), } @@ -73878,7 +73879,7 @@ func (c *Client) sendReposDisableLfsForRepo(ctx context.Context, params ReposDis uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -73915,7 +73916,7 @@ func (c *Client) ReposDisableVulnerabilityAlerts(ctx context.Context, params Rep func (c *Client) sendReposDisableVulnerabilityAlerts(ctx context.Context, params ReposDisableVulnerabilityAlertsParams) (res *ReposDisableVulnerabilityAlertsNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/disable-vulnerability-alerts"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/vulnerability-alerts"), } @@ -73991,7 +73992,7 @@ func (c *Client) sendReposDisableVulnerabilityAlerts(ctx context.Context, params uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -74030,7 +74031,7 @@ func (c *Client) ReposDownloadTarballArchive(ctx context.Context, params ReposDo func (c *Client) sendReposDownloadTarballArchive(ctx context.Context, params ReposDownloadTarballArchiveParams) (res *ReposDownloadTarballArchiveFound, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/download-tarball-archive"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/tarball/{ref}"), } @@ -74124,7 +74125,7 @@ func (c *Client) sendReposDownloadTarballArchive(ctx context.Context, params Rep uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -74163,7 +74164,7 @@ func (c *Client) ReposDownloadZipballArchive(ctx context.Context, params ReposDo func (c *Client) sendReposDownloadZipballArchive(ctx context.Context, params ReposDownloadZipballArchiveParams) (res *ReposDownloadZipballArchiveFound, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/download-zipball-archive"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/zipball/{ref}"), } @@ -74257,7 +74258,7 @@ func (c *Client) sendReposDownloadZipballArchive(ctx context.Context, params Rep uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -74293,7 +74294,7 @@ func (c *Client) ReposEnableAutomatedSecurityFixes(ctx context.Context, params R func (c *Client) sendReposEnableAutomatedSecurityFixes(ctx context.Context, params ReposEnableAutomatedSecurityFixesParams) (res *ReposEnableAutomatedSecurityFixesNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/enable-automated-security-fixes"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/automated-security-fixes"), } @@ -74369,7 +74370,7 @@ func (c *Client) sendReposEnableAutomatedSecurityFixes(ctx context.Context, para uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -74403,7 +74404,7 @@ func (c *Client) ReposEnableLfsForRepo(ctx context.Context, params ReposEnableLf func (c *Client) sendReposEnableLfsForRepo(ctx context.Context, params ReposEnableLfsForRepoParams) (res ReposEnableLfsForRepoRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/enable-lfs-for-repo"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/lfs"), } @@ -74479,7 +74480,7 @@ func (c *Client) sendReposEnableLfsForRepo(ctx context.Context, params ReposEnab uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -74516,7 +74517,7 @@ func (c *Client) ReposEnableVulnerabilityAlerts(ctx context.Context, params Repo func (c *Client) sendReposEnableVulnerabilityAlerts(ctx context.Context, params ReposEnableVulnerabilityAlertsParams) (res *ReposEnableVulnerabilityAlertsNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/enable-vulnerability-alerts"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/vulnerability-alerts"), } @@ -74592,7 +74593,7 @@ func (c *Client) sendReposEnableVulnerabilityAlerts(ctx context.Context, params uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -74627,7 +74628,7 @@ func (c *Client) ReposGet(ctx context.Context, params ReposGetParams) (ReposGetR func (c *Client) sendReposGet(ctx context.Context, params ReposGetParams) (res ReposGetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}"), } @@ -74702,7 +74703,7 @@ func (c *Client) sendReposGet(ctx context.Context, params ReposGetParams) (res R uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -74743,7 +74744,7 @@ func (c *Client) ReposGetAccessRestrictions(ctx context.Context, params ReposGet func (c *Client) sendReposGetAccessRestrictions(ctx context.Context, params ReposGetAccessRestrictionsParams) (res ReposGetAccessRestrictionsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-access-restrictions"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/restrictions"), } @@ -74838,7 +74839,7 @@ func (c *Client) sendReposGetAccessRestrictions(ctx context.Context, params Repo uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -74876,7 +74877,7 @@ func (c *Client) ReposGetAdminBranchProtection(ctx context.Context, params Repos func (c *Client) sendReposGetAdminBranchProtection(ctx context.Context, params ReposGetAdminBranchProtectionParams) (res *ProtectedBranchAdminEnforced, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-admin-branch-protection"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"), } @@ -74971,7 +74972,7 @@ func (c *Client) sendReposGetAdminBranchProtection(ctx context.Context, params R uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -75009,7 +75010,7 @@ func (c *Client) ReposGetAllStatusCheckContexts(ctx context.Context, params Repo func (c *Client) sendReposGetAllStatusCheckContexts(ctx context.Context, params ReposGetAllStatusCheckContextsParams) (res ReposGetAllStatusCheckContextsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-all-status-check-contexts"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"), } @@ -75104,7 +75105,7 @@ func (c *Client) sendReposGetAllStatusCheckContexts(ctx context.Context, params uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -75138,7 +75139,7 @@ func (c *Client) ReposGetAllTopics(ctx context.Context, params ReposGetAllTopics func (c *Client) sendReposGetAllTopics(ctx context.Context, params ReposGetAllTopicsParams) (res ReposGetAllTopicsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-all-topics"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/topics"), } @@ -75252,7 +75253,7 @@ func (c *Client) sendReposGetAllTopics(ctx context.Context, params ReposGetAllTo u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -75293,7 +75294,7 @@ func (c *Client) ReposGetAppsWithAccessToProtectedBranch(ctx context.Context, pa func (c *Client) sendReposGetAppsWithAccessToProtectedBranch(ctx context.Context, params ReposGetAppsWithAccessToProtectedBranchParams) (res ReposGetAppsWithAccessToProtectedBranchRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-apps-with-access-to-protected-branch"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"), } @@ -75388,7 +75389,7 @@ func (c *Client) sendReposGetAppsWithAccessToProtectedBranch(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -75423,7 +75424,7 @@ func (c *Client) ReposGetAutolink(ctx context.Context, params ReposGetAutolinkPa func (c *Client) sendReposGetAutolink(ctx context.Context, params ReposGetAutolinkParams) (res ReposGetAutolinkRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-autolink"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/autolinks/{autolink_id}"), } @@ -75517,7 +75518,7 @@ func (c *Client) sendReposGetAutolink(ctx context.Context, params ReposGetAutoli uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -75551,7 +75552,7 @@ func (c *Client) ReposGetBranch(ctx context.Context, params ReposGetBranchParams func (c *Client) sendReposGetBranch(ctx context.Context, params ReposGetBranchParams) (res ReposGetBranchRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-branch"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}"), } @@ -75645,7 +75646,7 @@ func (c *Client) sendReposGetBranch(ctx context.Context, params ReposGetBranchPa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -75683,7 +75684,7 @@ func (c *Client) ReposGetBranchProtection(ctx context.Context, params ReposGetBr func (c *Client) sendReposGetBranchProtection(ctx context.Context, params ReposGetBranchProtectionParams) (res ReposGetBranchProtectionRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-branch-protection"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection"), } @@ -75778,7 +75779,7 @@ func (c *Client) sendReposGetBranchProtection(ctx context.Context, params ReposG uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -75813,7 +75814,7 @@ func (c *Client) ReposGetClones(ctx context.Context, params ReposGetClonesParams func (c *Client) sendReposGetClones(ctx context.Context, params ReposGetClonesParams) (res ReposGetClonesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-clones"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/traffic/clones"), } @@ -75910,7 +75911,7 @@ func (c *Client) sendReposGetClones(ctx context.Context, params ReposGetClonesPa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -75944,7 +75945,7 @@ func (c *Client) ReposGetCodeFrequencyStats(ctx context.Context, params ReposGet func (c *Client) sendReposGetCodeFrequencyStats(ctx context.Context, params ReposGetCodeFrequencyStatsParams) (res ReposGetCodeFrequencyStatsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-code-frequency-stats"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/stats/code_frequency"), } @@ -76020,7 +76021,7 @@ func (c *Client) sendReposGetCodeFrequencyStats(ctx context.Context, params Repo uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -76055,7 +76056,7 @@ func (c *Client) ReposGetCollaboratorPermissionLevel(ctx context.Context, params func (c *Client) sendReposGetCollaboratorPermissionLevel(ctx context.Context, params ReposGetCollaboratorPermissionLevelParams) (res ReposGetCollaboratorPermissionLevelRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-collaborator-permission-level"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/collaborators/{username}/permission"), } @@ -76150,7 +76151,7 @@ func (c *Client) sendReposGetCollaboratorPermissionLevel(ctx context.Context, pa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -76192,7 +76193,7 @@ func (c *Client) ReposGetCombinedStatusForRef(ctx context.Context, params ReposG func (c *Client) sendReposGetCombinedStatusForRef(ctx context.Context, params ReposGetCombinedStatusForRefParams) (res ReposGetCombinedStatusForRefRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-combined-status-for-ref"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/commits/{ref}/status"), } @@ -76325,7 +76326,7 @@ func (c *Client) sendReposGetCombinedStatusForRef(ctx context.Context, params Re u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -76405,7 +76406,7 @@ func (c *Client) ReposGetCommit(ctx context.Context, params ReposGetCommitParams func (c *Client) sendReposGetCommit(ctx context.Context, params ReposGetCommitParams) (res ReposGetCommitRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-commit"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/commits/{ref}"), } @@ -76537,7 +76538,7 @@ func (c *Client) sendReposGetCommit(ctx context.Context, params ReposGetCommitPa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -76572,7 +76573,7 @@ func (c *Client) ReposGetCommitActivityStats(ctx context.Context, params ReposGe func (c *Client) sendReposGetCommitActivityStats(ctx context.Context, params ReposGetCommitActivityStatsParams) (res ReposGetCommitActivityStatsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-commit-activity-stats"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/stats/commit_activity"), } @@ -76648,7 +76649,7 @@ func (c *Client) sendReposGetCommitActivityStats(ctx context.Context, params Rep uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -76682,7 +76683,7 @@ func (c *Client) ReposGetCommitComment(ctx context.Context, params ReposGetCommi func (c *Client) sendReposGetCommitComment(ctx context.Context, params ReposGetCommitCommentParams) (res ReposGetCommitCommentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-commit-comment"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/comments/{comment_id}"), } @@ -76776,7 +76777,7 @@ func (c *Client) sendReposGetCommitComment(ctx context.Context, params ReposGetC uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -76819,7 +76820,7 @@ func (c *Client) ReposGetCommitSignatureProtection(ctx context.Context, params R func (c *Client) sendReposGetCommitSignatureProtection(ctx context.Context, params ReposGetCommitSignatureProtectionParams) (res ReposGetCommitSignatureProtectionRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-commit-signature-protection"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"), } @@ -76914,7 +76915,7 @@ func (c *Client) sendReposGetCommitSignatureProtection(ctx context.Context, para uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -76957,7 +76958,7 @@ func (c *Client) ReposGetCommunityProfileMetrics(ctx context.Context, params Rep func (c *Client) sendReposGetCommunityProfileMetrics(ctx context.Context, params ReposGetCommunityProfileMetricsParams) (res *CommunityProfile, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-community-profile-metrics"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/community/profile"), } @@ -77033,7 +77034,7 @@ func (c *Client) sendReposGetCommunityProfileMetrics(ctx context.Context, params uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -77072,7 +77073,7 @@ func (c *Client) ReposGetContributorsStats(ctx context.Context, params ReposGetC func (c *Client) sendReposGetContributorsStats(ctx context.Context, params ReposGetContributorsStatsParams) (res ReposGetContributorsStatsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-contributors-stats"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/stats/contributors"), } @@ -77148,7 +77149,7 @@ func (c *Client) sendReposGetContributorsStats(ctx context.Context, params Repos uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -77182,7 +77183,7 @@ func (c *Client) ReposGetDeployKey(ctx context.Context, params ReposGetDeployKey func (c *Client) sendReposGetDeployKey(ctx context.Context, params ReposGetDeployKeyParams) (res ReposGetDeployKeyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-deploy-key"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/keys/{key_id}"), } @@ -77276,7 +77277,7 @@ func (c *Client) sendReposGetDeployKey(ctx context.Context, params ReposGetDeplo uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -77310,7 +77311,7 @@ func (c *Client) ReposGetDeployment(ctx context.Context, params ReposGetDeployme func (c *Client) sendReposGetDeployment(ctx context.Context, params ReposGetDeploymentParams) (res ReposGetDeploymentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-deployment"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/deployments/{deployment_id}"), } @@ -77404,7 +77405,7 @@ func (c *Client) sendReposGetDeployment(ctx context.Context, params ReposGetDepl uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -77438,7 +77439,7 @@ func (c *Client) ReposGetDeploymentStatus(ctx context.Context, params ReposGetDe func (c *Client) sendReposGetDeploymentStatus(ctx context.Context, params ReposGetDeploymentStatusParams) (res ReposGetDeploymentStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-deployment-status"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"), } @@ -77551,7 +77552,7 @@ func (c *Client) sendReposGetDeploymentStatus(ctx context.Context, params ReposG uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -77585,7 +77586,7 @@ func (c *Client) ReposGetLatestPagesBuild(ctx context.Context, params ReposGetLa func (c *Client) sendReposGetLatestPagesBuild(ctx context.Context, params ReposGetLatestPagesBuildParams) (res *PageBuild, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-latest-pages-build"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pages/builds/latest"), } @@ -77661,7 +77662,7 @@ func (c *Client) sendReposGetLatestPagesBuild(ctx context.Context, params ReposG uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -77698,7 +77699,7 @@ func (c *Client) ReposGetLatestRelease(ctx context.Context, params ReposGetLates func (c *Client) sendReposGetLatestRelease(ctx context.Context, params ReposGetLatestReleaseParams) (res *Release, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-latest-release"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/releases/latest"), } @@ -77774,7 +77775,7 @@ func (c *Client) sendReposGetLatestRelease(ctx context.Context, params ReposGetL uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -77808,7 +77809,7 @@ func (c *Client) ReposGetPages(ctx context.Context, params ReposGetPagesParams) func (c *Client) sendReposGetPages(ctx context.Context, params ReposGetPagesParams) (res ReposGetPagesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-pages"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pages"), } @@ -77884,7 +77885,7 @@ func (c *Client) sendReposGetPages(ctx context.Context, params ReposGetPagesPara uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -77918,7 +77919,7 @@ func (c *Client) ReposGetPagesBuild(ctx context.Context, params ReposGetPagesBui func (c *Client) sendReposGetPagesBuild(ctx context.Context, params ReposGetPagesBuildParams) (res *PageBuild, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-pages-build"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pages/builds/{build_id}"), } @@ -78012,7 +78013,7 @@ func (c *Client) sendReposGetPagesBuild(ctx context.Context, params ReposGetPage uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -78052,7 +78053,7 @@ func (c *Client) ReposGetPagesHealthCheck(ctx context.Context, params ReposGetPa func (c *Client) sendReposGetPagesHealthCheck(ctx context.Context, params ReposGetPagesHealthCheckParams) (res ReposGetPagesHealthCheckRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-pages-health-check"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pages/health"), } @@ -78128,7 +78129,7 @@ func (c *Client) sendReposGetPagesHealthCheck(ctx context.Context, params ReposG uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -78165,7 +78166,7 @@ func (c *Client) ReposGetParticipationStats(ctx context.Context, params ReposGet func (c *Client) sendReposGetParticipationStats(ctx context.Context, params ReposGetParticipationStatsParams) (res ReposGetParticipationStatsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-participation-stats"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/stats/participation"), } @@ -78241,7 +78242,7 @@ func (c *Client) sendReposGetParticipationStats(ctx context.Context, params Repo uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -78279,7 +78280,7 @@ func (c *Client) ReposGetPullRequestReviewProtection(ctx context.Context, params func (c *Client) sendReposGetPullRequestReviewProtection(ctx context.Context, params ReposGetPullRequestReviewProtectionParams) (res *ProtectedBranchPullRequestReview, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-pull-request-review-protection"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"), } @@ -78374,7 +78375,7 @@ func (c *Client) sendReposGetPullRequestReviewProtection(ctx context.Context, pa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -78413,7 +78414,7 @@ func (c *Client) ReposGetPunchCardStats(ctx context.Context, params ReposGetPunc func (c *Client) sendReposGetPunchCardStats(ctx context.Context, params ReposGetPunchCardStatsParams) (res ReposGetPunchCardStatsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-punch-card-stats"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/stats/punch_card"), } @@ -78489,7 +78490,7 @@ func (c *Client) sendReposGetPunchCardStats(ctx context.Context, params ReposGet uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -78525,7 +78526,7 @@ func (c *Client) ReposGetReadme(ctx context.Context, params ReposGetReadmeParams func (c *Client) sendReposGetReadme(ctx context.Context, params ReposGetReadmeParams) (res ReposGetReadmeRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-readme"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/readme"), } @@ -78622,7 +78623,7 @@ func (c *Client) sendReposGetReadme(ctx context.Context, params ReposGetReadmePa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -78658,7 +78659,7 @@ func (c *Client) ReposGetReadmeInDirectory(ctx context.Context, params ReposGetR func (c *Client) sendReposGetReadmeInDirectory(ctx context.Context, params ReposGetReadmeInDirectoryParams) (res ReposGetReadmeInDirectoryRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-readme-in-directory"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/readme/{dir}"), } @@ -78773,7 +78774,7 @@ func (c *Client) sendReposGetReadmeInDirectory(ctx context.Context, params Repos u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -78809,7 +78810,7 @@ func (c *Client) ReposGetRelease(ctx context.Context, params ReposGetReleasePara func (c *Client) sendReposGetRelease(ctx context.Context, params ReposGetReleaseParams) (res ReposGetReleaseRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-release"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/releases/{release_id}"), } @@ -78903,7 +78904,7 @@ func (c *Client) sendReposGetRelease(ctx context.Context, params ReposGetRelease uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -78940,7 +78941,7 @@ func (c *Client) ReposGetReleaseAsset(ctx context.Context, params ReposGetReleas func (c *Client) sendReposGetReleaseAsset(ctx context.Context, params ReposGetReleaseAssetParams) (res ReposGetReleaseAssetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-release-asset"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/releases/assets/{asset_id}"), } @@ -79034,7 +79035,7 @@ func (c *Client) sendReposGetReleaseAsset(ctx context.Context, params ReposGetRe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -79068,7 +79069,7 @@ func (c *Client) ReposGetReleaseByTag(ctx context.Context, params ReposGetReleas func (c *Client) sendReposGetReleaseByTag(ctx context.Context, params ReposGetReleaseByTagParams) (res ReposGetReleaseByTagRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-release-by-tag"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/releases/tags/{tag}"), } @@ -79162,7 +79163,7 @@ func (c *Client) sendReposGetReleaseByTag(ctx context.Context, params ReposGetRe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -79200,7 +79201,7 @@ func (c *Client) ReposGetStatusChecksProtection(ctx context.Context, params Repo func (c *Client) sendReposGetStatusChecksProtection(ctx context.Context, params ReposGetStatusChecksProtectionParams) (res ReposGetStatusChecksProtectionRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-status-checks-protection"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"), } @@ -79295,7 +79296,7 @@ func (c *Client) sendReposGetStatusChecksProtection(ctx context.Context, params uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -79334,7 +79335,7 @@ func (c *Client) ReposGetTeamsWithAccessToProtectedBranch(ctx context.Context, p func (c *Client) sendReposGetTeamsWithAccessToProtectedBranch(ctx context.Context, params ReposGetTeamsWithAccessToProtectedBranchParams) (res ReposGetTeamsWithAccessToProtectedBranchRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-teams-with-access-to-protected-branch"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"), } @@ -79429,7 +79430,7 @@ func (c *Client) sendReposGetTeamsWithAccessToProtectedBranch(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -79463,7 +79464,7 @@ func (c *Client) ReposGetTopPaths(ctx context.Context, params ReposGetTopPathsPa func (c *Client) sendReposGetTopPaths(ctx context.Context, params ReposGetTopPathsParams) (res ReposGetTopPathsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-top-paths"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/traffic/popular/paths"), } @@ -79539,7 +79540,7 @@ func (c *Client) sendReposGetTopPaths(ctx context.Context, params ReposGetTopPat uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -79573,7 +79574,7 @@ func (c *Client) ReposGetTopReferrers(ctx context.Context, params ReposGetTopRef func (c *Client) sendReposGetTopReferrers(ctx context.Context, params ReposGetTopReferrersParams) (res ReposGetTopReferrersRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-top-referrers"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/traffic/popular/referrers"), } @@ -79649,7 +79650,7 @@ func (c *Client) sendReposGetTopReferrers(ctx context.Context, params ReposGetTo uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -79688,7 +79689,7 @@ func (c *Client) ReposGetUsersWithAccessToProtectedBranch(ctx context.Context, p func (c *Client) sendReposGetUsersWithAccessToProtectedBranch(ctx context.Context, params ReposGetUsersWithAccessToProtectedBranchParams) (res ReposGetUsersWithAccessToProtectedBranchRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-users-with-access-to-protected-branch"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"), } @@ -79783,7 +79784,7 @@ func (c *Client) sendReposGetUsersWithAccessToProtectedBranch(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -79818,7 +79819,7 @@ func (c *Client) ReposGetViews(ctx context.Context, params ReposGetViewsParams) func (c *Client) sendReposGetViews(ctx context.Context, params ReposGetViewsParams) (res ReposGetViewsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-views"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/traffic/views"), } @@ -79915,7 +79916,7 @@ func (c *Client) sendReposGetViews(ctx context.Context, params ReposGetViewsPara u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -79951,7 +79952,7 @@ func (c *Client) ReposGetWebhook(ctx context.Context, params ReposGetWebhookPara func (c *Client) sendReposGetWebhook(ctx context.Context, params ReposGetWebhookParams) (res ReposGetWebhookRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-webhook"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/hooks/{hook_id}"), } @@ -80045,7 +80046,7 @@ func (c *Client) sendReposGetWebhook(ctx context.Context, params ReposGetWebhook uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -80083,7 +80084,7 @@ func (c *Client) ReposGetWebhookConfigForRepo(ctx context.Context, params ReposG func (c *Client) sendReposGetWebhookConfigForRepo(ctx context.Context, params ReposGetWebhookConfigForRepoParams) (res *WebhookConfig, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-webhook-config-for-repo"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/hooks/{hook_id}/config"), } @@ -80178,7 +80179,7 @@ func (c *Client) sendReposGetWebhookConfigForRepo(ctx context.Context, params Re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -80212,7 +80213,7 @@ func (c *Client) ReposGetWebhookDelivery(ctx context.Context, params ReposGetWeb func (c *Client) sendReposGetWebhookDelivery(ctx context.Context, params ReposGetWebhookDeliveryParams) (res ReposGetWebhookDeliveryRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/get-webhook-delivery"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"), } @@ -80325,7 +80326,7 @@ func (c *Client) sendReposGetWebhookDelivery(ctx context.Context, params ReposGe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -80360,7 +80361,7 @@ func (c *Client) ReposListAutolinks(ctx context.Context, params ReposListAutolin func (c *Client) sendReposListAutolinks(ctx context.Context, params ReposListAutolinksParams) (res []Autolink, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/list-autolinks"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/autolinks"), } @@ -80457,7 +80458,7 @@ func (c *Client) sendReposListAutolinks(ctx context.Context, params ReposListAut u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -80491,7 +80492,7 @@ func (c *Client) ReposListBranches(ctx context.Context, params ReposListBranches func (c *Client) sendReposListBranches(ctx context.Context, params ReposListBranchesParams) (res ReposListBranchesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/list-branches"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches"), } @@ -80622,7 +80623,7 @@ func (c *Client) sendReposListBranches(ctx context.Context, params ReposListBran u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -80661,7 +80662,7 @@ func (c *Client) ReposListBranchesForHeadCommit(ctx context.Context, params Repo func (c *Client) sendReposListBranchesForHeadCommit(ctx context.Context, params ReposListBranchesForHeadCommitParams) (res ReposListBranchesForHeadCommitRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/list-branches-for-head-commit"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"), } @@ -80756,7 +80757,7 @@ func (c *Client) sendReposListBranchesForHeadCommit(ctx context.Context, params uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -80794,7 +80795,7 @@ func (c *Client) ReposListCollaborators(ctx context.Context, params ReposListCol func (c *Client) sendReposListCollaborators(ctx context.Context, params ReposListCollaboratorsParams) (res ReposListCollaboratorsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/list-collaborators"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/collaborators"), } @@ -80925,7 +80926,7 @@ func (c *Client) sendReposListCollaborators(ctx context.Context, params ReposLis u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -80959,7 +80960,7 @@ func (c *Client) ReposListCommentsForCommit(ctx context.Context, params ReposLis func (c *Client) sendReposListCommentsForCommit(ctx context.Context, params ReposListCommentsForCommitParams) (res *ReposListCommentsForCommitOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/list-comments-for-commit"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/commits/{commit_sha}/comments"), } @@ -81092,7 +81093,7 @@ func (c *Client) sendReposListCommentsForCommit(ctx context.Context, params Repo u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -81129,7 +81130,7 @@ func (c *Client) ReposListCommitCommentsForRepo(ctx context.Context, params Repo func (c *Client) sendReposListCommitCommentsForRepo(ctx context.Context, params ReposListCommitCommentsForRepoParams) (res *ReposListCommitCommentsForRepoOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/list-commit-comments-for-repo"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/comments"), } @@ -81243,7 +81244,7 @@ func (c *Client) sendReposListCommitCommentsForRepo(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -81280,7 +81281,7 @@ func (c *Client) ReposListCommitStatusesForRef(ctx context.Context, params Repos func (c *Client) sendReposListCommitStatusesForRef(ctx context.Context, params ReposListCommitStatusesForRefParams) (res ReposListCommitStatusesForRefRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/list-commit-statuses-for-ref"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/commits/{ref}/statuses"), } @@ -81413,7 +81414,7 @@ func (c *Client) sendReposListCommitStatusesForRef(ctx context.Context, params R u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -81478,7 +81479,7 @@ func (c *Client) ReposListCommits(ctx context.Context, params ReposListCommitsPa func (c *Client) sendReposListCommits(ctx context.Context, params ReposListCommitsParams) (res ReposListCommitsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/list-commits"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/commits"), } @@ -81677,7 +81678,7 @@ func (c *Client) sendReposListCommits(ctx context.Context, params ReposListCommi u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -81717,7 +81718,7 @@ func (c *Client) ReposListContributors(ctx context.Context, params ReposListCont func (c *Client) sendReposListContributors(ctx context.Context, params ReposListContributorsParams) (res ReposListContributorsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/list-contributors"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/contributors"), } @@ -81848,7 +81849,7 @@ func (c *Client) sendReposListContributors(ctx context.Context, params ReposList u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -81882,7 +81883,7 @@ func (c *Client) ReposListDeployKeys(ctx context.Context, params ReposListDeploy func (c *Client) sendReposListDeployKeys(ctx context.Context, params ReposListDeployKeysParams) (res *ReposListDeployKeysOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/list-deploy-keys"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/keys"), } @@ -81996,7 +81997,7 @@ func (c *Client) sendReposListDeployKeys(ctx context.Context, params ReposListDe u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -82030,7 +82031,7 @@ func (c *Client) ReposListDeploymentStatuses(ctx context.Context, params ReposLi func (c *Client) sendReposListDeploymentStatuses(ctx context.Context, params ReposListDeploymentStatusesParams) (res ReposListDeploymentStatusesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/list-deployment-statuses"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/deployments/{deployment_id}/statuses"), } @@ -82163,7 +82164,7 @@ func (c *Client) sendReposListDeploymentStatuses(ctx context.Context, params Rep u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -82197,7 +82198,7 @@ func (c *Client) ReposListDeployments(ctx context.Context, params ReposListDeplo func (c *Client) sendReposListDeployments(ctx context.Context, params ReposListDeploymentsParams) (res *ReposListDeploymentsOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/list-deployments"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/deployments"), } @@ -82379,7 +82380,7 @@ func (c *Client) sendReposListDeployments(ctx context.Context, params ReposListD u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -82416,7 +82417,7 @@ func (c *Client) ReposListForAuthenticatedUser(ctx context.Context, params Repos func (c *Client) sendReposListForAuthenticatedUser(ctx context.Context, params ReposListForAuthenticatedUserParams) (res ReposListForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/list-for-authenticated-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/repos"), } @@ -82611,7 +82612,7 @@ func (c *Client) sendReposListForAuthenticatedUser(ctx context.Context, params R u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -82645,7 +82646,7 @@ func (c *Client) ReposListForOrg(ctx context.Context, params ReposListForOrgPara func (c *Client) sendReposListForOrg(ctx context.Context, params ReposListForOrgParams) (res *ReposListForOrgOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/list-for-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/repos"), } @@ -82791,7 +82792,7 @@ func (c *Client) sendReposListForOrg(ctx context.Context, params ReposListForOrg u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -82826,7 +82827,7 @@ func (c *Client) ReposListForUser(ctx context.Context, params ReposListForUserPa func (c *Client) sendReposListForUser(ctx context.Context, params ReposListForUserParams) (res *ReposListForUserOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/list-for-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/users/{username}/repos"), } @@ -82972,7 +82973,7 @@ func (c *Client) sendReposListForUser(ctx context.Context, params ReposListForUs u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -83006,7 +83007,7 @@ func (c *Client) ReposListForks(ctx context.Context, params ReposListForksParams func (c *Client) sendReposListForks(ctx context.Context, params ReposListForksParams) (res ReposListForksRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/list-forks"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/forks"), } @@ -83137,7 +83138,7 @@ func (c *Client) sendReposListForks(ctx context.Context, params ReposListForksPa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -83172,7 +83173,7 @@ func (c *Client) ReposListInvitations(ctx context.Context, params ReposListInvit func (c *Client) sendReposListInvitations(ctx context.Context, params ReposListInvitationsParams) (res *ReposListInvitationsOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/list-invitations"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/invitations"), } @@ -83286,7 +83287,7 @@ func (c *Client) sendReposListInvitations(ctx context.Context, params ReposListI u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -83321,7 +83322,7 @@ func (c *Client) ReposListInvitationsForAuthenticatedUser(ctx context.Context, p func (c *Client) sendReposListInvitationsForAuthenticatedUser(ctx context.Context, params ReposListInvitationsForAuthenticatedUserParams) (res ReposListInvitationsForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/list-invitations-for-authenticated-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/repository_invitations"), } @@ -83397,7 +83398,7 @@ func (c *Client) sendReposListInvitationsForAuthenticatedUser(ctx context.Contex u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -83432,7 +83433,7 @@ func (c *Client) ReposListLanguages(ctx context.Context, params ReposListLanguag func (c *Client) sendReposListLanguages(ctx context.Context, params ReposListLanguagesParams) (res Language, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/list-languages"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/languages"), } @@ -83508,7 +83509,7 @@ func (c *Client) sendReposListLanguages(ctx context.Context, params ReposListLan uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -83542,7 +83543,7 @@ func (c *Client) ReposListPagesBuilds(ctx context.Context, params ReposListPages func (c *Client) sendReposListPagesBuilds(ctx context.Context, params ReposListPagesBuildsParams) (res *ReposListPagesBuildsOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/list-pages-builds"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pages/builds"), } @@ -83656,7 +83657,7 @@ func (c *Client) sendReposListPagesBuilds(ctx context.Context, params ReposListP u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -83696,7 +83697,7 @@ func (c *Client) ReposListPublic(ctx context.Context, params ReposListPublicPara func (c *Client) sendReposListPublic(ctx context.Context, params ReposListPublicParams) (res ReposListPublicRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/list-public"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repositories"), } @@ -83755,7 +83756,7 @@ func (c *Client) sendReposListPublic(ctx context.Context, params ReposListPublic u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -83794,7 +83795,7 @@ func (c *Client) ReposListPullRequestsAssociatedWithCommit(ctx context.Context, func (c *Client) sendReposListPullRequestsAssociatedWithCommit(ctx context.Context, params ReposListPullRequestsAssociatedWithCommitParams) (res *ReposListPullRequestsAssociatedWithCommitOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/list-pull-requests-associated-with-commit"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/commits/{commit_sha}/pulls"), } @@ -83927,7 +83928,7 @@ func (c *Client) sendReposListPullRequestsAssociatedWithCommit(ctx context.Conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -83961,7 +83962,7 @@ func (c *Client) ReposListReleaseAssets(ctx context.Context, params ReposListRel func (c *Client) sendReposListReleaseAssets(ctx context.Context, params ReposListReleaseAssetsParams) (res *ReposListReleaseAssetsOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/list-release-assets"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/releases/{release_id}/assets"), } @@ -84094,7 +84095,7 @@ func (c *Client) sendReposListReleaseAssets(ctx context.Context, params ReposLis u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -84132,7 +84133,7 @@ func (c *Client) ReposListReleases(ctx context.Context, params ReposListReleases func (c *Client) sendReposListReleases(ctx context.Context, params ReposListReleasesParams) (res ReposListReleasesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/list-releases"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/releases"), } @@ -84246,7 +84247,7 @@ func (c *Client) sendReposListReleases(ctx context.Context, params ReposListRele u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -84280,7 +84281,7 @@ func (c *Client) ReposListTags(ctx context.Context, params ReposListTagsParams) func (c *Client) sendReposListTags(ctx context.Context, params ReposListTagsParams) (res *ReposListTagsOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/list-tags"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/tags"), } @@ -84394,7 +84395,7 @@ func (c *Client) sendReposListTags(ctx context.Context, params ReposListTagsPara u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -84428,7 +84429,7 @@ func (c *Client) ReposListTeams(ctx context.Context, params ReposListTeamsParams func (c *Client) sendReposListTeams(ctx context.Context, params ReposListTeamsParams) (res *ReposListTeamsOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/list-teams"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/teams"), } @@ -84542,7 +84543,7 @@ func (c *Client) sendReposListTeams(ctx context.Context, params ReposListTeamsPa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -84576,7 +84577,7 @@ func (c *Client) ReposListWebhookDeliveries(ctx context.Context, params ReposLis func (c *Client) sendReposListWebhookDeliveries(ctx context.Context, params ReposListWebhookDeliveriesParams) (res ReposListWebhookDeliveriesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/list-webhook-deliveries"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/hooks/{hook_id}/deliveries"), } @@ -84709,7 +84710,7 @@ func (c *Client) sendReposListWebhookDeliveries(ctx context.Context, params Repo u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -84743,7 +84744,7 @@ func (c *Client) ReposListWebhooks(ctx context.Context, params ReposListWebhooks func (c *Client) sendReposListWebhooks(ctx context.Context, params ReposListWebhooksParams) (res ReposListWebhooksRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/list-webhooks"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/hooks"), } @@ -84857,7 +84858,7 @@ func (c *Client) sendReposListWebhooks(ctx context.Context, params ReposListWebh u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -84891,7 +84892,7 @@ func (c *Client) ReposMerge(ctx context.Context, request *ReposMergeReq, params func (c *Client) sendReposMerge(ctx context.Context, request *ReposMergeReq, params ReposMergeParams) (res ReposMergeRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/merge"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/merges"), } @@ -84967,7 +84968,7 @@ func (c *Client) sendReposMerge(ctx context.Context, request *ReposMergeReq, par uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -85005,7 +85006,7 @@ func (c *Client) ReposMergeUpstream(ctx context.Context, request *ReposMergeUpst func (c *Client) sendReposMergeUpstream(ctx context.Context, request *ReposMergeUpstreamReq, params ReposMergeUpstreamParams) (res ReposMergeUpstreamRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/merge-upstream"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/merge-upstream"), } @@ -85081,7 +85082,7 @@ func (c *Client) sendReposMergeUpstream(ctx context.Context, request *ReposMerge uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -85119,7 +85120,7 @@ func (c *Client) ReposPingWebhook(ctx context.Context, params ReposPingWebhookPa func (c *Client) sendReposPingWebhook(ctx context.Context, params ReposPingWebhookParams) (res ReposPingWebhookRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/ping-webhook"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/hooks/{hook_id}/pings"), } @@ -85214,7 +85215,7 @@ func (c *Client) sendReposPingWebhook(ctx context.Context, params ReposPingWebho uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -85248,7 +85249,7 @@ func (c *Client) ReposRedeliverWebhookDelivery(ctx context.Context, params Repos func (c *Client) sendReposRedeliverWebhookDelivery(ctx context.Context, params ReposRedeliverWebhookDeliveryParams) (res ReposRedeliverWebhookDeliveryRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/redeliver-webhook-delivery"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"), } @@ -85362,7 +85363,7 @@ func (c *Client) sendReposRedeliverWebhookDelivery(ctx context.Context, params R uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -85410,7 +85411,7 @@ func (c *Client) ReposRemoveAppAccessRestrictions(ctx context.Context, request O func (c *Client) sendReposRemoveAppAccessRestrictions(ctx context.Context, request OptReposRemoveAppAccessRestrictionsReq, params ReposRemoveAppAccessRestrictionsParams) (res ReposRemoveAppAccessRestrictionsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/remove-app-access-restrictions"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"), } // Validate request before sending. @@ -85521,7 +85522,7 @@ func (c *Client) sendReposRemoveAppAccessRestrictions(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -85558,7 +85559,7 @@ func (c *Client) ReposRemoveCollaborator(ctx context.Context, params ReposRemove func (c *Client) sendReposRemoveCollaborator(ctx context.Context, params ReposRemoveCollaboratorParams) (res *ReposRemoveCollaboratorNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/remove-collaborator"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/collaborators/{username}"), } @@ -85652,7 +85653,7 @@ func (c *Client) sendReposRemoveCollaborator(ctx context.Context, params ReposRe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -85690,7 +85691,7 @@ func (c *Client) ReposRemoveStatusCheckContexts(ctx context.Context, request Opt func (c *Client) sendReposRemoveStatusCheckContexts(ctx context.Context, request OptReposRemoveStatusCheckContextsReq, params ReposRemoveStatusCheckContextsParams) (res ReposRemoveStatusCheckContextsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/remove-status-check-contexts"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"), } // Validate request before sending. @@ -85801,7 +85802,7 @@ func (c *Client) sendReposRemoveStatusCheckContexts(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -85842,7 +85843,7 @@ func (c *Client) ReposRemoveStatusCheckProtection(ctx context.Context, params Re func (c *Client) sendReposRemoveStatusCheckProtection(ctx context.Context, params ReposRemoveStatusCheckProtectionParams) (res *ReposRemoveStatusCheckProtectionNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/remove-status-check-protection"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"), } @@ -85937,7 +85938,7 @@ func (c *Client) sendReposRemoveStatusCheckProtection(ctx context.Context, param uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -85985,7 +85986,7 @@ func (c *Client) ReposRemoveTeamAccessRestrictions(ctx context.Context, request func (c *Client) sendReposRemoveTeamAccessRestrictions(ctx context.Context, request OptReposRemoveTeamAccessRestrictionsReq, params ReposRemoveTeamAccessRestrictionsParams) (res ReposRemoveTeamAccessRestrictionsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/remove-team-access-restrictions"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"), } // Validate request before sending. @@ -86096,7 +86097,7 @@ func (c *Client) sendReposRemoveTeamAccessRestrictions(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -86146,7 +86147,7 @@ func (c *Client) ReposRemoveUserAccessRestrictions(ctx context.Context, request func (c *Client) sendReposRemoveUserAccessRestrictions(ctx context.Context, request OptReposRemoveUserAccessRestrictionsReq, params ReposRemoveUserAccessRestrictionsParams) (res ReposRemoveUserAccessRestrictionsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/remove-user-access-restrictions"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"), } // Validate request before sending. @@ -86257,7 +86258,7 @@ func (c *Client) sendReposRemoveUserAccessRestrictions(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -86306,7 +86307,7 @@ func (c *Client) ReposRenameBranch(ctx context.Context, request OptReposRenameBr func (c *Client) sendReposRenameBranch(ctx context.Context, request OptReposRenameBranchReq, params ReposRenameBranchParams) (res ReposRenameBranchRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/rename-branch"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/rename"), } @@ -86401,7 +86402,7 @@ func (c *Client) sendReposRenameBranch(ctx context.Context, request OptReposRena uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -86438,7 +86439,7 @@ func (c *Client) ReposReplaceAllTopics(ctx context.Context, request *ReposReplac func (c *Client) sendReposReplaceAllTopics(ctx context.Context, request *ReposReplaceAllTopicsReq, params ReposReplaceAllTopicsParams) (res ReposReplaceAllTopicsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/replace-all-topics"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/topics"), } // Validate request before sending. @@ -86523,7 +86524,7 @@ func (c *Client) sendReposReplaceAllTopics(ctx context.Context, request *ReposRe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -86565,7 +86566,7 @@ func (c *Client) ReposRequestPagesBuild(ctx context.Context, params ReposRequest func (c *Client) sendReposRequestPagesBuild(ctx context.Context, params ReposRequestPagesBuildParams) (res *PageBuildStatus, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/request-pages-build"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/pages/builds"), } @@ -86641,7 +86642,7 @@ func (c *Client) sendReposRequestPagesBuild(ctx context.Context, params ReposReq uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -86681,7 +86682,7 @@ func (c *Client) ReposSetAdminBranchProtection(ctx context.Context, params Repos func (c *Client) sendReposSetAdminBranchProtection(ctx context.Context, params ReposSetAdminBranchProtectionParams) (res *ProtectedBranchAdminEnforced, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/set-admin-branch-protection"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"), } @@ -86776,7 +86777,7 @@ func (c *Client) sendReposSetAdminBranchProtection(ctx context.Context, params R uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -86826,7 +86827,7 @@ func (c *Client) ReposSetAppAccessRestrictions(ctx context.Context, request OptR func (c *Client) sendReposSetAppAccessRestrictions(ctx context.Context, request OptReposSetAppAccessRestrictionsReq, params ReposSetAppAccessRestrictionsParams) (res ReposSetAppAccessRestrictionsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/set-app-access-restrictions"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"), } // Validate request before sending. @@ -86937,7 +86938,7 @@ func (c *Client) sendReposSetAppAccessRestrictions(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -86978,7 +86979,7 @@ func (c *Client) ReposSetStatusCheckContexts(ctx context.Context, request OptRep func (c *Client) sendReposSetStatusCheckContexts(ctx context.Context, request OptReposSetStatusCheckContextsReq, params ReposSetStatusCheckContextsParams) (res ReposSetStatusCheckContextsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/set-status-check-contexts"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"), } // Validate request before sending. @@ -87089,7 +87090,7 @@ func (c *Client) sendReposSetStatusCheckContexts(ctx context.Context, request Op uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -87141,7 +87142,7 @@ func (c *Client) ReposSetTeamAccessRestrictions(ctx context.Context, request Opt func (c *Client) sendReposSetTeamAccessRestrictions(ctx context.Context, request OptReposSetTeamAccessRestrictionsReq, params ReposSetTeamAccessRestrictionsParams) (res ReposSetTeamAccessRestrictionsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/set-team-access-restrictions"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"), } // Validate request before sending. @@ -87252,7 +87253,7 @@ func (c *Client) sendReposSetTeamAccessRestrictions(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -87303,7 +87304,7 @@ func (c *Client) ReposSetUserAccessRestrictions(ctx context.Context, request Opt func (c *Client) sendReposSetUserAccessRestrictions(ctx context.Context, request OptReposSetUserAccessRestrictionsReq, params ReposSetUserAccessRestrictionsParams) (res ReposSetUserAccessRestrictionsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/set-user-access-restrictions"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"), } // Validate request before sending. @@ -87414,7 +87415,7 @@ func (c *Client) sendReposSetUserAccessRestrictions(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -87454,7 +87455,7 @@ func (c *Client) ReposTestPushWebhook(ctx context.Context, params ReposTestPushW func (c *Client) sendReposTestPushWebhook(ctx context.Context, params ReposTestPushWebhookParams) (res ReposTestPushWebhookRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/test-push-webhook"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/hooks/{hook_id}/tests"), } @@ -87549,7 +87550,7 @@ func (c *Client) sendReposTestPushWebhook(ctx context.Context, params ReposTestP uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -87587,7 +87588,7 @@ func (c *Client) ReposTransfer(ctx context.Context, request *ReposTransferReq, p func (c *Client) sendReposTransfer(ctx context.Context, request *ReposTransferReq, params ReposTransferParams) (res *MinimalRepository, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/transfer"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/transfer"), } @@ -87663,7 +87664,7 @@ func (c *Client) sendReposTransfer(ctx context.Context, request *ReposTransferRe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -87701,7 +87702,7 @@ func (c *Client) ReposUpdate(ctx context.Context, request OptReposUpdateReq, par func (c *Client) sendReposUpdate(ctx context.Context, request OptReposUpdateReq, params ReposUpdateParams) (res ReposUpdateRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/update"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}"), } // Validate request before sending. @@ -87792,7 +87793,7 @@ func (c *Client) sendReposUpdate(ctx context.Context, request OptReposUpdateReq, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -87836,7 +87837,7 @@ func (c *Client) ReposUpdateBranchProtection(ctx context.Context, request *Repos func (c *Client) sendReposUpdateBranchProtection(ctx context.Context, request *ReposUpdateBranchProtectionReq, params ReposUpdateBranchProtectionParams) (res ReposUpdateBranchProtectionRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/update-branch-protection"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection"), } // Validate request before sending. @@ -87940,7 +87941,7 @@ func (c *Client) sendReposUpdateBranchProtection(ctx context.Context, request *R uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -87977,7 +87978,7 @@ func (c *Client) ReposUpdateCommitComment(ctx context.Context, request *ReposUpd func (c *Client) sendReposUpdateCommitComment(ctx context.Context, request *ReposUpdateCommitCommentReq, params ReposUpdateCommitCommentParams) (res ReposUpdateCommitCommentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/update-commit-comment"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/comments/{comment_id}"), } @@ -88071,7 +88072,7 @@ func (c *Client) sendReposUpdateCommitComment(ctx context.Context, request *Repo uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -88108,7 +88109,7 @@ func (c *Client) ReposUpdateInvitation(ctx context.Context, request OptReposUpda func (c *Client) sendReposUpdateInvitation(ctx context.Context, request OptReposUpdateInvitationReq, params ReposUpdateInvitationParams) (res *RepositoryInvitation, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/update-invitation"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/invitations/{invitation_id}"), } // Validate request before sending. @@ -88218,7 +88219,7 @@ func (c *Client) sendReposUpdateInvitation(ctx context.Context, request OptRepos uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -88262,7 +88263,7 @@ func (c *Client) ReposUpdatePullRequestReviewProtection(ctx context.Context, req func (c *Client) sendReposUpdatePullRequestReviewProtection(ctx context.Context, request OptReposUpdatePullRequestReviewProtectionReq, params ReposUpdatePullRequestReviewProtectionParams) (res ReposUpdatePullRequestReviewProtectionRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/update-pull-request-review-protection"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"), } @@ -88357,7 +88358,7 @@ func (c *Client) sendReposUpdatePullRequestReviewProtection(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -88394,7 +88395,7 @@ func (c *Client) ReposUpdateRelease(ctx context.Context, request OptReposUpdateR func (c *Client) sendReposUpdateRelease(ctx context.Context, request OptReposUpdateReleaseReq, params ReposUpdateReleaseParams) (res ReposUpdateReleaseRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/update-release"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/releases/{release_id}"), } @@ -88488,7 +88489,7 @@ func (c *Client) sendReposUpdateRelease(ctx context.Context, request OptReposUpd uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -88525,7 +88526,7 @@ func (c *Client) ReposUpdateReleaseAsset(ctx context.Context, request OptReposUp func (c *Client) sendReposUpdateReleaseAsset(ctx context.Context, request OptReposUpdateReleaseAssetReq, params ReposUpdateReleaseAssetParams) (res *ReleaseAsset, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/update-release-asset"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/releases/assets/{asset_id}"), } @@ -88619,7 +88620,7 @@ func (c *Client) sendReposUpdateReleaseAsset(ctx context.Context, request OptRep uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -88662,7 +88663,7 @@ func (c *Client) ReposUpdateStatusCheckProtection(ctx context.Context, request O func (c *Client) sendReposUpdateStatusCheckProtection(ctx context.Context, request OptReposUpdateStatusCheckProtectionReq, params ReposUpdateStatusCheckProtectionParams) (res ReposUpdateStatusCheckProtectionRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/update-status-check-protection"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"), } @@ -88757,7 +88758,7 @@ func (c *Client) sendReposUpdateStatusCheckProtection(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -88797,7 +88798,7 @@ func (c *Client) ReposUpdateWebhook(ctx context.Context, request OptReposUpdateW func (c *Client) sendReposUpdateWebhook(ctx context.Context, request OptReposUpdateWebhookReq, params ReposUpdateWebhookParams) (res ReposUpdateWebhookRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/update-webhook"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/hooks/{hook_id}"), } // Validate request before sending. @@ -88907,7 +88908,7 @@ func (c *Client) sendReposUpdateWebhook(ctx context.Context, request OptReposUpd uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -88948,7 +88949,7 @@ func (c *Client) ReposUpdateWebhookConfigForRepo(ctx context.Context, request Op func (c *Client) sendReposUpdateWebhookConfigForRepo(ctx context.Context, request OptReposUpdateWebhookConfigForRepoReq, params ReposUpdateWebhookConfigForRepoParams) (res *WebhookConfig, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/update-webhook-config-for-repo"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/hooks/{hook_id}/config"), } // Validate request before sending. @@ -89059,7 +89060,7 @@ func (c *Client) sendReposUpdateWebhookConfigForRepo(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -89121,7 +89122,7 @@ func (c *Client) ReposUploadReleaseAsset(ctx context.Context, request *ReposUplo func (c *Client) sendReposUploadReleaseAsset(ctx context.Context, request *ReposUploadReleaseAssetReqWithContentType, params ReposUploadReleaseAssetParams) (res *ReleaseAsset, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("repos/upload-release-asset"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/releases/{release_id}/assets"), } @@ -89251,7 +89252,7 @@ func (c *Client) sendReposUploadReleaseAsset(ctx context.Context, request *Repos u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -89288,7 +89289,7 @@ func (c *Client) ScimDeleteUserFromOrg(ctx context.Context, params ScimDeleteUse func (c *Client) sendScimDeleteUserFromOrg(ctx context.Context, params ScimDeleteUserFromOrgParams) (res ScimDeleteUserFromOrgRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("scim/delete-user-from-org"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/scim/v2/organizations/{org}/Users/{scim_user_id}"), } @@ -89363,7 +89364,7 @@ func (c *Client) sendScimDeleteUserFromOrg(ctx context.Context, params ScimDelet uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -89416,7 +89417,7 @@ func (c *Client) SearchCode(ctx context.Context, params SearchCodeParams) (Searc func (c *Client) sendSearchCode(ctx context.Context, params SearchCodeParams) (res SearchCodeRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("search/code"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/search/code"), } @@ -89540,7 +89541,7 @@ func (c *Client) sendSearchCode(ctx context.Context, params SearchCodeParams) (r u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -89584,7 +89585,7 @@ func (c *Client) SearchCommits(ctx context.Context, params SearchCommitsParams) func (c *Client) sendSearchCommits(ctx context.Context, params SearchCommitsParams) (res SearchCommitsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("search/commits"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/search/commits"), } @@ -89708,7 +89709,7 @@ func (c *Client) sendSearchCommits(ctx context.Context, params SearchCommitsPara u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -89764,7 +89765,7 @@ func (c *Client) SearchIssuesAndPullRequests(ctx context.Context, params SearchI func (c *Client) sendSearchIssuesAndPullRequests(ctx context.Context, params SearchIssuesAndPullRequestsParams) (res SearchIssuesAndPullRequestsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("search/issues-and-pull-requests"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/search/issues"), } @@ -89888,7 +89889,7 @@ func (c *Client) sendSearchIssuesAndPullRequests(ctx context.Context, params Sea u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -89931,7 +89932,7 @@ func (c *Client) SearchLabels(ctx context.Context, params SearchLabelsParams) (S func (c *Client) sendSearchLabels(ctx context.Context, params SearchLabelsParams) (res SearchLabelsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("search/labels"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/search/labels"), } @@ -90069,7 +90070,7 @@ func (c *Client) sendSearchLabels(ctx context.Context, params SearchLabelsParams u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -90118,7 +90119,7 @@ func (c *Client) SearchRepos(ctx context.Context, params SearchReposParams) (Sea func (c *Client) sendSearchRepos(ctx context.Context, params SearchReposParams) (res SearchReposRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("search/repos"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/search/repositories"), } @@ -90242,7 +90243,7 @@ func (c *Client) sendSearchRepos(ctx context.Context, params SearchReposParams) u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -90289,7 +90290,7 @@ func (c *Client) SearchTopics(ctx context.Context, params SearchTopicsParams) (S func (c *Client) sendSearchTopics(ctx context.Context, params SearchTopicsParams) (res SearchTopicsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("search/topics"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/search/topics"), } @@ -90379,7 +90380,7 @@ func (c *Client) sendSearchTopics(ctx context.Context, params SearchTopicsParams u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -90424,7 +90425,7 @@ func (c *Client) SearchUsers(ctx context.Context, params SearchUsersParams) (Sea func (c *Client) sendSearchUsers(ctx context.Context, params SearchUsersParams) (res SearchUsersRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("search/users"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/search/users"), } @@ -90548,7 +90549,7 @@ func (c *Client) sendSearchUsers(ctx context.Context, params SearchUsersParams) u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -90585,7 +90586,7 @@ func (c *Client) SecretScanningGetAlert(ctx context.Context, params SecretScanni func (c *Client) sendSecretScanningGetAlert(ctx context.Context, params SecretScanningGetAlertParams) (res SecretScanningGetAlertRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("secret-scanning/get-alert"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"), } @@ -90682,7 +90683,7 @@ func (c *Client) sendSecretScanningGetAlert(ctx context.Context, params SecretSc uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -90720,7 +90721,7 @@ func (c *Client) SecretScanningListAlertsForOrg(ctx context.Context, params Secr func (c *Client) sendSecretScanningListAlertsForOrg(ctx context.Context, params SecretScanningListAlertsForOrgParams) (res SecretScanningListAlertsForOrgRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("secret-scanning/list-alerts-for-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/secret-scanning/alerts"), } @@ -90849,7 +90850,7 @@ func (c *Client) sendSecretScanningListAlertsForOrg(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -90886,7 +90887,7 @@ func (c *Client) SecretScanningListAlertsForRepo(ctx context.Context, params Sec func (c *Client) sendSecretScanningListAlertsForRepo(ctx context.Context, params SecretScanningListAlertsForRepoParams) (res SecretScanningListAlertsForRepoRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("secret-scanning/list-alerts-for-repo"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/secret-scanning/alerts"), } @@ -91034,7 +91035,7 @@ func (c *Client) sendSecretScanningListAlertsForRepo(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -91071,7 +91072,7 @@ func (c *Client) SecretScanningUpdateAlert(ctx context.Context, request *SecretS func (c *Client) sendSecretScanningUpdateAlert(ctx context.Context, request *SecretScanningUpdateAlertReq, params SecretScanningUpdateAlertParams) (res SecretScanningUpdateAlertRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("secret-scanning/update-alert"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"), } // Validate request before sending. @@ -91177,7 +91178,7 @@ func (c *Client) sendSecretScanningUpdateAlert(ctx context.Context, request *Sec uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -91235,7 +91236,7 @@ func (c *Client) TeamsAddMemberLegacy(ctx context.Context, params TeamsAddMember func (c *Client) sendTeamsAddMemberLegacy(ctx context.Context, params TeamsAddMemberLegacyParams) (res TeamsAddMemberLegacyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/add-member-legacy"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/teams/{team_id}/members/{username}"), } @@ -91310,7 +91311,7 @@ func (c *Client) sendTeamsAddMemberLegacy(ctx context.Context, params TeamsAddMe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -91365,7 +91366,7 @@ func (c *Client) TeamsAddOrUpdateMembershipForUserInOrg(ctx context.Context, req func (c *Client) sendTeamsAddOrUpdateMembershipForUserInOrg(ctx context.Context, request OptTeamsAddOrUpdateMembershipForUserInOrgReq, params TeamsAddOrUpdateMembershipForUserInOrgParams) (res TeamsAddOrUpdateMembershipForUserInOrgRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/add-or-update-membership-for-user-in-org"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/memberships/{username}"), } // Validate request before sending. @@ -91475,7 +91476,7 @@ func (c *Client) sendTeamsAddOrUpdateMembershipForUserInOrg(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -91538,7 +91539,7 @@ func (c *Client) TeamsAddOrUpdateMembershipForUserLegacy(ctx context.Context, re func (c *Client) sendTeamsAddOrUpdateMembershipForUserLegacy(ctx context.Context, request OptTeamsAddOrUpdateMembershipForUserLegacyReq, params TeamsAddOrUpdateMembershipForUserLegacyParams) (res TeamsAddOrUpdateMembershipForUserLegacyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/add-or-update-membership-for-user-legacy"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/teams/{team_id}/memberships/{username}"), } // Validate request before sending. @@ -91629,7 +91630,7 @@ func (c *Client) sendTeamsAddOrUpdateMembershipForUserLegacy(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -91670,7 +91671,7 @@ func (c *Client) TeamsAddOrUpdateProjectPermissionsInOrg(ctx context.Context, re func (c *Client) sendTeamsAddOrUpdateProjectPermissionsInOrg(ctx context.Context, request OptNilTeamsAddOrUpdateProjectPermissionsInOrgReq, params TeamsAddOrUpdateProjectPermissionsInOrgParams) (res TeamsAddOrUpdateProjectPermissionsInOrgRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/add-or-update-project-permissions-in-org"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/projects/{project_id}"), } // Validate request before sending. @@ -91780,7 +91781,7 @@ func (c *Client) sendTeamsAddOrUpdateProjectPermissionsInOrg(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -91825,7 +91826,7 @@ func (c *Client) TeamsAddOrUpdateProjectPermissionsLegacy(ctx context.Context, r func (c *Client) sendTeamsAddOrUpdateProjectPermissionsLegacy(ctx context.Context, request OptTeamsAddOrUpdateProjectPermissionsLegacyReq, params TeamsAddOrUpdateProjectPermissionsLegacyParams) (res TeamsAddOrUpdateProjectPermissionsLegacyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/add-or-update-project-permissions-legacy"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/teams/{team_id}/projects/{project_id}"), } // Validate request before sending. @@ -91916,7 +91917,7 @@ func (c *Client) sendTeamsAddOrUpdateProjectPermissionsLegacy(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -91964,7 +91965,7 @@ func (c *Client) TeamsAddOrUpdateRepoPermissionsInOrg(ctx context.Context, reque func (c *Client) sendTeamsAddOrUpdateRepoPermissionsInOrg(ctx context.Context, request OptTeamsAddOrUpdateRepoPermissionsInOrgReq, params TeamsAddOrUpdateRepoPermissionsInOrgParams) (res *TeamsAddOrUpdateRepoPermissionsInOrgNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/add-or-update-repo-permissions-in-org"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"), } // Validate request before sending. @@ -92093,7 +92094,7 @@ func (c *Client) sendTeamsAddOrUpdateRepoPermissionsInOrg(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -92143,7 +92144,7 @@ func (c *Client) TeamsAddOrUpdateRepoPermissionsLegacy(ctx context.Context, requ func (c *Client) sendTeamsAddOrUpdateRepoPermissionsLegacy(ctx context.Context, request OptTeamsAddOrUpdateRepoPermissionsLegacyReq, params TeamsAddOrUpdateRepoPermissionsLegacyParams) (res TeamsAddOrUpdateRepoPermissionsLegacyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/add-or-update-repo-permissions-legacy"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/teams/{team_id}/repos/{owner}/{repo}"), } // Validate request before sending. @@ -92253,7 +92254,7 @@ func (c *Client) sendTeamsAddOrUpdateRepoPermissionsLegacy(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -92293,7 +92294,7 @@ func (c *Client) TeamsCheckPermissionsForProjectInOrg(ctx context.Context, param func (c *Client) sendTeamsCheckPermissionsForProjectInOrg(ctx context.Context, params TeamsCheckPermissionsForProjectInOrgParams) (res TeamsCheckPermissionsForProjectInOrgRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/check-permissions-for-project-in-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/projects/{project_id}"), } @@ -92387,7 +92388,7 @@ func (c *Client) sendTeamsCheckPermissionsForProjectInOrg(ctx context.Context, p uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -92428,7 +92429,7 @@ func (c *Client) TeamsCheckPermissionsForProjectLegacy(ctx context.Context, para func (c *Client) sendTeamsCheckPermissionsForProjectLegacy(ctx context.Context, params TeamsCheckPermissionsForProjectLegacyParams) (res TeamsCheckPermissionsForProjectLegacyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/check-permissions-for-project-legacy"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/teams/{team_id}/projects/{project_id}"), } @@ -92503,7 +92504,7 @@ func (c *Client) sendTeamsCheckPermissionsForProjectLegacy(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -92545,7 +92546,7 @@ func (c *Client) TeamsCheckPermissionsForRepoInOrg(ctx context.Context, params T func (c *Client) sendTeamsCheckPermissionsForRepoInOrg(ctx context.Context, params TeamsCheckPermissionsForRepoInOrgParams) (res TeamsCheckPermissionsForRepoInOrgRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/check-permissions-for-repo-in-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"), } @@ -92658,7 +92659,7 @@ func (c *Client) sendTeamsCheckPermissionsForRepoInOrg(ctx context.Context, para uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -92701,7 +92702,7 @@ func (c *Client) TeamsCheckPermissionsForRepoLegacy(ctx context.Context, params func (c *Client) sendTeamsCheckPermissionsForRepoLegacy(ctx context.Context, params TeamsCheckPermissionsForRepoLegacyParams) (res TeamsCheckPermissionsForRepoLegacyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/check-permissions-for-repo-legacy"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/teams/{team_id}/repos/{owner}/{repo}"), } @@ -92795,7 +92796,7 @@ func (c *Client) sendTeamsCheckPermissionsForRepoLegacy(ctx context.Context, par uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -92836,7 +92837,7 @@ func (c *Client) TeamsCreate(ctx context.Context, request *TeamsCreateReq, param func (c *Client) sendTeamsCreate(ctx context.Context, request *TeamsCreateReq, params TeamsCreateParams) (res TeamsCreateRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/create"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/orgs/{org}/teams"), } // Validate request before sending. @@ -92902,7 +92903,7 @@ func (c *Client) sendTeamsCreate(ctx context.Context, request *TeamsCreateReq, p uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -92949,7 +92950,7 @@ func (c *Client) TeamsCreateDiscussionCommentInOrg(ctx context.Context, request func (c *Client) sendTeamsCreateDiscussionCommentInOrg(ctx context.Context, request *TeamsCreateDiscussionCommentInOrgReq, params TeamsCreateDiscussionCommentInOrgParams) (res *TeamDiscussionComment, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/create-discussion-comment-in-org"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"), } @@ -93044,7 +93045,7 @@ func (c *Client) sendTeamsCreateDiscussionCommentInOrg(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -93094,7 +93095,7 @@ func (c *Client) TeamsCreateDiscussionCommentLegacy(ctx context.Context, request func (c *Client) sendTeamsCreateDiscussionCommentLegacy(ctx context.Context, request *TeamsCreateDiscussionCommentLegacyReq, params TeamsCreateDiscussionCommentLegacyParams) (res *TeamDiscussionComment, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/create-discussion-comment-legacy"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/teams/{team_id}/discussions/{discussion_number}/comments"), } @@ -93170,7 +93171,7 @@ func (c *Client) sendTeamsCreateDiscussionCommentLegacy(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -93217,7 +93218,7 @@ func (c *Client) TeamsCreateDiscussionInOrg(ctx context.Context, request *TeamsC func (c *Client) sendTeamsCreateDiscussionInOrg(ctx context.Context, request *TeamsCreateDiscussionInOrgReq, params TeamsCreateDiscussionInOrgParams) (res *TeamDiscussion, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/create-discussion-in-org"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/discussions"), } @@ -93293,7 +93294,7 @@ func (c *Client) sendTeamsCreateDiscussionInOrg(ctx context.Context, request *Te uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -93343,7 +93344,7 @@ func (c *Client) TeamsCreateDiscussionLegacy(ctx context.Context, request *Teams func (c *Client) sendTeamsCreateDiscussionLegacy(ctx context.Context, request *TeamsCreateDiscussionLegacyReq, params TeamsCreateDiscussionLegacyParams) (res *TeamDiscussion, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/create-discussion-legacy"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/teams/{team_id}/discussions"), } @@ -93400,7 +93401,7 @@ func (c *Client) sendTeamsCreateDiscussionLegacy(ctx context.Context, request *T uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -93444,7 +93445,7 @@ func (c *Client) TeamsCreateOrUpdateIdpGroupConnectionsInOrg(ctx context.Context func (c *Client) sendTeamsCreateOrUpdateIdpGroupConnectionsInOrg(ctx context.Context, request *TeamsCreateOrUpdateIdpGroupConnectionsInOrgReq, params TeamsCreateOrUpdateIdpGroupConnectionsInOrgParams) (res *GroupMapping, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/create-or-update-idp-group-connections-in-org"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/team-sync/group-mappings"), } @@ -93520,7 +93521,7 @@ func (c *Client) sendTeamsCreateOrUpdateIdpGroupConnectionsInOrg(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -93568,7 +93569,7 @@ func (c *Client) TeamsCreateOrUpdateIdpGroupConnectionsLegacy(ctx context.Contex func (c *Client) sendTeamsCreateOrUpdateIdpGroupConnectionsLegacy(ctx context.Context, request *TeamsCreateOrUpdateIdpGroupConnectionsLegacyReq, params TeamsCreateOrUpdateIdpGroupConnectionsLegacyParams) (res TeamsCreateOrUpdateIdpGroupConnectionsLegacyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/create-or-update-idp-group-connections-legacy"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/teams/{team_id}/team-sync/group-mappings"), } // Validate request before sending. @@ -93634,7 +93635,7 @@ func (c *Client) sendTeamsCreateOrUpdateIdpGroupConnectionsLegacy(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -93674,7 +93675,7 @@ func (c *Client) TeamsDeleteDiscussionCommentInOrg(ctx context.Context, params T func (c *Client) sendTeamsDeleteDiscussionCommentInOrg(ctx context.Context, params TeamsDeleteDiscussionCommentInOrgParams) (res *TeamsDeleteDiscussionCommentInOrgNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/delete-discussion-comment-in-org"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"), } @@ -93787,7 +93788,7 @@ func (c *Client) sendTeamsDeleteDiscussionCommentInOrg(ctx context.Context, para uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -93827,7 +93828,7 @@ func (c *Client) TeamsDeleteDiscussionCommentLegacy(ctx context.Context, params func (c *Client) sendTeamsDeleteDiscussionCommentLegacy(ctx context.Context, params TeamsDeleteDiscussionCommentLegacyParams) (res *TeamsDeleteDiscussionCommentLegacyNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/delete-discussion-comment-legacy"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}"), } @@ -93921,7 +93922,7 @@ func (c *Client) sendTeamsDeleteDiscussionCommentLegacy(ctx context.Context, par uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -93958,7 +93959,7 @@ func (c *Client) TeamsDeleteDiscussionInOrg(ctx context.Context, params TeamsDel func (c *Client) sendTeamsDeleteDiscussionInOrg(ctx context.Context, params TeamsDeleteDiscussionInOrgParams) (res *TeamsDeleteDiscussionInOrgNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/delete-discussion-in-org"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"), } @@ -94052,7 +94053,7 @@ func (c *Client) sendTeamsDeleteDiscussionInOrg(ctx context.Context, params Team uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -94092,7 +94093,7 @@ func (c *Client) TeamsDeleteDiscussionLegacy(ctx context.Context, params TeamsDe func (c *Client) sendTeamsDeleteDiscussionLegacy(ctx context.Context, params TeamsDeleteDiscussionLegacyParams) (res *TeamsDeleteDiscussionLegacyNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/delete-discussion-legacy"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/teams/{team_id}/discussions/{discussion_number}"), } @@ -94167,7 +94168,7 @@ func (c *Client) sendTeamsDeleteDiscussionLegacy(ctx context.Context, params Tea uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -94205,7 +94206,7 @@ func (c *Client) TeamsDeleteInOrg(ctx context.Context, params TeamsDeleteInOrgPa func (c *Client) sendTeamsDeleteInOrg(ctx context.Context, params TeamsDeleteInOrgParams) (res *TeamsDeleteInOrgNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/delete-in-org"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}"), } @@ -94280,7 +94281,7 @@ func (c *Client) sendTeamsDeleteInOrg(ctx context.Context, params TeamsDeleteInO uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -94321,7 +94322,7 @@ func (c *Client) TeamsDeleteLegacy(ctx context.Context, params TeamsDeleteLegacy func (c *Client) sendTeamsDeleteLegacy(ctx context.Context, params TeamsDeleteLegacyParams) (res TeamsDeleteLegacyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/delete-legacy"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/teams/{team_id}"), } @@ -94377,7 +94378,7 @@ func (c *Client) sendTeamsDeleteLegacy(ctx context.Context, params TeamsDeleteLe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -94413,7 +94414,7 @@ func (c *Client) TeamsGetByName(ctx context.Context, params TeamsGetByNameParams func (c *Client) sendTeamsGetByName(ctx context.Context, params TeamsGetByNameParams) (res TeamsGetByNameRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/get-by-name"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}"), } @@ -94488,7 +94489,7 @@ func (c *Client) sendTeamsGetByName(ctx context.Context, params TeamsGetByNamePa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -94525,7 +94526,7 @@ func (c *Client) TeamsGetDiscussionCommentInOrg(ctx context.Context, params Team func (c *Client) sendTeamsGetDiscussionCommentInOrg(ctx context.Context, params TeamsGetDiscussionCommentInOrgParams) (res *TeamDiscussionComment, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/get-discussion-comment-in-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"), } @@ -94638,7 +94639,7 @@ func (c *Client) sendTeamsGetDiscussionCommentInOrg(ctx context.Context, params uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -94678,7 +94679,7 @@ func (c *Client) TeamsGetDiscussionCommentLegacy(ctx context.Context, params Tea func (c *Client) sendTeamsGetDiscussionCommentLegacy(ctx context.Context, params TeamsGetDiscussionCommentLegacyParams) (res *TeamDiscussionComment, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/get-discussion-comment-legacy"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}"), } @@ -94772,7 +94773,7 @@ func (c *Client) sendTeamsGetDiscussionCommentLegacy(ctx context.Context, params uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -94809,7 +94810,7 @@ func (c *Client) TeamsGetDiscussionInOrg(ctx context.Context, params TeamsGetDis func (c *Client) sendTeamsGetDiscussionInOrg(ctx context.Context, params TeamsGetDiscussionInOrgParams) (res *TeamDiscussion, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/get-discussion-in-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"), } @@ -94903,7 +94904,7 @@ func (c *Client) sendTeamsGetDiscussionInOrg(ctx context.Context, params TeamsGe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -94943,7 +94944,7 @@ func (c *Client) TeamsGetDiscussionLegacy(ctx context.Context, params TeamsGetDi func (c *Client) sendTeamsGetDiscussionLegacy(ctx context.Context, params TeamsGetDiscussionLegacyParams) (res *TeamDiscussion, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/get-discussion-legacy"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/teams/{team_id}/discussions/{discussion_number}"), } @@ -95018,7 +95019,7 @@ func (c *Client) sendTeamsGetDiscussionLegacy(ctx context.Context, params TeamsG uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -95056,7 +95057,7 @@ func (c *Client) TeamsGetLegacy(ctx context.Context, params TeamsGetLegacyParams func (c *Client) sendTeamsGetLegacy(ctx context.Context, params TeamsGetLegacyParams) (res TeamsGetLegacyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/get-legacy"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/teams/{team_id}"), } @@ -95112,7 +95113,7 @@ func (c *Client) sendTeamsGetLegacy(ctx context.Context, params TeamsGetLegacyPa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -95152,7 +95153,7 @@ func (c *Client) TeamsGetMemberLegacy(ctx context.Context, params TeamsGetMember func (c *Client) sendTeamsGetMemberLegacy(ctx context.Context, params TeamsGetMemberLegacyParams) (res TeamsGetMemberLegacyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/get-member-legacy"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/teams/{team_id}/members/{username}"), } @@ -95227,7 +95228,7 @@ func (c *Client) sendTeamsGetMemberLegacy(ctx context.Context, params TeamsGetMe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -95268,7 +95269,7 @@ func (c *Client) TeamsGetMembershipForUserInOrg(ctx context.Context, params Team func (c *Client) sendTeamsGetMembershipForUserInOrg(ctx context.Context, params TeamsGetMembershipForUserInOrgParams) (res TeamsGetMembershipForUserInOrgRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/get-membership-for-user-in-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/memberships/{username}"), } @@ -95362,7 +95363,7 @@ func (c *Client) sendTeamsGetMembershipForUserInOrg(ctx context.Context, params uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -95406,7 +95407,7 @@ func (c *Client) TeamsGetMembershipForUserLegacy(ctx context.Context, params Tea func (c *Client) sendTeamsGetMembershipForUserLegacy(ctx context.Context, params TeamsGetMembershipForUserLegacyParams) (res TeamsGetMembershipForUserLegacyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/get-membership-for-user-legacy"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/teams/{team_id}/memberships/{username}"), } @@ -95481,7 +95482,7 @@ func (c *Client) sendTeamsGetMembershipForUserLegacy(ctx context.Context, params uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -95515,7 +95516,7 @@ func (c *Client) TeamsList(ctx context.Context, params TeamsListParams) (TeamsLi func (c *Client) sendTeamsList(ctx context.Context, params TeamsListParams) (res TeamsListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/list"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/teams"), } @@ -95610,7 +95611,7 @@ func (c *Client) sendTeamsList(ctx context.Context, params TeamsListParams) (res u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -95646,7 +95647,7 @@ func (c *Client) TeamsListChildInOrg(ctx context.Context, params TeamsListChildI func (c *Client) sendTeamsListChildInOrg(ctx context.Context, params TeamsListChildInOrgParams) (res *TeamsListChildInOrgOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/list-child-in-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/teams"), } @@ -95760,7 +95761,7 @@ func (c *Client) sendTeamsListChildInOrg(ctx context.Context, params TeamsListCh u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -95798,7 +95799,7 @@ func (c *Client) TeamsListChildLegacy(ctx context.Context, params TeamsListChild func (c *Client) sendTeamsListChildLegacy(ctx context.Context, params TeamsListChildLegacyParams) (res TeamsListChildLegacyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/list-child-legacy"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/teams/{team_id}/teams"), } @@ -95893,7 +95894,7 @@ func (c *Client) sendTeamsListChildLegacy(ctx context.Context, params TeamsListC u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -95930,7 +95931,7 @@ func (c *Client) TeamsListDiscussionCommentsInOrg(ctx context.Context, params Te func (c *Client) sendTeamsListDiscussionCommentsInOrg(ctx context.Context, params TeamsListDiscussionCommentsInOrgParams) (res *TeamsListDiscussionCommentsInOrgOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/list-discussion-comments-in-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"), } @@ -96080,7 +96081,7 @@ func (c *Client) sendTeamsListDiscussionCommentsInOrg(ctx context.Context, param u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -96120,7 +96121,7 @@ func (c *Client) TeamsListDiscussionCommentsLegacy(ctx context.Context, params T func (c *Client) sendTeamsListDiscussionCommentsLegacy(ctx context.Context, params TeamsListDiscussionCommentsLegacyParams) (res *TeamsListDiscussionCommentsLegacyOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/list-discussion-comments-legacy"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/teams/{team_id}/discussions/{discussion_number}/comments"), } @@ -96251,7 +96252,7 @@ func (c *Client) sendTeamsListDiscussionCommentsLegacy(ctx context.Context, para u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -96288,7 +96289,7 @@ func (c *Client) TeamsListDiscussionsInOrg(ctx context.Context, params TeamsList func (c *Client) sendTeamsListDiscussionsInOrg(ctx context.Context, params TeamsListDiscussionsInOrgParams) (res *TeamsListDiscussionsInOrgOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/list-discussions-in-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/discussions"), } @@ -96436,7 +96437,7 @@ func (c *Client) sendTeamsListDiscussionsInOrg(ctx context.Context, params Teams u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -96476,7 +96477,7 @@ func (c *Client) TeamsListDiscussionsLegacy(ctx context.Context, params TeamsLis func (c *Client) sendTeamsListDiscussionsLegacy(ctx context.Context, params TeamsListDiscussionsLegacyParams) (res *TeamsListDiscussionsLegacyOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/list-discussions-legacy"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/teams/{team_id}/discussions"), } @@ -96588,7 +96589,7 @@ func (c *Client) sendTeamsListDiscussionsLegacy(ctx context.Context, params Team u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -96625,7 +96626,7 @@ func (c *Client) TeamsListForAuthenticatedUser(ctx context.Context, params Teams func (c *Client) sendTeamsListForAuthenticatedUser(ctx context.Context, params TeamsListForAuthenticatedUserParams) (res TeamsListForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/list-for-authenticated-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/teams"), } @@ -96701,7 +96702,7 @@ func (c *Client) sendTeamsListForAuthenticatedUser(ctx context.Context, params T u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -96743,7 +96744,7 @@ func (c *Client) TeamsListIdpGroupsForLegacy(ctx context.Context, params TeamsLi func (c *Client) sendTeamsListIdpGroupsForLegacy(ctx context.Context, params TeamsListIdpGroupsForLegacyParams) (res TeamsListIdpGroupsForLegacyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/list-idp-groups-for-legacy"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/teams/{team_id}/team-sync/group-mappings"), } @@ -96800,7 +96801,7 @@ func (c *Client) sendTeamsListIdpGroupsForLegacy(ctx context.Context, params Tea uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -96840,7 +96841,7 @@ func (c *Client) TeamsListIdpGroupsForOrg(ctx context.Context, params TeamsListI func (c *Client) sendTeamsListIdpGroupsForOrg(ctx context.Context, params TeamsListIdpGroupsForOrgParams) (res *GroupMappingHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/list-idp-groups-for-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/team-sync/groups"), } @@ -96935,7 +96936,7 @@ func (c *Client) sendTeamsListIdpGroupsForOrg(ctx context.Context, params TeamsL u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -96974,7 +96975,7 @@ func (c *Client) TeamsListIdpGroupsInOrg(ctx context.Context, params TeamsListId func (c *Client) sendTeamsListIdpGroupsInOrg(ctx context.Context, params TeamsListIdpGroupsInOrgParams) (res *GroupMapping, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/list-idp-groups-in-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/team-sync/group-mappings"), } @@ -97050,7 +97051,7 @@ func (c *Client) sendTeamsListIdpGroupsInOrg(ctx context.Context, params TeamsLi uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -97085,7 +97086,7 @@ func (c *Client) TeamsListMembersInOrg(ctx context.Context, params TeamsListMemb func (c *Client) sendTeamsListMembersInOrg(ctx context.Context, params TeamsListMembersInOrgParams) (res *TeamsListMembersInOrgOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/list-members-in-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/members"), } @@ -97216,7 +97217,7 @@ func (c *Client) sendTeamsListMembersInOrg(ctx context.Context, params TeamsList u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -97255,7 +97256,7 @@ func (c *Client) TeamsListMembersLegacy(ctx context.Context, params TeamsListMem func (c *Client) sendTeamsListMembersLegacy(ctx context.Context, params TeamsListMembersLegacyParams) (res TeamsListMembersLegacyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/list-members-legacy"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/teams/{team_id}/members"), } @@ -97367,7 +97368,7 @@ func (c *Client) sendTeamsListMembersLegacy(ctx context.Context, params TeamsLis u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -97406,7 +97407,7 @@ func (c *Client) TeamsListPendingInvitationsInOrg(ctx context.Context, params Te func (c *Client) sendTeamsListPendingInvitationsInOrg(ctx context.Context, params TeamsListPendingInvitationsInOrgParams) (res *TeamsListPendingInvitationsInOrgOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/list-pending-invitations-in-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/invitations"), } @@ -97520,7 +97521,7 @@ func (c *Client) sendTeamsListPendingInvitationsInOrg(ctx context.Context, param u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -97562,7 +97563,7 @@ func (c *Client) TeamsListPendingInvitationsLegacy(ctx context.Context, params T func (c *Client) sendTeamsListPendingInvitationsLegacy(ctx context.Context, params TeamsListPendingInvitationsLegacyParams) (res *TeamsListPendingInvitationsLegacyOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/list-pending-invitations-legacy"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/teams/{team_id}/invitations"), } @@ -97657,7 +97658,7 @@ func (c *Client) sendTeamsListPendingInvitationsLegacy(ctx context.Context, para u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -97693,7 +97694,7 @@ func (c *Client) TeamsListProjectsInOrg(ctx context.Context, params TeamsListPro func (c *Client) sendTeamsListProjectsInOrg(ctx context.Context, params TeamsListProjectsInOrgParams) (res *TeamsListProjectsInOrgOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/list-projects-in-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/projects"), } @@ -97807,7 +97808,7 @@ func (c *Client) sendTeamsListProjectsInOrg(ctx context.Context, params TeamsLis u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -97846,7 +97847,7 @@ func (c *Client) TeamsListProjectsLegacy(ctx context.Context, params TeamsListPr func (c *Client) sendTeamsListProjectsLegacy(ctx context.Context, params TeamsListProjectsLegacyParams) (res TeamsListProjectsLegacyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/list-projects-legacy"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/teams/{team_id}/projects"), } @@ -97941,7 +97942,7 @@ func (c *Client) sendTeamsListProjectsLegacy(ctx context.Context, params TeamsLi u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -97977,7 +97978,7 @@ func (c *Client) TeamsListReposInOrg(ctx context.Context, params TeamsListReposI func (c *Client) sendTeamsListReposInOrg(ctx context.Context, params TeamsListReposInOrgParams) (res *TeamsListReposInOrgOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/list-repos-in-org"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/repos"), } @@ -98091,7 +98092,7 @@ func (c *Client) sendTeamsListReposInOrg(ctx context.Context, params TeamsListRe u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -98129,7 +98130,7 @@ func (c *Client) TeamsListReposLegacy(ctx context.Context, params TeamsListRepos func (c *Client) sendTeamsListReposLegacy(ctx context.Context, params TeamsListReposLegacyParams) (res TeamsListReposLegacyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/list-repos-legacy"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/teams/{team_id}/repos"), } @@ -98224,7 +98225,7 @@ func (c *Client) sendTeamsListReposLegacy(ctx context.Context, params TeamsListR u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -98278,7 +98279,7 @@ func (c *Client) TeamsRemoveMemberLegacy(ctx context.Context, params TeamsRemove func (c *Client) sendTeamsRemoveMemberLegacy(ctx context.Context, params TeamsRemoveMemberLegacyParams) (res TeamsRemoveMemberLegacyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/remove-member-legacy"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/teams/{team_id}/members/{username}"), } @@ -98353,7 +98354,7 @@ func (c *Client) sendTeamsRemoveMemberLegacy(ctx context.Context, params TeamsRe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -98401,7 +98402,7 @@ func (c *Client) TeamsRemoveMembershipForUserInOrg(ctx context.Context, params T func (c *Client) sendTeamsRemoveMembershipForUserInOrg(ctx context.Context, params TeamsRemoveMembershipForUserInOrgParams) (res TeamsRemoveMembershipForUserInOrgRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/remove-membership-for-user-in-org"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/memberships/{username}"), } @@ -98495,7 +98496,7 @@ func (c *Client) sendTeamsRemoveMembershipForUserInOrg(ctx context.Context, para uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -98546,7 +98547,7 @@ func (c *Client) TeamsRemoveMembershipForUserLegacy(ctx context.Context, params func (c *Client) sendTeamsRemoveMembershipForUserLegacy(ctx context.Context, params TeamsRemoveMembershipForUserLegacyParams) (res TeamsRemoveMembershipForUserLegacyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/remove-membership-for-user-legacy"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/teams/{team_id}/memberships/{username}"), } @@ -98621,7 +98622,7 @@ func (c *Client) sendTeamsRemoveMembershipForUserLegacy(ctx context.Context, par uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -98660,7 +98661,7 @@ func (c *Client) TeamsRemoveProjectInOrg(ctx context.Context, params TeamsRemove func (c *Client) sendTeamsRemoveProjectInOrg(ctx context.Context, params TeamsRemoveProjectInOrgParams) (res *TeamsRemoveProjectInOrgNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/remove-project-in-org"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/projects/{project_id}"), } @@ -98754,7 +98755,7 @@ func (c *Client) sendTeamsRemoveProjectInOrg(ctx context.Context, params TeamsRe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -98796,7 +98797,7 @@ func (c *Client) TeamsRemoveProjectLegacy(ctx context.Context, params TeamsRemov func (c *Client) sendTeamsRemoveProjectLegacy(ctx context.Context, params TeamsRemoveProjectLegacyParams) (res TeamsRemoveProjectLegacyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/remove-project-legacy"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/teams/{team_id}/projects/{project_id}"), } @@ -98871,7 +98872,7 @@ func (c *Client) sendTeamsRemoveProjectLegacy(ctx context.Context, params TeamsR uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -98910,7 +98911,7 @@ func (c *Client) TeamsRemoveRepoInOrg(ctx context.Context, params TeamsRemoveRep func (c *Client) sendTeamsRemoveRepoInOrg(ctx context.Context, params TeamsRemoveRepoInOrgParams) (res *TeamsRemoveRepoInOrgNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/remove-repo-in-org"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"), } @@ -99023,7 +99024,7 @@ func (c *Client) sendTeamsRemoveRepoInOrg(ctx context.Context, params TeamsRemov uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -99065,7 +99066,7 @@ func (c *Client) TeamsRemoveRepoLegacy(ctx context.Context, params TeamsRemoveRe func (c *Client) sendTeamsRemoveRepoLegacy(ctx context.Context, params TeamsRemoveRepoLegacyParams) (res *TeamsRemoveRepoLegacyNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/remove-repo-legacy"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/teams/{team_id}/repos/{owner}/{repo}"), } @@ -99159,7 +99160,7 @@ func (c *Client) sendTeamsRemoveRepoLegacy(ctx context.Context, params TeamsRemo uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -99196,7 +99197,7 @@ func (c *Client) TeamsUpdateDiscussionCommentInOrg(ctx context.Context, request func (c *Client) sendTeamsUpdateDiscussionCommentInOrg(ctx context.Context, request *TeamsUpdateDiscussionCommentInOrgReq, params TeamsUpdateDiscussionCommentInOrgParams) (res *TeamDiscussionComment, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/update-discussion-comment-in-org"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"), } @@ -99309,7 +99310,7 @@ func (c *Client) sendTeamsUpdateDiscussionCommentInOrg(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -99352,7 +99353,7 @@ func (c *Client) TeamsUpdateDiscussionCommentLegacy(ctx context.Context, request func (c *Client) sendTeamsUpdateDiscussionCommentLegacy(ctx context.Context, request *TeamsUpdateDiscussionCommentLegacyReq, params TeamsUpdateDiscussionCommentLegacyParams) (res *TeamDiscussionComment, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/update-discussion-comment-legacy"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}"), } @@ -99446,7 +99447,7 @@ func (c *Client) sendTeamsUpdateDiscussionCommentLegacy(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -99487,7 +99488,7 @@ func (c *Client) TeamsUpdateDiscussionInOrg(ctx context.Context, request OptTeam func (c *Client) sendTeamsUpdateDiscussionInOrg(ctx context.Context, request OptTeamsUpdateDiscussionInOrgReq, params TeamsUpdateDiscussionInOrgParams) (res *TeamDiscussion, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/update-discussion-in-org"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"), } @@ -99581,7 +99582,7 @@ func (c *Client) sendTeamsUpdateDiscussionInOrg(ctx context.Context, request Opt uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -99625,7 +99626,7 @@ func (c *Client) TeamsUpdateDiscussionLegacy(ctx context.Context, request OptTea func (c *Client) sendTeamsUpdateDiscussionLegacy(ctx context.Context, request OptTeamsUpdateDiscussionLegacyReq, params TeamsUpdateDiscussionLegacyParams) (res *TeamDiscussion, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/update-discussion-legacy"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/teams/{team_id}/discussions/{discussion_number}"), } @@ -99700,7 +99701,7 @@ func (c *Client) sendTeamsUpdateDiscussionLegacy(ctx context.Context, request Op uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -99739,7 +99740,7 @@ func (c *Client) TeamsUpdateInOrg(ctx context.Context, request OptTeamsUpdateInO func (c *Client) sendTeamsUpdateInOrg(ctx context.Context, request OptTeamsUpdateInOrgReq, params TeamsUpdateInOrgParams) (res *TeamFull, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/update-in-org"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/orgs/{org}/teams/{team_slug}"), } // Validate request before sending. @@ -99830,7 +99831,7 @@ func (c *Client) sendTeamsUpdateInOrg(ctx context.Context, request OptTeamsUpdat uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -99873,7 +99874,7 @@ func (c *Client) TeamsUpdateLegacy(ctx context.Context, request *TeamsUpdateLega func (c *Client) sendTeamsUpdateLegacy(ctx context.Context, request *TeamsUpdateLegacyReq, params TeamsUpdateLegacyParams) (res TeamsUpdateLegacyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("teams/update-legacy"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/teams/{team_id}"), } // Validate request before sending. @@ -99938,7 +99939,7 @@ func (c *Client) sendTeamsUpdateLegacy(ctx context.Context, request *TeamsUpdate uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -99975,7 +99976,7 @@ func (c *Client) UsersAddEmailForAuthenticated(ctx context.Context, request OptU func (c *Client) sendUsersAddEmailForAuthenticated(ctx context.Context, request OptUsersAddEmailForAuthenticatedReq) (res UsersAddEmailForAuthenticatedRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/add-email-for-authenticated"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/user/emails"), } // Validate request before sending. @@ -100029,7 +100030,7 @@ func (c *Client) sendUsersAddEmailForAuthenticated(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -100066,7 +100067,7 @@ func (c *Client) UsersBlock(ctx context.Context, params UsersBlockParams) (Users func (c *Client) sendUsersBlock(ctx context.Context, params UsersBlockParams) (res UsersBlockRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/block"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/user/blocks/{username}"), } @@ -100122,7 +100123,7 @@ func (c *Client) sendUsersBlock(ctx context.Context, params UsersBlockParams) (r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -100156,7 +100157,7 @@ func (c *Client) UsersCheckBlocked(ctx context.Context, params UsersCheckBlocked func (c *Client) sendUsersCheckBlocked(ctx context.Context, params UsersCheckBlockedParams) (res UsersCheckBlockedRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/check-blocked"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/blocks/{username}"), } @@ -100212,7 +100213,7 @@ func (c *Client) sendUsersCheckBlocked(ctx context.Context, params UsersCheckBlo uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -100246,7 +100247,7 @@ func (c *Client) UsersCheckFollowingForUser(ctx context.Context, params UsersChe func (c *Client) sendUsersCheckFollowingForUser(ctx context.Context, params UsersCheckFollowingForUserParams) (res UsersCheckFollowingForUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/check-following-for-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/users/{username}/following/{target_user}"), } @@ -100321,7 +100322,7 @@ func (c *Client) sendUsersCheckFollowingForUser(ctx context.Context, params User uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -100355,7 +100356,7 @@ func (c *Client) UsersCheckPersonIsFollowedByAuthenticated(ctx context.Context, func (c *Client) sendUsersCheckPersonIsFollowedByAuthenticated(ctx context.Context, params UsersCheckPersonIsFollowedByAuthenticatedParams) (res UsersCheckPersonIsFollowedByAuthenticatedRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/check-person-is-followed-by-authenticated"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/following/{username}"), } @@ -100411,7 +100412,7 @@ func (c *Client) sendUsersCheckPersonIsFollowedByAuthenticated(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -100447,7 +100448,7 @@ func (c *Client) UsersCreateGpgKeyForAuthenticated(ctx context.Context, request func (c *Client) sendUsersCreateGpgKeyForAuthenticated(ctx context.Context, request *UsersCreateGpgKeyForAuthenticatedReq) (res UsersCreateGpgKeyForAuthenticatedRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/create-gpg-key-for-authenticated"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/user/gpg_keys"), } @@ -100485,7 +100486,7 @@ func (c *Client) sendUsersCreateGpgKeyForAuthenticated(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -100524,7 +100525,7 @@ func (c *Client) UsersCreatePublicSSHKeyForAuthenticated(ctx context.Context, re func (c *Client) sendUsersCreatePublicSSHKeyForAuthenticated(ctx context.Context, request *UsersCreatePublicSSHKeyForAuthenticatedReq) (res UsersCreatePublicSSHKeyForAuthenticatedRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/create-public-ssh-key-for-authenticated"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/user/keys"), } // Validate request before sending. @@ -100571,7 +100572,7 @@ func (c *Client) sendUsersCreatePublicSSHKeyForAuthenticated(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -100608,7 +100609,7 @@ func (c *Client) UsersDeleteEmailForAuthenticated(ctx context.Context, request O func (c *Client) sendUsersDeleteEmailForAuthenticated(ctx context.Context, request OptUsersDeleteEmailForAuthenticatedReq) (res UsersDeleteEmailForAuthenticatedRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/delete-email-for-authenticated"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/user/emails"), } // Validate request before sending. @@ -100662,7 +100663,7 @@ func (c *Client) sendUsersDeleteEmailForAuthenticated(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -100701,7 +100702,7 @@ func (c *Client) UsersDeleteGpgKeyForAuthenticated(ctx context.Context, params U func (c *Client) sendUsersDeleteGpgKeyForAuthenticated(ctx context.Context, params UsersDeleteGpgKeyForAuthenticatedParams) (res UsersDeleteGpgKeyForAuthenticatedRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/delete-gpg-key-for-authenticated"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/user/gpg_keys/{gpg_key_id}"), } @@ -100757,7 +100758,7 @@ func (c *Client) sendUsersDeleteGpgKeyForAuthenticated(ctx context.Context, para uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -100793,7 +100794,7 @@ func (c *Client) UsersDeletePublicSSHKeyForAuthenticated(ctx context.Context, pa func (c *Client) sendUsersDeletePublicSSHKeyForAuthenticated(ctx context.Context, params UsersDeletePublicSSHKeyForAuthenticatedParams) (res UsersDeletePublicSSHKeyForAuthenticatedRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/delete-public-ssh-key-for-authenticated"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/user/keys/{key_id}"), } @@ -100849,7 +100850,7 @@ func (c *Client) sendUsersDeletePublicSSHKeyForAuthenticated(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -100887,7 +100888,7 @@ func (c *Client) UsersFollow(ctx context.Context, params UsersFollowParams) (Use func (c *Client) sendUsersFollow(ctx context.Context, params UsersFollowParams) (res UsersFollowRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/follow"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/user/following/{username}"), } @@ -100943,7 +100944,7 @@ func (c *Client) sendUsersFollow(ctx context.Context, params UsersFollowParams) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -100980,7 +100981,7 @@ func (c *Client) UsersGetAuthenticated(ctx context.Context) (UsersGetAuthenticat func (c *Client) sendUsersGetAuthenticated(ctx context.Context) (res UsersGetAuthenticatedRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/get-authenticated"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user"), } @@ -101018,7 +101019,7 @@ func (c *Client) sendUsersGetAuthenticated(ctx context.Context) (res UsersGetAut uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -101066,7 +101067,7 @@ func (c *Client) UsersGetByUsername(ctx context.Context, params UsersGetByUserna func (c *Client) sendUsersGetByUsername(ctx context.Context, params UsersGetByUsernameParams) (res UsersGetByUsernameRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/get-by-username"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/users/{username}"), } @@ -101122,7 +101123,7 @@ func (c *Client) sendUsersGetByUsername(ctx context.Context, params UsersGetByUs uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -101165,7 +101166,7 @@ func (c *Client) UsersGetContextForUser(ctx context.Context, params UsersGetCont func (c *Client) sendUsersGetContextForUser(ctx context.Context, params UsersGetContextForUserParams) (res UsersGetContextForUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/get-context-for-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/users/{username}/hovercard"), } @@ -101260,7 +101261,7 @@ func (c *Client) sendUsersGetContextForUser(ctx context.Context, params UsersGet u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -101296,7 +101297,7 @@ func (c *Client) UsersGetGpgKeyForAuthenticated(ctx context.Context, params User func (c *Client) sendUsersGetGpgKeyForAuthenticated(ctx context.Context, params UsersGetGpgKeyForAuthenticatedParams) (res UsersGetGpgKeyForAuthenticatedRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/get-gpg-key-for-authenticated"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/gpg_keys/{gpg_key_id}"), } @@ -101352,7 +101353,7 @@ func (c *Client) sendUsersGetGpgKeyForAuthenticated(ctx context.Context, params uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -101388,7 +101389,7 @@ func (c *Client) UsersGetPublicSSHKeyForAuthenticated(ctx context.Context, param func (c *Client) sendUsersGetPublicSSHKeyForAuthenticated(ctx context.Context, params UsersGetPublicSSHKeyForAuthenticatedParams) (res UsersGetPublicSSHKeyForAuthenticatedRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/get-public-ssh-key-for-authenticated"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/keys/{key_id}"), } @@ -101444,7 +101445,7 @@ func (c *Client) sendUsersGetPublicSSHKeyForAuthenticated(ctx context.Context, p uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -101482,7 +101483,7 @@ func (c *Client) UsersList(ctx context.Context, params UsersListParams) (UsersLi func (c *Client) sendUsersList(ctx context.Context, params UsersListParams) (res UsersListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/list"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/users"), } @@ -101558,7 +101559,7 @@ func (c *Client) sendUsersList(ctx context.Context, params UsersListParams) (res u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -101592,7 +101593,7 @@ func (c *Client) UsersListBlockedByAuthenticated(ctx context.Context) (UsersList func (c *Client) sendUsersListBlockedByAuthenticated(ctx context.Context) (res UsersListBlockedByAuthenticatedRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/list-blocked-by-authenticated"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/blocks"), } @@ -101630,7 +101631,7 @@ func (c *Client) sendUsersListBlockedByAuthenticated(ctx context.Context) (res U uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -101665,7 +101666,7 @@ func (c *Client) UsersListEmailsForAuthenticated(ctx context.Context, params Use func (c *Client) sendUsersListEmailsForAuthenticated(ctx context.Context, params UsersListEmailsForAuthenticatedParams) (res UsersListEmailsForAuthenticatedRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/list-emails-for-authenticated"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/emails"), } @@ -101741,7 +101742,7 @@ func (c *Client) sendUsersListEmailsForAuthenticated(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -101775,7 +101776,7 @@ func (c *Client) UsersListFollowedByAuthenticated(ctx context.Context, params Us func (c *Client) sendUsersListFollowedByAuthenticated(ctx context.Context, params UsersListFollowedByAuthenticatedParams) (res UsersListFollowedByAuthenticatedRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/list-followed-by-authenticated"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/following"), } @@ -101851,7 +101852,7 @@ func (c *Client) sendUsersListFollowedByAuthenticated(ctx context.Context, param u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -101885,7 +101886,7 @@ func (c *Client) UsersListFollowersForAuthenticatedUser(ctx context.Context, par func (c *Client) sendUsersListFollowersForAuthenticatedUser(ctx context.Context, params UsersListFollowersForAuthenticatedUserParams) (res UsersListFollowersForAuthenticatedUserRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/list-followers-for-authenticated-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/followers"), } @@ -101961,7 +101962,7 @@ func (c *Client) sendUsersListFollowersForAuthenticatedUser(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -101995,7 +101996,7 @@ func (c *Client) UsersListFollowersForUser(ctx context.Context, params UsersList func (c *Client) sendUsersListFollowersForUser(ctx context.Context, params UsersListFollowersForUserParams) (res *UsersListFollowersForUserOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/list-followers-for-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/users/{username}/followers"), } @@ -102090,7 +102091,7 @@ func (c *Client) sendUsersListFollowersForUser(ctx context.Context, params Users u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -102124,7 +102125,7 @@ func (c *Client) UsersListFollowingForUser(ctx context.Context, params UsersList func (c *Client) sendUsersListFollowingForUser(ctx context.Context, params UsersListFollowingForUserParams) (res *UsersListFollowingForUserOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/list-following-for-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/users/{username}/following"), } @@ -102219,7 +102220,7 @@ func (c *Client) sendUsersListFollowingForUser(ctx context.Context, params Users u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -102255,7 +102256,7 @@ func (c *Client) UsersListGpgKeysForAuthenticated(ctx context.Context, params Us func (c *Client) sendUsersListGpgKeysForAuthenticated(ctx context.Context, params UsersListGpgKeysForAuthenticatedParams) (res UsersListGpgKeysForAuthenticatedRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/list-gpg-keys-for-authenticated"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/gpg_keys"), } @@ -102331,7 +102332,7 @@ func (c *Client) sendUsersListGpgKeysForAuthenticated(ctx context.Context, param u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -102365,7 +102366,7 @@ func (c *Client) UsersListGpgKeysForUser(ctx context.Context, params UsersListGp func (c *Client) sendUsersListGpgKeysForUser(ctx context.Context, params UsersListGpgKeysForUserParams) (res *UsersListGpgKeysForUserOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/list-gpg-keys-for-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/users/{username}/gpg_keys"), } @@ -102460,7 +102461,7 @@ func (c *Client) sendUsersListGpgKeysForUser(ctx context.Context, params UsersLi u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -102497,7 +102498,7 @@ func (c *Client) UsersListPublicEmailsForAuthenticated(ctx context.Context, para func (c *Client) sendUsersListPublicEmailsForAuthenticated(ctx context.Context, params UsersListPublicEmailsForAuthenticatedParams) (res UsersListPublicEmailsForAuthenticatedRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/list-public-emails-for-authenticated"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/public_emails"), } @@ -102573,7 +102574,7 @@ func (c *Client) sendUsersListPublicEmailsForAuthenticated(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -102607,7 +102608,7 @@ func (c *Client) UsersListPublicKeysForUser(ctx context.Context, params UsersLis func (c *Client) sendUsersListPublicKeysForUser(ctx context.Context, params UsersListPublicKeysForUserParams) (res *UsersListPublicKeysForUserOKHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/list-public-keys-for-user"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/users/{username}/keys"), } @@ -102702,7 +102703,7 @@ func (c *Client) sendUsersListPublicKeysForUser(ctx context.Context, params User u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -102738,7 +102739,7 @@ func (c *Client) UsersListPublicSSHKeysForAuthenticated(ctx context.Context, par func (c *Client) sendUsersListPublicSSHKeysForAuthenticated(ctx context.Context, params UsersListPublicSSHKeysForAuthenticatedParams) (res UsersListPublicSSHKeysForAuthenticatedRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/list-public-ssh-keys-for-authenticated"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/keys"), } @@ -102814,7 +102815,7 @@ func (c *Client) sendUsersListPublicSSHKeysForAuthenticated(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -102848,7 +102849,7 @@ func (c *Client) UsersSetPrimaryEmailVisibilityForAuthenticated(ctx context.Cont func (c *Client) sendUsersSetPrimaryEmailVisibilityForAuthenticated(ctx context.Context, request *UsersSetPrimaryEmailVisibilityForAuthenticatedReq) (res UsersSetPrimaryEmailVisibilityForAuthenticatedRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/set-primary-email-visibility-for-authenticated"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/user/email/visibility"), } // Validate request before sending. @@ -102895,7 +102896,7 @@ func (c *Client) sendUsersSetPrimaryEmailVisibilityForAuthenticated(ctx context. uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -102932,7 +102933,7 @@ func (c *Client) UsersUnblock(ctx context.Context, params UsersUnblockParams) (U func (c *Client) sendUsersUnblock(ctx context.Context, params UsersUnblockParams) (res UsersUnblockRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/unblock"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/user/blocks/{username}"), } @@ -102988,7 +102989,7 @@ func (c *Client) sendUsersUnblock(ctx context.Context, params UsersUnblockParams uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -103023,7 +103024,7 @@ func (c *Client) UsersUnfollow(ctx context.Context, params UsersUnfollowParams) func (c *Client) sendUsersUnfollow(ctx context.Context, params UsersUnfollowParams) (res UsersUnfollowRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/unfollow"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/user/following/{username}"), } @@ -103079,7 +103080,7 @@ func (c *Client) sendUsersUnfollow(ctx context.Context, params UsersUnfollowPara uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -103115,7 +103116,7 @@ func (c *Client) UsersUpdateAuthenticated(ctx context.Context, request OptUsersU func (c *Client) sendUsersUpdateAuthenticated(ctx context.Context, request OptUsersUpdateAuthenticatedReq) (res UsersUpdateAuthenticatedRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("users/update-authenticated"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/user"), } @@ -103153,7 +103154,7 @@ func (c *Client) sendUsersUpdateAuthenticated(ctx context.Context, request OptUs uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/examples/ex_gotd/oas_client_gen.go b/examples/ex_gotd/oas_client_gen.go index 04e8b2932..f39189157 100644 --- a/examples/ex_gotd/oas_client_gen.go +++ b/examples/ex_gotd/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -435,7 +436,7 @@ func (c *Client) AddStickerToSet(ctx context.Context, request *AddStickerToSet) func (c *Client) sendAddStickerToSet(ctx context.Context, request *AddStickerToSet) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("addStickerToSet"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/addStickerToSet"), } // Validate request before sending. @@ -482,7 +483,7 @@ func (c *Client) sendAddStickerToSet(ctx context.Context, request *AddStickerToS uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -517,7 +518,7 @@ func (c *Client) AnswerCallbackQuery(ctx context.Context, request *AnswerCallbac func (c *Client) sendAnswerCallbackQuery(ctx context.Context, request *AnswerCallbackQuery) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("answerCallbackQuery"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/answerCallbackQuery"), } // Validate request before sending. @@ -564,7 +565,7 @@ func (c *Client) sendAnswerCallbackQuery(ctx context.Context, request *AnswerCal uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -599,7 +600,7 @@ func (c *Client) AnswerInlineQuery(ctx context.Context, request *AnswerInlineQue func (c *Client) sendAnswerInlineQuery(ctx context.Context, request *AnswerInlineQuery) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("answerInlineQuery"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/answerInlineQuery"), } // Validate request before sending. @@ -646,7 +647,7 @@ func (c *Client) sendAnswerInlineQuery(ctx context.Context, request *AnswerInlin uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -681,7 +682,7 @@ func (c *Client) AnswerPreCheckoutQuery(ctx context.Context, request *AnswerPreC func (c *Client) sendAnswerPreCheckoutQuery(ctx context.Context, request *AnswerPreCheckoutQuery) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("answerPreCheckoutQuery"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/answerPreCheckoutQuery"), } @@ -719,7 +720,7 @@ func (c *Client) sendAnswerPreCheckoutQuery(ctx context.Context, request *Answer uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -754,7 +755,7 @@ func (c *Client) AnswerShippingQuery(ctx context.Context, request *AnswerShippin func (c *Client) sendAnswerShippingQuery(ctx context.Context, request *AnswerShippingQuery) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("answerShippingQuery"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/answerShippingQuery"), } // Validate request before sending. @@ -801,7 +802,7 @@ func (c *Client) sendAnswerShippingQuery(ctx context.Context, request *AnswerShi uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -836,7 +837,7 @@ func (c *Client) AnswerWebAppQuery(ctx context.Context, request *AnswerWebAppQue func (c *Client) sendAnswerWebAppQuery(ctx context.Context, request *AnswerWebAppQuery) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("answerWebAppQuery"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/answerWebAppQuery"), } // Validate request before sending. @@ -883,7 +884,7 @@ func (c *Client) sendAnswerWebAppQuery(ctx context.Context, request *AnswerWebAp uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -918,7 +919,7 @@ func (c *Client) ApproveChatJoinRequest(ctx context.Context, request *ApproveCha func (c *Client) sendApproveChatJoinRequest(ctx context.Context, request *ApproveChatJoinRequest) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("approveChatJoinRequest"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/approveChatJoinRequest"), } @@ -956,7 +957,7 @@ func (c *Client) sendApproveChatJoinRequest(ctx context.Context, request *Approv uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -991,7 +992,7 @@ func (c *Client) BanChatMember(ctx context.Context, request *BanChatMember) (*Re func (c *Client) sendBanChatMember(ctx context.Context, request *BanChatMember) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("banChatMember"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/banChatMember"), } @@ -1029,7 +1030,7 @@ func (c *Client) sendBanChatMember(ctx context.Context, request *BanChatMember) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1064,7 +1065,7 @@ func (c *Client) BanChatSenderChat(ctx context.Context, request *BanChatSenderCh func (c *Client) sendBanChatSenderChat(ctx context.Context, request *BanChatSenderChat) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("banChatSenderChat"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/banChatSenderChat"), } @@ -1102,7 +1103,7 @@ func (c *Client) sendBanChatSenderChat(ctx context.Context, request *BanChatSend uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1137,7 +1138,7 @@ func (c *Client) Close(ctx context.Context) (*Result, error) { func (c *Client) sendClose(ctx context.Context) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("close"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/close"), } @@ -1175,7 +1176,7 @@ func (c *Client) sendClose(ctx context.Context) (res *Result, err error) { uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1207,7 +1208,7 @@ func (c *Client) CopyMessage(ctx context.Context, request *CopyMessage) (*Result func (c *Client) sendCopyMessage(ctx context.Context, request *CopyMessage) (res *ResultMessageId, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("copyMessage"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/copyMessage"), } // Validate request before sending. @@ -1254,7 +1255,7 @@ func (c *Client) sendCopyMessage(ctx context.Context, request *CopyMessage) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1289,7 +1290,7 @@ func (c *Client) CreateChatInviteLink(ctx context.Context, request *CreateChatIn func (c *Client) sendCreateChatInviteLink(ctx context.Context, request *CreateChatInviteLink) (res *ResultChatInviteLink, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("createChatInviteLink"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/createChatInviteLink"), } // Validate request before sending. @@ -1336,7 +1337,7 @@ func (c *Client) sendCreateChatInviteLink(ctx context.Context, request *CreateCh uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1371,7 +1372,7 @@ func (c *Client) CreateNewStickerSet(ctx context.Context, request *CreateNewStic func (c *Client) sendCreateNewStickerSet(ctx context.Context, request *CreateNewStickerSet) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("createNewStickerSet"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/createNewStickerSet"), } // Validate request before sending. @@ -1418,7 +1419,7 @@ func (c *Client) sendCreateNewStickerSet(ctx context.Context, request *CreateNew uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1453,7 +1454,7 @@ func (c *Client) DeclineChatJoinRequest(ctx context.Context, request *DeclineCha func (c *Client) sendDeclineChatJoinRequest(ctx context.Context, request *DeclineChatJoinRequest) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("declineChatJoinRequest"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/declineChatJoinRequest"), } @@ -1491,7 +1492,7 @@ func (c *Client) sendDeclineChatJoinRequest(ctx context.Context, request *Declin uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1526,7 +1527,7 @@ func (c *Client) DeleteChatPhoto(ctx context.Context, request *DeleteChatPhoto) func (c *Client) sendDeleteChatPhoto(ctx context.Context, request *DeleteChatPhoto) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("deleteChatPhoto"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/deleteChatPhoto"), } @@ -1564,7 +1565,7 @@ func (c *Client) sendDeleteChatPhoto(ctx context.Context, request *DeleteChatPho uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1599,7 +1600,7 @@ func (c *Client) DeleteChatStickerSet(ctx context.Context, request *DeleteChatSt func (c *Client) sendDeleteChatStickerSet(ctx context.Context, request *DeleteChatStickerSet) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("deleteChatStickerSet"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/deleteChatStickerSet"), } @@ -1637,7 +1638,7 @@ func (c *Client) sendDeleteChatStickerSet(ctx context.Context, request *DeleteCh uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1672,7 +1673,7 @@ func (c *Client) DeleteMessage(ctx context.Context, request *DeleteMessage) (*Re func (c *Client) sendDeleteMessage(ctx context.Context, request *DeleteMessage) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("deleteMessage"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/deleteMessage"), } @@ -1710,7 +1711,7 @@ func (c *Client) sendDeleteMessage(ctx context.Context, request *DeleteMessage) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1745,7 +1746,7 @@ func (c *Client) DeleteMyCommands(ctx context.Context, request OptDeleteMyComman func (c *Client) sendDeleteMyCommands(ctx context.Context, request OptDeleteMyCommands) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("deleteMyCommands"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/deleteMyCommands"), } @@ -1783,7 +1784,7 @@ func (c *Client) sendDeleteMyCommands(ctx context.Context, request OptDeleteMyCo uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1818,7 +1819,7 @@ func (c *Client) DeleteStickerFromSet(ctx context.Context, request *DeleteSticke func (c *Client) sendDeleteStickerFromSet(ctx context.Context, request *DeleteStickerFromSet) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("deleteStickerFromSet"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/deleteStickerFromSet"), } @@ -1856,7 +1857,7 @@ func (c *Client) sendDeleteStickerFromSet(ctx context.Context, request *DeleteSt uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1891,7 +1892,7 @@ func (c *Client) DeleteWebhook(ctx context.Context, request OptDeleteWebhook) (* func (c *Client) sendDeleteWebhook(ctx context.Context, request OptDeleteWebhook) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("deleteWebhook"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/deleteWebhook"), } @@ -1929,7 +1930,7 @@ func (c *Client) sendDeleteWebhook(ctx context.Context, request OptDeleteWebhook uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1964,7 +1965,7 @@ func (c *Client) EditChatInviteLink(ctx context.Context, request *EditChatInvite func (c *Client) sendEditChatInviteLink(ctx context.Context, request *EditChatInviteLink) (res *ResultChatInviteLink, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("editChatInviteLink"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/editChatInviteLink"), } // Validate request before sending. @@ -2011,7 +2012,7 @@ func (c *Client) sendEditChatInviteLink(ctx context.Context, request *EditChatIn uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2046,7 +2047,7 @@ func (c *Client) EditMessageCaption(ctx context.Context, request *EditMessageCap func (c *Client) sendEditMessageCaption(ctx context.Context, request *EditMessageCaption) (res *ResultMessageOrBoolean, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("editMessageCaption"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/editMessageCaption"), } // Validate request before sending. @@ -2093,7 +2094,7 @@ func (c *Client) sendEditMessageCaption(ctx context.Context, request *EditMessag uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2128,7 +2129,7 @@ func (c *Client) EditMessageLiveLocation(ctx context.Context, request *EditMessa func (c *Client) sendEditMessageLiveLocation(ctx context.Context, request *EditMessageLiveLocation) (res *ResultMessageOrBoolean, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("editMessageLiveLocation"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/editMessageLiveLocation"), } // Validate request before sending. @@ -2175,7 +2176,7 @@ func (c *Client) sendEditMessageLiveLocation(ctx context.Context, request *EditM uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2210,7 +2211,7 @@ func (c *Client) EditMessageMedia(ctx context.Context, request *EditMessageMedia func (c *Client) sendEditMessageMedia(ctx context.Context, request *EditMessageMedia) (res *ResultMessageOrBoolean, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("editMessageMedia"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/editMessageMedia"), } // Validate request before sending. @@ -2257,7 +2258,7 @@ func (c *Client) sendEditMessageMedia(ctx context.Context, request *EditMessageM uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2292,7 +2293,7 @@ func (c *Client) EditMessageReplyMarkup(ctx context.Context, request *EditMessag func (c *Client) sendEditMessageReplyMarkup(ctx context.Context, request *EditMessageReplyMarkup) (res *ResultMessageOrBoolean, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("editMessageReplyMarkup"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/editMessageReplyMarkup"), } // Validate request before sending. @@ -2339,7 +2340,7 @@ func (c *Client) sendEditMessageReplyMarkup(ctx context.Context, request *EditMe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2374,7 +2375,7 @@ func (c *Client) EditMessageText(ctx context.Context, request *EditMessageText) func (c *Client) sendEditMessageText(ctx context.Context, request *EditMessageText) (res *ResultMessageOrBoolean, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("editMessageText"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/editMessageText"), } // Validate request before sending. @@ -2421,7 +2422,7 @@ func (c *Client) sendEditMessageText(ctx context.Context, request *EditMessageTe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2456,7 +2457,7 @@ func (c *Client) ExportChatInviteLink(ctx context.Context, request *ExportChatIn func (c *Client) sendExportChatInviteLink(ctx context.Context, request *ExportChatInviteLink) (res *ResultString, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("exportChatInviteLink"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/exportChatInviteLink"), } @@ -2494,7 +2495,7 @@ func (c *Client) sendExportChatInviteLink(ctx context.Context, request *ExportCh uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2529,7 +2530,7 @@ func (c *Client) ForwardMessage(ctx context.Context, request *ForwardMessage) (* func (c *Client) sendForwardMessage(ctx context.Context, request *ForwardMessage) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("forwardMessage"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/forwardMessage"), } @@ -2567,7 +2568,7 @@ func (c *Client) sendForwardMessage(ctx context.Context, request *ForwardMessage uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2602,7 +2603,7 @@ func (c *Client) GetChat(ctx context.Context, request *GetChat) (*ResultChat, er func (c *Client) sendGetChat(ctx context.Context, request *GetChat) (res *ResultChat, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getChat"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/getChat"), } @@ -2640,7 +2641,7 @@ func (c *Client) sendGetChat(ctx context.Context, request *GetChat) (res *Result uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2675,7 +2676,7 @@ func (c *Client) GetChatAdministrators(ctx context.Context, request *GetChatAdmi func (c *Client) sendGetChatAdministrators(ctx context.Context, request *GetChatAdministrators) (res *ResultArrayOfChatMember, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getChatAdministrators"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/getChatAdministrators"), } @@ -2713,7 +2714,7 @@ func (c *Client) sendGetChatAdministrators(ctx context.Context, request *GetChat uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2748,7 +2749,7 @@ func (c *Client) GetChatMember(ctx context.Context, request *GetChatMember) (*Re func (c *Client) sendGetChatMember(ctx context.Context, request *GetChatMember) (res *ResultChatMember, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getChatMember"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/getChatMember"), } @@ -2786,7 +2787,7 @@ func (c *Client) sendGetChatMember(ctx context.Context, request *GetChatMember) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2821,7 +2822,7 @@ func (c *Client) GetChatMemberCount(ctx context.Context, request *GetChatMemberC func (c *Client) sendGetChatMemberCount(ctx context.Context, request *GetChatMemberCount) (res *ResultInt, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getChatMemberCount"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/getChatMemberCount"), } @@ -2859,7 +2860,7 @@ func (c *Client) sendGetChatMemberCount(ctx context.Context, request *GetChatMem uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2894,7 +2895,7 @@ func (c *Client) GetChatMenuButton(ctx context.Context, request OptGetChatMenuBu func (c *Client) sendGetChatMenuButton(ctx context.Context, request OptGetChatMenuButton) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getChatMenuButton"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/getChatMenuButton"), } @@ -2932,7 +2933,7 @@ func (c *Client) sendGetChatMenuButton(ctx context.Context, request OptGetChatMe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2967,7 +2968,7 @@ func (c *Client) GetFile(ctx context.Context, request *GetFile) (*ResultFile, er func (c *Client) sendGetFile(ctx context.Context, request *GetFile) (res *ResultFile, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getFile"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/getFile"), } @@ -3005,7 +3006,7 @@ func (c *Client) sendGetFile(ctx context.Context, request *GetFile) (res *Result uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3040,7 +3041,7 @@ func (c *Client) GetGameHighScores(ctx context.Context, request *GetGameHighScor func (c *Client) sendGetGameHighScores(ctx context.Context, request *GetGameHighScores) (res *ResultArrayOfGameHighScore, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getGameHighScores"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/getGameHighScores"), } @@ -3078,7 +3079,7 @@ func (c *Client) sendGetGameHighScores(ctx context.Context, request *GetGameHigh uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3113,7 +3114,7 @@ func (c *Client) GetMe(ctx context.Context) (*ResultUser, error) { func (c *Client) sendGetMe(ctx context.Context) (res *ResultUser, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getMe"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/getMe"), } @@ -3151,7 +3152,7 @@ func (c *Client) sendGetMe(ctx context.Context) (res *ResultUser, err error) { uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3183,7 +3184,7 @@ func (c *Client) GetMyCommands(ctx context.Context, request OptGetMyCommands) (* func (c *Client) sendGetMyCommands(ctx context.Context, request OptGetMyCommands) (res *ResultArrayOfBotCommand, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getMyCommands"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/getMyCommands"), } @@ -3221,7 +3222,7 @@ func (c *Client) sendGetMyCommands(ctx context.Context, request OptGetMyCommands uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3256,7 +3257,7 @@ func (c *Client) GetMyDefaultAdministratorRights(ctx context.Context, request Op func (c *Client) sendGetMyDefaultAdministratorRights(ctx context.Context, request OptGetMyDefaultAdministratorRights) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getMyDefaultAdministratorRights"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/getMyDefaultAdministratorRights"), } @@ -3294,7 +3295,7 @@ func (c *Client) sendGetMyDefaultAdministratorRights(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3329,7 +3330,7 @@ func (c *Client) GetStickerSet(ctx context.Context, request *GetStickerSet) (*Re func (c *Client) sendGetStickerSet(ctx context.Context, request *GetStickerSet) (res *ResultStickerSet, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getStickerSet"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/getStickerSet"), } @@ -3367,7 +3368,7 @@ func (c *Client) sendGetStickerSet(ctx context.Context, request *GetStickerSet) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3402,7 +3403,7 @@ func (c *Client) GetUpdates(ctx context.Context, request OptGetUpdates) (*Result func (c *Client) sendGetUpdates(ctx context.Context, request OptGetUpdates) (res *ResultArrayOfUpdate, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getUpdates"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/getUpdates"), } // Validate request before sending. @@ -3456,7 +3457,7 @@ func (c *Client) sendGetUpdates(ctx context.Context, request OptGetUpdates) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3491,7 +3492,7 @@ func (c *Client) GetUserProfilePhotos(ctx context.Context, request *GetUserProfi func (c *Client) sendGetUserProfilePhotos(ctx context.Context, request *GetUserProfilePhotos) (res *ResultUserProfilePhotos, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getUserProfilePhotos"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/getUserProfilePhotos"), } // Validate request before sending. @@ -3538,7 +3539,7 @@ func (c *Client) sendGetUserProfilePhotos(ctx context.Context, request *GetUserP uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3573,7 +3574,7 @@ func (c *Client) GetWebhookInfo(ctx context.Context) (*ResultWebhookInfo, error) func (c *Client) sendGetWebhookInfo(ctx context.Context) (res *ResultWebhookInfo, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getWebhookInfo"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/getWebhookInfo"), } @@ -3611,7 +3612,7 @@ func (c *Client) sendGetWebhookInfo(ctx context.Context) (res *ResultWebhookInfo uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3643,7 +3644,7 @@ func (c *Client) LeaveChat(ctx context.Context, request *LeaveChat) (*Result, er func (c *Client) sendLeaveChat(ctx context.Context, request *LeaveChat) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("leaveChat"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/leaveChat"), } @@ -3681,7 +3682,7 @@ func (c *Client) sendLeaveChat(ctx context.Context, request *LeaveChat) (res *Re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3716,7 +3717,7 @@ func (c *Client) LogOut(ctx context.Context) (*Result, error) { func (c *Client) sendLogOut(ctx context.Context) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("logOut"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/logOut"), } @@ -3754,7 +3755,7 @@ func (c *Client) sendLogOut(ctx context.Context) (res *Result, err error) { uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3786,7 +3787,7 @@ func (c *Client) PinChatMessage(ctx context.Context, request *PinChatMessage) (* func (c *Client) sendPinChatMessage(ctx context.Context, request *PinChatMessage) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pinChatMessage"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/pinChatMessage"), } @@ -3824,7 +3825,7 @@ func (c *Client) sendPinChatMessage(ctx context.Context, request *PinChatMessage uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3859,7 +3860,7 @@ func (c *Client) PromoteChatMember(ctx context.Context, request *PromoteChatMemb func (c *Client) sendPromoteChatMember(ctx context.Context, request *PromoteChatMember) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("promoteChatMember"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/promoteChatMember"), } @@ -3897,7 +3898,7 @@ func (c *Client) sendPromoteChatMember(ctx context.Context, request *PromoteChat uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3932,7 +3933,7 @@ func (c *Client) RestrictChatMember(ctx context.Context, request *RestrictChatMe func (c *Client) sendRestrictChatMember(ctx context.Context, request *RestrictChatMember) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("restrictChatMember"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/restrictChatMember"), } @@ -3970,7 +3971,7 @@ func (c *Client) sendRestrictChatMember(ctx context.Context, request *RestrictCh uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4005,7 +4006,7 @@ func (c *Client) RevokeChatInviteLink(ctx context.Context, request *RevokeChatIn func (c *Client) sendRevokeChatInviteLink(ctx context.Context, request *RevokeChatInviteLink) (res *ResultChatInviteLink, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("revokeChatInviteLink"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/revokeChatInviteLink"), } @@ -4043,7 +4044,7 @@ func (c *Client) sendRevokeChatInviteLink(ctx context.Context, request *RevokeCh uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4078,7 +4079,7 @@ func (c *Client) SendAnimation(ctx context.Context, request *SendAnimation) (*Re func (c *Client) sendSendAnimation(ctx context.Context, request *SendAnimation) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendAnimation"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendAnimation"), } // Validate request before sending. @@ -4125,7 +4126,7 @@ func (c *Client) sendSendAnimation(ctx context.Context, request *SendAnimation) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4160,7 +4161,7 @@ func (c *Client) SendAudio(ctx context.Context, request *SendAudio) (*ResultMess func (c *Client) sendSendAudio(ctx context.Context, request *SendAudio) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendAudio"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendAudio"), } // Validate request before sending. @@ -4207,7 +4208,7 @@ func (c *Client) sendSendAudio(ctx context.Context, request *SendAudio) (res *Re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4242,7 +4243,7 @@ func (c *Client) SendChatAction(ctx context.Context, request *SendChatAction) (* func (c *Client) sendSendChatAction(ctx context.Context, request *SendChatAction) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendChatAction"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendChatAction"), } @@ -4280,7 +4281,7 @@ func (c *Client) sendSendChatAction(ctx context.Context, request *SendChatAction uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4315,7 +4316,7 @@ func (c *Client) SendContact(ctx context.Context, request *SendContact) (*Result func (c *Client) sendSendContact(ctx context.Context, request *SendContact) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendContact"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendContact"), } // Validate request before sending. @@ -4362,7 +4363,7 @@ func (c *Client) sendSendContact(ctx context.Context, request *SendContact) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4397,7 +4398,7 @@ func (c *Client) SendDice(ctx context.Context, request *SendDice) (*ResultMessag func (c *Client) sendSendDice(ctx context.Context, request *SendDice) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendDice"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendDice"), } // Validate request before sending. @@ -4444,7 +4445,7 @@ func (c *Client) sendSendDice(ctx context.Context, request *SendDice) (res *Resu uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4479,7 +4480,7 @@ func (c *Client) SendDocument(ctx context.Context, request *SendDocument) (*Resu func (c *Client) sendSendDocument(ctx context.Context, request *SendDocument) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendDocument"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendDocument"), } // Validate request before sending. @@ -4526,7 +4527,7 @@ func (c *Client) sendSendDocument(ctx context.Context, request *SendDocument) (r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4561,7 +4562,7 @@ func (c *Client) SendGame(ctx context.Context, request *SendGame) (*ResultMessag func (c *Client) sendSendGame(ctx context.Context, request *SendGame) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendGame"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendGame"), } // Validate request before sending. @@ -4608,7 +4609,7 @@ func (c *Client) sendSendGame(ctx context.Context, request *SendGame) (res *Resu uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4643,7 +4644,7 @@ func (c *Client) SendInvoice(ctx context.Context, request *SendInvoice) (*Result func (c *Client) sendSendInvoice(ctx context.Context, request *SendInvoice) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendInvoice"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendInvoice"), } // Validate request before sending. @@ -4690,7 +4691,7 @@ func (c *Client) sendSendInvoice(ctx context.Context, request *SendInvoice) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4725,7 +4726,7 @@ func (c *Client) SendLocation(ctx context.Context, request *SendLocation) (*Resu func (c *Client) sendSendLocation(ctx context.Context, request *SendLocation) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendLocation"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendLocation"), } // Validate request before sending. @@ -4772,7 +4773,7 @@ func (c *Client) sendSendLocation(ctx context.Context, request *SendLocation) (r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4807,7 +4808,7 @@ func (c *Client) SendMediaGroup(ctx context.Context, request *SendMediaGroup) (* func (c *Client) sendSendMediaGroup(ctx context.Context, request *SendMediaGroup) (res *ResultArrayOfMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendMediaGroup"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendMediaGroup"), } // Validate request before sending. @@ -4854,7 +4855,7 @@ func (c *Client) sendSendMediaGroup(ctx context.Context, request *SendMediaGroup uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4889,7 +4890,7 @@ func (c *Client) SendMessage(ctx context.Context, request *SendMessage) (*Result func (c *Client) sendSendMessage(ctx context.Context, request *SendMessage) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendMessage"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendMessage"), } // Validate request before sending. @@ -4936,7 +4937,7 @@ func (c *Client) sendSendMessage(ctx context.Context, request *SendMessage) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4971,7 +4972,7 @@ func (c *Client) SendPhoto(ctx context.Context, request *SendPhoto) (*ResultMess func (c *Client) sendSendPhoto(ctx context.Context, request *SendPhoto) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendPhoto"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendPhoto"), } // Validate request before sending. @@ -5018,7 +5019,7 @@ func (c *Client) sendSendPhoto(ctx context.Context, request *SendPhoto) (res *Re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5053,7 +5054,7 @@ func (c *Client) SendPoll(ctx context.Context, request *SendPoll) (*ResultMessag func (c *Client) sendSendPoll(ctx context.Context, request *SendPoll) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendPoll"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendPoll"), } // Validate request before sending. @@ -5100,7 +5101,7 @@ func (c *Client) sendSendPoll(ctx context.Context, request *SendPoll) (res *Resu uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5135,7 +5136,7 @@ func (c *Client) SendSticker(ctx context.Context, request *SendSticker) (*Result func (c *Client) sendSendSticker(ctx context.Context, request *SendSticker) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendSticker"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendSticker"), } // Validate request before sending. @@ -5182,7 +5183,7 @@ func (c *Client) sendSendSticker(ctx context.Context, request *SendSticker) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5217,7 +5218,7 @@ func (c *Client) SendVenue(ctx context.Context, request *SendVenue) (*ResultMess func (c *Client) sendSendVenue(ctx context.Context, request *SendVenue) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendVenue"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendVenue"), } // Validate request before sending. @@ -5264,7 +5265,7 @@ func (c *Client) sendSendVenue(ctx context.Context, request *SendVenue) (res *Re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5299,7 +5300,7 @@ func (c *Client) SendVideo(ctx context.Context, request *SendVideo) (*ResultMess func (c *Client) sendSendVideo(ctx context.Context, request *SendVideo) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendVideo"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendVideo"), } // Validate request before sending. @@ -5346,7 +5347,7 @@ func (c *Client) sendSendVideo(ctx context.Context, request *SendVideo) (res *Re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5381,7 +5382,7 @@ func (c *Client) SendVideoNote(ctx context.Context, request *SendVideoNote) (*Re func (c *Client) sendSendVideoNote(ctx context.Context, request *SendVideoNote) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendVideoNote"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendVideoNote"), } // Validate request before sending. @@ -5428,7 +5429,7 @@ func (c *Client) sendSendVideoNote(ctx context.Context, request *SendVideoNote) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5463,7 +5464,7 @@ func (c *Client) SendVoice(ctx context.Context, request *SendVoice) (*ResultMess func (c *Client) sendSendVoice(ctx context.Context, request *SendVoice) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendVoice"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendVoice"), } // Validate request before sending. @@ -5510,7 +5511,7 @@ func (c *Client) sendSendVoice(ctx context.Context, request *SendVoice) (res *Re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5545,7 +5546,7 @@ func (c *Client) SetChatAdministratorCustomTitle(ctx context.Context, request *S func (c *Client) sendSetChatAdministratorCustomTitle(ctx context.Context, request *SetChatAdministratorCustomTitle) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("setChatAdministratorCustomTitle"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/setChatAdministratorCustomTitle"), } // Validate request before sending. @@ -5592,7 +5593,7 @@ func (c *Client) sendSetChatAdministratorCustomTitle(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5627,7 +5628,7 @@ func (c *Client) SetChatDescription(ctx context.Context, request *SetChatDescrip func (c *Client) sendSetChatDescription(ctx context.Context, request *SetChatDescription) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("setChatDescription"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/setChatDescription"), } // Validate request before sending. @@ -5674,7 +5675,7 @@ func (c *Client) sendSetChatDescription(ctx context.Context, request *SetChatDes uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5709,7 +5710,7 @@ func (c *Client) SetChatMenuButton(ctx context.Context, request OptSetChatMenuBu func (c *Client) sendSetChatMenuButton(ctx context.Context, request OptSetChatMenuButton) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("setChatMenuButton"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/setChatMenuButton"), } @@ -5747,7 +5748,7 @@ func (c *Client) sendSetChatMenuButton(ctx context.Context, request OptSetChatMe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5782,7 +5783,7 @@ func (c *Client) SetChatPermissions(ctx context.Context, request *SetChatPermiss func (c *Client) sendSetChatPermissions(ctx context.Context, request *SetChatPermissions) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("setChatPermissions"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/setChatPermissions"), } @@ -5820,7 +5821,7 @@ func (c *Client) sendSetChatPermissions(ctx context.Context, request *SetChatPer uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5855,7 +5856,7 @@ func (c *Client) SetChatPhoto(ctx context.Context, request *SetChatPhoto) (*Resu func (c *Client) sendSetChatPhoto(ctx context.Context, request *SetChatPhoto) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("setChatPhoto"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/setChatPhoto"), } @@ -5893,7 +5894,7 @@ func (c *Client) sendSetChatPhoto(ctx context.Context, request *SetChatPhoto) (r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5928,7 +5929,7 @@ func (c *Client) SetChatStickerSet(ctx context.Context, request *SetChatStickerS func (c *Client) sendSetChatStickerSet(ctx context.Context, request *SetChatStickerSet) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("setChatStickerSet"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/setChatStickerSet"), } @@ -5966,7 +5967,7 @@ func (c *Client) sendSetChatStickerSet(ctx context.Context, request *SetChatStic uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6001,7 +6002,7 @@ func (c *Client) SetChatTitle(ctx context.Context, request *SetChatTitle) (*Resu func (c *Client) sendSetChatTitle(ctx context.Context, request *SetChatTitle) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("setChatTitle"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/setChatTitle"), } // Validate request before sending. @@ -6048,7 +6049,7 @@ func (c *Client) sendSetChatTitle(ctx context.Context, request *SetChatTitle) (r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6083,7 +6084,7 @@ func (c *Client) SetGameScore(ctx context.Context, request *SetGameScore) (*Resu func (c *Client) sendSetGameScore(ctx context.Context, request *SetGameScore) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("setGameScore"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/setGameScore"), } @@ -6121,7 +6122,7 @@ func (c *Client) sendSetGameScore(ctx context.Context, request *SetGameScore) (r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6156,7 +6157,7 @@ func (c *Client) SetMyCommands(ctx context.Context, request *SetMyCommands) (*Re func (c *Client) sendSetMyCommands(ctx context.Context, request *SetMyCommands) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("setMyCommands"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/setMyCommands"), } // Validate request before sending. @@ -6203,7 +6204,7 @@ func (c *Client) sendSetMyCommands(ctx context.Context, request *SetMyCommands) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6238,7 +6239,7 @@ func (c *Client) SetMyDefaultAdministratorRights(ctx context.Context, request Op func (c *Client) sendSetMyDefaultAdministratorRights(ctx context.Context, request OptSetMyDefaultAdministratorRights) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("setMyDefaultAdministratorRights"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/setMyDefaultAdministratorRights"), } @@ -6276,7 +6277,7 @@ func (c *Client) sendSetMyDefaultAdministratorRights(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6311,7 +6312,7 @@ func (c *Client) SetPassportDataErrors(ctx context.Context, request *SetPassport func (c *Client) sendSetPassportDataErrors(ctx context.Context, request *SetPassportDataErrors) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("setPassportDataErrors"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/setPassportDataErrors"), } // Validate request before sending. @@ -6358,7 +6359,7 @@ func (c *Client) sendSetPassportDataErrors(ctx context.Context, request *SetPass uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6393,7 +6394,7 @@ func (c *Client) SetStickerPositionInSet(ctx context.Context, request *SetSticke func (c *Client) sendSetStickerPositionInSet(ctx context.Context, request *SetStickerPositionInSet) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("setStickerPositionInSet"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/setStickerPositionInSet"), } @@ -6431,7 +6432,7 @@ func (c *Client) sendSetStickerPositionInSet(ctx context.Context, request *SetSt uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6466,7 +6467,7 @@ func (c *Client) SetStickerSetThumb(ctx context.Context, request *SetStickerSetT func (c *Client) sendSetStickerSetThumb(ctx context.Context, request *SetStickerSetThumb) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("setStickerSetThumb"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/setStickerSetThumb"), } @@ -6504,7 +6505,7 @@ func (c *Client) sendSetStickerSetThumb(ctx context.Context, request *SetSticker uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6539,7 +6540,7 @@ func (c *Client) SetWebhook(ctx context.Context, request *SetWebhook) (*Result, func (c *Client) sendSetWebhook(ctx context.Context, request *SetWebhook) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("setWebhook"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/setWebhook"), } @@ -6577,7 +6578,7 @@ func (c *Client) sendSetWebhook(ctx context.Context, request *SetWebhook) (res * uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6612,7 +6613,7 @@ func (c *Client) StopMessageLiveLocation(ctx context.Context, request *StopMessa func (c *Client) sendStopMessageLiveLocation(ctx context.Context, request *StopMessageLiveLocation) (res *ResultMessageOrBoolean, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("stopMessageLiveLocation"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/stopMessageLiveLocation"), } // Validate request before sending. @@ -6659,7 +6660,7 @@ func (c *Client) sendStopMessageLiveLocation(ctx context.Context, request *StopM uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6694,7 +6695,7 @@ func (c *Client) StopPoll(ctx context.Context, request *StopPoll) (*ResultPoll, func (c *Client) sendStopPoll(ctx context.Context, request *StopPoll) (res *ResultPoll, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("stopPoll"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/stopPoll"), } // Validate request before sending. @@ -6741,7 +6742,7 @@ func (c *Client) sendStopPoll(ctx context.Context, request *StopPoll) (res *Resu uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6776,7 +6777,7 @@ func (c *Client) UnbanChatMember(ctx context.Context, request *UnbanChatMember) func (c *Client) sendUnbanChatMember(ctx context.Context, request *UnbanChatMember) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("unbanChatMember"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/unbanChatMember"), } @@ -6814,7 +6815,7 @@ func (c *Client) sendUnbanChatMember(ctx context.Context, request *UnbanChatMemb uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6849,7 +6850,7 @@ func (c *Client) UnbanChatSenderChat(ctx context.Context, request *UnbanChatSend func (c *Client) sendUnbanChatSenderChat(ctx context.Context, request *UnbanChatSenderChat) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("unbanChatSenderChat"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/unbanChatSenderChat"), } @@ -6887,7 +6888,7 @@ func (c *Client) sendUnbanChatSenderChat(ctx context.Context, request *UnbanChat uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6922,7 +6923,7 @@ func (c *Client) UnpinAllChatMessages(ctx context.Context, request *UnpinAllChat func (c *Client) sendUnpinAllChatMessages(ctx context.Context, request *UnpinAllChatMessages) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("unpinAllChatMessages"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/unpinAllChatMessages"), } @@ -6960,7 +6961,7 @@ func (c *Client) sendUnpinAllChatMessages(ctx context.Context, request *UnpinAll uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6995,7 +6996,7 @@ func (c *Client) UnpinChatMessage(ctx context.Context, request *UnpinChatMessage func (c *Client) sendUnpinChatMessage(ctx context.Context, request *UnpinChatMessage) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("unpinChatMessage"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/unpinChatMessage"), } @@ -7033,7 +7034,7 @@ func (c *Client) sendUnpinChatMessage(ctx context.Context, request *UnpinChatMes uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -7068,7 +7069,7 @@ func (c *Client) UploadStickerFile(ctx context.Context, request *UploadStickerFi func (c *Client) sendUploadStickerFile(ctx context.Context, request *UploadStickerFile) (res *ResultFile, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("uploadStickerFile"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/uploadStickerFile"), } @@ -7106,7 +7107,7 @@ func (c *Client) sendUploadStickerFile(ctx context.Context, request *UploadStick uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/examples/ex_k8s/oas_client_gen.go b/examples/ex_k8s/oas_client_gen.go index 46efd477d..8c89198c9 100644 --- a/examples/ex_k8s/oas_client_gen.go +++ b/examples/ex_k8s/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -3020,7 +3021,7 @@ func (c *Client) ConnectCoreV1DeleteNamespacedPodProxy(ctx context.Context, para func (c *Client) sendConnectCoreV1DeleteNamespacedPodProxy(ctx context.Context, params ConnectCoreV1DeleteNamespacedPodProxyParams) (res ConnectCoreV1DeleteNamespacedPodProxyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1DeleteNamespacedPodProxy"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/pods/{name}/proxy"), } @@ -3117,7 +3118,7 @@ func (c *Client) sendConnectCoreV1DeleteNamespacedPodProxy(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3184,7 +3185,7 @@ func (c *Client) ConnectCoreV1DeleteNamespacedPodProxyWithPath(ctx context.Conte func (c *Client) sendConnectCoreV1DeleteNamespacedPodProxyWithPath(ctx context.Context, params ConnectCoreV1DeleteNamespacedPodProxyWithPathParams) (res ConnectCoreV1DeleteNamespacedPodProxyWithPathRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1DeleteNamespacedPodProxyWithPath"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}"), } @@ -3299,7 +3300,7 @@ func (c *Client) sendConnectCoreV1DeleteNamespacedPodProxyWithPath(ctx context.C u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3366,7 +3367,7 @@ func (c *Client) ConnectCoreV1DeleteNamespacedServiceProxy(ctx context.Context, func (c *Client) sendConnectCoreV1DeleteNamespacedServiceProxy(ctx context.Context, params ConnectCoreV1DeleteNamespacedServiceProxyParams) (res ConnectCoreV1DeleteNamespacedServiceProxyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1DeleteNamespacedServiceProxy"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/services/{name}/proxy"), } @@ -3463,7 +3464,7 @@ func (c *Client) sendConnectCoreV1DeleteNamespacedServiceProxy(ctx context.Conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3530,7 +3531,7 @@ func (c *Client) ConnectCoreV1DeleteNamespacedServiceProxyWithPath(ctx context.C func (c *Client) sendConnectCoreV1DeleteNamespacedServiceProxyWithPath(ctx context.Context, params ConnectCoreV1DeleteNamespacedServiceProxyWithPathParams) (res ConnectCoreV1DeleteNamespacedServiceProxyWithPathRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1DeleteNamespacedServiceProxyWithPath"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}"), } @@ -3645,7 +3646,7 @@ func (c *Client) sendConnectCoreV1DeleteNamespacedServiceProxyWithPath(ctx conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3712,7 +3713,7 @@ func (c *Client) ConnectCoreV1DeleteNodeProxy(ctx context.Context, params Connec func (c *Client) sendConnectCoreV1DeleteNodeProxy(ctx context.Context, params ConnectCoreV1DeleteNodeProxyParams) (res ConnectCoreV1DeleteNodeProxyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1DeleteNodeProxy"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/api/v1/nodes/{name}/proxy"), } @@ -3790,7 +3791,7 @@ func (c *Client) sendConnectCoreV1DeleteNodeProxy(ctx context.Context, params Co u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3857,7 +3858,7 @@ func (c *Client) ConnectCoreV1DeleteNodeProxyWithPath(ctx context.Context, param func (c *Client) sendConnectCoreV1DeleteNodeProxyWithPath(ctx context.Context, params ConnectCoreV1DeleteNodeProxyWithPathParams) (res ConnectCoreV1DeleteNodeProxyWithPathRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1DeleteNodeProxyWithPath"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/api/v1/nodes/{name}/proxy/{path}"), } @@ -3953,7 +3954,7 @@ func (c *Client) sendConnectCoreV1DeleteNodeProxyWithPath(ctx context.Context, p u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4020,7 +4021,7 @@ func (c *Client) ConnectCoreV1GetNamespacedPodAttach(ctx context.Context, params func (c *Client) sendConnectCoreV1GetNamespacedPodAttach(ctx context.Context, params ConnectCoreV1GetNamespacedPodAttachParams) (res ConnectCoreV1GetNamespacedPodAttachRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1GetNamespacedPodAttach"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/pods/{name}/attach"), } @@ -4185,7 +4186,7 @@ func (c *Client) sendConnectCoreV1GetNamespacedPodAttach(ctx context.Context, pa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4252,7 +4253,7 @@ func (c *Client) ConnectCoreV1GetNamespacedPodExec(ctx context.Context, params C func (c *Client) sendConnectCoreV1GetNamespacedPodExec(ctx context.Context, params ConnectCoreV1GetNamespacedPodExecParams) (res ConnectCoreV1GetNamespacedPodExecRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1GetNamespacedPodExec"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/pods/{name}/exec"), } @@ -4434,7 +4435,7 @@ func (c *Client) sendConnectCoreV1GetNamespacedPodExec(ctx context.Context, para u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4501,7 +4502,7 @@ func (c *Client) ConnectCoreV1GetNamespacedPodPortforward(ctx context.Context, p func (c *Client) sendConnectCoreV1GetNamespacedPodPortforward(ctx context.Context, params ConnectCoreV1GetNamespacedPodPortforwardParams) (res ConnectCoreV1GetNamespacedPodPortforwardRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1GetNamespacedPodPortforward"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/pods/{name}/portforward"), } @@ -4598,7 +4599,7 @@ func (c *Client) sendConnectCoreV1GetNamespacedPodPortforward(ctx context.Contex u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4665,7 +4666,7 @@ func (c *Client) ConnectCoreV1GetNamespacedPodProxy(ctx context.Context, params func (c *Client) sendConnectCoreV1GetNamespacedPodProxy(ctx context.Context, params ConnectCoreV1GetNamespacedPodProxyParams) (res ConnectCoreV1GetNamespacedPodProxyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1GetNamespacedPodProxy"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/pods/{name}/proxy"), } @@ -4762,7 +4763,7 @@ func (c *Client) sendConnectCoreV1GetNamespacedPodProxy(ctx context.Context, par u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4829,7 +4830,7 @@ func (c *Client) ConnectCoreV1GetNamespacedPodProxyWithPath(ctx context.Context, func (c *Client) sendConnectCoreV1GetNamespacedPodProxyWithPath(ctx context.Context, params ConnectCoreV1GetNamespacedPodProxyWithPathParams) (res ConnectCoreV1GetNamespacedPodProxyWithPathRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1GetNamespacedPodProxyWithPath"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}"), } @@ -4944,7 +4945,7 @@ func (c *Client) sendConnectCoreV1GetNamespacedPodProxyWithPath(ctx context.Cont u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5011,7 +5012,7 @@ func (c *Client) ConnectCoreV1GetNamespacedServiceProxy(ctx context.Context, par func (c *Client) sendConnectCoreV1GetNamespacedServiceProxy(ctx context.Context, params ConnectCoreV1GetNamespacedServiceProxyParams) (res ConnectCoreV1GetNamespacedServiceProxyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1GetNamespacedServiceProxy"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/services/{name}/proxy"), } @@ -5108,7 +5109,7 @@ func (c *Client) sendConnectCoreV1GetNamespacedServiceProxy(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5175,7 +5176,7 @@ func (c *Client) ConnectCoreV1GetNamespacedServiceProxyWithPath(ctx context.Cont func (c *Client) sendConnectCoreV1GetNamespacedServiceProxyWithPath(ctx context.Context, params ConnectCoreV1GetNamespacedServiceProxyWithPathParams) (res ConnectCoreV1GetNamespacedServiceProxyWithPathRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1GetNamespacedServiceProxyWithPath"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}"), } @@ -5290,7 +5291,7 @@ func (c *Client) sendConnectCoreV1GetNamespacedServiceProxyWithPath(ctx context. u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5357,7 +5358,7 @@ func (c *Client) ConnectCoreV1GetNodeProxy(ctx context.Context, params ConnectCo func (c *Client) sendConnectCoreV1GetNodeProxy(ctx context.Context, params ConnectCoreV1GetNodeProxyParams) (res ConnectCoreV1GetNodeProxyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1GetNodeProxy"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/nodes/{name}/proxy"), } @@ -5435,7 +5436,7 @@ func (c *Client) sendConnectCoreV1GetNodeProxy(ctx context.Context, params Conne u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5502,7 +5503,7 @@ func (c *Client) ConnectCoreV1GetNodeProxyWithPath(ctx context.Context, params C func (c *Client) sendConnectCoreV1GetNodeProxyWithPath(ctx context.Context, params ConnectCoreV1GetNodeProxyWithPathParams) (res ConnectCoreV1GetNodeProxyWithPathRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1GetNodeProxyWithPath"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/nodes/{name}/proxy/{path}"), } @@ -5598,7 +5599,7 @@ func (c *Client) sendConnectCoreV1GetNodeProxyWithPath(ctx context.Context, para u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5665,7 +5666,7 @@ func (c *Client) ConnectCoreV1HeadNamespacedPodProxy(ctx context.Context, params func (c *Client) sendConnectCoreV1HeadNamespacedPodProxy(ctx context.Context, params ConnectCoreV1HeadNamespacedPodProxyParams) (res ConnectCoreV1HeadNamespacedPodProxyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1HeadNamespacedPodProxy"), - semconv.HTTPMethodKey.String("HEAD"), + semconv.HTTPMethodKey.String(http.MethodHead), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/pods/{name}/proxy"), } @@ -5762,7 +5763,7 @@ func (c *Client) sendConnectCoreV1HeadNamespacedPodProxy(ctx context.Context, pa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "HEAD", u) + r, err := ht.NewRequest(ctx, http.MethodHead, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5829,7 +5830,7 @@ func (c *Client) ConnectCoreV1HeadNamespacedPodProxyWithPath(ctx context.Context func (c *Client) sendConnectCoreV1HeadNamespacedPodProxyWithPath(ctx context.Context, params ConnectCoreV1HeadNamespacedPodProxyWithPathParams) (res ConnectCoreV1HeadNamespacedPodProxyWithPathRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1HeadNamespacedPodProxyWithPath"), - semconv.HTTPMethodKey.String("HEAD"), + semconv.HTTPMethodKey.String(http.MethodHead), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}"), } @@ -5944,7 +5945,7 @@ func (c *Client) sendConnectCoreV1HeadNamespacedPodProxyWithPath(ctx context.Con u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "HEAD", u) + r, err := ht.NewRequest(ctx, http.MethodHead, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6011,7 +6012,7 @@ func (c *Client) ConnectCoreV1HeadNamespacedServiceProxy(ctx context.Context, pa func (c *Client) sendConnectCoreV1HeadNamespacedServiceProxy(ctx context.Context, params ConnectCoreV1HeadNamespacedServiceProxyParams) (res ConnectCoreV1HeadNamespacedServiceProxyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1HeadNamespacedServiceProxy"), - semconv.HTTPMethodKey.String("HEAD"), + semconv.HTTPMethodKey.String(http.MethodHead), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/services/{name}/proxy"), } @@ -6108,7 +6109,7 @@ func (c *Client) sendConnectCoreV1HeadNamespacedServiceProxy(ctx context.Context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "HEAD", u) + r, err := ht.NewRequest(ctx, http.MethodHead, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6175,7 +6176,7 @@ func (c *Client) ConnectCoreV1HeadNamespacedServiceProxyWithPath(ctx context.Con func (c *Client) sendConnectCoreV1HeadNamespacedServiceProxyWithPath(ctx context.Context, params ConnectCoreV1HeadNamespacedServiceProxyWithPathParams) (res ConnectCoreV1HeadNamespacedServiceProxyWithPathRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1HeadNamespacedServiceProxyWithPath"), - semconv.HTTPMethodKey.String("HEAD"), + semconv.HTTPMethodKey.String(http.MethodHead), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}"), } @@ -6290,7 +6291,7 @@ func (c *Client) sendConnectCoreV1HeadNamespacedServiceProxyWithPath(ctx context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "HEAD", u) + r, err := ht.NewRequest(ctx, http.MethodHead, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6357,7 +6358,7 @@ func (c *Client) ConnectCoreV1HeadNodeProxy(ctx context.Context, params ConnectC func (c *Client) sendConnectCoreV1HeadNodeProxy(ctx context.Context, params ConnectCoreV1HeadNodeProxyParams) (res ConnectCoreV1HeadNodeProxyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1HeadNodeProxy"), - semconv.HTTPMethodKey.String("HEAD"), + semconv.HTTPMethodKey.String(http.MethodHead), semconv.HTTPRouteKey.String("/api/v1/nodes/{name}/proxy"), } @@ -6435,7 +6436,7 @@ func (c *Client) sendConnectCoreV1HeadNodeProxy(ctx context.Context, params Conn u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "HEAD", u) + r, err := ht.NewRequest(ctx, http.MethodHead, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6502,7 +6503,7 @@ func (c *Client) ConnectCoreV1HeadNodeProxyWithPath(ctx context.Context, params func (c *Client) sendConnectCoreV1HeadNodeProxyWithPath(ctx context.Context, params ConnectCoreV1HeadNodeProxyWithPathParams) (res ConnectCoreV1HeadNodeProxyWithPathRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1HeadNodeProxyWithPath"), - semconv.HTTPMethodKey.String("HEAD"), + semconv.HTTPMethodKey.String(http.MethodHead), semconv.HTTPRouteKey.String("/api/v1/nodes/{name}/proxy/{path}"), } @@ -6598,7 +6599,7 @@ func (c *Client) sendConnectCoreV1HeadNodeProxyWithPath(ctx context.Context, par u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "HEAD", u) + r, err := ht.NewRequest(ctx, http.MethodHead, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6665,7 +6666,7 @@ func (c *Client) ConnectCoreV1OptionsNamespacedPodProxy(ctx context.Context, par func (c *Client) sendConnectCoreV1OptionsNamespacedPodProxy(ctx context.Context, params ConnectCoreV1OptionsNamespacedPodProxyParams) (res ConnectCoreV1OptionsNamespacedPodProxyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1OptionsNamespacedPodProxy"), - semconv.HTTPMethodKey.String("OPTIONS"), + semconv.HTTPMethodKey.String(http.MethodOptions), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/pods/{name}/proxy"), } @@ -6762,7 +6763,7 @@ func (c *Client) sendConnectCoreV1OptionsNamespacedPodProxy(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "OPTIONS", u) + r, err := ht.NewRequest(ctx, http.MethodOptions, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6829,7 +6830,7 @@ func (c *Client) ConnectCoreV1OptionsNamespacedPodProxyWithPath(ctx context.Cont func (c *Client) sendConnectCoreV1OptionsNamespacedPodProxyWithPath(ctx context.Context, params ConnectCoreV1OptionsNamespacedPodProxyWithPathParams) (res ConnectCoreV1OptionsNamespacedPodProxyWithPathRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1OptionsNamespacedPodProxyWithPath"), - semconv.HTTPMethodKey.String("OPTIONS"), + semconv.HTTPMethodKey.String(http.MethodOptions), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}"), } @@ -6944,7 +6945,7 @@ func (c *Client) sendConnectCoreV1OptionsNamespacedPodProxyWithPath(ctx context. u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "OPTIONS", u) + r, err := ht.NewRequest(ctx, http.MethodOptions, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -7011,7 +7012,7 @@ func (c *Client) ConnectCoreV1OptionsNamespacedServiceProxy(ctx context.Context, func (c *Client) sendConnectCoreV1OptionsNamespacedServiceProxy(ctx context.Context, params ConnectCoreV1OptionsNamespacedServiceProxyParams) (res ConnectCoreV1OptionsNamespacedServiceProxyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1OptionsNamespacedServiceProxy"), - semconv.HTTPMethodKey.String("OPTIONS"), + semconv.HTTPMethodKey.String(http.MethodOptions), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/services/{name}/proxy"), } @@ -7108,7 +7109,7 @@ func (c *Client) sendConnectCoreV1OptionsNamespacedServiceProxy(ctx context.Cont u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "OPTIONS", u) + r, err := ht.NewRequest(ctx, http.MethodOptions, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -7175,7 +7176,7 @@ func (c *Client) ConnectCoreV1OptionsNamespacedServiceProxyWithPath(ctx context. func (c *Client) sendConnectCoreV1OptionsNamespacedServiceProxyWithPath(ctx context.Context, params ConnectCoreV1OptionsNamespacedServiceProxyWithPathParams) (res ConnectCoreV1OptionsNamespacedServiceProxyWithPathRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1OptionsNamespacedServiceProxyWithPath"), - semconv.HTTPMethodKey.String("OPTIONS"), + semconv.HTTPMethodKey.String(http.MethodOptions), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}"), } @@ -7290,7 +7291,7 @@ func (c *Client) sendConnectCoreV1OptionsNamespacedServiceProxyWithPath(ctx cont u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "OPTIONS", u) + r, err := ht.NewRequest(ctx, http.MethodOptions, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -7357,7 +7358,7 @@ func (c *Client) ConnectCoreV1OptionsNodeProxy(ctx context.Context, params Conne func (c *Client) sendConnectCoreV1OptionsNodeProxy(ctx context.Context, params ConnectCoreV1OptionsNodeProxyParams) (res ConnectCoreV1OptionsNodeProxyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1OptionsNodeProxy"), - semconv.HTTPMethodKey.String("OPTIONS"), + semconv.HTTPMethodKey.String(http.MethodOptions), semconv.HTTPRouteKey.String("/api/v1/nodes/{name}/proxy"), } @@ -7435,7 +7436,7 @@ func (c *Client) sendConnectCoreV1OptionsNodeProxy(ctx context.Context, params C u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "OPTIONS", u) + r, err := ht.NewRequest(ctx, http.MethodOptions, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -7502,7 +7503,7 @@ func (c *Client) ConnectCoreV1OptionsNodeProxyWithPath(ctx context.Context, para func (c *Client) sendConnectCoreV1OptionsNodeProxyWithPath(ctx context.Context, params ConnectCoreV1OptionsNodeProxyWithPathParams) (res ConnectCoreV1OptionsNodeProxyWithPathRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1OptionsNodeProxyWithPath"), - semconv.HTTPMethodKey.String("OPTIONS"), + semconv.HTTPMethodKey.String(http.MethodOptions), semconv.HTTPRouteKey.String("/api/v1/nodes/{name}/proxy/{path}"), } @@ -7598,7 +7599,7 @@ func (c *Client) sendConnectCoreV1OptionsNodeProxyWithPath(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "OPTIONS", u) + r, err := ht.NewRequest(ctx, http.MethodOptions, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -7665,7 +7666,7 @@ func (c *Client) ConnectCoreV1PatchNamespacedPodProxy(ctx context.Context, param func (c *Client) sendConnectCoreV1PatchNamespacedPodProxy(ctx context.Context, params ConnectCoreV1PatchNamespacedPodProxyParams) (res ConnectCoreV1PatchNamespacedPodProxyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1PatchNamespacedPodProxy"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/pods/{name}/proxy"), } @@ -7762,7 +7763,7 @@ func (c *Client) sendConnectCoreV1PatchNamespacedPodProxy(ctx context.Context, p u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -7829,7 +7830,7 @@ func (c *Client) ConnectCoreV1PatchNamespacedPodProxyWithPath(ctx context.Contex func (c *Client) sendConnectCoreV1PatchNamespacedPodProxyWithPath(ctx context.Context, params ConnectCoreV1PatchNamespacedPodProxyWithPathParams) (res ConnectCoreV1PatchNamespacedPodProxyWithPathRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1PatchNamespacedPodProxyWithPath"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}"), } @@ -7944,7 +7945,7 @@ func (c *Client) sendConnectCoreV1PatchNamespacedPodProxyWithPath(ctx context.Co u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -8011,7 +8012,7 @@ func (c *Client) ConnectCoreV1PatchNamespacedServiceProxy(ctx context.Context, p func (c *Client) sendConnectCoreV1PatchNamespacedServiceProxy(ctx context.Context, params ConnectCoreV1PatchNamespacedServiceProxyParams) (res ConnectCoreV1PatchNamespacedServiceProxyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1PatchNamespacedServiceProxy"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/services/{name}/proxy"), } @@ -8108,7 +8109,7 @@ func (c *Client) sendConnectCoreV1PatchNamespacedServiceProxy(ctx context.Contex u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -8175,7 +8176,7 @@ func (c *Client) ConnectCoreV1PatchNamespacedServiceProxyWithPath(ctx context.Co func (c *Client) sendConnectCoreV1PatchNamespacedServiceProxyWithPath(ctx context.Context, params ConnectCoreV1PatchNamespacedServiceProxyWithPathParams) (res ConnectCoreV1PatchNamespacedServiceProxyWithPathRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1PatchNamespacedServiceProxyWithPath"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}"), } @@ -8290,7 +8291,7 @@ func (c *Client) sendConnectCoreV1PatchNamespacedServiceProxyWithPath(ctx contex u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -8357,7 +8358,7 @@ func (c *Client) ConnectCoreV1PatchNodeProxy(ctx context.Context, params Connect func (c *Client) sendConnectCoreV1PatchNodeProxy(ctx context.Context, params ConnectCoreV1PatchNodeProxyParams) (res ConnectCoreV1PatchNodeProxyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1PatchNodeProxy"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/api/v1/nodes/{name}/proxy"), } @@ -8435,7 +8436,7 @@ func (c *Client) sendConnectCoreV1PatchNodeProxy(ctx context.Context, params Con u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -8502,7 +8503,7 @@ func (c *Client) ConnectCoreV1PatchNodeProxyWithPath(ctx context.Context, params func (c *Client) sendConnectCoreV1PatchNodeProxyWithPath(ctx context.Context, params ConnectCoreV1PatchNodeProxyWithPathParams) (res ConnectCoreV1PatchNodeProxyWithPathRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1PatchNodeProxyWithPath"), - semconv.HTTPMethodKey.String("PATCH"), + semconv.HTTPMethodKey.String(http.MethodPatch), semconv.HTTPRouteKey.String("/api/v1/nodes/{name}/proxy/{path}"), } @@ -8598,7 +8599,7 @@ func (c *Client) sendConnectCoreV1PatchNodeProxyWithPath(ctx context.Context, pa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PATCH", u) + r, err := ht.NewRequest(ctx, http.MethodPatch, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -8665,7 +8666,7 @@ func (c *Client) ConnectCoreV1PostNamespacedPodAttach(ctx context.Context, param func (c *Client) sendConnectCoreV1PostNamespacedPodAttach(ctx context.Context, params ConnectCoreV1PostNamespacedPodAttachParams) (res ConnectCoreV1PostNamespacedPodAttachRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1PostNamespacedPodAttach"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/pods/{name}/attach"), } @@ -8830,7 +8831,7 @@ func (c *Client) sendConnectCoreV1PostNamespacedPodAttach(ctx context.Context, p u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -8897,7 +8898,7 @@ func (c *Client) ConnectCoreV1PostNamespacedPodExec(ctx context.Context, params func (c *Client) sendConnectCoreV1PostNamespacedPodExec(ctx context.Context, params ConnectCoreV1PostNamespacedPodExecParams) (res ConnectCoreV1PostNamespacedPodExecRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1PostNamespacedPodExec"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/pods/{name}/exec"), } @@ -9079,7 +9080,7 @@ func (c *Client) sendConnectCoreV1PostNamespacedPodExec(ctx context.Context, par u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -9146,7 +9147,7 @@ func (c *Client) ConnectCoreV1PostNamespacedPodPortforward(ctx context.Context, func (c *Client) sendConnectCoreV1PostNamespacedPodPortforward(ctx context.Context, params ConnectCoreV1PostNamespacedPodPortforwardParams) (res ConnectCoreV1PostNamespacedPodPortforwardRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1PostNamespacedPodPortforward"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/pods/{name}/portforward"), } @@ -9243,7 +9244,7 @@ func (c *Client) sendConnectCoreV1PostNamespacedPodPortforward(ctx context.Conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -9310,7 +9311,7 @@ func (c *Client) ConnectCoreV1PostNamespacedPodProxy(ctx context.Context, params func (c *Client) sendConnectCoreV1PostNamespacedPodProxy(ctx context.Context, params ConnectCoreV1PostNamespacedPodProxyParams) (res ConnectCoreV1PostNamespacedPodProxyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1PostNamespacedPodProxy"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/pods/{name}/proxy"), } @@ -9407,7 +9408,7 @@ func (c *Client) sendConnectCoreV1PostNamespacedPodProxy(ctx context.Context, pa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -9474,7 +9475,7 @@ func (c *Client) ConnectCoreV1PostNamespacedPodProxyWithPath(ctx context.Context func (c *Client) sendConnectCoreV1PostNamespacedPodProxyWithPath(ctx context.Context, params ConnectCoreV1PostNamespacedPodProxyWithPathParams) (res ConnectCoreV1PostNamespacedPodProxyWithPathRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1PostNamespacedPodProxyWithPath"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}"), } @@ -9589,7 +9590,7 @@ func (c *Client) sendConnectCoreV1PostNamespacedPodProxyWithPath(ctx context.Con u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -9656,7 +9657,7 @@ func (c *Client) ConnectCoreV1PostNamespacedServiceProxy(ctx context.Context, pa func (c *Client) sendConnectCoreV1PostNamespacedServiceProxy(ctx context.Context, params ConnectCoreV1PostNamespacedServiceProxyParams) (res ConnectCoreV1PostNamespacedServiceProxyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1PostNamespacedServiceProxy"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/services/{name}/proxy"), } @@ -9753,7 +9754,7 @@ func (c *Client) sendConnectCoreV1PostNamespacedServiceProxy(ctx context.Context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -9820,7 +9821,7 @@ func (c *Client) ConnectCoreV1PostNamespacedServiceProxyWithPath(ctx context.Con func (c *Client) sendConnectCoreV1PostNamespacedServiceProxyWithPath(ctx context.Context, params ConnectCoreV1PostNamespacedServiceProxyWithPathParams) (res ConnectCoreV1PostNamespacedServiceProxyWithPathRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1PostNamespacedServiceProxyWithPath"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}"), } @@ -9935,7 +9936,7 @@ func (c *Client) sendConnectCoreV1PostNamespacedServiceProxyWithPath(ctx context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -10002,7 +10003,7 @@ func (c *Client) ConnectCoreV1PostNodeProxy(ctx context.Context, params ConnectC func (c *Client) sendConnectCoreV1PostNodeProxy(ctx context.Context, params ConnectCoreV1PostNodeProxyParams) (res ConnectCoreV1PostNodeProxyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1PostNodeProxy"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/api/v1/nodes/{name}/proxy"), } @@ -10080,7 +10081,7 @@ func (c *Client) sendConnectCoreV1PostNodeProxy(ctx context.Context, params Conn u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -10147,7 +10148,7 @@ func (c *Client) ConnectCoreV1PostNodeProxyWithPath(ctx context.Context, params func (c *Client) sendConnectCoreV1PostNodeProxyWithPath(ctx context.Context, params ConnectCoreV1PostNodeProxyWithPathParams) (res ConnectCoreV1PostNodeProxyWithPathRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1PostNodeProxyWithPath"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/api/v1/nodes/{name}/proxy/{path}"), } @@ -10243,7 +10244,7 @@ func (c *Client) sendConnectCoreV1PostNodeProxyWithPath(ctx context.Context, par u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -10310,7 +10311,7 @@ func (c *Client) ConnectCoreV1PutNamespacedPodProxy(ctx context.Context, params func (c *Client) sendConnectCoreV1PutNamespacedPodProxy(ctx context.Context, params ConnectCoreV1PutNamespacedPodProxyParams) (res ConnectCoreV1PutNamespacedPodProxyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1PutNamespacedPodProxy"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/pods/{name}/proxy"), } @@ -10407,7 +10408,7 @@ func (c *Client) sendConnectCoreV1PutNamespacedPodProxy(ctx context.Context, par u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -10474,7 +10475,7 @@ func (c *Client) ConnectCoreV1PutNamespacedPodProxyWithPath(ctx context.Context, func (c *Client) sendConnectCoreV1PutNamespacedPodProxyWithPath(ctx context.Context, params ConnectCoreV1PutNamespacedPodProxyWithPathParams) (res ConnectCoreV1PutNamespacedPodProxyWithPathRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1PutNamespacedPodProxyWithPath"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}"), } @@ -10589,7 +10590,7 @@ func (c *Client) sendConnectCoreV1PutNamespacedPodProxyWithPath(ctx context.Cont u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -10656,7 +10657,7 @@ func (c *Client) ConnectCoreV1PutNamespacedServiceProxy(ctx context.Context, par func (c *Client) sendConnectCoreV1PutNamespacedServiceProxy(ctx context.Context, params ConnectCoreV1PutNamespacedServiceProxyParams) (res ConnectCoreV1PutNamespacedServiceProxyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1PutNamespacedServiceProxy"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/services/{name}/proxy"), } @@ -10753,7 +10754,7 @@ func (c *Client) sendConnectCoreV1PutNamespacedServiceProxy(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -10820,7 +10821,7 @@ func (c *Client) ConnectCoreV1PutNamespacedServiceProxyWithPath(ctx context.Cont func (c *Client) sendConnectCoreV1PutNamespacedServiceProxyWithPath(ctx context.Context, params ConnectCoreV1PutNamespacedServiceProxyWithPathParams) (res ConnectCoreV1PutNamespacedServiceProxyWithPathRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1PutNamespacedServiceProxyWithPath"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}"), } @@ -10935,7 +10936,7 @@ func (c *Client) sendConnectCoreV1PutNamespacedServiceProxyWithPath(ctx context. u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11002,7 +11003,7 @@ func (c *Client) ConnectCoreV1PutNodeProxy(ctx context.Context, params ConnectCo func (c *Client) sendConnectCoreV1PutNodeProxy(ctx context.Context, params ConnectCoreV1PutNodeProxyParams) (res ConnectCoreV1PutNodeProxyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1PutNodeProxy"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/api/v1/nodes/{name}/proxy"), } @@ -11080,7 +11081,7 @@ func (c *Client) sendConnectCoreV1PutNodeProxy(ctx context.Context, params Conne u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11147,7 +11148,7 @@ func (c *Client) ConnectCoreV1PutNodeProxyWithPath(ctx context.Context, params C func (c *Client) sendConnectCoreV1PutNodeProxyWithPath(ctx context.Context, params ConnectCoreV1PutNodeProxyWithPathParams) (res ConnectCoreV1PutNodeProxyWithPathRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("connectCoreV1PutNodeProxyWithPath"), - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/api/v1/nodes/{name}/proxy/{path}"), } @@ -11243,7 +11244,7 @@ func (c *Client) sendConnectCoreV1PutNodeProxyWithPath(ctx context.Context, para u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11310,7 +11311,7 @@ func (c *Client) GetAPIVersions(ctx context.Context) (GetAPIVersionsRes, error) func (c *Client) sendGetAPIVersions(ctx context.Context) (res GetAPIVersionsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getAPIVersions"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/"), } @@ -11348,7 +11349,7 @@ func (c *Client) sendGetAPIVersions(ctx context.Context) (res GetAPIVersionsRes, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11415,7 +11416,7 @@ func (c *Client) GetAdmissionregistrationAPIGroup(ctx context.Context) (GetAdmis func (c *Client) sendGetAdmissionregistrationAPIGroup(ctx context.Context) (res GetAdmissionregistrationAPIGroupRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getAdmissionregistrationAPIGroup"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/admissionregistration.k8s.io/"), } @@ -11453,7 +11454,7 @@ func (c *Client) sendGetAdmissionregistrationAPIGroup(ctx context.Context) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11520,7 +11521,7 @@ func (c *Client) GetAdmissionregistrationV1APIResources(ctx context.Context) (Ge func (c *Client) sendGetAdmissionregistrationV1APIResources(ctx context.Context) (res GetAdmissionregistrationV1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getAdmissionregistrationV1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/admissionregistration.k8s.io/v1/"), } @@ -11558,7 +11559,7 @@ func (c *Client) sendGetAdmissionregistrationV1APIResources(ctx context.Context) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11625,7 +11626,7 @@ func (c *Client) GetApiextensionsAPIGroup(ctx context.Context) (GetApiextensions func (c *Client) sendGetApiextensionsAPIGroup(ctx context.Context) (res GetApiextensionsAPIGroupRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getApiextensionsAPIGroup"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apiextensions.k8s.io/"), } @@ -11663,7 +11664,7 @@ func (c *Client) sendGetApiextensionsAPIGroup(ctx context.Context) (res GetApiex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11730,7 +11731,7 @@ func (c *Client) GetApiextensionsV1APIResources(ctx context.Context) (GetApiexte func (c *Client) sendGetApiextensionsV1APIResources(ctx context.Context) (res GetApiextensionsV1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getApiextensionsV1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apiextensions.k8s.io/v1/"), } @@ -11768,7 +11769,7 @@ func (c *Client) sendGetApiextensionsV1APIResources(ctx context.Context) (res Ge uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11835,7 +11836,7 @@ func (c *Client) GetApiregistrationAPIGroup(ctx context.Context) (GetApiregistra func (c *Client) sendGetApiregistrationAPIGroup(ctx context.Context) (res GetApiregistrationAPIGroupRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getApiregistrationAPIGroup"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apiregistration.k8s.io/"), } @@ -11873,7 +11874,7 @@ func (c *Client) sendGetApiregistrationAPIGroup(ctx context.Context) (res GetApi uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11940,7 +11941,7 @@ func (c *Client) GetApiregistrationV1APIResources(ctx context.Context) (GetApire func (c *Client) sendGetApiregistrationV1APIResources(ctx context.Context) (res GetApiregistrationV1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getApiregistrationV1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apiregistration.k8s.io/v1/"), } @@ -11978,7 +11979,7 @@ func (c *Client) sendGetApiregistrationV1APIResources(ctx context.Context) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12045,7 +12046,7 @@ func (c *Client) GetAppsAPIGroup(ctx context.Context) (GetAppsAPIGroupRes, error func (c *Client) sendGetAppsAPIGroup(ctx context.Context) (res GetAppsAPIGroupRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getAppsAPIGroup"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/"), } @@ -12083,7 +12084,7 @@ func (c *Client) sendGetAppsAPIGroup(ctx context.Context) (res GetAppsAPIGroupRe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12150,7 +12151,7 @@ func (c *Client) GetAppsV1APIResources(ctx context.Context) (GetAppsV1APIResourc func (c *Client) sendGetAppsV1APIResources(ctx context.Context) (res GetAppsV1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getAppsV1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/"), } @@ -12188,7 +12189,7 @@ func (c *Client) sendGetAppsV1APIResources(ctx context.Context) (res GetAppsV1AP uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12255,7 +12256,7 @@ func (c *Client) GetAuthenticationAPIGroup(ctx context.Context) (GetAuthenticati func (c *Client) sendGetAuthenticationAPIGroup(ctx context.Context) (res GetAuthenticationAPIGroupRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getAuthenticationAPIGroup"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/authentication.k8s.io/"), } @@ -12293,7 +12294,7 @@ func (c *Client) sendGetAuthenticationAPIGroup(ctx context.Context) (res GetAuth uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12360,7 +12361,7 @@ func (c *Client) GetAuthenticationV1APIResources(ctx context.Context) (GetAuthen func (c *Client) sendGetAuthenticationV1APIResources(ctx context.Context) (res GetAuthenticationV1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getAuthenticationV1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/authentication.k8s.io/v1/"), } @@ -12398,7 +12399,7 @@ func (c *Client) sendGetAuthenticationV1APIResources(ctx context.Context) (res G uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12465,7 +12466,7 @@ func (c *Client) GetAuthorizationAPIGroup(ctx context.Context) (GetAuthorization func (c *Client) sendGetAuthorizationAPIGroup(ctx context.Context) (res GetAuthorizationAPIGroupRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getAuthorizationAPIGroup"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/authorization.k8s.io/"), } @@ -12503,7 +12504,7 @@ func (c *Client) sendGetAuthorizationAPIGroup(ctx context.Context) (res GetAutho uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12570,7 +12571,7 @@ func (c *Client) GetAuthorizationV1APIResources(ctx context.Context) (GetAuthori func (c *Client) sendGetAuthorizationV1APIResources(ctx context.Context) (res GetAuthorizationV1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getAuthorizationV1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/authorization.k8s.io/v1/"), } @@ -12608,7 +12609,7 @@ func (c *Client) sendGetAuthorizationV1APIResources(ctx context.Context) (res Ge uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12675,7 +12676,7 @@ func (c *Client) GetAutoscalingAPIGroup(ctx context.Context) (GetAutoscalingAPIG func (c *Client) sendGetAutoscalingAPIGroup(ctx context.Context) (res GetAutoscalingAPIGroupRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getAutoscalingAPIGroup"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/autoscaling/"), } @@ -12713,7 +12714,7 @@ func (c *Client) sendGetAutoscalingAPIGroup(ctx context.Context) (res GetAutosca uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12780,7 +12781,7 @@ func (c *Client) GetAutoscalingV1APIResources(ctx context.Context) (GetAutoscali func (c *Client) sendGetAutoscalingV1APIResources(ctx context.Context) (res GetAutoscalingV1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getAutoscalingV1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/autoscaling/v1/"), } @@ -12818,7 +12819,7 @@ func (c *Client) sendGetAutoscalingV1APIResources(ctx context.Context) (res GetA uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12885,7 +12886,7 @@ func (c *Client) GetAutoscalingV2beta1APIResources(ctx context.Context) (GetAuto func (c *Client) sendGetAutoscalingV2beta1APIResources(ctx context.Context) (res GetAutoscalingV2beta1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getAutoscalingV2beta1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/autoscaling/v2beta1/"), } @@ -12923,7 +12924,7 @@ func (c *Client) sendGetAutoscalingV2beta1APIResources(ctx context.Context) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12990,7 +12991,7 @@ func (c *Client) GetAutoscalingV2beta2APIResources(ctx context.Context) (GetAuto func (c *Client) sendGetAutoscalingV2beta2APIResources(ctx context.Context) (res GetAutoscalingV2beta2APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getAutoscalingV2beta2APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/autoscaling/v2beta2/"), } @@ -13028,7 +13029,7 @@ func (c *Client) sendGetAutoscalingV2beta2APIResources(ctx context.Context) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13095,7 +13096,7 @@ func (c *Client) GetBatchAPIGroup(ctx context.Context) (GetBatchAPIGroupRes, err func (c *Client) sendGetBatchAPIGroup(ctx context.Context) (res GetBatchAPIGroupRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getBatchAPIGroup"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/batch/"), } @@ -13133,7 +13134,7 @@ func (c *Client) sendGetBatchAPIGroup(ctx context.Context) (res GetBatchAPIGroup uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13200,7 +13201,7 @@ func (c *Client) GetBatchV1APIResources(ctx context.Context) (GetBatchV1APIResou func (c *Client) sendGetBatchV1APIResources(ctx context.Context) (res GetBatchV1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getBatchV1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/batch/v1/"), } @@ -13238,7 +13239,7 @@ func (c *Client) sendGetBatchV1APIResources(ctx context.Context) (res GetBatchV1 uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13305,7 +13306,7 @@ func (c *Client) GetBatchV1beta1APIResources(ctx context.Context) (GetBatchV1bet func (c *Client) sendGetBatchV1beta1APIResources(ctx context.Context) (res GetBatchV1beta1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getBatchV1beta1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/batch/v1beta1/"), } @@ -13343,7 +13344,7 @@ func (c *Client) sendGetBatchV1beta1APIResources(ctx context.Context) (res GetBa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13410,7 +13411,7 @@ func (c *Client) GetCertificatesAPIGroup(ctx context.Context) (GetCertificatesAP func (c *Client) sendGetCertificatesAPIGroup(ctx context.Context) (res GetCertificatesAPIGroupRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getCertificatesAPIGroup"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/certificates.k8s.io/"), } @@ -13448,7 +13449,7 @@ func (c *Client) sendGetCertificatesAPIGroup(ctx context.Context) (res GetCertif uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13515,7 +13516,7 @@ func (c *Client) GetCertificatesV1APIResources(ctx context.Context) (GetCertific func (c *Client) sendGetCertificatesV1APIResources(ctx context.Context) (res GetCertificatesV1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getCertificatesV1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/certificates.k8s.io/v1/"), } @@ -13553,7 +13554,7 @@ func (c *Client) sendGetCertificatesV1APIResources(ctx context.Context) (res Get uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13620,7 +13621,7 @@ func (c *Client) GetCodeVersion(ctx context.Context) (GetCodeVersionRes, error) func (c *Client) sendGetCodeVersion(ctx context.Context) (res GetCodeVersionRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getCodeVersion"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/version/"), } @@ -13658,7 +13659,7 @@ func (c *Client) sendGetCodeVersion(ctx context.Context) (res GetCodeVersionRes, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13725,7 +13726,7 @@ func (c *Client) GetCoordinationAPIGroup(ctx context.Context) (GetCoordinationAP func (c *Client) sendGetCoordinationAPIGroup(ctx context.Context) (res GetCoordinationAPIGroupRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getCoordinationAPIGroup"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/coordination.k8s.io/"), } @@ -13763,7 +13764,7 @@ func (c *Client) sendGetCoordinationAPIGroup(ctx context.Context) (res GetCoordi uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13830,7 +13831,7 @@ func (c *Client) GetCoordinationV1APIResources(ctx context.Context) (GetCoordina func (c *Client) sendGetCoordinationV1APIResources(ctx context.Context) (res GetCoordinationV1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getCoordinationV1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/coordination.k8s.io/v1/"), } @@ -13868,7 +13869,7 @@ func (c *Client) sendGetCoordinationV1APIResources(ctx context.Context) (res Get uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13935,7 +13936,7 @@ func (c *Client) GetCoreAPIVersions(ctx context.Context) (GetCoreAPIVersionsRes, func (c *Client) sendGetCoreAPIVersions(ctx context.Context) (res GetCoreAPIVersionsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getCoreAPIVersions"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/"), } @@ -13973,7 +13974,7 @@ func (c *Client) sendGetCoreAPIVersions(ctx context.Context) (res GetCoreAPIVers uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -14040,7 +14041,7 @@ func (c *Client) GetCoreV1APIResources(ctx context.Context) (GetCoreV1APIResourc func (c *Client) sendGetCoreV1APIResources(ctx context.Context) (res GetCoreV1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getCoreV1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/"), } @@ -14078,7 +14079,7 @@ func (c *Client) sendGetCoreV1APIResources(ctx context.Context) (res GetCoreV1AP uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -14145,7 +14146,7 @@ func (c *Client) GetDiscoveryAPIGroup(ctx context.Context) (GetDiscoveryAPIGroup func (c *Client) sendGetDiscoveryAPIGroup(ctx context.Context) (res GetDiscoveryAPIGroupRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getDiscoveryAPIGroup"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/discovery.k8s.io/"), } @@ -14183,7 +14184,7 @@ func (c *Client) sendGetDiscoveryAPIGroup(ctx context.Context) (res GetDiscovery uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -14250,7 +14251,7 @@ func (c *Client) GetDiscoveryV1APIResources(ctx context.Context) (GetDiscoveryV1 func (c *Client) sendGetDiscoveryV1APIResources(ctx context.Context) (res GetDiscoveryV1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getDiscoveryV1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/discovery.k8s.io/v1/"), } @@ -14288,7 +14289,7 @@ func (c *Client) sendGetDiscoveryV1APIResources(ctx context.Context) (res GetDis uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -14355,7 +14356,7 @@ func (c *Client) GetDiscoveryV1beta1APIResources(ctx context.Context) (GetDiscov func (c *Client) sendGetDiscoveryV1beta1APIResources(ctx context.Context) (res GetDiscoveryV1beta1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getDiscoveryV1beta1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/discovery.k8s.io/v1beta1/"), } @@ -14393,7 +14394,7 @@ func (c *Client) sendGetDiscoveryV1beta1APIResources(ctx context.Context) (res G uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -14460,7 +14461,7 @@ func (c *Client) GetEventsAPIGroup(ctx context.Context) (GetEventsAPIGroupRes, e func (c *Client) sendGetEventsAPIGroup(ctx context.Context) (res GetEventsAPIGroupRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getEventsAPIGroup"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/events.k8s.io/"), } @@ -14498,7 +14499,7 @@ func (c *Client) sendGetEventsAPIGroup(ctx context.Context) (res GetEventsAPIGro uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -14565,7 +14566,7 @@ func (c *Client) GetEventsV1APIResources(ctx context.Context) (GetEventsV1APIRes func (c *Client) sendGetEventsV1APIResources(ctx context.Context) (res GetEventsV1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getEventsV1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/events.k8s.io/v1/"), } @@ -14603,7 +14604,7 @@ func (c *Client) sendGetEventsV1APIResources(ctx context.Context) (res GetEvents uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -14670,7 +14671,7 @@ func (c *Client) GetEventsV1beta1APIResources(ctx context.Context) (GetEventsV1b func (c *Client) sendGetEventsV1beta1APIResources(ctx context.Context) (res GetEventsV1beta1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getEventsV1beta1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/events.k8s.io/v1beta1/"), } @@ -14708,7 +14709,7 @@ func (c *Client) sendGetEventsV1beta1APIResources(ctx context.Context) (res GetE uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -14775,7 +14776,7 @@ func (c *Client) GetFlowcontrolApiserverAPIGroup(ctx context.Context) (GetFlowco func (c *Client) sendGetFlowcontrolApiserverAPIGroup(ctx context.Context) (res GetFlowcontrolApiserverAPIGroupRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getFlowcontrolApiserverAPIGroup"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/flowcontrol.apiserver.k8s.io/"), } @@ -14813,7 +14814,7 @@ func (c *Client) sendGetFlowcontrolApiserverAPIGroup(ctx context.Context) (res G uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -14880,7 +14881,7 @@ func (c *Client) GetFlowcontrolApiserverV1beta1APIResources(ctx context.Context) func (c *Client) sendGetFlowcontrolApiserverV1beta1APIResources(ctx context.Context) (res GetFlowcontrolApiserverV1beta1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getFlowcontrolApiserverV1beta1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/flowcontrol.apiserver.k8s.io/v1beta1/"), } @@ -14918,7 +14919,7 @@ func (c *Client) sendGetFlowcontrolApiserverV1beta1APIResources(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -14985,7 +14986,7 @@ func (c *Client) GetFlowcontrolApiserverV1beta2APIResources(ctx context.Context) func (c *Client) sendGetFlowcontrolApiserverV1beta2APIResources(ctx context.Context) (res GetFlowcontrolApiserverV1beta2APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getFlowcontrolApiserverV1beta2APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/flowcontrol.apiserver.k8s.io/v1beta2/"), } @@ -15023,7 +15024,7 @@ func (c *Client) sendGetFlowcontrolApiserverV1beta2APIResources(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -15090,7 +15091,7 @@ func (c *Client) GetInternalApiserverAPIGroup(ctx context.Context) (GetInternalA func (c *Client) sendGetInternalApiserverAPIGroup(ctx context.Context) (res GetInternalApiserverAPIGroupRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getInternalApiserverAPIGroup"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/internal.apiserver.k8s.io/"), } @@ -15128,7 +15129,7 @@ func (c *Client) sendGetInternalApiserverAPIGroup(ctx context.Context) (res GetI uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -15195,7 +15196,7 @@ func (c *Client) GetInternalApiserverV1alpha1APIResources(ctx context.Context) ( func (c *Client) sendGetInternalApiserverV1alpha1APIResources(ctx context.Context) (res GetInternalApiserverV1alpha1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getInternalApiserverV1alpha1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/internal.apiserver.k8s.io/v1alpha1/"), } @@ -15233,7 +15234,7 @@ func (c *Client) sendGetInternalApiserverV1alpha1APIResources(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -15300,7 +15301,7 @@ func (c *Client) GetNetworkingAPIGroup(ctx context.Context) (GetNetworkingAPIGro func (c *Client) sendGetNetworkingAPIGroup(ctx context.Context) (res GetNetworkingAPIGroupRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getNetworkingAPIGroup"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/networking.k8s.io/"), } @@ -15338,7 +15339,7 @@ func (c *Client) sendGetNetworkingAPIGroup(ctx context.Context) (res GetNetworki uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -15405,7 +15406,7 @@ func (c *Client) GetNetworkingV1APIResources(ctx context.Context) (GetNetworking func (c *Client) sendGetNetworkingV1APIResources(ctx context.Context) (res GetNetworkingV1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getNetworkingV1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/networking.k8s.io/v1/"), } @@ -15443,7 +15444,7 @@ func (c *Client) sendGetNetworkingV1APIResources(ctx context.Context) (res GetNe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -15510,7 +15511,7 @@ func (c *Client) GetNodeAPIGroup(ctx context.Context) (GetNodeAPIGroupRes, error func (c *Client) sendGetNodeAPIGroup(ctx context.Context) (res GetNodeAPIGroupRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getNodeAPIGroup"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/node.k8s.io/"), } @@ -15548,7 +15549,7 @@ func (c *Client) sendGetNodeAPIGroup(ctx context.Context) (res GetNodeAPIGroupRe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -15615,7 +15616,7 @@ func (c *Client) GetNodeV1APIResources(ctx context.Context) (GetNodeV1APIResourc func (c *Client) sendGetNodeV1APIResources(ctx context.Context) (res GetNodeV1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getNodeV1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/node.k8s.io/v1/"), } @@ -15653,7 +15654,7 @@ func (c *Client) sendGetNodeV1APIResources(ctx context.Context) (res GetNodeV1AP uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -15720,7 +15721,7 @@ func (c *Client) GetNodeV1alpha1APIResources(ctx context.Context) (GetNodeV1alph func (c *Client) sendGetNodeV1alpha1APIResources(ctx context.Context) (res GetNodeV1alpha1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getNodeV1alpha1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/node.k8s.io/v1alpha1/"), } @@ -15758,7 +15759,7 @@ func (c *Client) sendGetNodeV1alpha1APIResources(ctx context.Context) (res GetNo uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -15825,7 +15826,7 @@ func (c *Client) GetNodeV1beta1APIResources(ctx context.Context) (GetNodeV1beta1 func (c *Client) sendGetNodeV1beta1APIResources(ctx context.Context) (res GetNodeV1beta1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getNodeV1beta1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/node.k8s.io/v1beta1/"), } @@ -15863,7 +15864,7 @@ func (c *Client) sendGetNodeV1beta1APIResources(ctx context.Context) (res GetNod uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -15930,7 +15931,7 @@ func (c *Client) GetPolicyAPIGroup(ctx context.Context) (GetPolicyAPIGroupRes, e func (c *Client) sendGetPolicyAPIGroup(ctx context.Context) (res GetPolicyAPIGroupRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getPolicyAPIGroup"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/policy/"), } @@ -15968,7 +15969,7 @@ func (c *Client) sendGetPolicyAPIGroup(ctx context.Context) (res GetPolicyAPIGro uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16035,7 +16036,7 @@ func (c *Client) GetPolicyV1APIResources(ctx context.Context) (GetPolicyV1APIRes func (c *Client) sendGetPolicyV1APIResources(ctx context.Context) (res GetPolicyV1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getPolicyV1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/policy/v1/"), } @@ -16073,7 +16074,7 @@ func (c *Client) sendGetPolicyV1APIResources(ctx context.Context) (res GetPolicy uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16140,7 +16141,7 @@ func (c *Client) GetPolicyV1beta1APIResources(ctx context.Context) (GetPolicyV1b func (c *Client) sendGetPolicyV1beta1APIResources(ctx context.Context) (res GetPolicyV1beta1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getPolicyV1beta1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/policy/v1beta1/"), } @@ -16178,7 +16179,7 @@ func (c *Client) sendGetPolicyV1beta1APIResources(ctx context.Context) (res GetP uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16245,7 +16246,7 @@ func (c *Client) GetRbacAuthorizationAPIGroup(ctx context.Context) (GetRbacAutho func (c *Client) sendGetRbacAuthorizationAPIGroup(ctx context.Context) (res GetRbacAuthorizationAPIGroupRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getRbacAuthorizationAPIGroup"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/rbac.authorization.k8s.io/"), } @@ -16283,7 +16284,7 @@ func (c *Client) sendGetRbacAuthorizationAPIGroup(ctx context.Context) (res GetR uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16350,7 +16351,7 @@ func (c *Client) GetRbacAuthorizationV1APIResources(ctx context.Context) (GetRba func (c *Client) sendGetRbacAuthorizationV1APIResources(ctx context.Context) (res GetRbacAuthorizationV1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getRbacAuthorizationV1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/rbac.authorization.k8s.io/v1/"), } @@ -16388,7 +16389,7 @@ func (c *Client) sendGetRbacAuthorizationV1APIResources(ctx context.Context) (re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16455,7 +16456,7 @@ func (c *Client) GetSchedulingAPIGroup(ctx context.Context) (GetSchedulingAPIGro func (c *Client) sendGetSchedulingAPIGroup(ctx context.Context) (res GetSchedulingAPIGroupRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getSchedulingAPIGroup"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/scheduling.k8s.io/"), } @@ -16493,7 +16494,7 @@ func (c *Client) sendGetSchedulingAPIGroup(ctx context.Context) (res GetScheduli uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16560,7 +16561,7 @@ func (c *Client) GetSchedulingV1APIResources(ctx context.Context) (GetScheduling func (c *Client) sendGetSchedulingV1APIResources(ctx context.Context) (res GetSchedulingV1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getSchedulingV1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/scheduling.k8s.io/v1/"), } @@ -16598,7 +16599,7 @@ func (c *Client) sendGetSchedulingV1APIResources(ctx context.Context) (res GetSc uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16665,7 +16666,7 @@ func (c *Client) GetServiceAccountIssuerOpenIDConfiguration(ctx context.Context) func (c *Client) sendGetServiceAccountIssuerOpenIDConfiguration(ctx context.Context) (res GetServiceAccountIssuerOpenIDConfigurationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getServiceAccountIssuerOpenIDConfiguration"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/.well-known/openid-configuration/"), } @@ -16703,7 +16704,7 @@ func (c *Client) sendGetServiceAccountIssuerOpenIDConfiguration(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16770,7 +16771,7 @@ func (c *Client) GetServiceAccountIssuerOpenIDKeyset(ctx context.Context) (GetSe func (c *Client) sendGetServiceAccountIssuerOpenIDKeyset(ctx context.Context) (res GetServiceAccountIssuerOpenIDKeysetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getServiceAccountIssuerOpenIDKeyset"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/openid/v1/jwks/"), } @@ -16808,7 +16809,7 @@ func (c *Client) sendGetServiceAccountIssuerOpenIDKeyset(ctx context.Context) (r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16875,7 +16876,7 @@ func (c *Client) GetStorageAPIGroup(ctx context.Context) (GetStorageAPIGroupRes, func (c *Client) sendGetStorageAPIGroup(ctx context.Context) (res GetStorageAPIGroupRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getStorageAPIGroup"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/"), } @@ -16913,7 +16914,7 @@ func (c *Client) sendGetStorageAPIGroup(ctx context.Context) (res GetStorageAPIG uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16980,7 +16981,7 @@ func (c *Client) GetStorageV1APIResources(ctx context.Context) (GetStorageV1APIR func (c *Client) sendGetStorageV1APIResources(ctx context.Context) (res GetStorageV1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getStorageV1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1/"), } @@ -17018,7 +17019,7 @@ func (c *Client) sendGetStorageV1APIResources(ctx context.Context) (res GetStora uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -17085,7 +17086,7 @@ func (c *Client) GetStorageV1alpha1APIResources(ctx context.Context) (GetStorage func (c *Client) sendGetStorageV1alpha1APIResources(ctx context.Context) (res GetStorageV1alpha1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getStorageV1alpha1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1alpha1/"), } @@ -17123,7 +17124,7 @@ func (c *Client) sendGetStorageV1alpha1APIResources(ctx context.Context) (res Ge uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -17190,7 +17191,7 @@ func (c *Client) GetStorageV1beta1APIResources(ctx context.Context) (GetStorageV func (c *Client) sendGetStorageV1beta1APIResources(ctx context.Context) (res GetStorageV1beta1APIResourcesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getStorageV1beta1APIResources"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1beta1/"), } @@ -17228,7 +17229,7 @@ func (c *Client) sendGetStorageV1beta1APIResources(ctx context.Context) (res Get uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -17295,7 +17296,7 @@ func (c *Client) ListAdmissionregistrationV1MutatingWebhookConfiguration(ctx con func (c *Client) sendListAdmissionregistrationV1MutatingWebhookConfiguration(ctx context.Context, params ListAdmissionregistrationV1MutatingWebhookConfigurationParams) (res ListAdmissionregistrationV1MutatingWebhookConfigurationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listAdmissionregistrationV1MutatingWebhookConfiguration"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations"), } @@ -17507,7 +17508,7 @@ func (c *Client) sendListAdmissionregistrationV1MutatingWebhookConfiguration(ctx u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -17574,7 +17575,7 @@ func (c *Client) ListAdmissionregistrationV1ValidatingWebhookConfiguration(ctx c func (c *Client) sendListAdmissionregistrationV1ValidatingWebhookConfiguration(ctx context.Context, params ListAdmissionregistrationV1ValidatingWebhookConfigurationParams) (res ListAdmissionregistrationV1ValidatingWebhookConfigurationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listAdmissionregistrationV1ValidatingWebhookConfiguration"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations"), } @@ -17786,7 +17787,7 @@ func (c *Client) sendListAdmissionregistrationV1ValidatingWebhookConfiguration(c u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -17853,7 +17854,7 @@ func (c *Client) ListApiextensionsV1CustomResourceDefinition(ctx context.Context func (c *Client) sendListApiextensionsV1CustomResourceDefinition(ctx context.Context, params ListApiextensionsV1CustomResourceDefinitionParams) (res ListApiextensionsV1CustomResourceDefinitionRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listApiextensionsV1CustomResourceDefinition"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apiextensions.k8s.io/v1/customresourcedefinitions"), } @@ -18065,7 +18066,7 @@ func (c *Client) sendListApiextensionsV1CustomResourceDefinition(ctx context.Con u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -18132,7 +18133,7 @@ func (c *Client) ListApiregistrationV1APIService(ctx context.Context, params Lis func (c *Client) sendListApiregistrationV1APIService(ctx context.Context, params ListApiregistrationV1APIServiceParams) (res ListApiregistrationV1APIServiceRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listApiregistrationV1APIService"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apiregistration.k8s.io/v1/apiservices"), } @@ -18344,7 +18345,7 @@ func (c *Client) sendListApiregistrationV1APIService(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -18411,7 +18412,7 @@ func (c *Client) ListAppsV1ControllerRevisionForAllNamespaces(ctx context.Contex func (c *Client) sendListAppsV1ControllerRevisionForAllNamespaces(ctx context.Context, params ListAppsV1ControllerRevisionForAllNamespacesParams) (res ListAppsV1ControllerRevisionForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listAppsV1ControllerRevisionForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/controllerrevisions"), } @@ -18623,7 +18624,7 @@ func (c *Client) sendListAppsV1ControllerRevisionForAllNamespaces(ctx context.Co u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -18690,7 +18691,7 @@ func (c *Client) ListAppsV1DaemonSetForAllNamespaces(ctx context.Context, params func (c *Client) sendListAppsV1DaemonSetForAllNamespaces(ctx context.Context, params ListAppsV1DaemonSetForAllNamespacesParams) (res ListAppsV1DaemonSetForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listAppsV1DaemonSetForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/daemonsets"), } @@ -18902,7 +18903,7 @@ func (c *Client) sendListAppsV1DaemonSetForAllNamespaces(ctx context.Context, pa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -18969,7 +18970,7 @@ func (c *Client) ListAppsV1DeploymentForAllNamespaces(ctx context.Context, param func (c *Client) sendListAppsV1DeploymentForAllNamespaces(ctx context.Context, params ListAppsV1DeploymentForAllNamespacesParams) (res ListAppsV1DeploymentForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listAppsV1DeploymentForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/deployments"), } @@ -19181,7 +19182,7 @@ func (c *Client) sendListAppsV1DeploymentForAllNamespaces(ctx context.Context, p u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -19248,7 +19249,7 @@ func (c *Client) ListAppsV1NamespacedControllerRevision(ctx context.Context, par func (c *Client) sendListAppsV1NamespacedControllerRevision(ctx context.Context, params ListAppsV1NamespacedControllerRevisionParams) (res ListAppsV1NamespacedControllerRevisionRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listAppsV1NamespacedControllerRevision"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/namespaces/{namespace}/controllerrevisions"), } @@ -19479,7 +19480,7 @@ func (c *Client) sendListAppsV1NamespacedControllerRevision(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -19546,7 +19547,7 @@ func (c *Client) ListAppsV1NamespacedDaemonSet(ctx context.Context, params ListA func (c *Client) sendListAppsV1NamespacedDaemonSet(ctx context.Context, params ListAppsV1NamespacedDaemonSetParams) (res ListAppsV1NamespacedDaemonSetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listAppsV1NamespacedDaemonSet"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/namespaces/{namespace}/daemonsets"), } @@ -19777,7 +19778,7 @@ func (c *Client) sendListAppsV1NamespacedDaemonSet(ctx context.Context, params L u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -19844,7 +19845,7 @@ func (c *Client) ListAppsV1NamespacedDeployment(ctx context.Context, params List func (c *Client) sendListAppsV1NamespacedDeployment(ctx context.Context, params ListAppsV1NamespacedDeploymentParams) (res ListAppsV1NamespacedDeploymentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listAppsV1NamespacedDeployment"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/namespaces/{namespace}/deployments"), } @@ -20075,7 +20076,7 @@ func (c *Client) sendListAppsV1NamespacedDeployment(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -20142,7 +20143,7 @@ func (c *Client) ListAppsV1NamespacedReplicaSet(ctx context.Context, params List func (c *Client) sendListAppsV1NamespacedReplicaSet(ctx context.Context, params ListAppsV1NamespacedReplicaSetParams) (res ListAppsV1NamespacedReplicaSetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listAppsV1NamespacedReplicaSet"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/namespaces/{namespace}/replicasets"), } @@ -20373,7 +20374,7 @@ func (c *Client) sendListAppsV1NamespacedReplicaSet(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -20440,7 +20441,7 @@ func (c *Client) ListAppsV1NamespacedStatefulSet(ctx context.Context, params Lis func (c *Client) sendListAppsV1NamespacedStatefulSet(ctx context.Context, params ListAppsV1NamespacedStatefulSetParams) (res ListAppsV1NamespacedStatefulSetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listAppsV1NamespacedStatefulSet"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/namespaces/{namespace}/statefulsets"), } @@ -20671,7 +20672,7 @@ func (c *Client) sendListAppsV1NamespacedStatefulSet(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -20738,7 +20739,7 @@ func (c *Client) ListAppsV1ReplicaSetForAllNamespaces(ctx context.Context, param func (c *Client) sendListAppsV1ReplicaSetForAllNamespaces(ctx context.Context, params ListAppsV1ReplicaSetForAllNamespacesParams) (res ListAppsV1ReplicaSetForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listAppsV1ReplicaSetForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/replicasets"), } @@ -20950,7 +20951,7 @@ func (c *Client) sendListAppsV1ReplicaSetForAllNamespaces(ctx context.Context, p u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -21017,7 +21018,7 @@ func (c *Client) ListAppsV1StatefulSetForAllNamespaces(ctx context.Context, para func (c *Client) sendListAppsV1StatefulSetForAllNamespaces(ctx context.Context, params ListAppsV1StatefulSetForAllNamespacesParams) (res ListAppsV1StatefulSetForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listAppsV1StatefulSetForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/statefulsets"), } @@ -21229,7 +21230,7 @@ func (c *Client) sendListAppsV1StatefulSetForAllNamespaces(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -21296,7 +21297,7 @@ func (c *Client) ListAutoscalingV1HorizontalPodAutoscalerForAllNamespaces(ctx co func (c *Client) sendListAutoscalingV1HorizontalPodAutoscalerForAllNamespaces(ctx context.Context, params ListAutoscalingV1HorizontalPodAutoscalerForAllNamespacesParams) (res ListAutoscalingV1HorizontalPodAutoscalerForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listAutoscalingV1HorizontalPodAutoscalerForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/autoscaling/v1/horizontalpodautoscalers"), } @@ -21508,7 +21509,7 @@ func (c *Client) sendListAutoscalingV1HorizontalPodAutoscalerForAllNamespaces(ct u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -21575,7 +21576,7 @@ func (c *Client) ListAutoscalingV1NamespacedHorizontalPodAutoscaler(ctx context. func (c *Client) sendListAutoscalingV1NamespacedHorizontalPodAutoscaler(ctx context.Context, params ListAutoscalingV1NamespacedHorizontalPodAutoscalerParams) (res ListAutoscalingV1NamespacedHorizontalPodAutoscalerRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listAutoscalingV1NamespacedHorizontalPodAutoscaler"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers"), } @@ -21806,7 +21807,7 @@ func (c *Client) sendListAutoscalingV1NamespacedHorizontalPodAutoscaler(ctx cont u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -21873,7 +21874,7 @@ func (c *Client) ListAutoscalingV2beta1HorizontalPodAutoscalerForAllNamespaces(c func (c *Client) sendListAutoscalingV2beta1HorizontalPodAutoscalerForAllNamespaces(ctx context.Context, params ListAutoscalingV2beta1HorizontalPodAutoscalerForAllNamespacesParams) (res ListAutoscalingV2beta1HorizontalPodAutoscalerForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listAutoscalingV2beta1HorizontalPodAutoscalerForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/autoscaling/v2beta1/horizontalpodautoscalers"), } @@ -22085,7 +22086,7 @@ func (c *Client) sendListAutoscalingV2beta1HorizontalPodAutoscalerForAllNamespac u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -22152,7 +22153,7 @@ func (c *Client) ListAutoscalingV2beta1NamespacedHorizontalPodAutoscaler(ctx con func (c *Client) sendListAutoscalingV2beta1NamespacedHorizontalPodAutoscaler(ctx context.Context, params ListAutoscalingV2beta1NamespacedHorizontalPodAutoscalerParams) (res ListAutoscalingV2beta1NamespacedHorizontalPodAutoscalerRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listAutoscalingV2beta1NamespacedHorizontalPodAutoscaler"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers"), } @@ -22383,7 +22384,7 @@ func (c *Client) sendListAutoscalingV2beta1NamespacedHorizontalPodAutoscaler(ctx u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -22450,7 +22451,7 @@ func (c *Client) ListAutoscalingV2beta2HorizontalPodAutoscalerForAllNamespaces(c func (c *Client) sendListAutoscalingV2beta2HorizontalPodAutoscalerForAllNamespaces(ctx context.Context, params ListAutoscalingV2beta2HorizontalPodAutoscalerForAllNamespacesParams) (res ListAutoscalingV2beta2HorizontalPodAutoscalerForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listAutoscalingV2beta2HorizontalPodAutoscalerForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/autoscaling/v2beta2/horizontalpodautoscalers"), } @@ -22662,7 +22663,7 @@ func (c *Client) sendListAutoscalingV2beta2HorizontalPodAutoscalerForAllNamespac u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -22729,7 +22730,7 @@ func (c *Client) ListAutoscalingV2beta2NamespacedHorizontalPodAutoscaler(ctx con func (c *Client) sendListAutoscalingV2beta2NamespacedHorizontalPodAutoscaler(ctx context.Context, params ListAutoscalingV2beta2NamespacedHorizontalPodAutoscalerParams) (res ListAutoscalingV2beta2NamespacedHorizontalPodAutoscalerRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listAutoscalingV2beta2NamespacedHorizontalPodAutoscaler"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers"), } @@ -22960,7 +22961,7 @@ func (c *Client) sendListAutoscalingV2beta2NamespacedHorizontalPodAutoscaler(ctx u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -23027,7 +23028,7 @@ func (c *Client) ListBatchV1CronJobForAllNamespaces(ctx context.Context, params func (c *Client) sendListBatchV1CronJobForAllNamespaces(ctx context.Context, params ListBatchV1CronJobForAllNamespacesParams) (res ListBatchV1CronJobForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listBatchV1CronJobForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/batch/v1/cronjobs"), } @@ -23239,7 +23240,7 @@ func (c *Client) sendListBatchV1CronJobForAllNamespaces(ctx context.Context, par u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -23306,7 +23307,7 @@ func (c *Client) ListBatchV1JobForAllNamespaces(ctx context.Context, params List func (c *Client) sendListBatchV1JobForAllNamespaces(ctx context.Context, params ListBatchV1JobForAllNamespacesParams) (res ListBatchV1JobForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listBatchV1JobForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/batch/v1/jobs"), } @@ -23518,7 +23519,7 @@ func (c *Client) sendListBatchV1JobForAllNamespaces(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -23585,7 +23586,7 @@ func (c *Client) ListBatchV1NamespacedCronJob(ctx context.Context, params ListBa func (c *Client) sendListBatchV1NamespacedCronJob(ctx context.Context, params ListBatchV1NamespacedCronJobParams) (res ListBatchV1NamespacedCronJobRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listBatchV1NamespacedCronJob"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/batch/v1/namespaces/{namespace}/cronjobs"), } @@ -23816,7 +23817,7 @@ func (c *Client) sendListBatchV1NamespacedCronJob(ctx context.Context, params Li u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -23883,7 +23884,7 @@ func (c *Client) ListBatchV1NamespacedJob(ctx context.Context, params ListBatchV func (c *Client) sendListBatchV1NamespacedJob(ctx context.Context, params ListBatchV1NamespacedJobParams) (res ListBatchV1NamespacedJobRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listBatchV1NamespacedJob"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/batch/v1/namespaces/{namespace}/jobs"), } @@ -24114,7 +24115,7 @@ func (c *Client) sendListBatchV1NamespacedJob(ctx context.Context, params ListBa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -24181,7 +24182,7 @@ func (c *Client) ListBatchV1beta1CronJobForAllNamespaces(ctx context.Context, pa func (c *Client) sendListBatchV1beta1CronJobForAllNamespaces(ctx context.Context, params ListBatchV1beta1CronJobForAllNamespacesParams) (res ListBatchV1beta1CronJobForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listBatchV1beta1CronJobForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/batch/v1beta1/cronjobs"), } @@ -24393,7 +24394,7 @@ func (c *Client) sendListBatchV1beta1CronJobForAllNamespaces(ctx context.Context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -24460,7 +24461,7 @@ func (c *Client) ListBatchV1beta1NamespacedCronJob(ctx context.Context, params L func (c *Client) sendListBatchV1beta1NamespacedCronJob(ctx context.Context, params ListBatchV1beta1NamespacedCronJobParams) (res ListBatchV1beta1NamespacedCronJobRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listBatchV1beta1NamespacedCronJob"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/batch/v1beta1/namespaces/{namespace}/cronjobs"), } @@ -24691,7 +24692,7 @@ func (c *Client) sendListBatchV1beta1NamespacedCronJob(ctx context.Context, para u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -24758,7 +24759,7 @@ func (c *Client) ListCertificatesV1CertificateSigningRequest(ctx context.Context func (c *Client) sendListCertificatesV1CertificateSigningRequest(ctx context.Context, params ListCertificatesV1CertificateSigningRequestParams) (res ListCertificatesV1CertificateSigningRequestRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCertificatesV1CertificateSigningRequest"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/certificates.k8s.io/v1/certificatesigningrequests"), } @@ -24970,7 +24971,7 @@ func (c *Client) sendListCertificatesV1CertificateSigningRequest(ctx context.Con u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -25037,7 +25038,7 @@ func (c *Client) ListCoordinationV1LeaseForAllNamespaces(ctx context.Context, pa func (c *Client) sendListCoordinationV1LeaseForAllNamespaces(ctx context.Context, params ListCoordinationV1LeaseForAllNamespacesParams) (res ListCoordinationV1LeaseForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoordinationV1LeaseForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/coordination.k8s.io/v1/leases"), } @@ -25249,7 +25250,7 @@ func (c *Client) sendListCoordinationV1LeaseForAllNamespaces(ctx context.Context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -25316,7 +25317,7 @@ func (c *Client) ListCoordinationV1NamespacedLease(ctx context.Context, params L func (c *Client) sendListCoordinationV1NamespacedLease(ctx context.Context, params ListCoordinationV1NamespacedLeaseParams) (res ListCoordinationV1NamespacedLeaseRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoordinationV1NamespacedLease"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases"), } @@ -25547,7 +25548,7 @@ func (c *Client) sendListCoordinationV1NamespacedLease(ctx context.Context, para u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -25614,7 +25615,7 @@ func (c *Client) ListCoreV1ComponentStatus(ctx context.Context, params ListCoreV func (c *Client) sendListCoreV1ComponentStatus(ctx context.Context, params ListCoreV1ComponentStatusParams) (res ListCoreV1ComponentStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoreV1ComponentStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/componentstatuses"), } @@ -25826,7 +25827,7 @@ func (c *Client) sendListCoreV1ComponentStatus(ctx context.Context, params ListC u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -25893,7 +25894,7 @@ func (c *Client) ListCoreV1ConfigMapForAllNamespaces(ctx context.Context, params func (c *Client) sendListCoreV1ConfigMapForAllNamespaces(ctx context.Context, params ListCoreV1ConfigMapForAllNamespacesParams) (res ListCoreV1ConfigMapForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoreV1ConfigMapForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/configmaps"), } @@ -26105,7 +26106,7 @@ func (c *Client) sendListCoreV1ConfigMapForAllNamespaces(ctx context.Context, pa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -26172,7 +26173,7 @@ func (c *Client) ListCoreV1EndpointsForAllNamespaces(ctx context.Context, params func (c *Client) sendListCoreV1EndpointsForAllNamespaces(ctx context.Context, params ListCoreV1EndpointsForAllNamespacesParams) (res ListCoreV1EndpointsForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoreV1EndpointsForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/endpoints"), } @@ -26384,7 +26385,7 @@ func (c *Client) sendListCoreV1EndpointsForAllNamespaces(ctx context.Context, pa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -26451,7 +26452,7 @@ func (c *Client) ListCoreV1EventForAllNamespaces(ctx context.Context, params Lis func (c *Client) sendListCoreV1EventForAllNamespaces(ctx context.Context, params ListCoreV1EventForAllNamespacesParams) (res ListCoreV1EventForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoreV1EventForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/events"), } @@ -26663,7 +26664,7 @@ func (c *Client) sendListCoreV1EventForAllNamespaces(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -26730,7 +26731,7 @@ func (c *Client) ListCoreV1LimitRangeForAllNamespaces(ctx context.Context, param func (c *Client) sendListCoreV1LimitRangeForAllNamespaces(ctx context.Context, params ListCoreV1LimitRangeForAllNamespacesParams) (res ListCoreV1LimitRangeForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoreV1LimitRangeForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/limitranges"), } @@ -26942,7 +26943,7 @@ func (c *Client) sendListCoreV1LimitRangeForAllNamespaces(ctx context.Context, p u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -27009,7 +27010,7 @@ func (c *Client) ListCoreV1Namespace(ctx context.Context, params ListCoreV1Names func (c *Client) sendListCoreV1Namespace(ctx context.Context, params ListCoreV1NamespaceParams) (res ListCoreV1NamespaceRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoreV1Namespace"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces"), } @@ -27221,7 +27222,7 @@ func (c *Client) sendListCoreV1Namespace(ctx context.Context, params ListCoreV1N u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -27288,7 +27289,7 @@ func (c *Client) ListCoreV1NamespacedConfigMap(ctx context.Context, params ListC func (c *Client) sendListCoreV1NamespacedConfigMap(ctx context.Context, params ListCoreV1NamespacedConfigMapParams) (res ListCoreV1NamespacedConfigMapRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoreV1NamespacedConfigMap"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/configmaps"), } @@ -27519,7 +27520,7 @@ func (c *Client) sendListCoreV1NamespacedConfigMap(ctx context.Context, params L u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -27586,7 +27587,7 @@ func (c *Client) ListCoreV1NamespacedEndpoints(ctx context.Context, params ListC func (c *Client) sendListCoreV1NamespacedEndpoints(ctx context.Context, params ListCoreV1NamespacedEndpointsParams) (res ListCoreV1NamespacedEndpointsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoreV1NamespacedEndpoints"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/endpoints"), } @@ -27817,7 +27818,7 @@ func (c *Client) sendListCoreV1NamespacedEndpoints(ctx context.Context, params L u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -27884,7 +27885,7 @@ func (c *Client) ListCoreV1NamespacedEvent(ctx context.Context, params ListCoreV func (c *Client) sendListCoreV1NamespacedEvent(ctx context.Context, params ListCoreV1NamespacedEventParams) (res ListCoreV1NamespacedEventRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoreV1NamespacedEvent"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/events"), } @@ -28115,7 +28116,7 @@ func (c *Client) sendListCoreV1NamespacedEvent(ctx context.Context, params ListC u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -28182,7 +28183,7 @@ func (c *Client) ListCoreV1NamespacedLimitRange(ctx context.Context, params List func (c *Client) sendListCoreV1NamespacedLimitRange(ctx context.Context, params ListCoreV1NamespacedLimitRangeParams) (res ListCoreV1NamespacedLimitRangeRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoreV1NamespacedLimitRange"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/limitranges"), } @@ -28413,7 +28414,7 @@ func (c *Client) sendListCoreV1NamespacedLimitRange(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -28480,7 +28481,7 @@ func (c *Client) ListCoreV1NamespacedPersistentVolumeClaim(ctx context.Context, func (c *Client) sendListCoreV1NamespacedPersistentVolumeClaim(ctx context.Context, params ListCoreV1NamespacedPersistentVolumeClaimParams) (res ListCoreV1NamespacedPersistentVolumeClaimRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoreV1NamespacedPersistentVolumeClaim"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/persistentvolumeclaims"), } @@ -28711,7 +28712,7 @@ func (c *Client) sendListCoreV1NamespacedPersistentVolumeClaim(ctx context.Conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -28778,7 +28779,7 @@ func (c *Client) ListCoreV1NamespacedPod(ctx context.Context, params ListCoreV1N func (c *Client) sendListCoreV1NamespacedPod(ctx context.Context, params ListCoreV1NamespacedPodParams) (res ListCoreV1NamespacedPodRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoreV1NamespacedPod"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/pods"), } @@ -29009,7 +29010,7 @@ func (c *Client) sendListCoreV1NamespacedPod(ctx context.Context, params ListCor u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -29076,7 +29077,7 @@ func (c *Client) ListCoreV1NamespacedPodTemplate(ctx context.Context, params Lis func (c *Client) sendListCoreV1NamespacedPodTemplate(ctx context.Context, params ListCoreV1NamespacedPodTemplateParams) (res ListCoreV1NamespacedPodTemplateRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoreV1NamespacedPodTemplate"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/podtemplates"), } @@ -29307,7 +29308,7 @@ func (c *Client) sendListCoreV1NamespacedPodTemplate(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -29374,7 +29375,7 @@ func (c *Client) ListCoreV1NamespacedReplicationController(ctx context.Context, func (c *Client) sendListCoreV1NamespacedReplicationController(ctx context.Context, params ListCoreV1NamespacedReplicationControllerParams) (res ListCoreV1NamespacedReplicationControllerRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoreV1NamespacedReplicationController"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/replicationcontrollers"), } @@ -29605,7 +29606,7 @@ func (c *Client) sendListCoreV1NamespacedReplicationController(ctx context.Conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -29672,7 +29673,7 @@ func (c *Client) ListCoreV1NamespacedResourceQuota(ctx context.Context, params L func (c *Client) sendListCoreV1NamespacedResourceQuota(ctx context.Context, params ListCoreV1NamespacedResourceQuotaParams) (res ListCoreV1NamespacedResourceQuotaRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoreV1NamespacedResourceQuota"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/resourcequotas"), } @@ -29903,7 +29904,7 @@ func (c *Client) sendListCoreV1NamespacedResourceQuota(ctx context.Context, para u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -29970,7 +29971,7 @@ func (c *Client) ListCoreV1NamespacedSecret(ctx context.Context, params ListCore func (c *Client) sendListCoreV1NamespacedSecret(ctx context.Context, params ListCoreV1NamespacedSecretParams) (res ListCoreV1NamespacedSecretRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoreV1NamespacedSecret"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/secrets"), } @@ -30201,7 +30202,7 @@ func (c *Client) sendListCoreV1NamespacedSecret(ctx context.Context, params List u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -30268,7 +30269,7 @@ func (c *Client) ListCoreV1NamespacedService(ctx context.Context, params ListCor func (c *Client) sendListCoreV1NamespacedService(ctx context.Context, params ListCoreV1NamespacedServiceParams) (res ListCoreV1NamespacedServiceRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoreV1NamespacedService"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/services"), } @@ -30499,7 +30500,7 @@ func (c *Client) sendListCoreV1NamespacedService(ctx context.Context, params Lis u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -30566,7 +30567,7 @@ func (c *Client) ListCoreV1NamespacedServiceAccount(ctx context.Context, params func (c *Client) sendListCoreV1NamespacedServiceAccount(ctx context.Context, params ListCoreV1NamespacedServiceAccountParams) (res ListCoreV1NamespacedServiceAccountRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoreV1NamespacedServiceAccount"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/serviceaccounts"), } @@ -30797,7 +30798,7 @@ func (c *Client) sendListCoreV1NamespacedServiceAccount(ctx context.Context, par u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -30864,7 +30865,7 @@ func (c *Client) ListCoreV1Node(ctx context.Context, params ListCoreV1NodeParams func (c *Client) sendListCoreV1Node(ctx context.Context, params ListCoreV1NodeParams) (res ListCoreV1NodeRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoreV1Node"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/nodes"), } @@ -31076,7 +31077,7 @@ func (c *Client) sendListCoreV1Node(ctx context.Context, params ListCoreV1NodePa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -31143,7 +31144,7 @@ func (c *Client) ListCoreV1PersistentVolume(ctx context.Context, params ListCore func (c *Client) sendListCoreV1PersistentVolume(ctx context.Context, params ListCoreV1PersistentVolumeParams) (res ListCoreV1PersistentVolumeRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoreV1PersistentVolume"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/persistentvolumes"), } @@ -31355,7 +31356,7 @@ func (c *Client) sendListCoreV1PersistentVolume(ctx context.Context, params List u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -31422,7 +31423,7 @@ func (c *Client) ListCoreV1PersistentVolumeClaimForAllNamespaces(ctx context.Con func (c *Client) sendListCoreV1PersistentVolumeClaimForAllNamespaces(ctx context.Context, params ListCoreV1PersistentVolumeClaimForAllNamespacesParams) (res ListCoreV1PersistentVolumeClaimForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoreV1PersistentVolumeClaimForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/persistentvolumeclaims"), } @@ -31634,7 +31635,7 @@ func (c *Client) sendListCoreV1PersistentVolumeClaimForAllNamespaces(ctx context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -31701,7 +31702,7 @@ func (c *Client) ListCoreV1PodForAllNamespaces(ctx context.Context, params ListC func (c *Client) sendListCoreV1PodForAllNamespaces(ctx context.Context, params ListCoreV1PodForAllNamespacesParams) (res ListCoreV1PodForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoreV1PodForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/pods"), } @@ -31913,7 +31914,7 @@ func (c *Client) sendListCoreV1PodForAllNamespaces(ctx context.Context, params L u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -31980,7 +31981,7 @@ func (c *Client) ListCoreV1PodTemplateForAllNamespaces(ctx context.Context, para func (c *Client) sendListCoreV1PodTemplateForAllNamespaces(ctx context.Context, params ListCoreV1PodTemplateForAllNamespacesParams) (res ListCoreV1PodTemplateForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoreV1PodTemplateForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/podtemplates"), } @@ -32192,7 +32193,7 @@ func (c *Client) sendListCoreV1PodTemplateForAllNamespaces(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -32259,7 +32260,7 @@ func (c *Client) ListCoreV1ReplicationControllerForAllNamespaces(ctx context.Con func (c *Client) sendListCoreV1ReplicationControllerForAllNamespaces(ctx context.Context, params ListCoreV1ReplicationControllerForAllNamespacesParams) (res ListCoreV1ReplicationControllerForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoreV1ReplicationControllerForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/replicationcontrollers"), } @@ -32471,7 +32472,7 @@ func (c *Client) sendListCoreV1ReplicationControllerForAllNamespaces(ctx context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -32538,7 +32539,7 @@ func (c *Client) ListCoreV1ResourceQuotaForAllNamespaces(ctx context.Context, pa func (c *Client) sendListCoreV1ResourceQuotaForAllNamespaces(ctx context.Context, params ListCoreV1ResourceQuotaForAllNamespacesParams) (res ListCoreV1ResourceQuotaForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoreV1ResourceQuotaForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/resourcequotas"), } @@ -32750,7 +32751,7 @@ func (c *Client) sendListCoreV1ResourceQuotaForAllNamespaces(ctx context.Context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -32817,7 +32818,7 @@ func (c *Client) ListCoreV1SecretForAllNamespaces(ctx context.Context, params Li func (c *Client) sendListCoreV1SecretForAllNamespaces(ctx context.Context, params ListCoreV1SecretForAllNamespacesParams) (res ListCoreV1SecretForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoreV1SecretForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/secrets"), } @@ -33029,7 +33030,7 @@ func (c *Client) sendListCoreV1SecretForAllNamespaces(ctx context.Context, param u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -33096,7 +33097,7 @@ func (c *Client) ListCoreV1ServiceAccountForAllNamespaces(ctx context.Context, p func (c *Client) sendListCoreV1ServiceAccountForAllNamespaces(ctx context.Context, params ListCoreV1ServiceAccountForAllNamespacesParams) (res ListCoreV1ServiceAccountForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoreV1ServiceAccountForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/serviceaccounts"), } @@ -33308,7 +33309,7 @@ func (c *Client) sendListCoreV1ServiceAccountForAllNamespaces(ctx context.Contex u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -33375,7 +33376,7 @@ func (c *Client) ListCoreV1ServiceForAllNamespaces(ctx context.Context, params L func (c *Client) sendListCoreV1ServiceForAllNamespaces(ctx context.Context, params ListCoreV1ServiceForAllNamespacesParams) (res ListCoreV1ServiceForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listCoreV1ServiceForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/services"), } @@ -33587,7 +33588,7 @@ func (c *Client) sendListCoreV1ServiceForAllNamespaces(ctx context.Context, para u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -33654,7 +33655,7 @@ func (c *Client) ListDiscoveryV1EndpointSliceForAllNamespaces(ctx context.Contex func (c *Client) sendListDiscoveryV1EndpointSliceForAllNamespaces(ctx context.Context, params ListDiscoveryV1EndpointSliceForAllNamespacesParams) (res ListDiscoveryV1EndpointSliceForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listDiscoveryV1EndpointSliceForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/discovery.k8s.io/v1/endpointslices"), } @@ -33866,7 +33867,7 @@ func (c *Client) sendListDiscoveryV1EndpointSliceForAllNamespaces(ctx context.Co u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -33933,7 +33934,7 @@ func (c *Client) ListDiscoveryV1NamespacedEndpointSlice(ctx context.Context, par func (c *Client) sendListDiscoveryV1NamespacedEndpointSlice(ctx context.Context, params ListDiscoveryV1NamespacedEndpointSliceParams) (res ListDiscoveryV1NamespacedEndpointSliceRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listDiscoveryV1NamespacedEndpointSlice"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices"), } @@ -34164,7 +34165,7 @@ func (c *Client) sendListDiscoveryV1NamespacedEndpointSlice(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -34231,7 +34232,7 @@ func (c *Client) ListDiscoveryV1beta1EndpointSliceForAllNamespaces(ctx context.C func (c *Client) sendListDiscoveryV1beta1EndpointSliceForAllNamespaces(ctx context.Context, params ListDiscoveryV1beta1EndpointSliceForAllNamespacesParams) (res ListDiscoveryV1beta1EndpointSliceForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listDiscoveryV1beta1EndpointSliceForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/discovery.k8s.io/v1beta1/endpointslices"), } @@ -34443,7 +34444,7 @@ func (c *Client) sendListDiscoveryV1beta1EndpointSliceForAllNamespaces(ctx conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -34510,7 +34511,7 @@ func (c *Client) ListDiscoveryV1beta1NamespacedEndpointSlice(ctx context.Context func (c *Client) sendListDiscoveryV1beta1NamespacedEndpointSlice(ctx context.Context, params ListDiscoveryV1beta1NamespacedEndpointSliceParams) (res ListDiscoveryV1beta1NamespacedEndpointSliceRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listDiscoveryV1beta1NamespacedEndpointSlice"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices"), } @@ -34741,7 +34742,7 @@ func (c *Client) sendListDiscoveryV1beta1NamespacedEndpointSlice(ctx context.Con u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -34808,7 +34809,7 @@ func (c *Client) ListEventsV1EventForAllNamespaces(ctx context.Context, params L func (c *Client) sendListEventsV1EventForAllNamespaces(ctx context.Context, params ListEventsV1EventForAllNamespacesParams) (res ListEventsV1EventForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listEventsV1EventForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/events.k8s.io/v1/events"), } @@ -35020,7 +35021,7 @@ func (c *Client) sendListEventsV1EventForAllNamespaces(ctx context.Context, para u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -35087,7 +35088,7 @@ func (c *Client) ListEventsV1NamespacedEvent(ctx context.Context, params ListEve func (c *Client) sendListEventsV1NamespacedEvent(ctx context.Context, params ListEventsV1NamespacedEventParams) (res ListEventsV1NamespacedEventRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listEventsV1NamespacedEvent"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/events.k8s.io/v1/namespaces/{namespace}/events"), } @@ -35318,7 +35319,7 @@ func (c *Client) sendListEventsV1NamespacedEvent(ctx context.Context, params Lis u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -35385,7 +35386,7 @@ func (c *Client) ListEventsV1beta1EventForAllNamespaces(ctx context.Context, par func (c *Client) sendListEventsV1beta1EventForAllNamespaces(ctx context.Context, params ListEventsV1beta1EventForAllNamespacesParams) (res ListEventsV1beta1EventForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listEventsV1beta1EventForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/events.k8s.io/v1beta1/events"), } @@ -35597,7 +35598,7 @@ func (c *Client) sendListEventsV1beta1EventForAllNamespaces(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -35664,7 +35665,7 @@ func (c *Client) ListEventsV1beta1NamespacedEvent(ctx context.Context, params Li func (c *Client) sendListEventsV1beta1NamespacedEvent(ctx context.Context, params ListEventsV1beta1NamespacedEventParams) (res ListEventsV1beta1NamespacedEventRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listEventsV1beta1NamespacedEvent"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events"), } @@ -35895,7 +35896,7 @@ func (c *Client) sendListEventsV1beta1NamespacedEvent(ctx context.Context, param u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -35962,7 +35963,7 @@ func (c *Client) ListFlowcontrolApiserverV1beta1FlowSchema(ctx context.Context, func (c *Client) sendListFlowcontrolApiserverV1beta1FlowSchema(ctx context.Context, params ListFlowcontrolApiserverV1beta1FlowSchemaParams) (res ListFlowcontrolApiserverV1beta1FlowSchemaRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listFlowcontrolApiserverV1beta1FlowSchema"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas"), } @@ -36174,7 +36175,7 @@ func (c *Client) sendListFlowcontrolApiserverV1beta1FlowSchema(ctx context.Conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -36241,7 +36242,7 @@ func (c *Client) ListFlowcontrolApiserverV1beta1PriorityLevelConfiguration(ctx c func (c *Client) sendListFlowcontrolApiserverV1beta1PriorityLevelConfiguration(ctx context.Context, params ListFlowcontrolApiserverV1beta1PriorityLevelConfigurationParams) (res ListFlowcontrolApiserverV1beta1PriorityLevelConfigurationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listFlowcontrolApiserverV1beta1PriorityLevelConfiguration"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations"), } @@ -36453,7 +36454,7 @@ func (c *Client) sendListFlowcontrolApiserverV1beta1PriorityLevelConfiguration(c u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -36520,7 +36521,7 @@ func (c *Client) ListFlowcontrolApiserverV1beta2FlowSchema(ctx context.Context, func (c *Client) sendListFlowcontrolApiserverV1beta2FlowSchema(ctx context.Context, params ListFlowcontrolApiserverV1beta2FlowSchemaParams) (res ListFlowcontrolApiserverV1beta2FlowSchemaRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listFlowcontrolApiserverV1beta2FlowSchema"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas"), } @@ -36732,7 +36733,7 @@ func (c *Client) sendListFlowcontrolApiserverV1beta2FlowSchema(ctx context.Conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -36799,7 +36800,7 @@ func (c *Client) ListFlowcontrolApiserverV1beta2PriorityLevelConfiguration(ctx c func (c *Client) sendListFlowcontrolApiserverV1beta2PriorityLevelConfiguration(ctx context.Context, params ListFlowcontrolApiserverV1beta2PriorityLevelConfigurationParams) (res ListFlowcontrolApiserverV1beta2PriorityLevelConfigurationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listFlowcontrolApiserverV1beta2PriorityLevelConfiguration"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations"), } @@ -37011,7 +37012,7 @@ func (c *Client) sendListFlowcontrolApiserverV1beta2PriorityLevelConfiguration(c u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -37078,7 +37079,7 @@ func (c *Client) ListInternalApiserverV1alpha1StorageVersion(ctx context.Context func (c *Client) sendListInternalApiserverV1alpha1StorageVersion(ctx context.Context, params ListInternalApiserverV1alpha1StorageVersionParams) (res ListInternalApiserverV1alpha1StorageVersionRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listInternalApiserverV1alpha1StorageVersion"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/internal.apiserver.k8s.io/v1alpha1/storageversions"), } @@ -37290,7 +37291,7 @@ func (c *Client) sendListInternalApiserverV1alpha1StorageVersion(ctx context.Con u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -37357,7 +37358,7 @@ func (c *Client) ListNetworkingV1IngressClass(ctx context.Context, params ListNe func (c *Client) sendListNetworkingV1IngressClass(ctx context.Context, params ListNetworkingV1IngressClassParams) (res ListNetworkingV1IngressClassRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listNetworkingV1IngressClass"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/networking.k8s.io/v1/ingressclasses"), } @@ -37569,7 +37570,7 @@ func (c *Client) sendListNetworkingV1IngressClass(ctx context.Context, params Li u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -37636,7 +37637,7 @@ func (c *Client) ListNetworkingV1IngressForAllNamespaces(ctx context.Context, pa func (c *Client) sendListNetworkingV1IngressForAllNamespaces(ctx context.Context, params ListNetworkingV1IngressForAllNamespacesParams) (res ListNetworkingV1IngressForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listNetworkingV1IngressForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/networking.k8s.io/v1/ingresses"), } @@ -37848,7 +37849,7 @@ func (c *Client) sendListNetworkingV1IngressForAllNamespaces(ctx context.Context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -37915,7 +37916,7 @@ func (c *Client) ListNetworkingV1NamespacedIngress(ctx context.Context, params L func (c *Client) sendListNetworkingV1NamespacedIngress(ctx context.Context, params ListNetworkingV1NamespacedIngressParams) (res ListNetworkingV1NamespacedIngressRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listNetworkingV1NamespacedIngress"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses"), } @@ -38146,7 +38147,7 @@ func (c *Client) sendListNetworkingV1NamespacedIngress(ctx context.Context, para u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -38213,7 +38214,7 @@ func (c *Client) ListNetworkingV1NamespacedNetworkPolicy(ctx context.Context, pa func (c *Client) sendListNetworkingV1NamespacedNetworkPolicy(ctx context.Context, params ListNetworkingV1NamespacedNetworkPolicyParams) (res ListNetworkingV1NamespacedNetworkPolicyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listNetworkingV1NamespacedNetworkPolicy"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies"), } @@ -38444,7 +38445,7 @@ func (c *Client) sendListNetworkingV1NamespacedNetworkPolicy(ctx context.Context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -38511,7 +38512,7 @@ func (c *Client) ListNetworkingV1NetworkPolicyForAllNamespaces(ctx context.Conte func (c *Client) sendListNetworkingV1NetworkPolicyForAllNamespaces(ctx context.Context, params ListNetworkingV1NetworkPolicyForAllNamespacesParams) (res ListNetworkingV1NetworkPolicyForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listNetworkingV1NetworkPolicyForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/networking.k8s.io/v1/networkpolicies"), } @@ -38723,7 +38724,7 @@ func (c *Client) sendListNetworkingV1NetworkPolicyForAllNamespaces(ctx context.C u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -38790,7 +38791,7 @@ func (c *Client) ListNodeV1RuntimeClass(ctx context.Context, params ListNodeV1Ru func (c *Client) sendListNodeV1RuntimeClass(ctx context.Context, params ListNodeV1RuntimeClassParams) (res ListNodeV1RuntimeClassRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listNodeV1RuntimeClass"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/node.k8s.io/v1/runtimeclasses"), } @@ -39002,7 +39003,7 @@ func (c *Client) sendListNodeV1RuntimeClass(ctx context.Context, params ListNode u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -39069,7 +39070,7 @@ func (c *Client) ListNodeV1alpha1RuntimeClass(ctx context.Context, params ListNo func (c *Client) sendListNodeV1alpha1RuntimeClass(ctx context.Context, params ListNodeV1alpha1RuntimeClassParams) (res ListNodeV1alpha1RuntimeClassRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listNodeV1alpha1RuntimeClass"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/node.k8s.io/v1alpha1/runtimeclasses"), } @@ -39281,7 +39282,7 @@ func (c *Client) sendListNodeV1alpha1RuntimeClass(ctx context.Context, params Li u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -39348,7 +39349,7 @@ func (c *Client) ListNodeV1beta1RuntimeClass(ctx context.Context, params ListNod func (c *Client) sendListNodeV1beta1RuntimeClass(ctx context.Context, params ListNodeV1beta1RuntimeClassParams) (res ListNodeV1beta1RuntimeClassRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listNodeV1beta1RuntimeClass"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/node.k8s.io/v1beta1/runtimeclasses"), } @@ -39560,7 +39561,7 @@ func (c *Client) sendListNodeV1beta1RuntimeClass(ctx context.Context, params Lis u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -39627,7 +39628,7 @@ func (c *Client) ListPolicyV1NamespacedPodDisruptionBudget(ctx context.Context, func (c *Client) sendListPolicyV1NamespacedPodDisruptionBudget(ctx context.Context, params ListPolicyV1NamespacedPodDisruptionBudgetParams) (res ListPolicyV1NamespacedPodDisruptionBudgetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listPolicyV1NamespacedPodDisruptionBudget"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets"), } @@ -39858,7 +39859,7 @@ func (c *Client) sendListPolicyV1NamespacedPodDisruptionBudget(ctx context.Conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -39925,7 +39926,7 @@ func (c *Client) ListPolicyV1PodDisruptionBudgetForAllNamespaces(ctx context.Con func (c *Client) sendListPolicyV1PodDisruptionBudgetForAllNamespaces(ctx context.Context, params ListPolicyV1PodDisruptionBudgetForAllNamespacesParams) (res ListPolicyV1PodDisruptionBudgetForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listPolicyV1PodDisruptionBudgetForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/policy/v1/poddisruptionbudgets"), } @@ -40137,7 +40138,7 @@ func (c *Client) sendListPolicyV1PodDisruptionBudgetForAllNamespaces(ctx context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -40204,7 +40205,7 @@ func (c *Client) ListPolicyV1beta1NamespacedPodDisruptionBudget(ctx context.Cont func (c *Client) sendListPolicyV1beta1NamespacedPodDisruptionBudget(ctx context.Context, params ListPolicyV1beta1NamespacedPodDisruptionBudgetParams) (res ListPolicyV1beta1NamespacedPodDisruptionBudgetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listPolicyV1beta1NamespacedPodDisruptionBudget"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets"), } @@ -40435,7 +40436,7 @@ func (c *Client) sendListPolicyV1beta1NamespacedPodDisruptionBudget(ctx context. u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -40502,7 +40503,7 @@ func (c *Client) ListPolicyV1beta1PodDisruptionBudgetForAllNamespaces(ctx contex func (c *Client) sendListPolicyV1beta1PodDisruptionBudgetForAllNamespaces(ctx context.Context, params ListPolicyV1beta1PodDisruptionBudgetForAllNamespacesParams) (res ListPolicyV1beta1PodDisruptionBudgetForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listPolicyV1beta1PodDisruptionBudgetForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/policy/v1beta1/poddisruptionbudgets"), } @@ -40714,7 +40715,7 @@ func (c *Client) sendListPolicyV1beta1PodDisruptionBudgetForAllNamespaces(ctx co u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -40781,7 +40782,7 @@ func (c *Client) ListPolicyV1beta1PodSecurityPolicy(ctx context.Context, params func (c *Client) sendListPolicyV1beta1PodSecurityPolicy(ctx context.Context, params ListPolicyV1beta1PodSecurityPolicyParams) (res ListPolicyV1beta1PodSecurityPolicyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listPolicyV1beta1PodSecurityPolicy"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/policy/v1beta1/podsecuritypolicies"), } @@ -40993,7 +40994,7 @@ func (c *Client) sendListPolicyV1beta1PodSecurityPolicy(ctx context.Context, par u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -41060,7 +41061,7 @@ func (c *Client) ListRbacAuthorizationV1ClusterRole(ctx context.Context, params func (c *Client) sendListRbacAuthorizationV1ClusterRole(ctx context.Context, params ListRbacAuthorizationV1ClusterRoleParams) (res ListRbacAuthorizationV1ClusterRoleRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listRbacAuthorizationV1ClusterRole"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/rbac.authorization.k8s.io/v1/clusterroles"), } @@ -41272,7 +41273,7 @@ func (c *Client) sendListRbacAuthorizationV1ClusterRole(ctx context.Context, par u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -41339,7 +41340,7 @@ func (c *Client) ListRbacAuthorizationV1ClusterRoleBinding(ctx context.Context, func (c *Client) sendListRbacAuthorizationV1ClusterRoleBinding(ctx context.Context, params ListRbacAuthorizationV1ClusterRoleBindingParams) (res ListRbacAuthorizationV1ClusterRoleBindingRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listRbacAuthorizationV1ClusterRoleBinding"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/rbac.authorization.k8s.io/v1/clusterrolebindings"), } @@ -41551,7 +41552,7 @@ func (c *Client) sendListRbacAuthorizationV1ClusterRoleBinding(ctx context.Conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -41618,7 +41619,7 @@ func (c *Client) ListRbacAuthorizationV1NamespacedRole(ctx context.Context, para func (c *Client) sendListRbacAuthorizationV1NamespacedRole(ctx context.Context, params ListRbacAuthorizationV1NamespacedRoleParams) (res ListRbacAuthorizationV1NamespacedRoleRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listRbacAuthorizationV1NamespacedRole"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles"), } @@ -41849,7 +41850,7 @@ func (c *Client) sendListRbacAuthorizationV1NamespacedRole(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -41916,7 +41917,7 @@ func (c *Client) ListRbacAuthorizationV1NamespacedRoleBinding(ctx context.Contex func (c *Client) sendListRbacAuthorizationV1NamespacedRoleBinding(ctx context.Context, params ListRbacAuthorizationV1NamespacedRoleBindingParams) (res ListRbacAuthorizationV1NamespacedRoleBindingRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listRbacAuthorizationV1NamespacedRoleBinding"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings"), } @@ -42147,7 +42148,7 @@ func (c *Client) sendListRbacAuthorizationV1NamespacedRoleBinding(ctx context.Co u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -42214,7 +42215,7 @@ func (c *Client) ListRbacAuthorizationV1RoleBindingForAllNamespaces(ctx context. func (c *Client) sendListRbacAuthorizationV1RoleBindingForAllNamespaces(ctx context.Context, params ListRbacAuthorizationV1RoleBindingForAllNamespacesParams) (res ListRbacAuthorizationV1RoleBindingForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listRbacAuthorizationV1RoleBindingForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/rbac.authorization.k8s.io/v1/rolebindings"), } @@ -42426,7 +42427,7 @@ func (c *Client) sendListRbacAuthorizationV1RoleBindingForAllNamespaces(ctx cont u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -42493,7 +42494,7 @@ func (c *Client) ListRbacAuthorizationV1RoleForAllNamespaces(ctx context.Context func (c *Client) sendListRbacAuthorizationV1RoleForAllNamespaces(ctx context.Context, params ListRbacAuthorizationV1RoleForAllNamespacesParams) (res ListRbacAuthorizationV1RoleForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listRbacAuthorizationV1RoleForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/rbac.authorization.k8s.io/v1/roles"), } @@ -42705,7 +42706,7 @@ func (c *Client) sendListRbacAuthorizationV1RoleForAllNamespaces(ctx context.Con u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -42772,7 +42773,7 @@ func (c *Client) ListSchedulingV1PriorityClass(ctx context.Context, params ListS func (c *Client) sendListSchedulingV1PriorityClass(ctx context.Context, params ListSchedulingV1PriorityClassParams) (res ListSchedulingV1PriorityClassRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listSchedulingV1PriorityClass"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/scheduling.k8s.io/v1/priorityclasses"), } @@ -42984,7 +42985,7 @@ func (c *Client) sendListSchedulingV1PriorityClass(ctx context.Context, params L u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -43051,7 +43052,7 @@ func (c *Client) ListStorageV1CSIDriver(ctx context.Context, params ListStorageV func (c *Client) sendListStorageV1CSIDriver(ctx context.Context, params ListStorageV1CSIDriverParams) (res ListStorageV1CSIDriverRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listStorageV1CSIDriver"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1/csidrivers"), } @@ -43263,7 +43264,7 @@ func (c *Client) sendListStorageV1CSIDriver(ctx context.Context, params ListStor u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -43330,7 +43331,7 @@ func (c *Client) ListStorageV1CSINode(ctx context.Context, params ListStorageV1C func (c *Client) sendListStorageV1CSINode(ctx context.Context, params ListStorageV1CSINodeParams) (res ListStorageV1CSINodeRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listStorageV1CSINode"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1/csinodes"), } @@ -43542,7 +43543,7 @@ func (c *Client) sendListStorageV1CSINode(ctx context.Context, params ListStorag u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -43609,7 +43610,7 @@ func (c *Client) ListStorageV1StorageClass(ctx context.Context, params ListStora func (c *Client) sendListStorageV1StorageClass(ctx context.Context, params ListStorageV1StorageClassParams) (res ListStorageV1StorageClassRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listStorageV1StorageClass"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1/storageclasses"), } @@ -43821,7 +43822,7 @@ func (c *Client) sendListStorageV1StorageClass(ctx context.Context, params ListS u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -43888,7 +43889,7 @@ func (c *Client) ListStorageV1VolumeAttachment(ctx context.Context, params ListS func (c *Client) sendListStorageV1VolumeAttachment(ctx context.Context, params ListStorageV1VolumeAttachmentParams) (res ListStorageV1VolumeAttachmentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listStorageV1VolumeAttachment"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1/volumeattachments"), } @@ -44100,7 +44101,7 @@ func (c *Client) sendListStorageV1VolumeAttachment(ctx context.Context, params L u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -44167,7 +44168,7 @@ func (c *Client) ListStorageV1alpha1CSIStorageCapacityForAllNamespaces(ctx conte func (c *Client) sendListStorageV1alpha1CSIStorageCapacityForAllNamespaces(ctx context.Context, params ListStorageV1alpha1CSIStorageCapacityForAllNamespacesParams) (res ListStorageV1alpha1CSIStorageCapacityForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listStorageV1alpha1CSIStorageCapacityForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1alpha1/csistoragecapacities"), } @@ -44379,7 +44380,7 @@ func (c *Client) sendListStorageV1alpha1CSIStorageCapacityForAllNamespaces(ctx c u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -44446,7 +44447,7 @@ func (c *Client) ListStorageV1alpha1NamespacedCSIStorageCapacity(ctx context.Con func (c *Client) sendListStorageV1alpha1NamespacedCSIStorageCapacity(ctx context.Context, params ListStorageV1alpha1NamespacedCSIStorageCapacityParams) (res ListStorageV1alpha1NamespacedCSIStorageCapacityRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listStorageV1alpha1NamespacedCSIStorageCapacity"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1alpha1/namespaces/{namespace}/csistoragecapacities"), } @@ -44677,7 +44678,7 @@ func (c *Client) sendListStorageV1alpha1NamespacedCSIStorageCapacity(ctx context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -44744,7 +44745,7 @@ func (c *Client) ListStorageV1beta1CSIStorageCapacityForAllNamespaces(ctx contex func (c *Client) sendListStorageV1beta1CSIStorageCapacityForAllNamespaces(ctx context.Context, params ListStorageV1beta1CSIStorageCapacityForAllNamespacesParams) (res ListStorageV1beta1CSIStorageCapacityForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listStorageV1beta1CSIStorageCapacityForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1beta1/csistoragecapacities"), } @@ -44956,7 +44957,7 @@ func (c *Client) sendListStorageV1beta1CSIStorageCapacityForAllNamespaces(ctx co u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -45023,7 +45024,7 @@ func (c *Client) ListStorageV1beta1NamespacedCSIStorageCapacity(ctx context.Cont func (c *Client) sendListStorageV1beta1NamespacedCSIStorageCapacity(ctx context.Context, params ListStorageV1beta1NamespacedCSIStorageCapacityParams) (res ListStorageV1beta1NamespacedCSIStorageCapacityRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listStorageV1beta1NamespacedCSIStorageCapacity"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1beta1/namespaces/{namespace}/csistoragecapacities"), } @@ -45254,7 +45255,7 @@ func (c *Client) sendListStorageV1beta1NamespacedCSIStorageCapacity(ctx context. u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -45319,7 +45320,7 @@ func (c *Client) LogFileHandler(ctx context.Context, params LogFileHandlerParams func (c *Client) sendLogFileHandler(ctx context.Context, params LogFileHandlerParams) (res *LogFileHandlerUnauthorized, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("logFileHandler"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/logs/{logpath}"), } @@ -45375,7 +45376,7 @@ func (c *Client) sendLogFileHandler(ctx context.Context, params LogFileHandlerPa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -45440,7 +45441,7 @@ func (c *Client) LogFileListHandler(ctx context.Context) error { func (c *Client) sendLogFileListHandler(ctx context.Context) (res *LogFileListHandlerUnauthorized, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("logFileListHandler"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/logs/"), } @@ -45478,7 +45479,7 @@ func (c *Client) sendLogFileListHandler(ctx context.Context) (res *LogFileListHa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -45545,7 +45546,7 @@ func (c *Client) ReadAdmissionregistrationV1MutatingWebhookConfiguration(ctx con func (c *Client) sendReadAdmissionregistrationV1MutatingWebhookConfiguration(ctx context.Context, params ReadAdmissionregistrationV1MutatingWebhookConfigurationParams) (res ReadAdmissionregistrationV1MutatingWebhookConfigurationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readAdmissionregistrationV1MutatingWebhookConfiguration"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}"), } @@ -45622,7 +45623,7 @@ func (c *Client) sendReadAdmissionregistrationV1MutatingWebhookConfiguration(ctx u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -45689,7 +45690,7 @@ func (c *Client) ReadAdmissionregistrationV1ValidatingWebhookConfiguration(ctx c func (c *Client) sendReadAdmissionregistrationV1ValidatingWebhookConfiguration(ctx context.Context, params ReadAdmissionregistrationV1ValidatingWebhookConfigurationParams) (res ReadAdmissionregistrationV1ValidatingWebhookConfigurationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readAdmissionregistrationV1ValidatingWebhookConfiguration"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}"), } @@ -45766,7 +45767,7 @@ func (c *Client) sendReadAdmissionregistrationV1ValidatingWebhookConfiguration(c u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -45833,7 +45834,7 @@ func (c *Client) ReadApiextensionsV1CustomResourceDefinition(ctx context.Context func (c *Client) sendReadApiextensionsV1CustomResourceDefinition(ctx context.Context, params ReadApiextensionsV1CustomResourceDefinitionParams) (res ReadApiextensionsV1CustomResourceDefinitionRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readApiextensionsV1CustomResourceDefinition"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}"), } @@ -45910,7 +45911,7 @@ func (c *Client) sendReadApiextensionsV1CustomResourceDefinition(ctx context.Con u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -45977,7 +45978,7 @@ func (c *Client) ReadApiextensionsV1CustomResourceDefinitionStatus(ctx context.C func (c *Client) sendReadApiextensionsV1CustomResourceDefinitionStatus(ctx context.Context, params ReadApiextensionsV1CustomResourceDefinitionStatusParams) (res ReadApiextensionsV1CustomResourceDefinitionStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readApiextensionsV1CustomResourceDefinitionStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status"), } @@ -46055,7 +46056,7 @@ func (c *Client) sendReadApiextensionsV1CustomResourceDefinitionStatus(ctx conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -46122,7 +46123,7 @@ func (c *Client) ReadApiregistrationV1APIService(ctx context.Context, params Rea func (c *Client) sendReadApiregistrationV1APIService(ctx context.Context, params ReadApiregistrationV1APIServiceParams) (res ReadApiregistrationV1APIServiceRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readApiregistrationV1APIService"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apiregistration.k8s.io/v1/apiservices/{name}"), } @@ -46199,7 +46200,7 @@ func (c *Client) sendReadApiregistrationV1APIService(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -46266,7 +46267,7 @@ func (c *Client) ReadApiregistrationV1APIServiceStatus(ctx context.Context, para func (c *Client) sendReadApiregistrationV1APIServiceStatus(ctx context.Context, params ReadApiregistrationV1APIServiceStatusParams) (res ReadApiregistrationV1APIServiceStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readApiregistrationV1APIServiceStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apiregistration.k8s.io/v1/apiservices/{name}/status"), } @@ -46344,7 +46345,7 @@ func (c *Client) sendReadApiregistrationV1APIServiceStatus(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -46411,7 +46412,7 @@ func (c *Client) ReadAppsV1NamespacedControllerRevision(ctx context.Context, par func (c *Client) sendReadAppsV1NamespacedControllerRevision(ctx context.Context, params ReadAppsV1NamespacedControllerRevisionParams) (res ReadAppsV1NamespacedControllerRevisionRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readAppsV1NamespacedControllerRevision"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}"), } @@ -46507,7 +46508,7 @@ func (c *Client) sendReadAppsV1NamespacedControllerRevision(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -46574,7 +46575,7 @@ func (c *Client) ReadAppsV1NamespacedDaemonSet(ctx context.Context, params ReadA func (c *Client) sendReadAppsV1NamespacedDaemonSet(ctx context.Context, params ReadAppsV1NamespacedDaemonSetParams) (res ReadAppsV1NamespacedDaemonSetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readAppsV1NamespacedDaemonSet"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}"), } @@ -46670,7 +46671,7 @@ func (c *Client) sendReadAppsV1NamespacedDaemonSet(ctx context.Context, params R u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -46737,7 +46738,7 @@ func (c *Client) ReadAppsV1NamespacedDaemonSetStatus(ctx context.Context, params func (c *Client) sendReadAppsV1NamespacedDaemonSetStatus(ctx context.Context, params ReadAppsV1NamespacedDaemonSetStatusParams) (res ReadAppsV1NamespacedDaemonSetStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readAppsV1NamespacedDaemonSetStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status"), } @@ -46834,7 +46835,7 @@ func (c *Client) sendReadAppsV1NamespacedDaemonSetStatus(ctx context.Context, pa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -46901,7 +46902,7 @@ func (c *Client) ReadAppsV1NamespacedDeployment(ctx context.Context, params Read func (c *Client) sendReadAppsV1NamespacedDeployment(ctx context.Context, params ReadAppsV1NamespacedDeploymentParams) (res ReadAppsV1NamespacedDeploymentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readAppsV1NamespacedDeployment"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/namespaces/{namespace}/deployments/{name}"), } @@ -46997,7 +46998,7 @@ func (c *Client) sendReadAppsV1NamespacedDeployment(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -47064,7 +47065,7 @@ func (c *Client) ReadAppsV1NamespacedDeploymentScale(ctx context.Context, params func (c *Client) sendReadAppsV1NamespacedDeploymentScale(ctx context.Context, params ReadAppsV1NamespacedDeploymentScaleParams) (res ReadAppsV1NamespacedDeploymentScaleRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readAppsV1NamespacedDeploymentScale"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale"), } @@ -47161,7 +47162,7 @@ func (c *Client) sendReadAppsV1NamespacedDeploymentScale(ctx context.Context, pa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -47228,7 +47229,7 @@ func (c *Client) ReadAppsV1NamespacedDeploymentStatus(ctx context.Context, param func (c *Client) sendReadAppsV1NamespacedDeploymentStatus(ctx context.Context, params ReadAppsV1NamespacedDeploymentStatusParams) (res ReadAppsV1NamespacedDeploymentStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readAppsV1NamespacedDeploymentStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status"), } @@ -47325,7 +47326,7 @@ func (c *Client) sendReadAppsV1NamespacedDeploymentStatus(ctx context.Context, p u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -47392,7 +47393,7 @@ func (c *Client) ReadAppsV1NamespacedReplicaSet(ctx context.Context, params Read func (c *Client) sendReadAppsV1NamespacedReplicaSet(ctx context.Context, params ReadAppsV1NamespacedReplicaSetParams) (res ReadAppsV1NamespacedReplicaSetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readAppsV1NamespacedReplicaSet"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/namespaces/{namespace}/replicasets/{name}"), } @@ -47488,7 +47489,7 @@ func (c *Client) sendReadAppsV1NamespacedReplicaSet(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -47555,7 +47556,7 @@ func (c *Client) ReadAppsV1NamespacedReplicaSetScale(ctx context.Context, params func (c *Client) sendReadAppsV1NamespacedReplicaSetScale(ctx context.Context, params ReadAppsV1NamespacedReplicaSetScaleParams) (res ReadAppsV1NamespacedReplicaSetScaleRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readAppsV1NamespacedReplicaSetScale"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale"), } @@ -47652,7 +47653,7 @@ func (c *Client) sendReadAppsV1NamespacedReplicaSetScale(ctx context.Context, pa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -47719,7 +47720,7 @@ func (c *Client) ReadAppsV1NamespacedReplicaSetStatus(ctx context.Context, param func (c *Client) sendReadAppsV1NamespacedReplicaSetStatus(ctx context.Context, params ReadAppsV1NamespacedReplicaSetStatusParams) (res ReadAppsV1NamespacedReplicaSetStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readAppsV1NamespacedReplicaSetStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status"), } @@ -47816,7 +47817,7 @@ func (c *Client) sendReadAppsV1NamespacedReplicaSetStatus(ctx context.Context, p u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -47883,7 +47884,7 @@ func (c *Client) ReadAppsV1NamespacedStatefulSet(ctx context.Context, params Rea func (c *Client) sendReadAppsV1NamespacedStatefulSet(ctx context.Context, params ReadAppsV1NamespacedStatefulSetParams) (res ReadAppsV1NamespacedStatefulSetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readAppsV1NamespacedStatefulSet"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}"), } @@ -47979,7 +47980,7 @@ func (c *Client) sendReadAppsV1NamespacedStatefulSet(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -48046,7 +48047,7 @@ func (c *Client) ReadAppsV1NamespacedStatefulSetScale(ctx context.Context, param func (c *Client) sendReadAppsV1NamespacedStatefulSetScale(ctx context.Context, params ReadAppsV1NamespacedStatefulSetScaleParams) (res ReadAppsV1NamespacedStatefulSetScaleRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readAppsV1NamespacedStatefulSetScale"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale"), } @@ -48143,7 +48144,7 @@ func (c *Client) sendReadAppsV1NamespacedStatefulSetScale(ctx context.Context, p u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -48210,7 +48211,7 @@ func (c *Client) ReadAppsV1NamespacedStatefulSetStatus(ctx context.Context, para func (c *Client) sendReadAppsV1NamespacedStatefulSetStatus(ctx context.Context, params ReadAppsV1NamespacedStatefulSetStatusParams) (res ReadAppsV1NamespacedStatefulSetStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readAppsV1NamespacedStatefulSetStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status"), } @@ -48307,7 +48308,7 @@ func (c *Client) sendReadAppsV1NamespacedStatefulSetStatus(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -48374,7 +48375,7 @@ func (c *Client) ReadAutoscalingV1NamespacedHorizontalPodAutoscaler(ctx context. func (c *Client) sendReadAutoscalingV1NamespacedHorizontalPodAutoscaler(ctx context.Context, params ReadAutoscalingV1NamespacedHorizontalPodAutoscalerParams) (res ReadAutoscalingV1NamespacedHorizontalPodAutoscalerRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readAutoscalingV1NamespacedHorizontalPodAutoscaler"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}"), } @@ -48470,7 +48471,7 @@ func (c *Client) sendReadAutoscalingV1NamespacedHorizontalPodAutoscaler(ctx cont u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -48537,7 +48538,7 @@ func (c *Client) ReadAutoscalingV1NamespacedHorizontalPodAutoscalerStatus(ctx co func (c *Client) sendReadAutoscalingV1NamespacedHorizontalPodAutoscalerStatus(ctx context.Context, params ReadAutoscalingV1NamespacedHorizontalPodAutoscalerStatusParams) (res ReadAutoscalingV1NamespacedHorizontalPodAutoscalerStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readAutoscalingV1NamespacedHorizontalPodAutoscalerStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status"), } @@ -48634,7 +48635,7 @@ func (c *Client) sendReadAutoscalingV1NamespacedHorizontalPodAutoscalerStatus(ct u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -48701,7 +48702,7 @@ func (c *Client) ReadAutoscalingV2beta1NamespacedHorizontalPodAutoscaler(ctx con func (c *Client) sendReadAutoscalingV2beta1NamespacedHorizontalPodAutoscaler(ctx context.Context, params ReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerParams) (res ReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readAutoscalingV2beta1NamespacedHorizontalPodAutoscaler"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}"), } @@ -48797,7 +48798,7 @@ func (c *Client) sendReadAutoscalingV2beta1NamespacedHorizontalPodAutoscaler(ctx u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -48864,7 +48865,7 @@ func (c *Client) ReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStatus(c func (c *Client) sendReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStatus(ctx context.Context, params ReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStatusParams) (res ReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status"), } @@ -48961,7 +48962,7 @@ func (c *Client) sendReadAutoscalingV2beta1NamespacedHorizontalPodAutoscalerStat u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -49028,7 +49029,7 @@ func (c *Client) ReadAutoscalingV2beta2NamespacedHorizontalPodAutoscaler(ctx con func (c *Client) sendReadAutoscalingV2beta2NamespacedHorizontalPodAutoscaler(ctx context.Context, params ReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerParams) (res ReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readAutoscalingV2beta2NamespacedHorizontalPodAutoscaler"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}"), } @@ -49124,7 +49125,7 @@ func (c *Client) sendReadAutoscalingV2beta2NamespacedHorizontalPodAutoscaler(ctx u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -49191,7 +49192,7 @@ func (c *Client) ReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStatus(c func (c *Client) sendReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStatus(ctx context.Context, params ReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStatusParams) (res ReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status"), } @@ -49288,7 +49289,7 @@ func (c *Client) sendReadAutoscalingV2beta2NamespacedHorizontalPodAutoscalerStat u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -49355,7 +49356,7 @@ func (c *Client) ReadBatchV1NamespacedCronJob(ctx context.Context, params ReadBa func (c *Client) sendReadBatchV1NamespacedCronJob(ctx context.Context, params ReadBatchV1NamespacedCronJobParams) (res ReadBatchV1NamespacedCronJobRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readBatchV1NamespacedCronJob"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}"), } @@ -49451,7 +49452,7 @@ func (c *Client) sendReadBatchV1NamespacedCronJob(ctx context.Context, params Re u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -49518,7 +49519,7 @@ func (c *Client) ReadBatchV1NamespacedCronJobStatus(ctx context.Context, params func (c *Client) sendReadBatchV1NamespacedCronJobStatus(ctx context.Context, params ReadBatchV1NamespacedCronJobStatusParams) (res ReadBatchV1NamespacedCronJobStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readBatchV1NamespacedCronJobStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status"), } @@ -49615,7 +49616,7 @@ func (c *Client) sendReadBatchV1NamespacedCronJobStatus(ctx context.Context, par u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -49682,7 +49683,7 @@ func (c *Client) ReadBatchV1NamespacedJob(ctx context.Context, params ReadBatchV func (c *Client) sendReadBatchV1NamespacedJob(ctx context.Context, params ReadBatchV1NamespacedJobParams) (res ReadBatchV1NamespacedJobRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readBatchV1NamespacedJob"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/batch/v1/namespaces/{namespace}/jobs/{name}"), } @@ -49778,7 +49779,7 @@ func (c *Client) sendReadBatchV1NamespacedJob(ctx context.Context, params ReadBa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -49845,7 +49846,7 @@ func (c *Client) ReadBatchV1NamespacedJobStatus(ctx context.Context, params Read func (c *Client) sendReadBatchV1NamespacedJobStatus(ctx context.Context, params ReadBatchV1NamespacedJobStatusParams) (res ReadBatchV1NamespacedJobStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readBatchV1NamespacedJobStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status"), } @@ -49942,7 +49943,7 @@ func (c *Client) sendReadBatchV1NamespacedJobStatus(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -50009,7 +50010,7 @@ func (c *Client) ReadBatchV1beta1NamespacedCronJob(ctx context.Context, params R func (c *Client) sendReadBatchV1beta1NamespacedCronJob(ctx context.Context, params ReadBatchV1beta1NamespacedCronJobParams) (res ReadBatchV1beta1NamespacedCronJobRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readBatchV1beta1NamespacedCronJob"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}"), } @@ -50105,7 +50106,7 @@ func (c *Client) sendReadBatchV1beta1NamespacedCronJob(ctx context.Context, para u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -50172,7 +50173,7 @@ func (c *Client) ReadBatchV1beta1NamespacedCronJobStatus(ctx context.Context, pa func (c *Client) sendReadBatchV1beta1NamespacedCronJobStatus(ctx context.Context, params ReadBatchV1beta1NamespacedCronJobStatusParams) (res ReadBatchV1beta1NamespacedCronJobStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readBatchV1beta1NamespacedCronJobStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status"), } @@ -50269,7 +50270,7 @@ func (c *Client) sendReadBatchV1beta1NamespacedCronJobStatus(ctx context.Context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -50336,7 +50337,7 @@ func (c *Client) ReadCertificatesV1CertificateSigningRequest(ctx context.Context func (c *Client) sendReadCertificatesV1CertificateSigningRequest(ctx context.Context, params ReadCertificatesV1CertificateSigningRequestParams) (res ReadCertificatesV1CertificateSigningRequestRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCertificatesV1CertificateSigningRequest"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}"), } @@ -50413,7 +50414,7 @@ func (c *Client) sendReadCertificatesV1CertificateSigningRequest(ctx context.Con u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -50480,7 +50481,7 @@ func (c *Client) ReadCertificatesV1CertificateSigningRequestApproval(ctx context func (c *Client) sendReadCertificatesV1CertificateSigningRequestApproval(ctx context.Context, params ReadCertificatesV1CertificateSigningRequestApprovalParams) (res ReadCertificatesV1CertificateSigningRequestApprovalRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCertificatesV1CertificateSigningRequestApproval"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval"), } @@ -50558,7 +50559,7 @@ func (c *Client) sendReadCertificatesV1CertificateSigningRequestApproval(ctx con u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -50625,7 +50626,7 @@ func (c *Client) ReadCertificatesV1CertificateSigningRequestStatus(ctx context.C func (c *Client) sendReadCertificatesV1CertificateSigningRequestStatus(ctx context.Context, params ReadCertificatesV1CertificateSigningRequestStatusParams) (res ReadCertificatesV1CertificateSigningRequestStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCertificatesV1CertificateSigningRequestStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status"), } @@ -50703,7 +50704,7 @@ func (c *Client) sendReadCertificatesV1CertificateSigningRequestStatus(ctx conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -50770,7 +50771,7 @@ func (c *Client) ReadCoordinationV1NamespacedLease(ctx context.Context, params R func (c *Client) sendReadCoordinationV1NamespacedLease(ctx context.Context, params ReadCoordinationV1NamespacedLeaseParams) (res ReadCoordinationV1NamespacedLeaseRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCoordinationV1NamespacedLease"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}"), } @@ -50866,7 +50867,7 @@ func (c *Client) sendReadCoordinationV1NamespacedLease(ctx context.Context, para u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -50933,7 +50934,7 @@ func (c *Client) ReadCoreV1ComponentStatus(ctx context.Context, params ReadCoreV func (c *Client) sendReadCoreV1ComponentStatus(ctx context.Context, params ReadCoreV1ComponentStatusParams) (res ReadCoreV1ComponentStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCoreV1ComponentStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/componentstatuses/{name}"), } @@ -51010,7 +51011,7 @@ func (c *Client) sendReadCoreV1ComponentStatus(ctx context.Context, params ReadC u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -51077,7 +51078,7 @@ func (c *Client) ReadCoreV1Namespace(ctx context.Context, params ReadCoreV1Names func (c *Client) sendReadCoreV1Namespace(ctx context.Context, params ReadCoreV1NamespaceParams) (res ReadCoreV1NamespaceRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCoreV1Namespace"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{name}"), } @@ -51154,7 +51155,7 @@ func (c *Client) sendReadCoreV1Namespace(ctx context.Context, params ReadCoreV1N u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -51221,7 +51222,7 @@ func (c *Client) ReadCoreV1NamespaceStatus(ctx context.Context, params ReadCoreV func (c *Client) sendReadCoreV1NamespaceStatus(ctx context.Context, params ReadCoreV1NamespaceStatusParams) (res ReadCoreV1NamespaceStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCoreV1NamespaceStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{name}/status"), } @@ -51299,7 +51300,7 @@ func (c *Client) sendReadCoreV1NamespaceStatus(ctx context.Context, params ReadC u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -51366,7 +51367,7 @@ func (c *Client) ReadCoreV1NamespacedConfigMap(ctx context.Context, params ReadC func (c *Client) sendReadCoreV1NamespacedConfigMap(ctx context.Context, params ReadCoreV1NamespacedConfigMapParams) (res ReadCoreV1NamespacedConfigMapRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCoreV1NamespacedConfigMap"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/configmaps/{name}"), } @@ -51462,7 +51463,7 @@ func (c *Client) sendReadCoreV1NamespacedConfigMap(ctx context.Context, params R u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -51529,7 +51530,7 @@ func (c *Client) ReadCoreV1NamespacedEndpoints(ctx context.Context, params ReadC func (c *Client) sendReadCoreV1NamespacedEndpoints(ctx context.Context, params ReadCoreV1NamespacedEndpointsParams) (res ReadCoreV1NamespacedEndpointsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCoreV1NamespacedEndpoints"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/endpoints/{name}"), } @@ -51625,7 +51626,7 @@ func (c *Client) sendReadCoreV1NamespacedEndpoints(ctx context.Context, params R u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -51692,7 +51693,7 @@ func (c *Client) ReadCoreV1NamespacedEvent(ctx context.Context, params ReadCoreV func (c *Client) sendReadCoreV1NamespacedEvent(ctx context.Context, params ReadCoreV1NamespacedEventParams) (res ReadCoreV1NamespacedEventRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCoreV1NamespacedEvent"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/events/{name}"), } @@ -51788,7 +51789,7 @@ func (c *Client) sendReadCoreV1NamespacedEvent(ctx context.Context, params ReadC u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -51855,7 +51856,7 @@ func (c *Client) ReadCoreV1NamespacedLimitRange(ctx context.Context, params Read func (c *Client) sendReadCoreV1NamespacedLimitRange(ctx context.Context, params ReadCoreV1NamespacedLimitRangeParams) (res ReadCoreV1NamespacedLimitRangeRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCoreV1NamespacedLimitRange"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/limitranges/{name}"), } @@ -51951,7 +51952,7 @@ func (c *Client) sendReadCoreV1NamespacedLimitRange(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -52018,7 +52019,7 @@ func (c *Client) ReadCoreV1NamespacedPersistentVolumeClaim(ctx context.Context, func (c *Client) sendReadCoreV1NamespacedPersistentVolumeClaim(ctx context.Context, params ReadCoreV1NamespacedPersistentVolumeClaimParams) (res ReadCoreV1NamespacedPersistentVolumeClaimRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCoreV1NamespacedPersistentVolumeClaim"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}"), } @@ -52114,7 +52115,7 @@ func (c *Client) sendReadCoreV1NamespacedPersistentVolumeClaim(ctx context.Conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -52181,7 +52182,7 @@ func (c *Client) ReadCoreV1NamespacedPersistentVolumeClaimStatus(ctx context.Con func (c *Client) sendReadCoreV1NamespacedPersistentVolumeClaimStatus(ctx context.Context, params ReadCoreV1NamespacedPersistentVolumeClaimStatusParams) (res ReadCoreV1NamespacedPersistentVolumeClaimStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCoreV1NamespacedPersistentVolumeClaimStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status"), } @@ -52278,7 +52279,7 @@ func (c *Client) sendReadCoreV1NamespacedPersistentVolumeClaimStatus(ctx context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -52345,7 +52346,7 @@ func (c *Client) ReadCoreV1NamespacedPod(ctx context.Context, params ReadCoreV1N func (c *Client) sendReadCoreV1NamespacedPod(ctx context.Context, params ReadCoreV1NamespacedPodParams) (res ReadCoreV1NamespacedPodRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCoreV1NamespacedPod"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/pods/{name}"), } @@ -52441,7 +52442,7 @@ func (c *Client) sendReadCoreV1NamespacedPod(ctx context.Context, params ReadCor u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -52508,7 +52509,7 @@ func (c *Client) ReadCoreV1NamespacedPodEphemeralcontainers(ctx context.Context, func (c *Client) sendReadCoreV1NamespacedPodEphemeralcontainers(ctx context.Context, params ReadCoreV1NamespacedPodEphemeralcontainersParams) (res ReadCoreV1NamespacedPodEphemeralcontainersRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCoreV1NamespacedPodEphemeralcontainers"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/pods/{name}/ephemeralcontainers"), } @@ -52605,7 +52606,7 @@ func (c *Client) sendReadCoreV1NamespacedPodEphemeralcontainers(ctx context.Cont u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -52672,7 +52673,7 @@ func (c *Client) ReadCoreV1NamespacedPodLog(ctx context.Context, params ReadCore func (c *Client) sendReadCoreV1NamespacedPodLog(ctx context.Context, params ReadCoreV1NamespacedPodLogParams) (res ReadCoreV1NamespacedPodLogRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCoreV1NamespacedPodLog"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/pods/{name}/log"), } @@ -52905,7 +52906,7 @@ func (c *Client) sendReadCoreV1NamespacedPodLog(ctx context.Context, params Read u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -52972,7 +52973,7 @@ func (c *Client) ReadCoreV1NamespacedPodStatus(ctx context.Context, params ReadC func (c *Client) sendReadCoreV1NamespacedPodStatus(ctx context.Context, params ReadCoreV1NamespacedPodStatusParams) (res ReadCoreV1NamespacedPodStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCoreV1NamespacedPodStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/pods/{name}/status"), } @@ -53069,7 +53070,7 @@ func (c *Client) sendReadCoreV1NamespacedPodStatus(ctx context.Context, params R u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -53136,7 +53137,7 @@ func (c *Client) ReadCoreV1NamespacedPodTemplate(ctx context.Context, params Rea func (c *Client) sendReadCoreV1NamespacedPodTemplate(ctx context.Context, params ReadCoreV1NamespacedPodTemplateParams) (res ReadCoreV1NamespacedPodTemplateRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCoreV1NamespacedPodTemplate"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/podtemplates/{name}"), } @@ -53232,7 +53233,7 @@ func (c *Client) sendReadCoreV1NamespacedPodTemplate(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -53299,7 +53300,7 @@ func (c *Client) ReadCoreV1NamespacedReplicationController(ctx context.Context, func (c *Client) sendReadCoreV1NamespacedReplicationController(ctx context.Context, params ReadCoreV1NamespacedReplicationControllerParams) (res ReadCoreV1NamespacedReplicationControllerRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCoreV1NamespacedReplicationController"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/replicationcontrollers/{name}"), } @@ -53395,7 +53396,7 @@ func (c *Client) sendReadCoreV1NamespacedReplicationController(ctx context.Conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -53462,7 +53463,7 @@ func (c *Client) ReadCoreV1NamespacedReplicationControllerScale(ctx context.Cont func (c *Client) sendReadCoreV1NamespacedReplicationControllerScale(ctx context.Context, params ReadCoreV1NamespacedReplicationControllerScaleParams) (res ReadCoreV1NamespacedReplicationControllerScaleRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCoreV1NamespacedReplicationControllerScale"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale"), } @@ -53559,7 +53560,7 @@ func (c *Client) sendReadCoreV1NamespacedReplicationControllerScale(ctx context. u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -53626,7 +53627,7 @@ func (c *Client) ReadCoreV1NamespacedReplicationControllerStatus(ctx context.Con func (c *Client) sendReadCoreV1NamespacedReplicationControllerStatus(ctx context.Context, params ReadCoreV1NamespacedReplicationControllerStatusParams) (res ReadCoreV1NamespacedReplicationControllerStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCoreV1NamespacedReplicationControllerStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status"), } @@ -53723,7 +53724,7 @@ func (c *Client) sendReadCoreV1NamespacedReplicationControllerStatus(ctx context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -53790,7 +53791,7 @@ func (c *Client) ReadCoreV1NamespacedResourceQuota(ctx context.Context, params R func (c *Client) sendReadCoreV1NamespacedResourceQuota(ctx context.Context, params ReadCoreV1NamespacedResourceQuotaParams) (res ReadCoreV1NamespacedResourceQuotaRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCoreV1NamespacedResourceQuota"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/resourcequotas/{name}"), } @@ -53886,7 +53887,7 @@ func (c *Client) sendReadCoreV1NamespacedResourceQuota(ctx context.Context, para u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -53953,7 +53954,7 @@ func (c *Client) ReadCoreV1NamespacedResourceQuotaStatus(ctx context.Context, pa func (c *Client) sendReadCoreV1NamespacedResourceQuotaStatus(ctx context.Context, params ReadCoreV1NamespacedResourceQuotaStatusParams) (res ReadCoreV1NamespacedResourceQuotaStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCoreV1NamespacedResourceQuotaStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/resourcequotas/{name}/status"), } @@ -54050,7 +54051,7 @@ func (c *Client) sendReadCoreV1NamespacedResourceQuotaStatus(ctx context.Context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -54117,7 +54118,7 @@ func (c *Client) ReadCoreV1NamespacedSecret(ctx context.Context, params ReadCore func (c *Client) sendReadCoreV1NamespacedSecret(ctx context.Context, params ReadCoreV1NamespacedSecretParams) (res ReadCoreV1NamespacedSecretRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCoreV1NamespacedSecret"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/secrets/{name}"), } @@ -54213,7 +54214,7 @@ func (c *Client) sendReadCoreV1NamespacedSecret(ctx context.Context, params Read u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -54280,7 +54281,7 @@ func (c *Client) ReadCoreV1NamespacedService(ctx context.Context, params ReadCor func (c *Client) sendReadCoreV1NamespacedService(ctx context.Context, params ReadCoreV1NamespacedServiceParams) (res ReadCoreV1NamespacedServiceRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCoreV1NamespacedService"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/services/{name}"), } @@ -54376,7 +54377,7 @@ func (c *Client) sendReadCoreV1NamespacedService(ctx context.Context, params Rea u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -54443,7 +54444,7 @@ func (c *Client) ReadCoreV1NamespacedServiceAccount(ctx context.Context, params func (c *Client) sendReadCoreV1NamespacedServiceAccount(ctx context.Context, params ReadCoreV1NamespacedServiceAccountParams) (res ReadCoreV1NamespacedServiceAccountRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCoreV1NamespacedServiceAccount"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/serviceaccounts/{name}"), } @@ -54539,7 +54540,7 @@ func (c *Client) sendReadCoreV1NamespacedServiceAccount(ctx context.Context, par u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -54606,7 +54607,7 @@ func (c *Client) ReadCoreV1NamespacedServiceStatus(ctx context.Context, params R func (c *Client) sendReadCoreV1NamespacedServiceStatus(ctx context.Context, params ReadCoreV1NamespacedServiceStatusParams) (res ReadCoreV1NamespacedServiceStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCoreV1NamespacedServiceStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/namespaces/{namespace}/services/{name}/status"), } @@ -54703,7 +54704,7 @@ func (c *Client) sendReadCoreV1NamespacedServiceStatus(ctx context.Context, para u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -54770,7 +54771,7 @@ func (c *Client) ReadCoreV1Node(ctx context.Context, params ReadCoreV1NodeParams func (c *Client) sendReadCoreV1Node(ctx context.Context, params ReadCoreV1NodeParams) (res ReadCoreV1NodeRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCoreV1Node"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/nodes/{name}"), } @@ -54847,7 +54848,7 @@ func (c *Client) sendReadCoreV1Node(ctx context.Context, params ReadCoreV1NodePa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -54914,7 +54915,7 @@ func (c *Client) ReadCoreV1NodeStatus(ctx context.Context, params ReadCoreV1Node func (c *Client) sendReadCoreV1NodeStatus(ctx context.Context, params ReadCoreV1NodeStatusParams) (res ReadCoreV1NodeStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCoreV1NodeStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/nodes/{name}/status"), } @@ -54992,7 +54993,7 @@ func (c *Client) sendReadCoreV1NodeStatus(ctx context.Context, params ReadCoreV1 u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -55059,7 +55060,7 @@ func (c *Client) ReadCoreV1PersistentVolume(ctx context.Context, params ReadCore func (c *Client) sendReadCoreV1PersistentVolume(ctx context.Context, params ReadCoreV1PersistentVolumeParams) (res ReadCoreV1PersistentVolumeRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCoreV1PersistentVolume"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/persistentvolumes/{name}"), } @@ -55136,7 +55137,7 @@ func (c *Client) sendReadCoreV1PersistentVolume(ctx context.Context, params Read u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -55203,7 +55204,7 @@ func (c *Client) ReadCoreV1PersistentVolumeStatus(ctx context.Context, params Re func (c *Client) sendReadCoreV1PersistentVolumeStatus(ctx context.Context, params ReadCoreV1PersistentVolumeStatusParams) (res ReadCoreV1PersistentVolumeStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readCoreV1PersistentVolumeStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/persistentvolumes/{name}/status"), } @@ -55281,7 +55282,7 @@ func (c *Client) sendReadCoreV1PersistentVolumeStatus(ctx context.Context, param u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -55348,7 +55349,7 @@ func (c *Client) ReadDiscoveryV1NamespacedEndpointSlice(ctx context.Context, par func (c *Client) sendReadDiscoveryV1NamespacedEndpointSlice(ctx context.Context, params ReadDiscoveryV1NamespacedEndpointSliceParams) (res ReadDiscoveryV1NamespacedEndpointSliceRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readDiscoveryV1NamespacedEndpointSlice"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}"), } @@ -55444,7 +55445,7 @@ func (c *Client) sendReadDiscoveryV1NamespacedEndpointSlice(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -55511,7 +55512,7 @@ func (c *Client) ReadDiscoveryV1beta1NamespacedEndpointSlice(ctx context.Context func (c *Client) sendReadDiscoveryV1beta1NamespacedEndpointSlice(ctx context.Context, params ReadDiscoveryV1beta1NamespacedEndpointSliceParams) (res ReadDiscoveryV1beta1NamespacedEndpointSliceRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readDiscoveryV1beta1NamespacedEndpointSlice"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/discovery.k8s.io/v1beta1/namespaces/{namespace}/endpointslices/{name}"), } @@ -55607,7 +55608,7 @@ func (c *Client) sendReadDiscoveryV1beta1NamespacedEndpointSlice(ctx context.Con u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -55674,7 +55675,7 @@ func (c *Client) ReadEventsV1NamespacedEvent(ctx context.Context, params ReadEve func (c *Client) sendReadEventsV1NamespacedEvent(ctx context.Context, params ReadEventsV1NamespacedEventParams) (res ReadEventsV1NamespacedEventRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readEventsV1NamespacedEvent"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}"), } @@ -55770,7 +55771,7 @@ func (c *Client) sendReadEventsV1NamespacedEvent(ctx context.Context, params Rea u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -55837,7 +55838,7 @@ func (c *Client) ReadEventsV1beta1NamespacedEvent(ctx context.Context, params Re func (c *Client) sendReadEventsV1beta1NamespacedEvent(ctx context.Context, params ReadEventsV1beta1NamespacedEventParams) (res ReadEventsV1beta1NamespacedEventRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readEventsV1beta1NamespacedEvent"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}"), } @@ -55933,7 +55934,7 @@ func (c *Client) sendReadEventsV1beta1NamespacedEvent(ctx context.Context, param u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -56000,7 +56001,7 @@ func (c *Client) ReadFlowcontrolApiserverV1beta1FlowSchema(ctx context.Context, func (c *Client) sendReadFlowcontrolApiserverV1beta1FlowSchema(ctx context.Context, params ReadFlowcontrolApiserverV1beta1FlowSchemaParams) (res ReadFlowcontrolApiserverV1beta1FlowSchemaRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readFlowcontrolApiserverV1beta1FlowSchema"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}"), } @@ -56077,7 +56078,7 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta1FlowSchema(ctx context.Conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -56144,7 +56145,7 @@ func (c *Client) ReadFlowcontrolApiserverV1beta1FlowSchemaStatus(ctx context.Con func (c *Client) sendReadFlowcontrolApiserverV1beta1FlowSchemaStatus(ctx context.Context, params ReadFlowcontrolApiserverV1beta1FlowSchemaStatusParams) (res ReadFlowcontrolApiserverV1beta1FlowSchemaStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readFlowcontrolApiserverV1beta1FlowSchemaStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/flowcontrol.apiserver.k8s.io/v1beta1/flowschemas/{name}/status"), } @@ -56222,7 +56223,7 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta1FlowSchemaStatus(ctx context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -56289,7 +56290,7 @@ func (c *Client) ReadFlowcontrolApiserverV1beta1PriorityLevelConfiguration(ctx c func (c *Client) sendReadFlowcontrolApiserverV1beta1PriorityLevelConfiguration(ctx context.Context, params ReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationParams) (res ReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readFlowcontrolApiserverV1beta1PriorityLevelConfiguration"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}"), } @@ -56366,7 +56367,7 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta1PriorityLevelConfiguration(c u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -56433,7 +56434,7 @@ func (c *Client) ReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationStatus func (c *Client) sendReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationStatus(ctx context.Context, params ReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationStatusParams) (res ReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readFlowcontrolApiserverV1beta1PriorityLevelConfigurationStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/flowcontrol.apiserver.k8s.io/v1beta1/prioritylevelconfigurations/{name}/status"), } @@ -56511,7 +56512,7 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta1PriorityLevelConfigurationSt u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -56578,7 +56579,7 @@ func (c *Client) ReadFlowcontrolApiserverV1beta2FlowSchema(ctx context.Context, func (c *Client) sendReadFlowcontrolApiserverV1beta2FlowSchema(ctx context.Context, params ReadFlowcontrolApiserverV1beta2FlowSchemaParams) (res ReadFlowcontrolApiserverV1beta2FlowSchemaRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readFlowcontrolApiserverV1beta2FlowSchema"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}"), } @@ -56655,7 +56656,7 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta2FlowSchema(ctx context.Conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -56722,7 +56723,7 @@ func (c *Client) ReadFlowcontrolApiserverV1beta2FlowSchemaStatus(ctx context.Con func (c *Client) sendReadFlowcontrolApiserverV1beta2FlowSchemaStatus(ctx context.Context, params ReadFlowcontrolApiserverV1beta2FlowSchemaStatusParams) (res ReadFlowcontrolApiserverV1beta2FlowSchemaStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readFlowcontrolApiserverV1beta2FlowSchemaStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/flowcontrol.apiserver.k8s.io/v1beta2/flowschemas/{name}/status"), } @@ -56800,7 +56801,7 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta2FlowSchemaStatus(ctx context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -56867,7 +56868,7 @@ func (c *Client) ReadFlowcontrolApiserverV1beta2PriorityLevelConfiguration(ctx c func (c *Client) sendReadFlowcontrolApiserverV1beta2PriorityLevelConfiguration(ctx context.Context, params ReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationParams) (res ReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readFlowcontrolApiserverV1beta2PriorityLevelConfiguration"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}"), } @@ -56944,7 +56945,7 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta2PriorityLevelConfiguration(c u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -57011,7 +57012,7 @@ func (c *Client) ReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationStatus func (c *Client) sendReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationStatus(ctx context.Context, params ReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationStatusParams) (res ReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readFlowcontrolApiserverV1beta2PriorityLevelConfigurationStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/flowcontrol.apiserver.k8s.io/v1beta2/prioritylevelconfigurations/{name}/status"), } @@ -57089,7 +57090,7 @@ func (c *Client) sendReadFlowcontrolApiserverV1beta2PriorityLevelConfigurationSt u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -57156,7 +57157,7 @@ func (c *Client) ReadInternalApiserverV1alpha1StorageVersion(ctx context.Context func (c *Client) sendReadInternalApiserverV1alpha1StorageVersion(ctx context.Context, params ReadInternalApiserverV1alpha1StorageVersionParams) (res ReadInternalApiserverV1alpha1StorageVersionRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readInternalApiserverV1alpha1StorageVersion"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}"), } @@ -57233,7 +57234,7 @@ func (c *Client) sendReadInternalApiserverV1alpha1StorageVersion(ctx context.Con u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -57300,7 +57301,7 @@ func (c *Client) ReadInternalApiserverV1alpha1StorageVersionStatus(ctx context.C func (c *Client) sendReadInternalApiserverV1alpha1StorageVersionStatus(ctx context.Context, params ReadInternalApiserverV1alpha1StorageVersionStatusParams) (res ReadInternalApiserverV1alpha1StorageVersionStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readInternalApiserverV1alpha1StorageVersionStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status"), } @@ -57378,7 +57379,7 @@ func (c *Client) sendReadInternalApiserverV1alpha1StorageVersionStatus(ctx conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -57445,7 +57446,7 @@ func (c *Client) ReadNetworkingV1IngressClass(ctx context.Context, params ReadNe func (c *Client) sendReadNetworkingV1IngressClass(ctx context.Context, params ReadNetworkingV1IngressClassParams) (res ReadNetworkingV1IngressClassRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readNetworkingV1IngressClass"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/networking.k8s.io/v1/ingressclasses/{name}"), } @@ -57522,7 +57523,7 @@ func (c *Client) sendReadNetworkingV1IngressClass(ctx context.Context, params Re u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -57589,7 +57590,7 @@ func (c *Client) ReadNetworkingV1NamespacedIngress(ctx context.Context, params R func (c *Client) sendReadNetworkingV1NamespacedIngress(ctx context.Context, params ReadNetworkingV1NamespacedIngressParams) (res ReadNetworkingV1NamespacedIngressRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readNetworkingV1NamespacedIngress"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}"), } @@ -57685,7 +57686,7 @@ func (c *Client) sendReadNetworkingV1NamespacedIngress(ctx context.Context, para u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -57752,7 +57753,7 @@ func (c *Client) ReadNetworkingV1NamespacedIngressStatus(ctx context.Context, pa func (c *Client) sendReadNetworkingV1NamespacedIngressStatus(ctx context.Context, params ReadNetworkingV1NamespacedIngressStatusParams) (res ReadNetworkingV1NamespacedIngressStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readNetworkingV1NamespacedIngressStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status"), } @@ -57849,7 +57850,7 @@ func (c *Client) sendReadNetworkingV1NamespacedIngressStatus(ctx context.Context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -57916,7 +57917,7 @@ func (c *Client) ReadNetworkingV1NamespacedNetworkPolicy(ctx context.Context, pa func (c *Client) sendReadNetworkingV1NamespacedNetworkPolicy(ctx context.Context, params ReadNetworkingV1NamespacedNetworkPolicyParams) (res ReadNetworkingV1NamespacedNetworkPolicyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readNetworkingV1NamespacedNetworkPolicy"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}"), } @@ -58012,7 +58013,7 @@ func (c *Client) sendReadNetworkingV1NamespacedNetworkPolicy(ctx context.Context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -58079,7 +58080,7 @@ func (c *Client) ReadNodeV1RuntimeClass(ctx context.Context, params ReadNodeV1Ru func (c *Client) sendReadNodeV1RuntimeClass(ctx context.Context, params ReadNodeV1RuntimeClassParams) (res ReadNodeV1RuntimeClassRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readNodeV1RuntimeClass"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/node.k8s.io/v1/runtimeclasses/{name}"), } @@ -58156,7 +58157,7 @@ func (c *Client) sendReadNodeV1RuntimeClass(ctx context.Context, params ReadNode u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -58223,7 +58224,7 @@ func (c *Client) ReadNodeV1alpha1RuntimeClass(ctx context.Context, params ReadNo func (c *Client) sendReadNodeV1alpha1RuntimeClass(ctx context.Context, params ReadNodeV1alpha1RuntimeClassParams) (res ReadNodeV1alpha1RuntimeClassRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readNodeV1alpha1RuntimeClass"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/node.k8s.io/v1alpha1/runtimeclasses/{name}"), } @@ -58300,7 +58301,7 @@ func (c *Client) sendReadNodeV1alpha1RuntimeClass(ctx context.Context, params Re u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -58367,7 +58368,7 @@ func (c *Client) ReadNodeV1beta1RuntimeClass(ctx context.Context, params ReadNod func (c *Client) sendReadNodeV1beta1RuntimeClass(ctx context.Context, params ReadNodeV1beta1RuntimeClassParams) (res ReadNodeV1beta1RuntimeClassRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readNodeV1beta1RuntimeClass"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/node.k8s.io/v1beta1/runtimeclasses/{name}"), } @@ -58444,7 +58445,7 @@ func (c *Client) sendReadNodeV1beta1RuntimeClass(ctx context.Context, params Rea u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -58511,7 +58512,7 @@ func (c *Client) ReadPolicyV1NamespacedPodDisruptionBudget(ctx context.Context, func (c *Client) sendReadPolicyV1NamespacedPodDisruptionBudget(ctx context.Context, params ReadPolicyV1NamespacedPodDisruptionBudgetParams) (res ReadPolicyV1NamespacedPodDisruptionBudgetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readPolicyV1NamespacedPodDisruptionBudget"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}"), } @@ -58607,7 +58608,7 @@ func (c *Client) sendReadPolicyV1NamespacedPodDisruptionBudget(ctx context.Conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -58674,7 +58675,7 @@ func (c *Client) ReadPolicyV1NamespacedPodDisruptionBudgetStatus(ctx context.Con func (c *Client) sendReadPolicyV1NamespacedPodDisruptionBudgetStatus(ctx context.Context, params ReadPolicyV1NamespacedPodDisruptionBudgetStatusParams) (res ReadPolicyV1NamespacedPodDisruptionBudgetStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readPolicyV1NamespacedPodDisruptionBudgetStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status"), } @@ -58771,7 +58772,7 @@ func (c *Client) sendReadPolicyV1NamespacedPodDisruptionBudgetStatus(ctx context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -58838,7 +58839,7 @@ func (c *Client) ReadPolicyV1beta1NamespacedPodDisruptionBudget(ctx context.Cont func (c *Client) sendReadPolicyV1beta1NamespacedPodDisruptionBudget(ctx context.Context, params ReadPolicyV1beta1NamespacedPodDisruptionBudgetParams) (res ReadPolicyV1beta1NamespacedPodDisruptionBudgetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readPolicyV1beta1NamespacedPodDisruptionBudget"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}"), } @@ -58934,7 +58935,7 @@ func (c *Client) sendReadPolicyV1beta1NamespacedPodDisruptionBudget(ctx context. u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -59001,7 +59002,7 @@ func (c *Client) ReadPolicyV1beta1NamespacedPodDisruptionBudgetStatus(ctx contex func (c *Client) sendReadPolicyV1beta1NamespacedPodDisruptionBudgetStatus(ctx context.Context, params ReadPolicyV1beta1NamespacedPodDisruptionBudgetStatusParams) (res ReadPolicyV1beta1NamespacedPodDisruptionBudgetStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readPolicyV1beta1NamespacedPodDisruptionBudgetStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status"), } @@ -59098,7 +59099,7 @@ func (c *Client) sendReadPolicyV1beta1NamespacedPodDisruptionBudgetStatus(ctx co u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -59165,7 +59166,7 @@ func (c *Client) ReadPolicyV1beta1PodSecurityPolicy(ctx context.Context, params func (c *Client) sendReadPolicyV1beta1PodSecurityPolicy(ctx context.Context, params ReadPolicyV1beta1PodSecurityPolicyParams) (res ReadPolicyV1beta1PodSecurityPolicyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readPolicyV1beta1PodSecurityPolicy"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/policy/v1beta1/podsecuritypolicies/{name}"), } @@ -59242,7 +59243,7 @@ func (c *Client) sendReadPolicyV1beta1PodSecurityPolicy(ctx context.Context, par u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -59309,7 +59310,7 @@ func (c *Client) ReadRbacAuthorizationV1ClusterRole(ctx context.Context, params func (c *Client) sendReadRbacAuthorizationV1ClusterRole(ctx context.Context, params ReadRbacAuthorizationV1ClusterRoleParams) (res ReadRbacAuthorizationV1ClusterRoleRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readRbacAuthorizationV1ClusterRole"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}"), } @@ -59386,7 +59387,7 @@ func (c *Client) sendReadRbacAuthorizationV1ClusterRole(ctx context.Context, par u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -59453,7 +59454,7 @@ func (c *Client) ReadRbacAuthorizationV1ClusterRoleBinding(ctx context.Context, func (c *Client) sendReadRbacAuthorizationV1ClusterRoleBinding(ctx context.Context, params ReadRbacAuthorizationV1ClusterRoleBindingParams) (res ReadRbacAuthorizationV1ClusterRoleBindingRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readRbacAuthorizationV1ClusterRoleBinding"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}"), } @@ -59530,7 +59531,7 @@ func (c *Client) sendReadRbacAuthorizationV1ClusterRoleBinding(ctx context.Conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -59597,7 +59598,7 @@ func (c *Client) ReadRbacAuthorizationV1NamespacedRole(ctx context.Context, para func (c *Client) sendReadRbacAuthorizationV1NamespacedRole(ctx context.Context, params ReadRbacAuthorizationV1NamespacedRoleParams) (res ReadRbacAuthorizationV1NamespacedRoleRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readRbacAuthorizationV1NamespacedRole"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}"), } @@ -59693,7 +59694,7 @@ func (c *Client) sendReadRbacAuthorizationV1NamespacedRole(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -59760,7 +59761,7 @@ func (c *Client) ReadRbacAuthorizationV1NamespacedRoleBinding(ctx context.Contex func (c *Client) sendReadRbacAuthorizationV1NamespacedRoleBinding(ctx context.Context, params ReadRbacAuthorizationV1NamespacedRoleBindingParams) (res ReadRbacAuthorizationV1NamespacedRoleBindingRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readRbacAuthorizationV1NamespacedRoleBinding"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}"), } @@ -59856,7 +59857,7 @@ func (c *Client) sendReadRbacAuthorizationV1NamespacedRoleBinding(ctx context.Co u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -59923,7 +59924,7 @@ func (c *Client) ReadSchedulingV1PriorityClass(ctx context.Context, params ReadS func (c *Client) sendReadSchedulingV1PriorityClass(ctx context.Context, params ReadSchedulingV1PriorityClassParams) (res ReadSchedulingV1PriorityClassRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readSchedulingV1PriorityClass"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/scheduling.k8s.io/v1/priorityclasses/{name}"), } @@ -60000,7 +60001,7 @@ func (c *Client) sendReadSchedulingV1PriorityClass(ctx context.Context, params R u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -60067,7 +60068,7 @@ func (c *Client) ReadStorageV1CSIDriver(ctx context.Context, params ReadStorageV func (c *Client) sendReadStorageV1CSIDriver(ctx context.Context, params ReadStorageV1CSIDriverParams) (res ReadStorageV1CSIDriverRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readStorageV1CSIDriver"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1/csidrivers/{name}"), } @@ -60144,7 +60145,7 @@ func (c *Client) sendReadStorageV1CSIDriver(ctx context.Context, params ReadStor u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -60211,7 +60212,7 @@ func (c *Client) ReadStorageV1CSINode(ctx context.Context, params ReadStorageV1C func (c *Client) sendReadStorageV1CSINode(ctx context.Context, params ReadStorageV1CSINodeParams) (res ReadStorageV1CSINodeRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readStorageV1CSINode"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1/csinodes/{name}"), } @@ -60288,7 +60289,7 @@ func (c *Client) sendReadStorageV1CSINode(ctx context.Context, params ReadStorag u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -60355,7 +60356,7 @@ func (c *Client) ReadStorageV1StorageClass(ctx context.Context, params ReadStora func (c *Client) sendReadStorageV1StorageClass(ctx context.Context, params ReadStorageV1StorageClassParams) (res ReadStorageV1StorageClassRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readStorageV1StorageClass"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1/storageclasses/{name}"), } @@ -60432,7 +60433,7 @@ func (c *Client) sendReadStorageV1StorageClass(ctx context.Context, params ReadS u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -60499,7 +60500,7 @@ func (c *Client) ReadStorageV1VolumeAttachment(ctx context.Context, params ReadS func (c *Client) sendReadStorageV1VolumeAttachment(ctx context.Context, params ReadStorageV1VolumeAttachmentParams) (res ReadStorageV1VolumeAttachmentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readStorageV1VolumeAttachment"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1/volumeattachments/{name}"), } @@ -60576,7 +60577,7 @@ func (c *Client) sendReadStorageV1VolumeAttachment(ctx context.Context, params R u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -60643,7 +60644,7 @@ func (c *Client) ReadStorageV1VolumeAttachmentStatus(ctx context.Context, params func (c *Client) sendReadStorageV1VolumeAttachmentStatus(ctx context.Context, params ReadStorageV1VolumeAttachmentStatusParams) (res ReadStorageV1VolumeAttachmentStatusRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readStorageV1VolumeAttachmentStatus"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1/volumeattachments/{name}/status"), } @@ -60721,7 +60722,7 @@ func (c *Client) sendReadStorageV1VolumeAttachmentStatus(ctx context.Context, pa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -60788,7 +60789,7 @@ func (c *Client) ReadStorageV1alpha1NamespacedCSIStorageCapacity(ctx context.Con func (c *Client) sendReadStorageV1alpha1NamespacedCSIStorageCapacity(ctx context.Context, params ReadStorageV1alpha1NamespacedCSIStorageCapacityParams) (res ReadStorageV1alpha1NamespacedCSIStorageCapacityRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readStorageV1alpha1NamespacedCSIStorageCapacity"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1alpha1/namespaces/{namespace}/csistoragecapacities/{name}"), } @@ -60884,7 +60885,7 @@ func (c *Client) sendReadStorageV1alpha1NamespacedCSIStorageCapacity(ctx context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -60951,7 +60952,7 @@ func (c *Client) ReadStorageV1beta1NamespacedCSIStorageCapacity(ctx context.Cont func (c *Client) sendReadStorageV1beta1NamespacedCSIStorageCapacity(ctx context.Context, params ReadStorageV1beta1NamespacedCSIStorageCapacityParams) (res ReadStorageV1beta1NamespacedCSIStorageCapacityRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("readStorageV1beta1NamespacedCSIStorageCapacity"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1beta1/namespaces/{namespace}/csistoragecapacities/{name}"), } @@ -61047,7 +61048,7 @@ func (c *Client) sendReadStorageV1beta1NamespacedCSIStorageCapacity(ctx context. u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -61116,7 +61117,7 @@ func (c *Client) WatchAdmissionregistrationV1MutatingWebhookConfiguration(ctx co func (c *Client) sendWatchAdmissionregistrationV1MutatingWebhookConfiguration(ctx context.Context, params WatchAdmissionregistrationV1MutatingWebhookConfigurationParams) (res WatchAdmissionregistrationV1MutatingWebhookConfigurationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchAdmissionregistrationV1MutatingWebhookConfiguration"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/admissionregistration.k8s.io/v1/watch/mutatingwebhookconfigurations/{name}"), } @@ -61346,7 +61347,7 @@ func (c *Client) sendWatchAdmissionregistrationV1MutatingWebhookConfiguration(ct u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -61414,7 +61415,7 @@ func (c *Client) WatchAdmissionregistrationV1MutatingWebhookConfigurationList(ct func (c *Client) sendWatchAdmissionregistrationV1MutatingWebhookConfigurationList(ctx context.Context, params WatchAdmissionregistrationV1MutatingWebhookConfigurationListParams) (res WatchAdmissionregistrationV1MutatingWebhookConfigurationListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchAdmissionregistrationV1MutatingWebhookConfigurationList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/admissionregistration.k8s.io/v1/watch/mutatingwebhookconfigurations"), } @@ -61626,7 +61627,7 @@ func (c *Client) sendWatchAdmissionregistrationV1MutatingWebhookConfigurationLis u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -61695,7 +61696,7 @@ func (c *Client) WatchAdmissionregistrationV1ValidatingWebhookConfiguration(ctx func (c *Client) sendWatchAdmissionregistrationV1ValidatingWebhookConfiguration(ctx context.Context, params WatchAdmissionregistrationV1ValidatingWebhookConfigurationParams) (res WatchAdmissionregistrationV1ValidatingWebhookConfigurationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchAdmissionregistrationV1ValidatingWebhookConfiguration"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/admissionregistration.k8s.io/v1/watch/validatingwebhookconfigurations/{name}"), } @@ -61925,7 +61926,7 @@ func (c *Client) sendWatchAdmissionregistrationV1ValidatingWebhookConfiguration( u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -61993,7 +61994,7 @@ func (c *Client) WatchAdmissionregistrationV1ValidatingWebhookConfigurationList( func (c *Client) sendWatchAdmissionregistrationV1ValidatingWebhookConfigurationList(ctx context.Context, params WatchAdmissionregistrationV1ValidatingWebhookConfigurationListParams) (res WatchAdmissionregistrationV1ValidatingWebhookConfigurationListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchAdmissionregistrationV1ValidatingWebhookConfigurationList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/admissionregistration.k8s.io/v1/watch/validatingwebhookconfigurations"), } @@ -62205,7 +62206,7 @@ func (c *Client) sendWatchAdmissionregistrationV1ValidatingWebhookConfigurationL u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -62273,7 +62274,7 @@ func (c *Client) WatchApiextensionsV1CustomResourceDefinition(ctx context.Contex func (c *Client) sendWatchApiextensionsV1CustomResourceDefinition(ctx context.Context, params WatchApiextensionsV1CustomResourceDefinitionParams) (res WatchApiextensionsV1CustomResourceDefinitionRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchApiextensionsV1CustomResourceDefinition"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions/{name}"), } @@ -62503,7 +62504,7 @@ func (c *Client) sendWatchApiextensionsV1CustomResourceDefinition(ctx context.Co u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -62571,7 +62572,7 @@ func (c *Client) WatchApiextensionsV1CustomResourceDefinitionList(ctx context.Co func (c *Client) sendWatchApiextensionsV1CustomResourceDefinitionList(ctx context.Context, params WatchApiextensionsV1CustomResourceDefinitionListParams) (res WatchApiextensionsV1CustomResourceDefinitionListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchApiextensionsV1CustomResourceDefinitionList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions"), } @@ -62783,7 +62784,7 @@ func (c *Client) sendWatchApiextensionsV1CustomResourceDefinitionList(ctx contex u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -62851,7 +62852,7 @@ func (c *Client) WatchApiregistrationV1APIService(ctx context.Context, params Wa func (c *Client) sendWatchApiregistrationV1APIService(ctx context.Context, params WatchApiregistrationV1APIServiceParams) (res WatchApiregistrationV1APIServiceRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchApiregistrationV1APIService"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apiregistration.k8s.io/v1/watch/apiservices/{name}"), } @@ -63081,7 +63082,7 @@ func (c *Client) sendWatchApiregistrationV1APIService(ctx context.Context, param u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -63149,7 +63150,7 @@ func (c *Client) WatchApiregistrationV1APIServiceList(ctx context.Context, param func (c *Client) sendWatchApiregistrationV1APIServiceList(ctx context.Context, params WatchApiregistrationV1APIServiceListParams) (res WatchApiregistrationV1APIServiceListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchApiregistrationV1APIServiceList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apiregistration.k8s.io/v1/watch/apiservices"), } @@ -63361,7 +63362,7 @@ func (c *Client) sendWatchApiregistrationV1APIServiceList(ctx context.Context, p u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -63429,7 +63430,7 @@ func (c *Client) WatchAppsV1ControllerRevisionListForAllNamespaces(ctx context.C func (c *Client) sendWatchAppsV1ControllerRevisionListForAllNamespaces(ctx context.Context, params WatchAppsV1ControllerRevisionListForAllNamespacesParams) (res WatchAppsV1ControllerRevisionListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchAppsV1ControllerRevisionListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/watch/controllerrevisions"), } @@ -63641,7 +63642,7 @@ func (c *Client) sendWatchAppsV1ControllerRevisionListForAllNamespaces(ctx conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -63709,7 +63710,7 @@ func (c *Client) WatchAppsV1DaemonSetListForAllNamespaces(ctx context.Context, p func (c *Client) sendWatchAppsV1DaemonSetListForAllNamespaces(ctx context.Context, params WatchAppsV1DaemonSetListForAllNamespacesParams) (res WatchAppsV1DaemonSetListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchAppsV1DaemonSetListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/watch/daemonsets"), } @@ -63921,7 +63922,7 @@ func (c *Client) sendWatchAppsV1DaemonSetListForAllNamespaces(ctx context.Contex u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -63989,7 +63990,7 @@ func (c *Client) WatchAppsV1DeploymentListForAllNamespaces(ctx context.Context, func (c *Client) sendWatchAppsV1DeploymentListForAllNamespaces(ctx context.Context, params WatchAppsV1DeploymentListForAllNamespacesParams) (res WatchAppsV1DeploymentListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchAppsV1DeploymentListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/watch/deployments"), } @@ -64201,7 +64202,7 @@ func (c *Client) sendWatchAppsV1DeploymentListForAllNamespaces(ctx context.Conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -64269,7 +64270,7 @@ func (c *Client) WatchAppsV1NamespacedControllerRevision(ctx context.Context, pa func (c *Client) sendWatchAppsV1NamespacedControllerRevision(ctx context.Context, params WatchAppsV1NamespacedControllerRevisionParams) (res WatchAppsV1NamespacedControllerRevisionRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchAppsV1NamespacedControllerRevision"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions/{name}"), } @@ -64518,7 +64519,7 @@ func (c *Client) sendWatchAppsV1NamespacedControllerRevision(ctx context.Context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -64586,7 +64587,7 @@ func (c *Client) WatchAppsV1NamespacedControllerRevisionList(ctx context.Context func (c *Client) sendWatchAppsV1NamespacedControllerRevisionList(ctx context.Context, params WatchAppsV1NamespacedControllerRevisionListParams) (res WatchAppsV1NamespacedControllerRevisionListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchAppsV1NamespacedControllerRevisionList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions"), } @@ -64817,7 +64818,7 @@ func (c *Client) sendWatchAppsV1NamespacedControllerRevisionList(ctx context.Con u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -64885,7 +64886,7 @@ func (c *Client) WatchAppsV1NamespacedDaemonSet(ctx context.Context, params Watc func (c *Client) sendWatchAppsV1NamespacedDaemonSet(ctx context.Context, params WatchAppsV1NamespacedDaemonSetParams) (res WatchAppsV1NamespacedDaemonSetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchAppsV1NamespacedDaemonSet"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/watch/namespaces/{namespace}/daemonsets/{name}"), } @@ -65134,7 +65135,7 @@ func (c *Client) sendWatchAppsV1NamespacedDaemonSet(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -65202,7 +65203,7 @@ func (c *Client) WatchAppsV1NamespacedDaemonSetList(ctx context.Context, params func (c *Client) sendWatchAppsV1NamespacedDaemonSetList(ctx context.Context, params WatchAppsV1NamespacedDaemonSetListParams) (res WatchAppsV1NamespacedDaemonSetListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchAppsV1NamespacedDaemonSetList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/watch/namespaces/{namespace}/daemonsets"), } @@ -65433,7 +65434,7 @@ func (c *Client) sendWatchAppsV1NamespacedDaemonSetList(ctx context.Context, par u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -65501,7 +65502,7 @@ func (c *Client) WatchAppsV1NamespacedDeployment(ctx context.Context, params Wat func (c *Client) sendWatchAppsV1NamespacedDeployment(ctx context.Context, params WatchAppsV1NamespacedDeploymentParams) (res WatchAppsV1NamespacedDeploymentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchAppsV1NamespacedDeployment"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/watch/namespaces/{namespace}/deployments/{name}"), } @@ -65750,7 +65751,7 @@ func (c *Client) sendWatchAppsV1NamespacedDeployment(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -65818,7 +65819,7 @@ func (c *Client) WatchAppsV1NamespacedDeploymentList(ctx context.Context, params func (c *Client) sendWatchAppsV1NamespacedDeploymentList(ctx context.Context, params WatchAppsV1NamespacedDeploymentListParams) (res WatchAppsV1NamespacedDeploymentListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchAppsV1NamespacedDeploymentList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/watch/namespaces/{namespace}/deployments"), } @@ -66049,7 +66050,7 @@ func (c *Client) sendWatchAppsV1NamespacedDeploymentList(ctx context.Context, pa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -66117,7 +66118,7 @@ func (c *Client) WatchAppsV1NamespacedReplicaSet(ctx context.Context, params Wat func (c *Client) sendWatchAppsV1NamespacedReplicaSet(ctx context.Context, params WatchAppsV1NamespacedReplicaSetParams) (res WatchAppsV1NamespacedReplicaSetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchAppsV1NamespacedReplicaSet"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/watch/namespaces/{namespace}/replicasets/{name}"), } @@ -66366,7 +66367,7 @@ func (c *Client) sendWatchAppsV1NamespacedReplicaSet(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -66434,7 +66435,7 @@ func (c *Client) WatchAppsV1NamespacedReplicaSetList(ctx context.Context, params func (c *Client) sendWatchAppsV1NamespacedReplicaSetList(ctx context.Context, params WatchAppsV1NamespacedReplicaSetListParams) (res WatchAppsV1NamespacedReplicaSetListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchAppsV1NamespacedReplicaSetList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/watch/namespaces/{namespace}/replicasets"), } @@ -66665,7 +66666,7 @@ func (c *Client) sendWatchAppsV1NamespacedReplicaSetList(ctx context.Context, pa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -66733,7 +66734,7 @@ func (c *Client) WatchAppsV1NamespacedStatefulSet(ctx context.Context, params Wa func (c *Client) sendWatchAppsV1NamespacedStatefulSet(ctx context.Context, params WatchAppsV1NamespacedStatefulSetParams) (res WatchAppsV1NamespacedStatefulSetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchAppsV1NamespacedStatefulSet"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/watch/namespaces/{namespace}/statefulsets/{name}"), } @@ -66982,7 +66983,7 @@ func (c *Client) sendWatchAppsV1NamespacedStatefulSet(ctx context.Context, param u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -67050,7 +67051,7 @@ func (c *Client) WatchAppsV1NamespacedStatefulSetList(ctx context.Context, param func (c *Client) sendWatchAppsV1NamespacedStatefulSetList(ctx context.Context, params WatchAppsV1NamespacedStatefulSetListParams) (res WatchAppsV1NamespacedStatefulSetListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchAppsV1NamespacedStatefulSetList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/watch/namespaces/{namespace}/statefulsets"), } @@ -67281,7 +67282,7 @@ func (c *Client) sendWatchAppsV1NamespacedStatefulSetList(ctx context.Context, p u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -67349,7 +67350,7 @@ func (c *Client) WatchAppsV1ReplicaSetListForAllNamespaces(ctx context.Context, func (c *Client) sendWatchAppsV1ReplicaSetListForAllNamespaces(ctx context.Context, params WatchAppsV1ReplicaSetListForAllNamespacesParams) (res WatchAppsV1ReplicaSetListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchAppsV1ReplicaSetListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/watch/replicasets"), } @@ -67561,7 +67562,7 @@ func (c *Client) sendWatchAppsV1ReplicaSetListForAllNamespaces(ctx context.Conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -67629,7 +67630,7 @@ func (c *Client) WatchAppsV1StatefulSetListForAllNamespaces(ctx context.Context, func (c *Client) sendWatchAppsV1StatefulSetListForAllNamespaces(ctx context.Context, params WatchAppsV1StatefulSetListForAllNamespacesParams) (res WatchAppsV1StatefulSetListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchAppsV1StatefulSetListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/apps/v1/watch/statefulsets"), } @@ -67841,7 +67842,7 @@ func (c *Client) sendWatchAppsV1StatefulSetListForAllNamespaces(ctx context.Cont u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -67909,7 +67910,7 @@ func (c *Client) WatchAutoscalingV1HorizontalPodAutoscalerListForAllNamespaces(c func (c *Client) sendWatchAutoscalingV1HorizontalPodAutoscalerListForAllNamespaces(ctx context.Context, params WatchAutoscalingV1HorizontalPodAutoscalerListForAllNamespacesParams) (res WatchAutoscalingV1HorizontalPodAutoscalerListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchAutoscalingV1HorizontalPodAutoscalerListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/autoscaling/v1/watch/horizontalpodautoscalers"), } @@ -68121,7 +68122,7 @@ func (c *Client) sendWatchAutoscalingV1HorizontalPodAutoscalerListForAllNamespac u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -68189,7 +68190,7 @@ func (c *Client) WatchAutoscalingV1NamespacedHorizontalPodAutoscaler(ctx context func (c *Client) sendWatchAutoscalingV1NamespacedHorizontalPodAutoscaler(ctx context.Context, params WatchAutoscalingV1NamespacedHorizontalPodAutoscalerParams) (res WatchAutoscalingV1NamespacedHorizontalPodAutoscalerRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchAutoscalingV1NamespacedHorizontalPodAutoscaler"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}"), } @@ -68438,7 +68439,7 @@ func (c *Client) sendWatchAutoscalingV1NamespacedHorizontalPodAutoscaler(ctx con u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -68506,7 +68507,7 @@ func (c *Client) WatchAutoscalingV1NamespacedHorizontalPodAutoscalerList(ctx con func (c *Client) sendWatchAutoscalingV1NamespacedHorizontalPodAutoscalerList(ctx context.Context, params WatchAutoscalingV1NamespacedHorizontalPodAutoscalerListParams) (res WatchAutoscalingV1NamespacedHorizontalPodAutoscalerListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchAutoscalingV1NamespacedHorizontalPodAutoscalerList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers"), } @@ -68737,7 +68738,7 @@ func (c *Client) sendWatchAutoscalingV1NamespacedHorizontalPodAutoscalerList(ctx u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -68805,7 +68806,7 @@ func (c *Client) WatchAutoscalingV2beta1HorizontalPodAutoscalerListForAllNamespa func (c *Client) sendWatchAutoscalingV2beta1HorizontalPodAutoscalerListForAllNamespaces(ctx context.Context, params WatchAutoscalingV2beta1HorizontalPodAutoscalerListForAllNamespacesParams) (res WatchAutoscalingV2beta1HorizontalPodAutoscalerListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchAutoscalingV2beta1HorizontalPodAutoscalerListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/autoscaling/v2beta1/watch/horizontalpodautoscalers"), } @@ -69017,7 +69018,7 @@ func (c *Client) sendWatchAutoscalingV2beta1HorizontalPodAutoscalerListForAllNam u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -69085,7 +69086,7 @@ func (c *Client) WatchAutoscalingV2beta1NamespacedHorizontalPodAutoscaler(ctx co func (c *Client) sendWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscaler(ctx context.Context, params WatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerParams) (res WatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchAutoscalingV2beta1NamespacedHorizontalPodAutoscaler"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/autoscaling/v2beta1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}"), } @@ -69334,7 +69335,7 @@ func (c *Client) sendWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscaler(ct u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -69402,7 +69403,7 @@ func (c *Client) WatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerList(ct func (c *Client) sendWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerList(ctx context.Context, params WatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerListParams) (res WatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/autoscaling/v2beta1/watch/namespaces/{namespace}/horizontalpodautoscalers"), } @@ -69633,7 +69634,7 @@ func (c *Client) sendWatchAutoscalingV2beta1NamespacedHorizontalPodAutoscalerLis u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -69701,7 +69702,7 @@ func (c *Client) WatchAutoscalingV2beta2HorizontalPodAutoscalerListForAllNamespa func (c *Client) sendWatchAutoscalingV2beta2HorizontalPodAutoscalerListForAllNamespaces(ctx context.Context, params WatchAutoscalingV2beta2HorizontalPodAutoscalerListForAllNamespacesParams) (res WatchAutoscalingV2beta2HorizontalPodAutoscalerListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchAutoscalingV2beta2HorizontalPodAutoscalerListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/autoscaling/v2beta2/watch/horizontalpodautoscalers"), } @@ -69913,7 +69914,7 @@ func (c *Client) sendWatchAutoscalingV2beta2HorizontalPodAutoscalerListForAllNam u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -69981,7 +69982,7 @@ func (c *Client) WatchAutoscalingV2beta2NamespacedHorizontalPodAutoscaler(ctx co func (c *Client) sendWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscaler(ctx context.Context, params WatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerParams) (res WatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchAutoscalingV2beta2NamespacedHorizontalPodAutoscaler"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/autoscaling/v2beta2/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}"), } @@ -70230,7 +70231,7 @@ func (c *Client) sendWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscaler(ct u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -70298,7 +70299,7 @@ func (c *Client) WatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerList(ct func (c *Client) sendWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerList(ctx context.Context, params WatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerListParams) (res WatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/autoscaling/v2beta2/watch/namespaces/{namespace}/horizontalpodautoscalers"), } @@ -70529,7 +70530,7 @@ func (c *Client) sendWatchAutoscalingV2beta2NamespacedHorizontalPodAutoscalerLis u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -70597,7 +70598,7 @@ func (c *Client) WatchBatchV1CronJobListForAllNamespaces(ctx context.Context, pa func (c *Client) sendWatchBatchV1CronJobListForAllNamespaces(ctx context.Context, params WatchBatchV1CronJobListForAllNamespacesParams) (res WatchBatchV1CronJobListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchBatchV1CronJobListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/batch/v1/watch/cronjobs"), } @@ -70809,7 +70810,7 @@ func (c *Client) sendWatchBatchV1CronJobListForAllNamespaces(ctx context.Context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -70877,7 +70878,7 @@ func (c *Client) WatchBatchV1JobListForAllNamespaces(ctx context.Context, params func (c *Client) sendWatchBatchV1JobListForAllNamespaces(ctx context.Context, params WatchBatchV1JobListForAllNamespacesParams) (res WatchBatchV1JobListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchBatchV1JobListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/batch/v1/watch/jobs"), } @@ -71089,7 +71090,7 @@ func (c *Client) sendWatchBatchV1JobListForAllNamespaces(ctx context.Context, pa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -71157,7 +71158,7 @@ func (c *Client) WatchBatchV1NamespacedCronJob(ctx context.Context, params Watch func (c *Client) sendWatchBatchV1NamespacedCronJob(ctx context.Context, params WatchBatchV1NamespacedCronJobParams) (res WatchBatchV1NamespacedCronJobRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchBatchV1NamespacedCronJob"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/batch/v1/watch/namespaces/{namespace}/cronjobs/{name}"), } @@ -71406,7 +71407,7 @@ func (c *Client) sendWatchBatchV1NamespacedCronJob(ctx context.Context, params W u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -71474,7 +71475,7 @@ func (c *Client) WatchBatchV1NamespacedCronJobList(ctx context.Context, params W func (c *Client) sendWatchBatchV1NamespacedCronJobList(ctx context.Context, params WatchBatchV1NamespacedCronJobListParams) (res WatchBatchV1NamespacedCronJobListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchBatchV1NamespacedCronJobList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/batch/v1/watch/namespaces/{namespace}/cronjobs"), } @@ -71705,7 +71706,7 @@ func (c *Client) sendWatchBatchV1NamespacedCronJobList(ctx context.Context, para u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -71773,7 +71774,7 @@ func (c *Client) WatchBatchV1NamespacedJob(ctx context.Context, params WatchBatc func (c *Client) sendWatchBatchV1NamespacedJob(ctx context.Context, params WatchBatchV1NamespacedJobParams) (res WatchBatchV1NamespacedJobRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchBatchV1NamespacedJob"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}"), } @@ -72022,7 +72023,7 @@ func (c *Client) sendWatchBatchV1NamespacedJob(ctx context.Context, params Watch u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -72090,7 +72091,7 @@ func (c *Client) WatchBatchV1NamespacedJobList(ctx context.Context, params Watch func (c *Client) sendWatchBatchV1NamespacedJobList(ctx context.Context, params WatchBatchV1NamespacedJobListParams) (res WatchBatchV1NamespacedJobListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchBatchV1NamespacedJobList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/batch/v1/watch/namespaces/{namespace}/jobs"), } @@ -72321,7 +72322,7 @@ func (c *Client) sendWatchBatchV1NamespacedJobList(ctx context.Context, params W u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -72389,7 +72390,7 @@ func (c *Client) WatchBatchV1beta1CronJobListForAllNamespaces(ctx context.Contex func (c *Client) sendWatchBatchV1beta1CronJobListForAllNamespaces(ctx context.Context, params WatchBatchV1beta1CronJobListForAllNamespacesParams) (res WatchBatchV1beta1CronJobListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchBatchV1beta1CronJobListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/batch/v1beta1/watch/cronjobs"), } @@ -72601,7 +72602,7 @@ func (c *Client) sendWatchBatchV1beta1CronJobListForAllNamespaces(ctx context.Co u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -72669,7 +72670,7 @@ func (c *Client) WatchBatchV1beta1NamespacedCronJob(ctx context.Context, params func (c *Client) sendWatchBatchV1beta1NamespacedCronJob(ctx context.Context, params WatchBatchV1beta1NamespacedCronJobParams) (res WatchBatchV1beta1NamespacedCronJobRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchBatchV1beta1NamespacedCronJob"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/batch/v1beta1/watch/namespaces/{namespace}/cronjobs/{name}"), } @@ -72918,7 +72919,7 @@ func (c *Client) sendWatchBatchV1beta1NamespacedCronJob(ctx context.Context, par u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -72986,7 +72987,7 @@ func (c *Client) WatchBatchV1beta1NamespacedCronJobList(ctx context.Context, par func (c *Client) sendWatchBatchV1beta1NamespacedCronJobList(ctx context.Context, params WatchBatchV1beta1NamespacedCronJobListParams) (res WatchBatchV1beta1NamespacedCronJobListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchBatchV1beta1NamespacedCronJobList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/batch/v1beta1/watch/namespaces/{namespace}/cronjobs"), } @@ -73217,7 +73218,7 @@ func (c *Client) sendWatchBatchV1beta1NamespacedCronJobList(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -73286,7 +73287,7 @@ func (c *Client) WatchCertificatesV1CertificateSigningRequest(ctx context.Contex func (c *Client) sendWatchCertificatesV1CertificateSigningRequest(ctx context.Context, params WatchCertificatesV1CertificateSigningRequestParams) (res WatchCertificatesV1CertificateSigningRequestRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCertificatesV1CertificateSigningRequest"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/certificates.k8s.io/v1/watch/certificatesigningrequests/{name}"), } @@ -73516,7 +73517,7 @@ func (c *Client) sendWatchCertificatesV1CertificateSigningRequest(ctx context.Co u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -73584,7 +73585,7 @@ func (c *Client) WatchCertificatesV1CertificateSigningRequestList(ctx context.Co func (c *Client) sendWatchCertificatesV1CertificateSigningRequestList(ctx context.Context, params WatchCertificatesV1CertificateSigningRequestListParams) (res WatchCertificatesV1CertificateSigningRequestListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCertificatesV1CertificateSigningRequestList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/certificates.k8s.io/v1/watch/certificatesigningrequests"), } @@ -73796,7 +73797,7 @@ func (c *Client) sendWatchCertificatesV1CertificateSigningRequestList(ctx contex u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -73864,7 +73865,7 @@ func (c *Client) WatchCoordinationV1LeaseListForAllNamespaces(ctx context.Contex func (c *Client) sendWatchCoordinationV1LeaseListForAllNamespaces(ctx context.Context, params WatchCoordinationV1LeaseListForAllNamespacesParams) (res WatchCoordinationV1LeaseListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoordinationV1LeaseListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/coordination.k8s.io/v1/watch/leases"), } @@ -74076,7 +74077,7 @@ func (c *Client) sendWatchCoordinationV1LeaseListForAllNamespaces(ctx context.Co u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -74144,7 +74145,7 @@ func (c *Client) WatchCoordinationV1NamespacedLease(ctx context.Context, params func (c *Client) sendWatchCoordinationV1NamespacedLease(ctx context.Context, params WatchCoordinationV1NamespacedLeaseParams) (res WatchCoordinationV1NamespacedLeaseRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoordinationV1NamespacedLease"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases/{name}"), } @@ -74393,7 +74394,7 @@ func (c *Client) sendWatchCoordinationV1NamespacedLease(ctx context.Context, par u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -74461,7 +74462,7 @@ func (c *Client) WatchCoordinationV1NamespacedLeaseList(ctx context.Context, par func (c *Client) sendWatchCoordinationV1NamespacedLeaseList(ctx context.Context, params WatchCoordinationV1NamespacedLeaseListParams) (res WatchCoordinationV1NamespacedLeaseListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoordinationV1NamespacedLeaseList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases"), } @@ -74692,7 +74693,7 @@ func (c *Client) sendWatchCoordinationV1NamespacedLeaseList(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -74760,7 +74761,7 @@ func (c *Client) WatchCoreV1ConfigMapListForAllNamespaces(ctx context.Context, p func (c *Client) sendWatchCoreV1ConfigMapListForAllNamespaces(ctx context.Context, params WatchCoreV1ConfigMapListForAllNamespacesParams) (res WatchCoreV1ConfigMapListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1ConfigMapListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/configmaps"), } @@ -74972,7 +74973,7 @@ func (c *Client) sendWatchCoreV1ConfigMapListForAllNamespaces(ctx context.Contex u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -75040,7 +75041,7 @@ func (c *Client) WatchCoreV1EndpointsListForAllNamespaces(ctx context.Context, p func (c *Client) sendWatchCoreV1EndpointsListForAllNamespaces(ctx context.Context, params WatchCoreV1EndpointsListForAllNamespacesParams) (res WatchCoreV1EndpointsListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1EndpointsListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/endpoints"), } @@ -75252,7 +75253,7 @@ func (c *Client) sendWatchCoreV1EndpointsListForAllNamespaces(ctx context.Contex u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -75320,7 +75321,7 @@ func (c *Client) WatchCoreV1EventListForAllNamespaces(ctx context.Context, param func (c *Client) sendWatchCoreV1EventListForAllNamespaces(ctx context.Context, params WatchCoreV1EventListForAllNamespacesParams) (res WatchCoreV1EventListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1EventListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/events"), } @@ -75532,7 +75533,7 @@ func (c *Client) sendWatchCoreV1EventListForAllNamespaces(ctx context.Context, p u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -75600,7 +75601,7 @@ func (c *Client) WatchCoreV1LimitRangeListForAllNamespaces(ctx context.Context, func (c *Client) sendWatchCoreV1LimitRangeListForAllNamespaces(ctx context.Context, params WatchCoreV1LimitRangeListForAllNamespacesParams) (res WatchCoreV1LimitRangeListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1LimitRangeListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/limitranges"), } @@ -75812,7 +75813,7 @@ func (c *Client) sendWatchCoreV1LimitRangeListForAllNamespaces(ctx context.Conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -75880,7 +75881,7 @@ func (c *Client) WatchCoreV1Namespace(ctx context.Context, params WatchCoreV1Nam func (c *Client) sendWatchCoreV1Namespace(ctx context.Context, params WatchCoreV1NamespaceParams) (res WatchCoreV1NamespaceRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1Namespace"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/namespaces/{name}"), } @@ -76110,7 +76111,7 @@ func (c *Client) sendWatchCoreV1Namespace(ctx context.Context, params WatchCoreV u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -76178,7 +76179,7 @@ func (c *Client) WatchCoreV1NamespaceList(ctx context.Context, params WatchCoreV func (c *Client) sendWatchCoreV1NamespaceList(ctx context.Context, params WatchCoreV1NamespaceListParams) (res WatchCoreV1NamespaceListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1NamespaceList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/namespaces"), } @@ -76390,7 +76391,7 @@ func (c *Client) sendWatchCoreV1NamespaceList(ctx context.Context, params WatchC u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -76458,7 +76459,7 @@ func (c *Client) WatchCoreV1NamespacedConfigMap(ctx context.Context, params Watc func (c *Client) sendWatchCoreV1NamespacedConfigMap(ctx context.Context, params WatchCoreV1NamespacedConfigMapParams) (res WatchCoreV1NamespacedConfigMapRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1NamespacedConfigMap"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/namespaces/{namespace}/configmaps/{name}"), } @@ -76707,7 +76708,7 @@ func (c *Client) sendWatchCoreV1NamespacedConfigMap(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -76775,7 +76776,7 @@ func (c *Client) WatchCoreV1NamespacedConfigMapList(ctx context.Context, params func (c *Client) sendWatchCoreV1NamespacedConfigMapList(ctx context.Context, params WatchCoreV1NamespacedConfigMapListParams) (res WatchCoreV1NamespacedConfigMapListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1NamespacedConfigMapList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/namespaces/{namespace}/configmaps"), } @@ -77006,7 +77007,7 @@ func (c *Client) sendWatchCoreV1NamespacedConfigMapList(ctx context.Context, par u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -77074,7 +77075,7 @@ func (c *Client) WatchCoreV1NamespacedEndpoints(ctx context.Context, params Watc func (c *Client) sendWatchCoreV1NamespacedEndpoints(ctx context.Context, params WatchCoreV1NamespacedEndpointsParams) (res WatchCoreV1NamespacedEndpointsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1NamespacedEndpoints"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/namespaces/{namespace}/endpoints/{name}"), } @@ -77323,7 +77324,7 @@ func (c *Client) sendWatchCoreV1NamespacedEndpoints(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -77391,7 +77392,7 @@ func (c *Client) WatchCoreV1NamespacedEndpointsList(ctx context.Context, params func (c *Client) sendWatchCoreV1NamespacedEndpointsList(ctx context.Context, params WatchCoreV1NamespacedEndpointsListParams) (res WatchCoreV1NamespacedEndpointsListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1NamespacedEndpointsList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/namespaces/{namespace}/endpoints"), } @@ -77622,7 +77623,7 @@ func (c *Client) sendWatchCoreV1NamespacedEndpointsList(ctx context.Context, par u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -77690,7 +77691,7 @@ func (c *Client) WatchCoreV1NamespacedEvent(ctx context.Context, params WatchCor func (c *Client) sendWatchCoreV1NamespacedEvent(ctx context.Context, params WatchCoreV1NamespacedEventParams) (res WatchCoreV1NamespacedEventRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1NamespacedEvent"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/namespaces/{namespace}/events/{name}"), } @@ -77939,7 +77940,7 @@ func (c *Client) sendWatchCoreV1NamespacedEvent(ctx context.Context, params Watc u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -78007,7 +78008,7 @@ func (c *Client) WatchCoreV1NamespacedEventList(ctx context.Context, params Watc func (c *Client) sendWatchCoreV1NamespacedEventList(ctx context.Context, params WatchCoreV1NamespacedEventListParams) (res WatchCoreV1NamespacedEventListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1NamespacedEventList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/namespaces/{namespace}/events"), } @@ -78238,7 +78239,7 @@ func (c *Client) sendWatchCoreV1NamespacedEventList(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -78306,7 +78307,7 @@ func (c *Client) WatchCoreV1NamespacedLimitRange(ctx context.Context, params Wat func (c *Client) sendWatchCoreV1NamespacedLimitRange(ctx context.Context, params WatchCoreV1NamespacedLimitRangeParams) (res WatchCoreV1NamespacedLimitRangeRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1NamespacedLimitRange"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/namespaces/{namespace}/limitranges/{name}"), } @@ -78555,7 +78556,7 @@ func (c *Client) sendWatchCoreV1NamespacedLimitRange(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -78623,7 +78624,7 @@ func (c *Client) WatchCoreV1NamespacedLimitRangeList(ctx context.Context, params func (c *Client) sendWatchCoreV1NamespacedLimitRangeList(ctx context.Context, params WatchCoreV1NamespacedLimitRangeListParams) (res WatchCoreV1NamespacedLimitRangeListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1NamespacedLimitRangeList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/namespaces/{namespace}/limitranges"), } @@ -78854,7 +78855,7 @@ func (c *Client) sendWatchCoreV1NamespacedLimitRangeList(ctx context.Context, pa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -78922,7 +78923,7 @@ func (c *Client) WatchCoreV1NamespacedPersistentVolumeClaim(ctx context.Context, func (c *Client) sendWatchCoreV1NamespacedPersistentVolumeClaim(ctx context.Context, params WatchCoreV1NamespacedPersistentVolumeClaimParams) (res WatchCoreV1NamespacedPersistentVolumeClaimRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1NamespacedPersistentVolumeClaim"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims/{name}"), } @@ -79171,7 +79172,7 @@ func (c *Client) sendWatchCoreV1NamespacedPersistentVolumeClaim(ctx context.Cont u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -79239,7 +79240,7 @@ func (c *Client) WatchCoreV1NamespacedPersistentVolumeClaimList(ctx context.Cont func (c *Client) sendWatchCoreV1NamespacedPersistentVolumeClaimList(ctx context.Context, params WatchCoreV1NamespacedPersistentVolumeClaimListParams) (res WatchCoreV1NamespacedPersistentVolumeClaimListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1NamespacedPersistentVolumeClaimList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims"), } @@ -79470,7 +79471,7 @@ func (c *Client) sendWatchCoreV1NamespacedPersistentVolumeClaimList(ctx context. u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -79538,7 +79539,7 @@ func (c *Client) WatchCoreV1NamespacedPod(ctx context.Context, params WatchCoreV func (c *Client) sendWatchCoreV1NamespacedPod(ctx context.Context, params WatchCoreV1NamespacedPodParams) (res WatchCoreV1NamespacedPodRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1NamespacedPod"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/namespaces/{namespace}/pods/{name}"), } @@ -79787,7 +79788,7 @@ func (c *Client) sendWatchCoreV1NamespacedPod(ctx context.Context, params WatchC u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -79855,7 +79856,7 @@ func (c *Client) WatchCoreV1NamespacedPodList(ctx context.Context, params WatchC func (c *Client) sendWatchCoreV1NamespacedPodList(ctx context.Context, params WatchCoreV1NamespacedPodListParams) (res WatchCoreV1NamespacedPodListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1NamespacedPodList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/namespaces/{namespace}/pods"), } @@ -80086,7 +80087,7 @@ func (c *Client) sendWatchCoreV1NamespacedPodList(ctx context.Context, params Wa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -80154,7 +80155,7 @@ func (c *Client) WatchCoreV1NamespacedPodTemplate(ctx context.Context, params Wa func (c *Client) sendWatchCoreV1NamespacedPodTemplate(ctx context.Context, params WatchCoreV1NamespacedPodTemplateParams) (res WatchCoreV1NamespacedPodTemplateRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1NamespacedPodTemplate"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/namespaces/{namespace}/podtemplates/{name}"), } @@ -80403,7 +80404,7 @@ func (c *Client) sendWatchCoreV1NamespacedPodTemplate(ctx context.Context, param u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -80471,7 +80472,7 @@ func (c *Client) WatchCoreV1NamespacedPodTemplateList(ctx context.Context, param func (c *Client) sendWatchCoreV1NamespacedPodTemplateList(ctx context.Context, params WatchCoreV1NamespacedPodTemplateListParams) (res WatchCoreV1NamespacedPodTemplateListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1NamespacedPodTemplateList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/namespaces/{namespace}/podtemplates"), } @@ -80702,7 +80703,7 @@ func (c *Client) sendWatchCoreV1NamespacedPodTemplateList(ctx context.Context, p u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -80770,7 +80771,7 @@ func (c *Client) WatchCoreV1NamespacedReplicationController(ctx context.Context, func (c *Client) sendWatchCoreV1NamespacedReplicationController(ctx context.Context, params WatchCoreV1NamespacedReplicationControllerParams) (res WatchCoreV1NamespacedReplicationControllerRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1NamespacedReplicationController"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/namespaces/{namespace}/replicationcontrollers/{name}"), } @@ -81019,7 +81020,7 @@ func (c *Client) sendWatchCoreV1NamespacedReplicationController(ctx context.Cont u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -81087,7 +81088,7 @@ func (c *Client) WatchCoreV1NamespacedReplicationControllerList(ctx context.Cont func (c *Client) sendWatchCoreV1NamespacedReplicationControllerList(ctx context.Context, params WatchCoreV1NamespacedReplicationControllerListParams) (res WatchCoreV1NamespacedReplicationControllerListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1NamespacedReplicationControllerList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/namespaces/{namespace}/replicationcontrollers"), } @@ -81318,7 +81319,7 @@ func (c *Client) sendWatchCoreV1NamespacedReplicationControllerList(ctx context. u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -81386,7 +81387,7 @@ func (c *Client) WatchCoreV1NamespacedResourceQuota(ctx context.Context, params func (c *Client) sendWatchCoreV1NamespacedResourceQuota(ctx context.Context, params WatchCoreV1NamespacedResourceQuotaParams) (res WatchCoreV1NamespacedResourceQuotaRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1NamespacedResourceQuota"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/namespaces/{namespace}/resourcequotas/{name}"), } @@ -81635,7 +81636,7 @@ func (c *Client) sendWatchCoreV1NamespacedResourceQuota(ctx context.Context, par u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -81703,7 +81704,7 @@ func (c *Client) WatchCoreV1NamespacedResourceQuotaList(ctx context.Context, par func (c *Client) sendWatchCoreV1NamespacedResourceQuotaList(ctx context.Context, params WatchCoreV1NamespacedResourceQuotaListParams) (res WatchCoreV1NamespacedResourceQuotaListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1NamespacedResourceQuotaList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/namespaces/{namespace}/resourcequotas"), } @@ -81934,7 +81935,7 @@ func (c *Client) sendWatchCoreV1NamespacedResourceQuotaList(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -82002,7 +82003,7 @@ func (c *Client) WatchCoreV1NamespacedSecret(ctx context.Context, params WatchCo func (c *Client) sendWatchCoreV1NamespacedSecret(ctx context.Context, params WatchCoreV1NamespacedSecretParams) (res WatchCoreV1NamespacedSecretRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1NamespacedSecret"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/namespaces/{namespace}/secrets/{name}"), } @@ -82251,7 +82252,7 @@ func (c *Client) sendWatchCoreV1NamespacedSecret(ctx context.Context, params Wat u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -82319,7 +82320,7 @@ func (c *Client) WatchCoreV1NamespacedSecretList(ctx context.Context, params Wat func (c *Client) sendWatchCoreV1NamespacedSecretList(ctx context.Context, params WatchCoreV1NamespacedSecretListParams) (res WatchCoreV1NamespacedSecretListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1NamespacedSecretList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/namespaces/{namespace}/secrets"), } @@ -82550,7 +82551,7 @@ func (c *Client) sendWatchCoreV1NamespacedSecretList(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -82618,7 +82619,7 @@ func (c *Client) WatchCoreV1NamespacedService(ctx context.Context, params WatchC func (c *Client) sendWatchCoreV1NamespacedService(ctx context.Context, params WatchCoreV1NamespacedServiceParams) (res WatchCoreV1NamespacedServiceRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1NamespacedService"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/namespaces/{namespace}/services/{name}"), } @@ -82867,7 +82868,7 @@ func (c *Client) sendWatchCoreV1NamespacedService(ctx context.Context, params Wa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -82935,7 +82936,7 @@ func (c *Client) WatchCoreV1NamespacedServiceAccount(ctx context.Context, params func (c *Client) sendWatchCoreV1NamespacedServiceAccount(ctx context.Context, params WatchCoreV1NamespacedServiceAccountParams) (res WatchCoreV1NamespacedServiceAccountRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1NamespacedServiceAccount"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/namespaces/{namespace}/serviceaccounts/{name}"), } @@ -83184,7 +83185,7 @@ func (c *Client) sendWatchCoreV1NamespacedServiceAccount(ctx context.Context, pa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -83252,7 +83253,7 @@ func (c *Client) WatchCoreV1NamespacedServiceAccountList(ctx context.Context, pa func (c *Client) sendWatchCoreV1NamespacedServiceAccountList(ctx context.Context, params WatchCoreV1NamespacedServiceAccountListParams) (res WatchCoreV1NamespacedServiceAccountListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1NamespacedServiceAccountList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/namespaces/{namespace}/serviceaccounts"), } @@ -83483,7 +83484,7 @@ func (c *Client) sendWatchCoreV1NamespacedServiceAccountList(ctx context.Context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -83551,7 +83552,7 @@ func (c *Client) WatchCoreV1NamespacedServiceList(ctx context.Context, params Wa func (c *Client) sendWatchCoreV1NamespacedServiceList(ctx context.Context, params WatchCoreV1NamespacedServiceListParams) (res WatchCoreV1NamespacedServiceListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1NamespacedServiceList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/namespaces/{namespace}/services"), } @@ -83782,7 +83783,7 @@ func (c *Client) sendWatchCoreV1NamespacedServiceList(ctx context.Context, param u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -83850,7 +83851,7 @@ func (c *Client) WatchCoreV1Node(ctx context.Context, params WatchCoreV1NodePara func (c *Client) sendWatchCoreV1Node(ctx context.Context, params WatchCoreV1NodeParams) (res WatchCoreV1NodeRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1Node"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/nodes/{name}"), } @@ -84080,7 +84081,7 @@ func (c *Client) sendWatchCoreV1Node(ctx context.Context, params WatchCoreV1Node u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -84148,7 +84149,7 @@ func (c *Client) WatchCoreV1NodeList(ctx context.Context, params WatchCoreV1Node func (c *Client) sendWatchCoreV1NodeList(ctx context.Context, params WatchCoreV1NodeListParams) (res WatchCoreV1NodeListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1NodeList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/nodes"), } @@ -84360,7 +84361,7 @@ func (c *Client) sendWatchCoreV1NodeList(ctx context.Context, params WatchCoreV1 u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -84428,7 +84429,7 @@ func (c *Client) WatchCoreV1PersistentVolume(ctx context.Context, params WatchCo func (c *Client) sendWatchCoreV1PersistentVolume(ctx context.Context, params WatchCoreV1PersistentVolumeParams) (res WatchCoreV1PersistentVolumeRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1PersistentVolume"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/persistentvolumes/{name}"), } @@ -84658,7 +84659,7 @@ func (c *Client) sendWatchCoreV1PersistentVolume(ctx context.Context, params Wat u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -84726,7 +84727,7 @@ func (c *Client) WatchCoreV1PersistentVolumeClaimListForAllNamespaces(ctx contex func (c *Client) sendWatchCoreV1PersistentVolumeClaimListForAllNamespaces(ctx context.Context, params WatchCoreV1PersistentVolumeClaimListForAllNamespacesParams) (res WatchCoreV1PersistentVolumeClaimListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1PersistentVolumeClaimListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/persistentvolumeclaims"), } @@ -84938,7 +84939,7 @@ func (c *Client) sendWatchCoreV1PersistentVolumeClaimListForAllNamespaces(ctx co u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -85006,7 +85007,7 @@ func (c *Client) WatchCoreV1PersistentVolumeList(ctx context.Context, params Wat func (c *Client) sendWatchCoreV1PersistentVolumeList(ctx context.Context, params WatchCoreV1PersistentVolumeListParams) (res WatchCoreV1PersistentVolumeListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1PersistentVolumeList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/persistentvolumes"), } @@ -85218,7 +85219,7 @@ func (c *Client) sendWatchCoreV1PersistentVolumeList(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -85286,7 +85287,7 @@ func (c *Client) WatchCoreV1PodListForAllNamespaces(ctx context.Context, params func (c *Client) sendWatchCoreV1PodListForAllNamespaces(ctx context.Context, params WatchCoreV1PodListForAllNamespacesParams) (res WatchCoreV1PodListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1PodListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/pods"), } @@ -85498,7 +85499,7 @@ func (c *Client) sendWatchCoreV1PodListForAllNamespaces(ctx context.Context, par u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -85566,7 +85567,7 @@ func (c *Client) WatchCoreV1PodTemplateListForAllNamespaces(ctx context.Context, func (c *Client) sendWatchCoreV1PodTemplateListForAllNamespaces(ctx context.Context, params WatchCoreV1PodTemplateListForAllNamespacesParams) (res WatchCoreV1PodTemplateListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1PodTemplateListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/podtemplates"), } @@ -85778,7 +85779,7 @@ func (c *Client) sendWatchCoreV1PodTemplateListForAllNamespaces(ctx context.Cont u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -85846,7 +85847,7 @@ func (c *Client) WatchCoreV1ReplicationControllerListForAllNamespaces(ctx contex func (c *Client) sendWatchCoreV1ReplicationControllerListForAllNamespaces(ctx context.Context, params WatchCoreV1ReplicationControllerListForAllNamespacesParams) (res WatchCoreV1ReplicationControllerListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1ReplicationControllerListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/replicationcontrollers"), } @@ -86058,7 +86059,7 @@ func (c *Client) sendWatchCoreV1ReplicationControllerListForAllNamespaces(ctx co u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -86126,7 +86127,7 @@ func (c *Client) WatchCoreV1ResourceQuotaListForAllNamespaces(ctx context.Contex func (c *Client) sendWatchCoreV1ResourceQuotaListForAllNamespaces(ctx context.Context, params WatchCoreV1ResourceQuotaListForAllNamespacesParams) (res WatchCoreV1ResourceQuotaListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1ResourceQuotaListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/resourcequotas"), } @@ -86338,7 +86339,7 @@ func (c *Client) sendWatchCoreV1ResourceQuotaListForAllNamespaces(ctx context.Co u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -86406,7 +86407,7 @@ func (c *Client) WatchCoreV1SecretListForAllNamespaces(ctx context.Context, para func (c *Client) sendWatchCoreV1SecretListForAllNamespaces(ctx context.Context, params WatchCoreV1SecretListForAllNamespacesParams) (res WatchCoreV1SecretListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1SecretListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/secrets"), } @@ -86618,7 +86619,7 @@ func (c *Client) sendWatchCoreV1SecretListForAllNamespaces(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -86686,7 +86687,7 @@ func (c *Client) WatchCoreV1ServiceAccountListForAllNamespaces(ctx context.Conte func (c *Client) sendWatchCoreV1ServiceAccountListForAllNamespaces(ctx context.Context, params WatchCoreV1ServiceAccountListForAllNamespacesParams) (res WatchCoreV1ServiceAccountListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1ServiceAccountListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/serviceaccounts"), } @@ -86898,7 +86899,7 @@ func (c *Client) sendWatchCoreV1ServiceAccountListForAllNamespaces(ctx context.C u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -86966,7 +86967,7 @@ func (c *Client) WatchCoreV1ServiceListForAllNamespaces(ctx context.Context, par func (c *Client) sendWatchCoreV1ServiceListForAllNamespaces(ctx context.Context, params WatchCoreV1ServiceListForAllNamespacesParams) (res WatchCoreV1ServiceListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchCoreV1ServiceListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/v1/watch/services"), } @@ -87178,7 +87179,7 @@ func (c *Client) sendWatchCoreV1ServiceListForAllNamespaces(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -87246,7 +87247,7 @@ func (c *Client) WatchDiscoveryV1EndpointSliceListForAllNamespaces(ctx context.C func (c *Client) sendWatchDiscoveryV1EndpointSliceListForAllNamespaces(ctx context.Context, params WatchDiscoveryV1EndpointSliceListForAllNamespacesParams) (res WatchDiscoveryV1EndpointSliceListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchDiscoveryV1EndpointSliceListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/discovery.k8s.io/v1/watch/endpointslices"), } @@ -87458,7 +87459,7 @@ func (c *Client) sendWatchDiscoveryV1EndpointSliceListForAllNamespaces(ctx conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -87526,7 +87527,7 @@ func (c *Client) WatchDiscoveryV1NamespacedEndpointSlice(ctx context.Context, pa func (c *Client) sendWatchDiscoveryV1NamespacedEndpointSlice(ctx context.Context, params WatchDiscoveryV1NamespacedEndpointSliceParams) (res WatchDiscoveryV1NamespacedEndpointSliceRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchDiscoveryV1NamespacedEndpointSlice"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices/{name}"), } @@ -87775,7 +87776,7 @@ func (c *Client) sendWatchDiscoveryV1NamespacedEndpointSlice(ctx context.Context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -87843,7 +87844,7 @@ func (c *Client) WatchDiscoveryV1NamespacedEndpointSliceList(ctx context.Context func (c *Client) sendWatchDiscoveryV1NamespacedEndpointSliceList(ctx context.Context, params WatchDiscoveryV1NamespacedEndpointSliceListParams) (res WatchDiscoveryV1NamespacedEndpointSliceListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchDiscoveryV1NamespacedEndpointSliceList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices"), } @@ -88074,7 +88075,7 @@ func (c *Client) sendWatchDiscoveryV1NamespacedEndpointSliceList(ctx context.Con u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -88142,7 +88143,7 @@ func (c *Client) WatchDiscoveryV1beta1EndpointSliceListForAllNamespaces(ctx cont func (c *Client) sendWatchDiscoveryV1beta1EndpointSliceListForAllNamespaces(ctx context.Context, params WatchDiscoveryV1beta1EndpointSliceListForAllNamespacesParams) (res WatchDiscoveryV1beta1EndpointSliceListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchDiscoveryV1beta1EndpointSliceListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/discovery.k8s.io/v1beta1/watch/endpointslices"), } @@ -88354,7 +88355,7 @@ func (c *Client) sendWatchDiscoveryV1beta1EndpointSliceListForAllNamespaces(ctx u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -88422,7 +88423,7 @@ func (c *Client) WatchDiscoveryV1beta1NamespacedEndpointSlice(ctx context.Contex func (c *Client) sendWatchDiscoveryV1beta1NamespacedEndpointSlice(ctx context.Context, params WatchDiscoveryV1beta1NamespacedEndpointSliceParams) (res WatchDiscoveryV1beta1NamespacedEndpointSliceRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchDiscoveryV1beta1NamespacedEndpointSlice"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/discovery.k8s.io/v1beta1/watch/namespaces/{namespace}/endpointslices/{name}"), } @@ -88671,7 +88672,7 @@ func (c *Client) sendWatchDiscoveryV1beta1NamespacedEndpointSlice(ctx context.Co u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -88739,7 +88740,7 @@ func (c *Client) WatchDiscoveryV1beta1NamespacedEndpointSliceList(ctx context.Co func (c *Client) sendWatchDiscoveryV1beta1NamespacedEndpointSliceList(ctx context.Context, params WatchDiscoveryV1beta1NamespacedEndpointSliceListParams) (res WatchDiscoveryV1beta1NamespacedEndpointSliceListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchDiscoveryV1beta1NamespacedEndpointSliceList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/discovery.k8s.io/v1beta1/watch/namespaces/{namespace}/endpointslices"), } @@ -88970,7 +88971,7 @@ func (c *Client) sendWatchDiscoveryV1beta1NamespacedEndpointSliceList(ctx contex u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -89038,7 +89039,7 @@ func (c *Client) WatchEventsV1EventListForAllNamespaces(ctx context.Context, par func (c *Client) sendWatchEventsV1EventListForAllNamespaces(ctx context.Context, params WatchEventsV1EventListForAllNamespacesParams) (res WatchEventsV1EventListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchEventsV1EventListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/events.k8s.io/v1/watch/events"), } @@ -89250,7 +89251,7 @@ func (c *Client) sendWatchEventsV1EventListForAllNamespaces(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -89318,7 +89319,7 @@ func (c *Client) WatchEventsV1NamespacedEvent(ctx context.Context, params WatchE func (c *Client) sendWatchEventsV1NamespacedEvent(ctx context.Context, params WatchEventsV1NamespacedEventParams) (res WatchEventsV1NamespacedEventRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchEventsV1NamespacedEvent"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events/{name}"), } @@ -89567,7 +89568,7 @@ func (c *Client) sendWatchEventsV1NamespacedEvent(ctx context.Context, params Wa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -89635,7 +89636,7 @@ func (c *Client) WatchEventsV1NamespacedEventList(ctx context.Context, params Wa func (c *Client) sendWatchEventsV1NamespacedEventList(ctx context.Context, params WatchEventsV1NamespacedEventListParams) (res WatchEventsV1NamespacedEventListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchEventsV1NamespacedEventList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events"), } @@ -89866,7 +89867,7 @@ func (c *Client) sendWatchEventsV1NamespacedEventList(ctx context.Context, param u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -89934,7 +89935,7 @@ func (c *Client) WatchEventsV1beta1EventListForAllNamespaces(ctx context.Context func (c *Client) sendWatchEventsV1beta1EventListForAllNamespaces(ctx context.Context, params WatchEventsV1beta1EventListForAllNamespacesParams) (res WatchEventsV1beta1EventListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchEventsV1beta1EventListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/events.k8s.io/v1beta1/watch/events"), } @@ -90146,7 +90147,7 @@ func (c *Client) sendWatchEventsV1beta1EventListForAllNamespaces(ctx context.Con u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -90214,7 +90215,7 @@ func (c *Client) WatchEventsV1beta1NamespacedEvent(ctx context.Context, params W func (c *Client) sendWatchEventsV1beta1NamespacedEvent(ctx context.Context, params WatchEventsV1beta1NamespacedEventParams) (res WatchEventsV1beta1NamespacedEventRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchEventsV1beta1NamespacedEvent"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/events.k8s.io/v1beta1/watch/namespaces/{namespace}/events/{name}"), } @@ -90463,7 +90464,7 @@ func (c *Client) sendWatchEventsV1beta1NamespacedEvent(ctx context.Context, para u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -90531,7 +90532,7 @@ func (c *Client) WatchEventsV1beta1NamespacedEventList(ctx context.Context, para func (c *Client) sendWatchEventsV1beta1NamespacedEventList(ctx context.Context, params WatchEventsV1beta1NamespacedEventListParams) (res WatchEventsV1beta1NamespacedEventListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchEventsV1beta1NamespacedEventList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/events.k8s.io/v1beta1/watch/namespaces/{namespace}/events"), } @@ -90762,7 +90763,7 @@ func (c *Client) sendWatchEventsV1beta1NamespacedEventList(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -90830,7 +90831,7 @@ func (c *Client) WatchFlowcontrolApiserverV1beta1FlowSchema(ctx context.Context, func (c *Client) sendWatchFlowcontrolApiserverV1beta1FlowSchema(ctx context.Context, params WatchFlowcontrolApiserverV1beta1FlowSchemaParams) (res WatchFlowcontrolApiserverV1beta1FlowSchemaRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchFlowcontrolApiserverV1beta1FlowSchema"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/flowschemas/{name}"), } @@ -91060,7 +91061,7 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta1FlowSchema(ctx context.Cont u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -91128,7 +91129,7 @@ func (c *Client) WatchFlowcontrolApiserverV1beta1FlowSchemaList(ctx context.Cont func (c *Client) sendWatchFlowcontrolApiserverV1beta1FlowSchemaList(ctx context.Context, params WatchFlowcontrolApiserverV1beta1FlowSchemaListParams) (res WatchFlowcontrolApiserverV1beta1FlowSchemaListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchFlowcontrolApiserverV1beta1FlowSchemaList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/flowschemas"), } @@ -91340,7 +91341,7 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta1FlowSchemaList(ctx context. u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -91409,7 +91410,7 @@ func (c *Client) WatchFlowcontrolApiserverV1beta1PriorityLevelConfiguration(ctx func (c *Client) sendWatchFlowcontrolApiserverV1beta1PriorityLevelConfiguration(ctx context.Context, params WatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationParams) (res WatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchFlowcontrolApiserverV1beta1PriorityLevelConfiguration"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/prioritylevelconfigurations/{name}"), } @@ -91639,7 +91640,7 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta1PriorityLevelConfiguration( u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -91707,7 +91708,7 @@ func (c *Client) WatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationList( func (c *Client) sendWatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationList(ctx context.Context, params WatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationListParams) (res WatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchFlowcontrolApiserverV1beta1PriorityLevelConfigurationList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/flowcontrol.apiserver.k8s.io/v1beta1/watch/prioritylevelconfigurations"), } @@ -91919,7 +91920,7 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta1PriorityLevelConfigurationL u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -91987,7 +91988,7 @@ func (c *Client) WatchFlowcontrolApiserverV1beta2FlowSchema(ctx context.Context, func (c *Client) sendWatchFlowcontrolApiserverV1beta2FlowSchema(ctx context.Context, params WatchFlowcontrolApiserverV1beta2FlowSchemaParams) (res WatchFlowcontrolApiserverV1beta2FlowSchemaRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchFlowcontrolApiserverV1beta2FlowSchema"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/flowschemas/{name}"), } @@ -92217,7 +92218,7 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta2FlowSchema(ctx context.Cont u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -92285,7 +92286,7 @@ func (c *Client) WatchFlowcontrolApiserverV1beta2FlowSchemaList(ctx context.Cont func (c *Client) sendWatchFlowcontrolApiserverV1beta2FlowSchemaList(ctx context.Context, params WatchFlowcontrolApiserverV1beta2FlowSchemaListParams) (res WatchFlowcontrolApiserverV1beta2FlowSchemaListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchFlowcontrolApiserverV1beta2FlowSchemaList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/flowschemas"), } @@ -92497,7 +92498,7 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta2FlowSchemaList(ctx context. u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -92566,7 +92567,7 @@ func (c *Client) WatchFlowcontrolApiserverV1beta2PriorityLevelConfiguration(ctx func (c *Client) sendWatchFlowcontrolApiserverV1beta2PriorityLevelConfiguration(ctx context.Context, params WatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationParams) (res WatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchFlowcontrolApiserverV1beta2PriorityLevelConfiguration"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/prioritylevelconfigurations/{name}"), } @@ -92796,7 +92797,7 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta2PriorityLevelConfiguration( u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -92864,7 +92865,7 @@ func (c *Client) WatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationList( func (c *Client) sendWatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationList(ctx context.Context, params WatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationListParams) (res WatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchFlowcontrolApiserverV1beta2PriorityLevelConfigurationList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/flowcontrol.apiserver.k8s.io/v1beta2/watch/prioritylevelconfigurations"), } @@ -93076,7 +93077,7 @@ func (c *Client) sendWatchFlowcontrolApiserverV1beta2PriorityLevelConfigurationL u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -93144,7 +93145,7 @@ func (c *Client) WatchInternalApiserverV1alpha1StorageVersion(ctx context.Contex func (c *Client) sendWatchInternalApiserverV1alpha1StorageVersion(ctx context.Context, params WatchInternalApiserverV1alpha1StorageVersionParams) (res WatchInternalApiserverV1alpha1StorageVersionRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchInternalApiserverV1alpha1StorageVersion"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}"), } @@ -93374,7 +93375,7 @@ func (c *Client) sendWatchInternalApiserverV1alpha1StorageVersion(ctx context.Co u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -93442,7 +93443,7 @@ func (c *Client) WatchInternalApiserverV1alpha1StorageVersionList(ctx context.Co func (c *Client) sendWatchInternalApiserverV1alpha1StorageVersionList(ctx context.Context, params WatchInternalApiserverV1alpha1StorageVersionListParams) (res WatchInternalApiserverV1alpha1StorageVersionListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchInternalApiserverV1alpha1StorageVersionList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions"), } @@ -93654,7 +93655,7 @@ func (c *Client) sendWatchInternalApiserverV1alpha1StorageVersionList(ctx contex u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -93722,7 +93723,7 @@ func (c *Client) WatchNetworkingV1IngressClass(ctx context.Context, params Watch func (c *Client) sendWatchNetworkingV1IngressClass(ctx context.Context, params WatchNetworkingV1IngressClassParams) (res WatchNetworkingV1IngressClassRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchNetworkingV1IngressClass"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/networking.k8s.io/v1/watch/ingressclasses/{name}"), } @@ -93952,7 +93953,7 @@ func (c *Client) sendWatchNetworkingV1IngressClass(ctx context.Context, params W u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -94020,7 +94021,7 @@ func (c *Client) WatchNetworkingV1IngressClassList(ctx context.Context, params W func (c *Client) sendWatchNetworkingV1IngressClassList(ctx context.Context, params WatchNetworkingV1IngressClassListParams) (res WatchNetworkingV1IngressClassListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchNetworkingV1IngressClassList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/networking.k8s.io/v1/watch/ingressclasses"), } @@ -94232,7 +94233,7 @@ func (c *Client) sendWatchNetworkingV1IngressClassList(ctx context.Context, para u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -94300,7 +94301,7 @@ func (c *Client) WatchNetworkingV1IngressListForAllNamespaces(ctx context.Contex func (c *Client) sendWatchNetworkingV1IngressListForAllNamespaces(ctx context.Context, params WatchNetworkingV1IngressListForAllNamespacesParams) (res WatchNetworkingV1IngressListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchNetworkingV1IngressListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/networking.k8s.io/v1/watch/ingresses"), } @@ -94512,7 +94513,7 @@ func (c *Client) sendWatchNetworkingV1IngressListForAllNamespaces(ctx context.Co u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -94580,7 +94581,7 @@ func (c *Client) WatchNetworkingV1NamespacedIngress(ctx context.Context, params func (c *Client) sendWatchNetworkingV1NamespacedIngress(ctx context.Context, params WatchNetworkingV1NamespacedIngressParams) (res WatchNetworkingV1NamespacedIngressRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchNetworkingV1NamespacedIngress"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses/{name}"), } @@ -94829,7 +94830,7 @@ func (c *Client) sendWatchNetworkingV1NamespacedIngress(ctx context.Context, par u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -94897,7 +94898,7 @@ func (c *Client) WatchNetworkingV1NamespacedIngressList(ctx context.Context, par func (c *Client) sendWatchNetworkingV1NamespacedIngressList(ctx context.Context, params WatchNetworkingV1NamespacedIngressListParams) (res WatchNetworkingV1NamespacedIngressListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchNetworkingV1NamespacedIngressList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses"), } @@ -95128,7 +95129,7 @@ func (c *Client) sendWatchNetworkingV1NamespacedIngressList(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -95196,7 +95197,7 @@ func (c *Client) WatchNetworkingV1NamespacedNetworkPolicy(ctx context.Context, p func (c *Client) sendWatchNetworkingV1NamespacedNetworkPolicy(ctx context.Context, params WatchNetworkingV1NamespacedNetworkPolicyParams) (res WatchNetworkingV1NamespacedNetworkPolicyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchNetworkingV1NamespacedNetworkPolicy"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}"), } @@ -95445,7 +95446,7 @@ func (c *Client) sendWatchNetworkingV1NamespacedNetworkPolicy(ctx context.Contex u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -95513,7 +95514,7 @@ func (c *Client) WatchNetworkingV1NamespacedNetworkPolicyList(ctx context.Contex func (c *Client) sendWatchNetworkingV1NamespacedNetworkPolicyList(ctx context.Context, params WatchNetworkingV1NamespacedNetworkPolicyListParams) (res WatchNetworkingV1NamespacedNetworkPolicyListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchNetworkingV1NamespacedNetworkPolicyList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies"), } @@ -95744,7 +95745,7 @@ func (c *Client) sendWatchNetworkingV1NamespacedNetworkPolicyList(ctx context.Co u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -95812,7 +95813,7 @@ func (c *Client) WatchNetworkingV1NetworkPolicyListForAllNamespaces(ctx context. func (c *Client) sendWatchNetworkingV1NetworkPolicyListForAllNamespaces(ctx context.Context, params WatchNetworkingV1NetworkPolicyListForAllNamespacesParams) (res WatchNetworkingV1NetworkPolicyListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchNetworkingV1NetworkPolicyListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/networking.k8s.io/v1/watch/networkpolicies"), } @@ -96024,7 +96025,7 @@ func (c *Client) sendWatchNetworkingV1NetworkPolicyListForAllNamespaces(ctx cont u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -96092,7 +96093,7 @@ func (c *Client) WatchNodeV1RuntimeClass(ctx context.Context, params WatchNodeV1 func (c *Client) sendWatchNodeV1RuntimeClass(ctx context.Context, params WatchNodeV1RuntimeClassParams) (res WatchNodeV1RuntimeClassRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchNodeV1RuntimeClass"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/node.k8s.io/v1/watch/runtimeclasses/{name}"), } @@ -96322,7 +96323,7 @@ func (c *Client) sendWatchNodeV1RuntimeClass(ctx context.Context, params WatchNo u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -96390,7 +96391,7 @@ func (c *Client) WatchNodeV1RuntimeClassList(ctx context.Context, params WatchNo func (c *Client) sendWatchNodeV1RuntimeClassList(ctx context.Context, params WatchNodeV1RuntimeClassListParams) (res WatchNodeV1RuntimeClassListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchNodeV1RuntimeClassList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/node.k8s.io/v1/watch/runtimeclasses"), } @@ -96602,7 +96603,7 @@ func (c *Client) sendWatchNodeV1RuntimeClassList(ctx context.Context, params Wat u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -96670,7 +96671,7 @@ func (c *Client) WatchNodeV1alpha1RuntimeClass(ctx context.Context, params Watch func (c *Client) sendWatchNodeV1alpha1RuntimeClass(ctx context.Context, params WatchNodeV1alpha1RuntimeClassParams) (res WatchNodeV1alpha1RuntimeClassRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchNodeV1alpha1RuntimeClass"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/node.k8s.io/v1alpha1/watch/runtimeclasses/{name}"), } @@ -96900,7 +96901,7 @@ func (c *Client) sendWatchNodeV1alpha1RuntimeClass(ctx context.Context, params W u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -96968,7 +96969,7 @@ func (c *Client) WatchNodeV1alpha1RuntimeClassList(ctx context.Context, params W func (c *Client) sendWatchNodeV1alpha1RuntimeClassList(ctx context.Context, params WatchNodeV1alpha1RuntimeClassListParams) (res WatchNodeV1alpha1RuntimeClassListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchNodeV1alpha1RuntimeClassList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/node.k8s.io/v1alpha1/watch/runtimeclasses"), } @@ -97180,7 +97181,7 @@ func (c *Client) sendWatchNodeV1alpha1RuntimeClassList(ctx context.Context, para u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -97248,7 +97249,7 @@ func (c *Client) WatchNodeV1beta1RuntimeClass(ctx context.Context, params WatchN func (c *Client) sendWatchNodeV1beta1RuntimeClass(ctx context.Context, params WatchNodeV1beta1RuntimeClassParams) (res WatchNodeV1beta1RuntimeClassRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchNodeV1beta1RuntimeClass"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/node.k8s.io/v1beta1/watch/runtimeclasses/{name}"), } @@ -97478,7 +97479,7 @@ func (c *Client) sendWatchNodeV1beta1RuntimeClass(ctx context.Context, params Wa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -97546,7 +97547,7 @@ func (c *Client) WatchNodeV1beta1RuntimeClassList(ctx context.Context, params Wa func (c *Client) sendWatchNodeV1beta1RuntimeClassList(ctx context.Context, params WatchNodeV1beta1RuntimeClassListParams) (res WatchNodeV1beta1RuntimeClassListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchNodeV1beta1RuntimeClassList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/node.k8s.io/v1beta1/watch/runtimeclasses"), } @@ -97758,7 +97759,7 @@ func (c *Client) sendWatchNodeV1beta1RuntimeClassList(ctx context.Context, param u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -97826,7 +97827,7 @@ func (c *Client) WatchPolicyV1NamespacedPodDisruptionBudget(ctx context.Context, func (c *Client) sendWatchPolicyV1NamespacedPodDisruptionBudget(ctx context.Context, params WatchPolicyV1NamespacedPodDisruptionBudgetParams) (res WatchPolicyV1NamespacedPodDisruptionBudgetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchPolicyV1NamespacedPodDisruptionBudget"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}"), } @@ -98075,7 +98076,7 @@ func (c *Client) sendWatchPolicyV1NamespacedPodDisruptionBudget(ctx context.Cont u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -98143,7 +98144,7 @@ func (c *Client) WatchPolicyV1NamespacedPodDisruptionBudgetList(ctx context.Cont func (c *Client) sendWatchPolicyV1NamespacedPodDisruptionBudgetList(ctx context.Context, params WatchPolicyV1NamespacedPodDisruptionBudgetListParams) (res WatchPolicyV1NamespacedPodDisruptionBudgetListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchPolicyV1NamespacedPodDisruptionBudgetList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets"), } @@ -98374,7 +98375,7 @@ func (c *Client) sendWatchPolicyV1NamespacedPodDisruptionBudgetList(ctx context. u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -98442,7 +98443,7 @@ func (c *Client) WatchPolicyV1PodDisruptionBudgetListForAllNamespaces(ctx contex func (c *Client) sendWatchPolicyV1PodDisruptionBudgetListForAllNamespaces(ctx context.Context, params WatchPolicyV1PodDisruptionBudgetListForAllNamespacesParams) (res WatchPolicyV1PodDisruptionBudgetListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchPolicyV1PodDisruptionBudgetListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/policy/v1/watch/poddisruptionbudgets"), } @@ -98654,7 +98655,7 @@ func (c *Client) sendWatchPolicyV1PodDisruptionBudgetListForAllNamespaces(ctx co u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -98722,7 +98723,7 @@ func (c *Client) WatchPolicyV1beta1NamespacedPodDisruptionBudget(ctx context.Con func (c *Client) sendWatchPolicyV1beta1NamespacedPodDisruptionBudget(ctx context.Context, params WatchPolicyV1beta1NamespacedPodDisruptionBudgetParams) (res WatchPolicyV1beta1NamespacedPodDisruptionBudgetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchPolicyV1beta1NamespacedPodDisruptionBudget"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}"), } @@ -98971,7 +98972,7 @@ func (c *Client) sendWatchPolicyV1beta1NamespacedPodDisruptionBudget(ctx context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -99039,7 +99040,7 @@ func (c *Client) WatchPolicyV1beta1NamespacedPodDisruptionBudgetList(ctx context func (c *Client) sendWatchPolicyV1beta1NamespacedPodDisruptionBudgetList(ctx context.Context, params WatchPolicyV1beta1NamespacedPodDisruptionBudgetListParams) (res WatchPolicyV1beta1NamespacedPodDisruptionBudgetListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchPolicyV1beta1NamespacedPodDisruptionBudgetList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets"), } @@ -99270,7 +99271,7 @@ func (c *Client) sendWatchPolicyV1beta1NamespacedPodDisruptionBudgetList(ctx con u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -99338,7 +99339,7 @@ func (c *Client) WatchPolicyV1beta1PodDisruptionBudgetListForAllNamespaces(ctx c func (c *Client) sendWatchPolicyV1beta1PodDisruptionBudgetListForAllNamespaces(ctx context.Context, params WatchPolicyV1beta1PodDisruptionBudgetListForAllNamespacesParams) (res WatchPolicyV1beta1PodDisruptionBudgetListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchPolicyV1beta1PodDisruptionBudgetListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/policy/v1beta1/watch/poddisruptionbudgets"), } @@ -99550,7 +99551,7 @@ func (c *Client) sendWatchPolicyV1beta1PodDisruptionBudgetListForAllNamespaces(c u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -99618,7 +99619,7 @@ func (c *Client) WatchPolicyV1beta1PodSecurityPolicy(ctx context.Context, params func (c *Client) sendWatchPolicyV1beta1PodSecurityPolicy(ctx context.Context, params WatchPolicyV1beta1PodSecurityPolicyParams) (res WatchPolicyV1beta1PodSecurityPolicyRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchPolicyV1beta1PodSecurityPolicy"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/policy/v1beta1/watch/podsecuritypolicies/{name}"), } @@ -99848,7 +99849,7 @@ func (c *Client) sendWatchPolicyV1beta1PodSecurityPolicy(ctx context.Context, pa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -99916,7 +99917,7 @@ func (c *Client) WatchPolicyV1beta1PodSecurityPolicyList(ctx context.Context, pa func (c *Client) sendWatchPolicyV1beta1PodSecurityPolicyList(ctx context.Context, params WatchPolicyV1beta1PodSecurityPolicyListParams) (res WatchPolicyV1beta1PodSecurityPolicyListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchPolicyV1beta1PodSecurityPolicyList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/policy/v1beta1/watch/podsecuritypolicies"), } @@ -100128,7 +100129,7 @@ func (c *Client) sendWatchPolicyV1beta1PodSecurityPolicyList(ctx context.Context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -100196,7 +100197,7 @@ func (c *Client) WatchRbacAuthorizationV1ClusterRole(ctx context.Context, params func (c *Client) sendWatchRbacAuthorizationV1ClusterRole(ctx context.Context, params WatchRbacAuthorizationV1ClusterRoleParams) (res WatchRbacAuthorizationV1ClusterRoleRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchRbacAuthorizationV1ClusterRole"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name}"), } @@ -100426,7 +100427,7 @@ func (c *Client) sendWatchRbacAuthorizationV1ClusterRole(ctx context.Context, pa u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -100494,7 +100495,7 @@ func (c *Client) WatchRbacAuthorizationV1ClusterRoleBinding(ctx context.Context, func (c *Client) sendWatchRbacAuthorizationV1ClusterRoleBinding(ctx context.Context, params WatchRbacAuthorizationV1ClusterRoleBindingParams) (res WatchRbacAuthorizationV1ClusterRoleBindingRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchRbacAuthorizationV1ClusterRoleBinding"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}"), } @@ -100724,7 +100725,7 @@ func (c *Client) sendWatchRbacAuthorizationV1ClusterRoleBinding(ctx context.Cont u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -100792,7 +100793,7 @@ func (c *Client) WatchRbacAuthorizationV1ClusterRoleBindingList(ctx context.Cont func (c *Client) sendWatchRbacAuthorizationV1ClusterRoleBindingList(ctx context.Context, params WatchRbacAuthorizationV1ClusterRoleBindingListParams) (res WatchRbacAuthorizationV1ClusterRoleBindingListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchRbacAuthorizationV1ClusterRoleBindingList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings"), } @@ -101004,7 +101005,7 @@ func (c *Client) sendWatchRbacAuthorizationV1ClusterRoleBindingList(ctx context. u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -101072,7 +101073,7 @@ func (c *Client) WatchRbacAuthorizationV1ClusterRoleList(ctx context.Context, pa func (c *Client) sendWatchRbacAuthorizationV1ClusterRoleList(ctx context.Context, params WatchRbacAuthorizationV1ClusterRoleListParams) (res WatchRbacAuthorizationV1ClusterRoleListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchRbacAuthorizationV1ClusterRoleList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/rbac.authorization.k8s.io/v1/watch/clusterroles"), } @@ -101284,7 +101285,7 @@ func (c *Client) sendWatchRbacAuthorizationV1ClusterRoleList(ctx context.Context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -101352,7 +101353,7 @@ func (c *Client) WatchRbacAuthorizationV1NamespacedRole(ctx context.Context, par func (c *Client) sendWatchRbacAuthorizationV1NamespacedRole(ctx context.Context, params WatchRbacAuthorizationV1NamespacedRoleParams) (res WatchRbacAuthorizationV1NamespacedRoleRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchRbacAuthorizationV1NamespacedRole"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{name}"), } @@ -101601,7 +101602,7 @@ func (c *Client) sendWatchRbacAuthorizationV1NamespacedRole(ctx context.Context, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -101669,7 +101670,7 @@ func (c *Client) WatchRbacAuthorizationV1NamespacedRoleBinding(ctx context.Conte func (c *Client) sendWatchRbacAuthorizationV1NamespacedRoleBinding(ctx context.Context, params WatchRbacAuthorizationV1NamespacedRoleBindingParams) (res WatchRbacAuthorizationV1NamespacedRoleBindingRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchRbacAuthorizationV1NamespacedRoleBinding"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings/{name}"), } @@ -101918,7 +101919,7 @@ func (c *Client) sendWatchRbacAuthorizationV1NamespacedRoleBinding(ctx context.C u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -101986,7 +101987,7 @@ func (c *Client) WatchRbacAuthorizationV1NamespacedRoleBindingList(ctx context.C func (c *Client) sendWatchRbacAuthorizationV1NamespacedRoleBindingList(ctx context.Context, params WatchRbacAuthorizationV1NamespacedRoleBindingListParams) (res WatchRbacAuthorizationV1NamespacedRoleBindingListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchRbacAuthorizationV1NamespacedRoleBindingList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings"), } @@ -102217,7 +102218,7 @@ func (c *Client) sendWatchRbacAuthorizationV1NamespacedRoleBindingList(ctx conte u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -102285,7 +102286,7 @@ func (c *Client) WatchRbacAuthorizationV1NamespacedRoleList(ctx context.Context, func (c *Client) sendWatchRbacAuthorizationV1NamespacedRoleList(ctx context.Context, params WatchRbacAuthorizationV1NamespacedRoleListParams) (res WatchRbacAuthorizationV1NamespacedRoleListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchRbacAuthorizationV1NamespacedRoleList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles"), } @@ -102516,7 +102517,7 @@ func (c *Client) sendWatchRbacAuthorizationV1NamespacedRoleList(ctx context.Cont u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -102584,7 +102585,7 @@ func (c *Client) WatchRbacAuthorizationV1RoleBindingListForAllNamespaces(ctx con func (c *Client) sendWatchRbacAuthorizationV1RoleBindingListForAllNamespaces(ctx context.Context, params WatchRbacAuthorizationV1RoleBindingListForAllNamespacesParams) (res WatchRbacAuthorizationV1RoleBindingListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchRbacAuthorizationV1RoleBindingListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/rbac.authorization.k8s.io/v1/watch/rolebindings"), } @@ -102796,7 +102797,7 @@ func (c *Client) sendWatchRbacAuthorizationV1RoleBindingListForAllNamespaces(ctx u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -102864,7 +102865,7 @@ func (c *Client) WatchRbacAuthorizationV1RoleListForAllNamespaces(ctx context.Co func (c *Client) sendWatchRbacAuthorizationV1RoleListForAllNamespaces(ctx context.Context, params WatchRbacAuthorizationV1RoleListForAllNamespacesParams) (res WatchRbacAuthorizationV1RoleListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchRbacAuthorizationV1RoleListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/rbac.authorization.k8s.io/v1/watch/roles"), } @@ -103076,7 +103077,7 @@ func (c *Client) sendWatchRbacAuthorizationV1RoleListForAllNamespaces(ctx contex u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -103144,7 +103145,7 @@ func (c *Client) WatchSchedulingV1PriorityClass(ctx context.Context, params Watc func (c *Client) sendWatchSchedulingV1PriorityClass(ctx context.Context, params WatchSchedulingV1PriorityClassParams) (res WatchSchedulingV1PriorityClassRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchSchedulingV1PriorityClass"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}"), } @@ -103374,7 +103375,7 @@ func (c *Client) sendWatchSchedulingV1PriorityClass(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -103442,7 +103443,7 @@ func (c *Client) WatchSchedulingV1PriorityClassList(ctx context.Context, params func (c *Client) sendWatchSchedulingV1PriorityClassList(ctx context.Context, params WatchSchedulingV1PriorityClassListParams) (res WatchSchedulingV1PriorityClassListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchSchedulingV1PriorityClassList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/scheduling.k8s.io/v1/watch/priorityclasses"), } @@ -103654,7 +103655,7 @@ func (c *Client) sendWatchSchedulingV1PriorityClassList(ctx context.Context, par u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -103722,7 +103723,7 @@ func (c *Client) WatchStorageV1CSIDriver(ctx context.Context, params WatchStorag func (c *Client) sendWatchStorageV1CSIDriver(ctx context.Context, params WatchStorageV1CSIDriverParams) (res WatchStorageV1CSIDriverRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchStorageV1CSIDriver"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1/watch/csidrivers/{name}"), } @@ -103952,7 +103953,7 @@ func (c *Client) sendWatchStorageV1CSIDriver(ctx context.Context, params WatchSt u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -104020,7 +104021,7 @@ func (c *Client) WatchStorageV1CSIDriverList(ctx context.Context, params WatchSt func (c *Client) sendWatchStorageV1CSIDriverList(ctx context.Context, params WatchStorageV1CSIDriverListParams) (res WatchStorageV1CSIDriverListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchStorageV1CSIDriverList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1/watch/csidrivers"), } @@ -104232,7 +104233,7 @@ func (c *Client) sendWatchStorageV1CSIDriverList(ctx context.Context, params Wat u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -104300,7 +104301,7 @@ func (c *Client) WatchStorageV1CSINode(ctx context.Context, params WatchStorageV func (c *Client) sendWatchStorageV1CSINode(ctx context.Context, params WatchStorageV1CSINodeParams) (res WatchStorageV1CSINodeRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchStorageV1CSINode"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1/watch/csinodes/{name}"), } @@ -104530,7 +104531,7 @@ func (c *Client) sendWatchStorageV1CSINode(ctx context.Context, params WatchStor u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -104598,7 +104599,7 @@ func (c *Client) WatchStorageV1CSINodeList(ctx context.Context, params WatchStor func (c *Client) sendWatchStorageV1CSINodeList(ctx context.Context, params WatchStorageV1CSINodeListParams) (res WatchStorageV1CSINodeListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchStorageV1CSINodeList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1/watch/csinodes"), } @@ -104810,7 +104811,7 @@ func (c *Client) sendWatchStorageV1CSINodeList(ctx context.Context, params Watch u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -104878,7 +104879,7 @@ func (c *Client) WatchStorageV1StorageClass(ctx context.Context, params WatchSto func (c *Client) sendWatchStorageV1StorageClass(ctx context.Context, params WatchStorageV1StorageClassParams) (res WatchStorageV1StorageClassRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchStorageV1StorageClass"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1/watch/storageclasses/{name}"), } @@ -105108,7 +105109,7 @@ func (c *Client) sendWatchStorageV1StorageClass(ctx context.Context, params Watc u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -105176,7 +105177,7 @@ func (c *Client) WatchStorageV1StorageClassList(ctx context.Context, params Watc func (c *Client) sendWatchStorageV1StorageClassList(ctx context.Context, params WatchStorageV1StorageClassListParams) (res WatchStorageV1StorageClassListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchStorageV1StorageClassList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1/watch/storageclasses"), } @@ -105388,7 +105389,7 @@ func (c *Client) sendWatchStorageV1StorageClassList(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -105456,7 +105457,7 @@ func (c *Client) WatchStorageV1VolumeAttachment(ctx context.Context, params Watc func (c *Client) sendWatchStorageV1VolumeAttachment(ctx context.Context, params WatchStorageV1VolumeAttachmentParams) (res WatchStorageV1VolumeAttachmentRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchStorageV1VolumeAttachment"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1/watch/volumeattachments/{name}"), } @@ -105686,7 +105687,7 @@ func (c *Client) sendWatchStorageV1VolumeAttachment(ctx context.Context, params u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -105754,7 +105755,7 @@ func (c *Client) WatchStorageV1VolumeAttachmentList(ctx context.Context, params func (c *Client) sendWatchStorageV1VolumeAttachmentList(ctx context.Context, params WatchStorageV1VolumeAttachmentListParams) (res WatchStorageV1VolumeAttachmentListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchStorageV1VolumeAttachmentList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1/watch/volumeattachments"), } @@ -105966,7 +105967,7 @@ func (c *Client) sendWatchStorageV1VolumeAttachmentList(ctx context.Context, par u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -106034,7 +106035,7 @@ func (c *Client) WatchStorageV1alpha1CSIStorageCapacityListForAllNamespaces(ctx func (c *Client) sendWatchStorageV1alpha1CSIStorageCapacityListForAllNamespaces(ctx context.Context, params WatchStorageV1alpha1CSIStorageCapacityListForAllNamespacesParams) (res WatchStorageV1alpha1CSIStorageCapacityListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchStorageV1alpha1CSIStorageCapacityListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1alpha1/watch/csistoragecapacities"), } @@ -106246,7 +106247,7 @@ func (c *Client) sendWatchStorageV1alpha1CSIStorageCapacityListForAllNamespaces( u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -106314,7 +106315,7 @@ func (c *Client) WatchStorageV1alpha1NamespacedCSIStorageCapacity(ctx context.Co func (c *Client) sendWatchStorageV1alpha1NamespacedCSIStorageCapacity(ctx context.Context, params WatchStorageV1alpha1NamespacedCSIStorageCapacityParams) (res WatchStorageV1alpha1NamespacedCSIStorageCapacityRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchStorageV1alpha1NamespacedCSIStorageCapacity"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1alpha1/watch/namespaces/{namespace}/csistoragecapacities/{name}"), } @@ -106563,7 +106564,7 @@ func (c *Client) sendWatchStorageV1alpha1NamespacedCSIStorageCapacity(ctx contex u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -106631,7 +106632,7 @@ func (c *Client) WatchStorageV1alpha1NamespacedCSIStorageCapacityList(ctx contex func (c *Client) sendWatchStorageV1alpha1NamespacedCSIStorageCapacityList(ctx context.Context, params WatchStorageV1alpha1NamespacedCSIStorageCapacityListParams) (res WatchStorageV1alpha1NamespacedCSIStorageCapacityListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchStorageV1alpha1NamespacedCSIStorageCapacityList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1alpha1/watch/namespaces/{namespace}/csistoragecapacities"), } @@ -106862,7 +106863,7 @@ func (c *Client) sendWatchStorageV1alpha1NamespacedCSIStorageCapacityList(ctx co u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -106930,7 +106931,7 @@ func (c *Client) WatchStorageV1beta1CSIStorageCapacityListForAllNamespaces(ctx c func (c *Client) sendWatchStorageV1beta1CSIStorageCapacityListForAllNamespaces(ctx context.Context, params WatchStorageV1beta1CSIStorageCapacityListForAllNamespacesParams) (res WatchStorageV1beta1CSIStorageCapacityListForAllNamespacesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchStorageV1beta1CSIStorageCapacityListForAllNamespaces"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1beta1/watch/csistoragecapacities"), } @@ -107142,7 +107143,7 @@ func (c *Client) sendWatchStorageV1beta1CSIStorageCapacityListForAllNamespaces(c u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -107210,7 +107211,7 @@ func (c *Client) WatchStorageV1beta1NamespacedCSIStorageCapacity(ctx context.Con func (c *Client) sendWatchStorageV1beta1NamespacedCSIStorageCapacity(ctx context.Context, params WatchStorageV1beta1NamespacedCSIStorageCapacityParams) (res WatchStorageV1beta1NamespacedCSIStorageCapacityRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchStorageV1beta1NamespacedCSIStorageCapacity"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1beta1/watch/namespaces/{namespace}/csistoragecapacities/{name}"), } @@ -107459,7 +107460,7 @@ func (c *Client) sendWatchStorageV1beta1NamespacedCSIStorageCapacity(ctx context u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -107527,7 +107528,7 @@ func (c *Client) WatchStorageV1beta1NamespacedCSIStorageCapacityList(ctx context func (c *Client) sendWatchStorageV1beta1NamespacedCSIStorageCapacityList(ctx context.Context, params WatchStorageV1beta1NamespacedCSIStorageCapacityListParams) (res WatchStorageV1beta1NamespacedCSIStorageCapacityListRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("watchStorageV1beta1NamespacedCSIStorageCapacityList"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/apis/storage.k8s.io/v1beta1/watch/namespaces/{namespace}/csistoragecapacities"), } @@ -107758,7 +107759,7 @@ func (c *Client) sendWatchStorageV1beta1NamespacedCSIStorageCapacityList(ctx con u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/examples/ex_manga/oas_client_gen.go b/examples/ex_manga/oas_client_gen.go index bea336959..a7a129b9a 100644 --- a/examples/ex_manga/oas_client_gen.go +++ b/examples/ex_manga/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -122,7 +123,7 @@ func (c *Client) GetBook(ctx context.Context, params GetBookParams) (GetBookRes, func (c *Client) sendGetBook(ctx context.Context, params GetBookParams) (res GetBookRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getBook"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/gallery/{book_id}"), } @@ -178,7 +179,7 @@ func (c *Client) sendGetBook(ctx context.Context, params GetBookParams) (res Get uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -212,7 +213,7 @@ func (c *Client) GetPageCoverImage(ctx context.Context, params GetPageCoverImage func (c *Client) sendGetPageCoverImage(ctx context.Context, params GetPageCoverImageParams) (res GetPageCoverImageRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getPageCoverImage"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/galleries/{media_id}/cover.{format}"), } @@ -287,7 +288,7 @@ func (c *Client) sendGetPageCoverImage(ctx context.Context, params GetPageCoverI uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -321,7 +322,7 @@ func (c *Client) GetPageImage(ctx context.Context, params GetPageImageParams) (G func (c *Client) sendGetPageImage(ctx context.Context, params GetPageImageParams) (res GetPageImageRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getPageImage"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/galleries/{media_id}/{page}.{format}"), } @@ -415,7 +416,7 @@ func (c *Client) sendGetPageImage(ctx context.Context, params GetPageImageParams uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -449,7 +450,7 @@ func (c *Client) GetPageThumbnailImage(ctx context.Context, params GetPageThumbn func (c *Client) sendGetPageThumbnailImage(ctx context.Context, params GetPageThumbnailImageParams) (res GetPageThumbnailImageRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getPageThumbnailImage"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/galleries/{media_id}/{page}t.{format}"), } @@ -543,7 +544,7 @@ func (c *Client) sendGetPageThumbnailImage(ctx context.Context, params GetPageTh uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -577,7 +578,7 @@ func (c *Client) Search(ctx context.Context, params SearchParams) (SearchRes, er func (c *Client) sendSearch(ctx context.Context, params SearchParams) (res SearchRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("search"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/galleries/search"), } @@ -650,7 +651,7 @@ func (c *Client) sendSearch(ctx context.Context, params SearchParams) (res Searc u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -684,7 +685,7 @@ func (c *Client) SearchByTagID(ctx context.Context, params SearchByTagIDParams) func (c *Client) sendSearchByTagID(ctx context.Context, params SearchByTagIDParams) (res SearchByTagIDRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("searchByTagID"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/api/galleries/tagged"), } @@ -757,7 +758,7 @@ func (c *Client) sendSearchByTagID(ctx context.Context, params SearchByTagIDPara u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/examples/ex_oauth2/oas_client_gen.go b/examples/ex_oauth2/oas_client_gen.go index f004bbe14..c23ab9900 100644 --- a/examples/ex_oauth2/oas_client_gen.go +++ b/examples/ex_oauth2/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -133,7 +134,7 @@ func (c *Client) AddPet(ctx context.Context, request *NewPet) (*Pet, error) { func (c *Client) sendAddPet(ctx context.Context, request *NewPet) (res *Pet, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("addPet"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/pets"), } @@ -171,7 +172,7 @@ func (c *Client) sendAddPet(ctx context.Context, request *NewPet) (res *Pet, err uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -241,7 +242,7 @@ func (c *Client) DeletePet(ctx context.Context, params DeletePetParams) error { func (c *Client) sendDeletePet(ctx context.Context, params DeletePetParams) (res *DeletePetNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("deletePet"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/pets/{id}"), } @@ -297,7 +298,7 @@ func (c *Client) sendDeletePet(ctx context.Context, params DeletePetParams) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -364,7 +365,7 @@ func (c *Client) FindPetByID(ctx context.Context, params FindPetByIDParams) (*Pe func (c *Client) sendFindPetByID(ctx context.Context, params FindPetByIDParams) (res *Pet, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("find pet by id"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/pets/{id}"), } @@ -420,7 +421,7 @@ func (c *Client) sendFindPetByID(ctx context.Context, params FindPetByIDParams) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -505,7 +506,7 @@ func (c *Client) FindPets(ctx context.Context, params FindPetsParams) ([]Pet, er func (c *Client) sendFindPets(ctx context.Context, params FindPetsParams) (res []Pet, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("findPets"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/pets"), } @@ -587,7 +588,7 @@ func (c *Client) sendFindPets(ctx context.Context, params FindPetsParams) (res [ u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/examples/ex_openai/oas_client_gen.go b/examples/ex_openai/oas_client_gen.go index 0a970d8d4..7811be34b 100644 --- a/examples/ex_openai/oas_client_gen.go +++ b/examples/ex_openai/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -290,7 +291,7 @@ func (c *Client) CancelFineTune(ctx context.Context, params CancelFineTuneParams func (c *Client) sendCancelFineTune(ctx context.Context, params CancelFineTuneParams) (res FineTune, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("cancelFineTune"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/fine-tunes/{fine_tune_id}/cancel"), } @@ -347,7 +348,7 @@ func (c *Client) sendCancelFineTune(ctx context.Context, params CancelFineTunePa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -386,7 +387,7 @@ func (c *Client) CreateAnswer(ctx context.Context, request *CreateAnswerRequest) func (c *Client) sendCreateAnswer(ctx context.Context, request *CreateAnswerRequest) (res *CreateAnswerResponse, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("createAnswer"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/answers"), } // Validate request before sending. @@ -433,7 +434,7 @@ func (c *Client) sendCreateAnswer(ctx context.Context, request *CreateAnswerRequ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -470,7 +471,7 @@ func (c *Client) CreateChatCompletion(ctx context.Context, request *CreateChatCo func (c *Client) sendCreateChatCompletion(ctx context.Context, request *CreateChatCompletionRequest) (res *CreateChatCompletionResponse, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("createChatCompletion"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/chat/completions"), } // Validate request before sending. @@ -517,7 +518,7 @@ func (c *Client) sendCreateChatCompletion(ctx context.Context, request *CreateCh uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -562,7 +563,7 @@ func (c *Client) CreateClassification(ctx context.Context, request *CreateClassi func (c *Client) sendCreateClassification(ctx context.Context, request *CreateClassificationRequest) (res *CreateClassificationResponse, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("createClassification"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/classifications"), } // Validate request before sending. @@ -609,7 +610,7 @@ func (c *Client) sendCreateClassification(ctx context.Context, request *CreateCl uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -646,7 +647,7 @@ func (c *Client) CreateCompletion(ctx context.Context, request *CreateCompletion func (c *Client) sendCreateCompletion(ctx context.Context, request *CreateCompletionRequest) (res *CreateCompletionResponse, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("createCompletion"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/completions"), } // Validate request before sending. @@ -693,7 +694,7 @@ func (c *Client) sendCreateCompletion(ctx context.Context, request *CreateComple uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -730,7 +731,7 @@ func (c *Client) CreateEdit(ctx context.Context, request *CreateEditRequest) (*C func (c *Client) sendCreateEdit(ctx context.Context, request *CreateEditRequest) (res *CreateEditResponse, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("createEdit"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/edits"), } // Validate request before sending. @@ -777,7 +778,7 @@ func (c *Client) sendCreateEdit(ctx context.Context, request *CreateEditRequest) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -814,7 +815,7 @@ func (c *Client) CreateEmbedding(ctx context.Context, request *CreateEmbeddingRe func (c *Client) sendCreateEmbedding(ctx context.Context, request *CreateEmbeddingRequest) (res *CreateEmbeddingResponse, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("createEmbedding"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/embeddings"), } // Validate request before sending. @@ -861,7 +862,7 @@ func (c *Client) sendCreateEmbedding(ctx context.Context, request *CreateEmbeddi uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -900,7 +901,7 @@ func (c *Client) CreateFile(ctx context.Context, request *CreateFileRequestMulti func (c *Client) sendCreateFile(ctx context.Context, request *CreateFileRequestMultipart) (res OpenAIFile, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("createFile"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/files"), } @@ -938,7 +939,7 @@ func (c *Client) sendCreateFile(ctx context.Context, request *CreateFileRequestM uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -978,7 +979,7 @@ func (c *Client) CreateFineTune(ctx context.Context, request *CreateFineTuneRequ func (c *Client) sendCreateFineTune(ctx context.Context, request *CreateFineTuneRequest) (res FineTune, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("createFineTune"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/fine-tunes"), } // Validate request before sending. @@ -1025,7 +1026,7 @@ func (c *Client) sendCreateFineTune(ctx context.Context, request *CreateFineTune uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1062,7 +1063,7 @@ func (c *Client) CreateImage(ctx context.Context, request *CreateImageRequest) ( func (c *Client) sendCreateImage(ctx context.Context, request *CreateImageRequest) (res ImagesResponse, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("createImage"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/images/generations"), } // Validate request before sending. @@ -1109,7 +1110,7 @@ func (c *Client) sendCreateImage(ctx context.Context, request *CreateImageReques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1146,7 +1147,7 @@ func (c *Client) CreateImageEdit(ctx context.Context, request *CreateImageEditRe func (c *Client) sendCreateImageEdit(ctx context.Context, request *CreateImageEditRequestMultipart) (res ImagesResponse, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("createImageEdit"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/images/edits"), } // Validate request before sending. @@ -1193,7 +1194,7 @@ func (c *Client) sendCreateImageEdit(ctx context.Context, request *CreateImageEd uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1230,7 +1231,7 @@ func (c *Client) CreateImageVariation(ctx context.Context, request *CreateImageV func (c *Client) sendCreateImageVariation(ctx context.Context, request *CreateImageVariationRequestMultipart) (res ImagesResponse, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("createImageVariation"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/images/variations"), } // Validate request before sending. @@ -1277,7 +1278,7 @@ func (c *Client) sendCreateImageVariation(ctx context.Context, request *CreateIm uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1314,7 +1315,7 @@ func (c *Client) CreateModeration(ctx context.Context, request *CreateModeration func (c *Client) sendCreateModeration(ctx context.Context, request *CreateModerationRequest) (res *CreateModerationResponse, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("createModeration"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/moderations"), } // Validate request before sending. @@ -1361,7 +1362,7 @@ func (c *Client) sendCreateModeration(ctx context.Context, request *CreateModera uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1407,7 +1408,7 @@ func (c *Client) CreateSearch(ctx context.Context, request *CreateSearchRequest, func (c *Client) sendCreateSearch(ctx context.Context, request *CreateSearchRequest, params CreateSearchParams) (res *CreateSearchResponse, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("createSearch"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/engines/{engine_id}/search"), } // Validate request before sending. @@ -1473,7 +1474,7 @@ func (c *Client) sendCreateSearch(ctx context.Context, request *CreateSearchRequ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1510,7 +1511,7 @@ func (c *Client) CreateTranscription(ctx context.Context, request *CreateTranscr func (c *Client) sendCreateTranscription(ctx context.Context, request *CreateTranscriptionRequestMultipart) (res *CreateTranscriptionResponse, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("createTranscription"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/audio/transcriptions"), } // Validate request before sending. @@ -1557,7 +1558,7 @@ func (c *Client) sendCreateTranscription(ctx context.Context, request *CreateTra uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1594,7 +1595,7 @@ func (c *Client) CreateTranslation(ctx context.Context, request *CreateTranslati func (c *Client) sendCreateTranslation(ctx context.Context, request *CreateTranslationRequestMultipart) (res *CreateTranslationResponse, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("createTranslation"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/audio/translations"), } // Validate request before sending. @@ -1641,7 +1642,7 @@ func (c *Client) sendCreateTranslation(ctx context.Context, request *CreateTrans uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1678,7 +1679,7 @@ func (c *Client) DeleteFile(ctx context.Context, params DeleteFileParams) (*Dele func (c *Client) sendDeleteFile(ctx context.Context, params DeleteFileParams) (res *DeleteFileResponse, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("deleteFile"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/files/{file_id}"), } @@ -1734,7 +1735,7 @@ func (c *Client) sendDeleteFile(ctx context.Context, params DeleteFileParams) (r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1768,7 +1769,7 @@ func (c *Client) DeleteModel(ctx context.Context, params DeleteModelParams) (*De func (c *Client) sendDeleteModel(ctx context.Context, params DeleteModelParams) (res *DeleteModelResponse, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("deleteModel"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/models/{model}"), } @@ -1824,7 +1825,7 @@ func (c *Client) sendDeleteModel(ctx context.Context, params DeleteModelParams) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1858,7 +1859,7 @@ func (c *Client) DownloadFile(ctx context.Context, params DownloadFileParams) (s func (c *Client) sendDownloadFile(ctx context.Context, params DownloadFileParams) (res string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("downloadFile"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/files/{file_id}/content"), } @@ -1915,7 +1916,7 @@ func (c *Client) sendDownloadFile(ctx context.Context, params DownloadFileParams uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1952,7 +1953,7 @@ func (c *Client) ListEngines(ctx context.Context) (*ListEnginesResponse, error) func (c *Client) sendListEngines(ctx context.Context) (res *ListEnginesResponse, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listEngines"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/engines"), } @@ -1990,7 +1991,7 @@ func (c *Client) sendListEngines(ctx context.Context) (res *ListEnginesResponse, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2024,7 +2025,7 @@ func (c *Client) ListFiles(ctx context.Context) (*ListFilesResponse, error) { func (c *Client) sendListFiles(ctx context.Context) (res *ListFilesResponse, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listFiles"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/files"), } @@ -2062,7 +2063,7 @@ func (c *Client) sendListFiles(ctx context.Context) (res *ListFilesResponse, err uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2096,7 +2097,7 @@ func (c *Client) ListFineTuneEvents(ctx context.Context, params ListFineTuneEven func (c *Client) sendListFineTuneEvents(ctx context.Context, params ListFineTuneEventsParams) (res *ListFineTuneEventsResponse, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listFineTuneEvents"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/fine-tunes/{fine_tune_id}/events"), } @@ -2174,7 +2175,7 @@ func (c *Client) sendListFineTuneEvents(ctx context.Context, params ListFineTune u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2208,7 +2209,7 @@ func (c *Client) ListFineTunes(ctx context.Context) (*ListFineTunesResponse, err func (c *Client) sendListFineTunes(ctx context.Context) (res *ListFineTunesResponse, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listFineTunes"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/fine-tunes"), } @@ -2246,7 +2247,7 @@ func (c *Client) sendListFineTunes(ctx context.Context) (res *ListFineTunesRespo uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2281,7 +2282,7 @@ func (c *Client) ListModels(ctx context.Context) (*ListModelsResponse, error) { func (c *Client) sendListModels(ctx context.Context) (res *ListModelsResponse, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listModels"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/models"), } @@ -2319,7 +2320,7 @@ func (c *Client) sendListModels(ctx context.Context) (res *ListModelsResponse, e uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2356,7 +2357,7 @@ func (c *Client) RetrieveEngine(ctx context.Context, params RetrieveEngineParams func (c *Client) sendRetrieveEngine(ctx context.Context, params RetrieveEngineParams) (res Engine, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("retrieveEngine"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/engines/{engine_id}"), } @@ -2412,7 +2413,7 @@ func (c *Client) sendRetrieveEngine(ctx context.Context, params RetrieveEnginePa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2446,7 +2447,7 @@ func (c *Client) RetrieveFile(ctx context.Context, params RetrieveFileParams) (O func (c *Client) sendRetrieveFile(ctx context.Context, params RetrieveFileParams) (res OpenAIFile, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("retrieveFile"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/files/{file_id}"), } @@ -2502,7 +2503,7 @@ func (c *Client) sendRetrieveFile(ctx context.Context, params RetrieveFileParams uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2537,7 +2538,7 @@ func (c *Client) RetrieveFineTune(ctx context.Context, params RetrieveFineTunePa func (c *Client) sendRetrieveFineTune(ctx context.Context, params RetrieveFineTuneParams) (res FineTune, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("retrieveFineTune"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/fine-tunes/{fine_tune_id}"), } @@ -2593,7 +2594,7 @@ func (c *Client) sendRetrieveFineTune(ctx context.Context, params RetrieveFineTu uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2628,7 +2629,7 @@ func (c *Client) RetrieveModel(ctx context.Context, params RetrieveModelParams) func (c *Client) sendRetrieveModel(ctx context.Context, params RetrieveModelParams) (res Model, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("retrieveModel"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/models/{model}"), } @@ -2684,7 +2685,7 @@ func (c *Client) sendRetrieveModel(ctx context.Context, params RetrieveModelPara uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/examples/ex_petstore/oas_client_gen.go b/examples/ex_petstore/oas_client_gen.go index 7ff9d771d..d3c728a34 100644 --- a/examples/ex_petstore/oas_client_gen.go +++ b/examples/ex_petstore/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -108,7 +109,7 @@ func (c *Client) CreatePets(ctx context.Context) error { func (c *Client) sendCreatePets(ctx context.Context) (res *CreatePetsCreated, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("createPets"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/pets"), } @@ -146,7 +147,7 @@ func (c *Client) sendCreatePets(ctx context.Context) (res *CreatePetsCreated, er uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -180,7 +181,7 @@ func (c *Client) ListPets(ctx context.Context, params ListPetsParams) (*PetsHead func (c *Client) sendListPets(ctx context.Context, params ListPetsParams) (res *PetsHeaders, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("listPets"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/pets"), } @@ -239,7 +240,7 @@ func (c *Client) sendListPets(ctx context.Context, params ListPetsParams) (res * u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -273,7 +274,7 @@ func (c *Client) ShowPetById(ctx context.Context, params ShowPetByIdParams) (*Pe func (c *Client) sendShowPetById(ctx context.Context, params ShowPetByIdParams) (res *Pet, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("showPetById"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/pets/{petId}"), } @@ -329,7 +330,7 @@ func (c *Client) sendShowPetById(ctx context.Context, params ShowPetByIdParams) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/examples/ex_petstore_expanded/oas_client_gen.go b/examples/ex_petstore_expanded/oas_client_gen.go index 48c3598d4..bbf8a4df9 100644 --- a/examples/ex_petstore_expanded/oas_client_gen.go +++ b/examples/ex_petstore_expanded/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -130,7 +131,7 @@ func (c *Client) AddPet(ctx context.Context, request *NewPet) (*Pet, error) { func (c *Client) sendAddPet(ctx context.Context, request *NewPet) (res *Pet, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("addPet"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/pets"), } @@ -168,7 +169,7 @@ func (c *Client) sendAddPet(ctx context.Context, request *NewPet) (res *Pet, err uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -205,7 +206,7 @@ func (c *Client) DeletePet(ctx context.Context, params DeletePetParams) error { func (c *Client) sendDeletePet(ctx context.Context, params DeletePetParams) (res *DeletePetNoContent, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("deletePet"), - semconv.HTTPMethodKey.String("DELETE"), + semconv.HTTPMethodKey.String(http.MethodDelete), semconv.HTTPRouteKey.String("/pets/{id}"), } @@ -261,7 +262,7 @@ func (c *Client) sendDeletePet(ctx context.Context, params DeletePetParams) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -295,7 +296,7 @@ func (c *Client) FindPetByID(ctx context.Context, params FindPetByIDParams) (*Pe func (c *Client) sendFindPetByID(ctx context.Context, params FindPetByIDParams) (res *Pet, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("find pet by id"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/pets/{id}"), } @@ -351,7 +352,7 @@ func (c *Client) sendFindPetByID(ctx context.Context, params FindPetByIDParams) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -403,7 +404,7 @@ func (c *Client) FindPets(ctx context.Context, params FindPetsParams) ([]Pet, er func (c *Client) sendFindPets(ctx context.Context, params FindPetsParams) (res []Pet, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("findPets"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/pets"), } @@ -485,7 +486,7 @@ func (c *Client) sendFindPets(ctx context.Context, params FindPetsParams) (res [ u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/examples/ex_route_params/oas_client_gen.go b/examples/ex_route_params/oas_client_gen.go index 27142fc2c..d3ecd9d09 100644 --- a/examples/ex_route_params/oas_client_gen.go +++ b/examples/ex_route_params/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -104,7 +105,7 @@ func (c *Client) DataGet(ctx context.Context, params DataGetParams) (string, err func (c *Client) sendDataGet(ctx context.Context, params DataGetParams) (res string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("dataGet"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/name/{id}/{key}"), } @@ -179,7 +180,7 @@ func (c *Client) sendDataGet(ctx context.Context, params DataGetParams) (res str uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -213,7 +214,7 @@ func (c *Client) DataGetAny(ctx context.Context) (string, error) { func (c *Client) sendDataGetAny(ctx context.Context) (res string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("dataGetAny"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/name"), } @@ -251,7 +252,7 @@ func (c *Client) sendDataGetAny(ctx context.Context) (res string, err error) { uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -285,7 +286,7 @@ func (c *Client) DataGetID(ctx context.Context, params DataGetIDParams) (string, func (c *Client) sendDataGetID(ctx context.Context, params DataGetIDParams) (res string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("dataGetID"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/name/{id}"), } @@ -341,7 +342,7 @@ func (c *Client) sendDataGetID(ctx context.Context, params DataGetIDParams) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/examples/ex_telegram/oas_client_gen.go b/examples/ex_telegram/oas_client_gen.go index 698df2514..834cd2641 100644 --- a/examples/ex_telegram/oas_client_gen.go +++ b/examples/ex_telegram/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -415,7 +416,7 @@ func (c *Client) AddStickerToSet(ctx context.Context, request *AddStickerToSet) func (c *Client) sendAddStickerToSet(ctx context.Context, request *AddStickerToSet) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("addStickerToSet"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/addStickerToSet"), } // Validate request before sending. @@ -462,7 +463,7 @@ func (c *Client) sendAddStickerToSet(ctx context.Context, request *AddStickerToS uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -497,7 +498,7 @@ func (c *Client) AnswerCallbackQuery(ctx context.Context, request *AnswerCallbac func (c *Client) sendAnswerCallbackQuery(ctx context.Context, request *AnswerCallbackQuery) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("answerCallbackQuery"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/answerCallbackQuery"), } // Validate request before sending. @@ -544,7 +545,7 @@ func (c *Client) sendAnswerCallbackQuery(ctx context.Context, request *AnswerCal uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -579,7 +580,7 @@ func (c *Client) AnswerInlineQuery(ctx context.Context, request *AnswerInlineQue func (c *Client) sendAnswerInlineQuery(ctx context.Context, request *AnswerInlineQuery) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("answerInlineQuery"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/answerInlineQuery"), } // Validate request before sending. @@ -626,7 +627,7 @@ func (c *Client) sendAnswerInlineQuery(ctx context.Context, request *AnswerInlin uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -661,7 +662,7 @@ func (c *Client) AnswerPreCheckoutQuery(ctx context.Context, request *AnswerPreC func (c *Client) sendAnswerPreCheckoutQuery(ctx context.Context, request *AnswerPreCheckoutQuery) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("answerPreCheckoutQuery"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/answerPreCheckoutQuery"), } @@ -699,7 +700,7 @@ func (c *Client) sendAnswerPreCheckoutQuery(ctx context.Context, request *Answer uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -734,7 +735,7 @@ func (c *Client) AnswerShippingQuery(ctx context.Context, request *AnswerShippin func (c *Client) sendAnswerShippingQuery(ctx context.Context, request *AnswerShippingQuery) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("answerShippingQuery"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/answerShippingQuery"), } // Validate request before sending. @@ -781,7 +782,7 @@ func (c *Client) sendAnswerShippingQuery(ctx context.Context, request *AnswerShi uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -816,7 +817,7 @@ func (c *Client) ApproveChatJoinRequest(ctx context.Context, request *ApproveCha func (c *Client) sendApproveChatJoinRequest(ctx context.Context, request *ApproveChatJoinRequest) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("approveChatJoinRequest"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/approveChatJoinRequest"), } @@ -854,7 +855,7 @@ func (c *Client) sendApproveChatJoinRequest(ctx context.Context, request *Approv uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -889,7 +890,7 @@ func (c *Client) BanChatMember(ctx context.Context, request *BanChatMember) (*Re func (c *Client) sendBanChatMember(ctx context.Context, request *BanChatMember) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("banChatMember"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/banChatMember"), } @@ -927,7 +928,7 @@ func (c *Client) sendBanChatMember(ctx context.Context, request *BanChatMember) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -962,7 +963,7 @@ func (c *Client) BanChatSenderChat(ctx context.Context, request *BanChatSenderCh func (c *Client) sendBanChatSenderChat(ctx context.Context, request *BanChatSenderChat) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("banChatSenderChat"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/banChatSenderChat"), } @@ -1000,7 +1001,7 @@ func (c *Client) sendBanChatSenderChat(ctx context.Context, request *BanChatSend uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1035,7 +1036,7 @@ func (c *Client) Close(ctx context.Context) (*Result, error) { func (c *Client) sendClose(ctx context.Context) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("close"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/close"), } @@ -1073,7 +1074,7 @@ func (c *Client) sendClose(ctx context.Context) (res *Result, err error) { uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1105,7 +1106,7 @@ func (c *Client) CopyMessage(ctx context.Context, request *CopyMessage) (*Result func (c *Client) sendCopyMessage(ctx context.Context, request *CopyMessage) (res *ResultMessageId, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("copyMessage"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/copyMessage"), } // Validate request before sending. @@ -1152,7 +1153,7 @@ func (c *Client) sendCopyMessage(ctx context.Context, request *CopyMessage) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1187,7 +1188,7 @@ func (c *Client) CreateChatInviteLink(ctx context.Context, request *CreateChatIn func (c *Client) sendCreateChatInviteLink(ctx context.Context, request *CreateChatInviteLink) (res *ResultChatInviteLink, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("createChatInviteLink"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/createChatInviteLink"), } // Validate request before sending. @@ -1234,7 +1235,7 @@ func (c *Client) sendCreateChatInviteLink(ctx context.Context, request *CreateCh uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1269,7 +1270,7 @@ func (c *Client) CreateNewStickerSet(ctx context.Context, request *CreateNewStic func (c *Client) sendCreateNewStickerSet(ctx context.Context, request *CreateNewStickerSet) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("createNewStickerSet"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/createNewStickerSet"), } // Validate request before sending. @@ -1316,7 +1317,7 @@ func (c *Client) sendCreateNewStickerSet(ctx context.Context, request *CreateNew uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1351,7 +1352,7 @@ func (c *Client) DeclineChatJoinRequest(ctx context.Context, request *DeclineCha func (c *Client) sendDeclineChatJoinRequest(ctx context.Context, request *DeclineChatJoinRequest) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("declineChatJoinRequest"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/declineChatJoinRequest"), } @@ -1389,7 +1390,7 @@ func (c *Client) sendDeclineChatJoinRequest(ctx context.Context, request *Declin uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1424,7 +1425,7 @@ func (c *Client) DeleteChatPhoto(ctx context.Context, request *DeleteChatPhoto) func (c *Client) sendDeleteChatPhoto(ctx context.Context, request *DeleteChatPhoto) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("deleteChatPhoto"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/deleteChatPhoto"), } @@ -1462,7 +1463,7 @@ func (c *Client) sendDeleteChatPhoto(ctx context.Context, request *DeleteChatPho uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1497,7 +1498,7 @@ func (c *Client) DeleteChatStickerSet(ctx context.Context, request *DeleteChatSt func (c *Client) sendDeleteChatStickerSet(ctx context.Context, request *DeleteChatStickerSet) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("deleteChatStickerSet"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/deleteChatStickerSet"), } @@ -1535,7 +1536,7 @@ func (c *Client) sendDeleteChatStickerSet(ctx context.Context, request *DeleteCh uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1570,7 +1571,7 @@ func (c *Client) DeleteMessage(ctx context.Context, request *DeleteMessage) (*Re func (c *Client) sendDeleteMessage(ctx context.Context, request *DeleteMessage) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("deleteMessage"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/deleteMessage"), } @@ -1608,7 +1609,7 @@ func (c *Client) sendDeleteMessage(ctx context.Context, request *DeleteMessage) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1643,7 +1644,7 @@ func (c *Client) DeleteMyCommands(ctx context.Context, request OptDeleteMyComman func (c *Client) sendDeleteMyCommands(ctx context.Context, request OptDeleteMyCommands) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("deleteMyCommands"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/deleteMyCommands"), } @@ -1681,7 +1682,7 @@ func (c *Client) sendDeleteMyCommands(ctx context.Context, request OptDeleteMyCo uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1716,7 +1717,7 @@ func (c *Client) DeleteStickerFromSet(ctx context.Context, request *DeleteSticke func (c *Client) sendDeleteStickerFromSet(ctx context.Context, request *DeleteStickerFromSet) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("deleteStickerFromSet"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/deleteStickerFromSet"), } @@ -1754,7 +1755,7 @@ func (c *Client) sendDeleteStickerFromSet(ctx context.Context, request *DeleteSt uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1789,7 +1790,7 @@ func (c *Client) DeleteWebhook(ctx context.Context, request OptDeleteWebhook) (* func (c *Client) sendDeleteWebhook(ctx context.Context, request OptDeleteWebhook) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("deleteWebhook"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/deleteWebhook"), } @@ -1827,7 +1828,7 @@ func (c *Client) sendDeleteWebhook(ctx context.Context, request OptDeleteWebhook uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1862,7 +1863,7 @@ func (c *Client) EditChatInviteLink(ctx context.Context, request *EditChatInvite func (c *Client) sendEditChatInviteLink(ctx context.Context, request *EditChatInviteLink) (res *ResultChatInviteLink, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("editChatInviteLink"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/editChatInviteLink"), } // Validate request before sending. @@ -1909,7 +1910,7 @@ func (c *Client) sendEditChatInviteLink(ctx context.Context, request *EditChatIn uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1944,7 +1945,7 @@ func (c *Client) EditMessageCaption(ctx context.Context, request *EditMessageCap func (c *Client) sendEditMessageCaption(ctx context.Context, request *EditMessageCaption) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("editMessageCaption"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/editMessageCaption"), } // Validate request before sending. @@ -1991,7 +1992,7 @@ func (c *Client) sendEditMessageCaption(ctx context.Context, request *EditMessag uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2026,7 +2027,7 @@ func (c *Client) EditMessageLiveLocation(ctx context.Context, request *EditMessa func (c *Client) sendEditMessageLiveLocation(ctx context.Context, request *EditMessageLiveLocation) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("editMessageLiveLocation"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/editMessageLiveLocation"), } // Validate request before sending. @@ -2073,7 +2074,7 @@ func (c *Client) sendEditMessageLiveLocation(ctx context.Context, request *EditM uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2108,7 +2109,7 @@ func (c *Client) EditMessageMedia(ctx context.Context, request *EditMessageMedia func (c *Client) sendEditMessageMedia(ctx context.Context, request *EditMessageMedia) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("editMessageMedia"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/editMessageMedia"), } // Validate request before sending. @@ -2155,7 +2156,7 @@ func (c *Client) sendEditMessageMedia(ctx context.Context, request *EditMessageM uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2190,7 +2191,7 @@ func (c *Client) EditMessageReplyMarkup(ctx context.Context, request *EditMessag func (c *Client) sendEditMessageReplyMarkup(ctx context.Context, request *EditMessageReplyMarkup) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("editMessageReplyMarkup"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/editMessageReplyMarkup"), } // Validate request before sending. @@ -2237,7 +2238,7 @@ func (c *Client) sendEditMessageReplyMarkup(ctx context.Context, request *EditMe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2272,7 +2273,7 @@ func (c *Client) EditMessageText(ctx context.Context, request *EditMessageText) func (c *Client) sendEditMessageText(ctx context.Context, request *EditMessageText) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("editMessageText"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/editMessageText"), } // Validate request before sending. @@ -2319,7 +2320,7 @@ func (c *Client) sendEditMessageText(ctx context.Context, request *EditMessageTe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2354,7 +2355,7 @@ func (c *Client) ExportChatInviteLink(ctx context.Context, request *ExportChatIn func (c *Client) sendExportChatInviteLink(ctx context.Context, request *ExportChatInviteLink) (res *ResultString, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("exportChatInviteLink"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/exportChatInviteLink"), } @@ -2392,7 +2393,7 @@ func (c *Client) sendExportChatInviteLink(ctx context.Context, request *ExportCh uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2427,7 +2428,7 @@ func (c *Client) ForwardMessage(ctx context.Context, request *ForwardMessage) (* func (c *Client) sendForwardMessage(ctx context.Context, request *ForwardMessage) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("forwardMessage"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/forwardMessage"), } @@ -2465,7 +2466,7 @@ func (c *Client) sendForwardMessage(ctx context.Context, request *ForwardMessage uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2500,7 +2501,7 @@ func (c *Client) GetChat(ctx context.Context, request *GetChat) (*ResultChat, er func (c *Client) sendGetChat(ctx context.Context, request *GetChat) (res *ResultChat, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getChat"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/getChat"), } @@ -2538,7 +2539,7 @@ func (c *Client) sendGetChat(ctx context.Context, request *GetChat) (res *Result uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2573,7 +2574,7 @@ func (c *Client) GetChatAdministrators(ctx context.Context, request *GetChatAdmi func (c *Client) sendGetChatAdministrators(ctx context.Context, request *GetChatAdministrators) (res *ResultArrayOfChatMember, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getChatAdministrators"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/getChatAdministrators"), } @@ -2611,7 +2612,7 @@ func (c *Client) sendGetChatAdministrators(ctx context.Context, request *GetChat uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2646,7 +2647,7 @@ func (c *Client) GetChatMember(ctx context.Context, request *GetChatMember) (*Re func (c *Client) sendGetChatMember(ctx context.Context, request *GetChatMember) (res *ResultChatMember, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getChatMember"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/getChatMember"), } @@ -2684,7 +2685,7 @@ func (c *Client) sendGetChatMember(ctx context.Context, request *GetChatMember) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2719,7 +2720,7 @@ func (c *Client) GetChatMemberCount(ctx context.Context, request *GetChatMemberC func (c *Client) sendGetChatMemberCount(ctx context.Context, request *GetChatMemberCount) (res *ResultInt, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getChatMemberCount"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/getChatMemberCount"), } @@ -2757,7 +2758,7 @@ func (c *Client) sendGetChatMemberCount(ctx context.Context, request *GetChatMem uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2792,7 +2793,7 @@ func (c *Client) GetFile(ctx context.Context, request *GetFile) (*Result, error) func (c *Client) sendGetFile(ctx context.Context, request *GetFile) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getFile"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/getFile"), } @@ -2830,7 +2831,7 @@ func (c *Client) sendGetFile(ctx context.Context, request *GetFile) (res *Result uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2865,7 +2866,7 @@ func (c *Client) GetGameHighScores(ctx context.Context, request *GetGameHighScor func (c *Client) sendGetGameHighScores(ctx context.Context, request *GetGameHighScores) (res *ResultArrayOfGameHighScore, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getGameHighScores"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/getGameHighScores"), } @@ -2903,7 +2904,7 @@ func (c *Client) sendGetGameHighScores(ctx context.Context, request *GetGameHigh uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2938,7 +2939,7 @@ func (c *Client) GetMe(ctx context.Context) (*ResultUser, error) { func (c *Client) sendGetMe(ctx context.Context) (res *ResultUser, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getMe"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/getMe"), } @@ -2976,7 +2977,7 @@ func (c *Client) sendGetMe(ctx context.Context) (res *ResultUser, err error) { uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3008,7 +3009,7 @@ func (c *Client) GetMyCommands(ctx context.Context, request OptGetMyCommands) (* func (c *Client) sendGetMyCommands(ctx context.Context, request OptGetMyCommands) (res *ResultArrayOfBotCommand, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getMyCommands"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/getMyCommands"), } @@ -3046,7 +3047,7 @@ func (c *Client) sendGetMyCommands(ctx context.Context, request OptGetMyCommands uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3081,7 +3082,7 @@ func (c *Client) GetStickerSet(ctx context.Context, request *GetStickerSet) (*Re func (c *Client) sendGetStickerSet(ctx context.Context, request *GetStickerSet) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getStickerSet"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/getStickerSet"), } @@ -3119,7 +3120,7 @@ func (c *Client) sendGetStickerSet(ctx context.Context, request *GetStickerSet) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3154,7 +3155,7 @@ func (c *Client) GetUpdates(ctx context.Context, request OptGetUpdates) (*Result func (c *Client) sendGetUpdates(ctx context.Context, request OptGetUpdates) (res *ResultArrayOfUpdate, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getUpdates"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/getUpdates"), } // Validate request before sending. @@ -3208,7 +3209,7 @@ func (c *Client) sendGetUpdates(ctx context.Context, request OptGetUpdates) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3243,7 +3244,7 @@ func (c *Client) GetUserProfilePhotos(ctx context.Context, request *GetUserProfi func (c *Client) sendGetUserProfilePhotos(ctx context.Context, request *GetUserProfilePhotos) (res *ResultUserProfilePhotos, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getUserProfilePhotos"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/getUserProfilePhotos"), } // Validate request before sending. @@ -3290,7 +3291,7 @@ func (c *Client) sendGetUserProfilePhotos(ctx context.Context, request *GetUserP uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3325,7 +3326,7 @@ func (c *Client) GetWebhookInfo(ctx context.Context) (*ResultWebhookInfo, error) func (c *Client) sendGetWebhookInfo(ctx context.Context) (res *ResultWebhookInfo, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("getWebhookInfo"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/getWebhookInfo"), } @@ -3363,7 +3364,7 @@ func (c *Client) sendGetWebhookInfo(ctx context.Context) (res *ResultWebhookInfo uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3395,7 +3396,7 @@ func (c *Client) LeaveChat(ctx context.Context, request *LeaveChat) (*Result, er func (c *Client) sendLeaveChat(ctx context.Context, request *LeaveChat) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("leaveChat"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/leaveChat"), } @@ -3433,7 +3434,7 @@ func (c *Client) sendLeaveChat(ctx context.Context, request *LeaveChat) (res *Re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3468,7 +3469,7 @@ func (c *Client) LogOut(ctx context.Context) (*Result, error) { func (c *Client) sendLogOut(ctx context.Context) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("logOut"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/logOut"), } @@ -3506,7 +3507,7 @@ func (c *Client) sendLogOut(ctx context.Context) (res *Result, err error) { uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3538,7 +3539,7 @@ func (c *Client) PinChatMessage(ctx context.Context, request *PinChatMessage) (* func (c *Client) sendPinChatMessage(ctx context.Context, request *PinChatMessage) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pinChatMessage"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/pinChatMessage"), } @@ -3576,7 +3577,7 @@ func (c *Client) sendPinChatMessage(ctx context.Context, request *PinChatMessage uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3611,7 +3612,7 @@ func (c *Client) PromoteChatMember(ctx context.Context, request *PromoteChatMemb func (c *Client) sendPromoteChatMember(ctx context.Context, request *PromoteChatMember) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("promoteChatMember"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/promoteChatMember"), } @@ -3649,7 +3650,7 @@ func (c *Client) sendPromoteChatMember(ctx context.Context, request *PromoteChat uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3684,7 +3685,7 @@ func (c *Client) RestrictChatMember(ctx context.Context, request *RestrictChatMe func (c *Client) sendRestrictChatMember(ctx context.Context, request *RestrictChatMember) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("restrictChatMember"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/restrictChatMember"), } @@ -3722,7 +3723,7 @@ func (c *Client) sendRestrictChatMember(ctx context.Context, request *RestrictCh uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3757,7 +3758,7 @@ func (c *Client) RevokeChatInviteLink(ctx context.Context, request *RevokeChatIn func (c *Client) sendRevokeChatInviteLink(ctx context.Context, request *RevokeChatInviteLink) (res *ResultChatInviteLink, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("revokeChatInviteLink"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/revokeChatInviteLink"), } @@ -3795,7 +3796,7 @@ func (c *Client) sendRevokeChatInviteLink(ctx context.Context, request *RevokeCh uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3830,7 +3831,7 @@ func (c *Client) SendAnimation(ctx context.Context, request *SendAnimation) (*Re func (c *Client) sendSendAnimation(ctx context.Context, request *SendAnimation) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendAnimation"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendAnimation"), } // Validate request before sending. @@ -3877,7 +3878,7 @@ func (c *Client) sendSendAnimation(ctx context.Context, request *SendAnimation) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3912,7 +3913,7 @@ func (c *Client) SendAudio(ctx context.Context, request *SendAudio) (*ResultMess func (c *Client) sendSendAudio(ctx context.Context, request *SendAudio) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendAudio"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendAudio"), } // Validate request before sending. @@ -3959,7 +3960,7 @@ func (c *Client) sendSendAudio(ctx context.Context, request *SendAudio) (res *Re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -3994,7 +3995,7 @@ func (c *Client) SendChatAction(ctx context.Context, request *SendChatAction) (* func (c *Client) sendSendChatAction(ctx context.Context, request *SendChatAction) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendChatAction"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendChatAction"), } @@ -4032,7 +4033,7 @@ func (c *Client) sendSendChatAction(ctx context.Context, request *SendChatAction uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4067,7 +4068,7 @@ func (c *Client) SendContact(ctx context.Context, request *SendContact) (*Result func (c *Client) sendSendContact(ctx context.Context, request *SendContact) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendContact"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendContact"), } // Validate request before sending. @@ -4114,7 +4115,7 @@ func (c *Client) sendSendContact(ctx context.Context, request *SendContact) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4149,7 +4150,7 @@ func (c *Client) SendDice(ctx context.Context, request *SendDice) (*ResultMessag func (c *Client) sendSendDice(ctx context.Context, request *SendDice) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendDice"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendDice"), } // Validate request before sending. @@ -4196,7 +4197,7 @@ func (c *Client) sendSendDice(ctx context.Context, request *SendDice) (res *Resu uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4231,7 +4232,7 @@ func (c *Client) SendDocument(ctx context.Context, request *SendDocument) (*Resu func (c *Client) sendSendDocument(ctx context.Context, request *SendDocument) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendDocument"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendDocument"), } // Validate request before sending. @@ -4278,7 +4279,7 @@ func (c *Client) sendSendDocument(ctx context.Context, request *SendDocument) (r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4313,7 +4314,7 @@ func (c *Client) SendGame(ctx context.Context, request *SendGame) (*ResultMessag func (c *Client) sendSendGame(ctx context.Context, request *SendGame) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendGame"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendGame"), } // Validate request before sending. @@ -4360,7 +4361,7 @@ func (c *Client) sendSendGame(ctx context.Context, request *SendGame) (res *Resu uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4395,7 +4396,7 @@ func (c *Client) SendInvoice(ctx context.Context, request *SendInvoice) (*Result func (c *Client) sendSendInvoice(ctx context.Context, request *SendInvoice) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendInvoice"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendInvoice"), } // Validate request before sending. @@ -4442,7 +4443,7 @@ func (c *Client) sendSendInvoice(ctx context.Context, request *SendInvoice) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4477,7 +4478,7 @@ func (c *Client) SendLocation(ctx context.Context, request *SendLocation) (*Resu func (c *Client) sendSendLocation(ctx context.Context, request *SendLocation) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendLocation"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendLocation"), } // Validate request before sending. @@ -4524,7 +4525,7 @@ func (c *Client) sendSendLocation(ctx context.Context, request *SendLocation) (r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4559,7 +4560,7 @@ func (c *Client) SendMediaGroup(ctx context.Context, request *SendMediaGroup) (* func (c *Client) sendSendMediaGroup(ctx context.Context, request *SendMediaGroup) (res *ResultArrayOfMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendMediaGroup"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendMediaGroup"), } // Validate request before sending. @@ -4606,7 +4607,7 @@ func (c *Client) sendSendMediaGroup(ctx context.Context, request *SendMediaGroup uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4641,7 +4642,7 @@ func (c *Client) SendMessage(ctx context.Context, request *SendMessage) (*Result func (c *Client) sendSendMessage(ctx context.Context, request *SendMessage) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendMessage"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendMessage"), } // Validate request before sending. @@ -4688,7 +4689,7 @@ func (c *Client) sendSendMessage(ctx context.Context, request *SendMessage) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4723,7 +4724,7 @@ func (c *Client) SendPhoto(ctx context.Context, request *SendPhoto) (*ResultMess func (c *Client) sendSendPhoto(ctx context.Context, request *SendPhoto) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendPhoto"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendPhoto"), } // Validate request before sending. @@ -4770,7 +4771,7 @@ func (c *Client) sendSendPhoto(ctx context.Context, request *SendPhoto) (res *Re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4805,7 +4806,7 @@ func (c *Client) SendPoll(ctx context.Context, request *SendPoll) (*ResultMessag func (c *Client) sendSendPoll(ctx context.Context, request *SendPoll) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendPoll"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendPoll"), } // Validate request before sending. @@ -4852,7 +4853,7 @@ func (c *Client) sendSendPoll(ctx context.Context, request *SendPoll) (res *Resu uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4887,7 +4888,7 @@ func (c *Client) SendSticker(ctx context.Context, request *SendSticker) (*Result func (c *Client) sendSendSticker(ctx context.Context, request *SendSticker) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendSticker"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendSticker"), } // Validate request before sending. @@ -4934,7 +4935,7 @@ func (c *Client) sendSendSticker(ctx context.Context, request *SendSticker) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -4969,7 +4970,7 @@ func (c *Client) SendVenue(ctx context.Context, request *SendVenue) (*ResultMess func (c *Client) sendSendVenue(ctx context.Context, request *SendVenue) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendVenue"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendVenue"), } // Validate request before sending. @@ -5016,7 +5017,7 @@ func (c *Client) sendSendVenue(ctx context.Context, request *SendVenue) (res *Re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5051,7 +5052,7 @@ func (c *Client) SendVideo(ctx context.Context, request *SendVideo) (*ResultMess func (c *Client) sendSendVideo(ctx context.Context, request *SendVideo) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendVideo"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendVideo"), } // Validate request before sending. @@ -5098,7 +5099,7 @@ func (c *Client) sendSendVideo(ctx context.Context, request *SendVideo) (res *Re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5133,7 +5134,7 @@ func (c *Client) SendVideoNote(ctx context.Context, request *SendVideoNote) (*Re func (c *Client) sendSendVideoNote(ctx context.Context, request *SendVideoNote) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendVideoNote"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendVideoNote"), } // Validate request before sending. @@ -5180,7 +5181,7 @@ func (c *Client) sendSendVideoNote(ctx context.Context, request *SendVideoNote) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5215,7 +5216,7 @@ func (c *Client) SendVoice(ctx context.Context, request *SendVoice) (*ResultMess func (c *Client) sendSendVoice(ctx context.Context, request *SendVoice) (res *ResultMessage, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sendVoice"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sendVoice"), } // Validate request before sending. @@ -5262,7 +5263,7 @@ func (c *Client) sendSendVoice(ctx context.Context, request *SendVoice) (res *Re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5297,7 +5298,7 @@ func (c *Client) SetChatAdministratorCustomTitle(ctx context.Context, request *S func (c *Client) sendSetChatAdministratorCustomTitle(ctx context.Context, request *SetChatAdministratorCustomTitle) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("setChatAdministratorCustomTitle"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/setChatAdministratorCustomTitle"), } // Validate request before sending. @@ -5344,7 +5345,7 @@ func (c *Client) sendSetChatAdministratorCustomTitle(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5379,7 +5380,7 @@ func (c *Client) SetChatDescription(ctx context.Context, request *SetChatDescrip func (c *Client) sendSetChatDescription(ctx context.Context, request *SetChatDescription) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("setChatDescription"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/setChatDescription"), } // Validate request before sending. @@ -5426,7 +5427,7 @@ func (c *Client) sendSetChatDescription(ctx context.Context, request *SetChatDes uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5461,7 +5462,7 @@ func (c *Client) SetChatPermissions(ctx context.Context, request *SetChatPermiss func (c *Client) sendSetChatPermissions(ctx context.Context, request *SetChatPermissions) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("setChatPermissions"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/setChatPermissions"), } @@ -5499,7 +5500,7 @@ func (c *Client) sendSetChatPermissions(ctx context.Context, request *SetChatPer uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5534,7 +5535,7 @@ func (c *Client) SetChatPhoto(ctx context.Context, request *SetChatPhoto) (*Resu func (c *Client) sendSetChatPhoto(ctx context.Context, request *SetChatPhoto) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("setChatPhoto"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/setChatPhoto"), } @@ -5572,7 +5573,7 @@ func (c *Client) sendSetChatPhoto(ctx context.Context, request *SetChatPhoto) (r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5607,7 +5608,7 @@ func (c *Client) SetChatStickerSet(ctx context.Context, request *SetChatStickerS func (c *Client) sendSetChatStickerSet(ctx context.Context, request *SetChatStickerSet) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("setChatStickerSet"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/setChatStickerSet"), } @@ -5645,7 +5646,7 @@ func (c *Client) sendSetChatStickerSet(ctx context.Context, request *SetChatStic uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5680,7 +5681,7 @@ func (c *Client) SetChatTitle(ctx context.Context, request *SetChatTitle) (*Resu func (c *Client) sendSetChatTitle(ctx context.Context, request *SetChatTitle) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("setChatTitle"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/setChatTitle"), } // Validate request before sending. @@ -5727,7 +5728,7 @@ func (c *Client) sendSetChatTitle(ctx context.Context, request *SetChatTitle) (r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5762,7 +5763,7 @@ func (c *Client) SetGameScore(ctx context.Context, request *SetGameScore) (*Resu func (c *Client) sendSetGameScore(ctx context.Context, request *SetGameScore) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("setGameScore"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/setGameScore"), } @@ -5800,7 +5801,7 @@ func (c *Client) sendSetGameScore(ctx context.Context, request *SetGameScore) (r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5835,7 +5836,7 @@ func (c *Client) SetMyCommands(ctx context.Context, request *SetMyCommands) (*Re func (c *Client) sendSetMyCommands(ctx context.Context, request *SetMyCommands) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("setMyCommands"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/setMyCommands"), } // Validate request before sending. @@ -5882,7 +5883,7 @@ func (c *Client) sendSetMyCommands(ctx context.Context, request *SetMyCommands) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5917,7 +5918,7 @@ func (c *Client) SetPassportDataErrors(ctx context.Context, request *SetPassport func (c *Client) sendSetPassportDataErrors(ctx context.Context, request *SetPassportDataErrors) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("setPassportDataErrors"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/setPassportDataErrors"), } // Validate request before sending. @@ -5964,7 +5965,7 @@ func (c *Client) sendSetPassportDataErrors(ctx context.Context, request *SetPass uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -5999,7 +6000,7 @@ func (c *Client) SetStickerPositionInSet(ctx context.Context, request *SetSticke func (c *Client) sendSetStickerPositionInSet(ctx context.Context, request *SetStickerPositionInSet) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("setStickerPositionInSet"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/setStickerPositionInSet"), } @@ -6037,7 +6038,7 @@ func (c *Client) sendSetStickerPositionInSet(ctx context.Context, request *SetSt uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6072,7 +6073,7 @@ func (c *Client) SetStickerSetThumb(ctx context.Context, request *SetStickerSetT func (c *Client) sendSetStickerSetThumb(ctx context.Context, request *SetStickerSetThumb) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("setStickerSetThumb"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/setStickerSetThumb"), } @@ -6110,7 +6111,7 @@ func (c *Client) sendSetStickerSetThumb(ctx context.Context, request *SetSticker uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6145,7 +6146,7 @@ func (c *Client) SetWebhook(ctx context.Context, request *SetWebhook) (*Result, func (c *Client) sendSetWebhook(ctx context.Context, request *SetWebhook) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("setWebhook"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/setWebhook"), } @@ -6183,7 +6184,7 @@ func (c *Client) sendSetWebhook(ctx context.Context, request *SetWebhook) (res * uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6218,7 +6219,7 @@ func (c *Client) StopMessageLiveLocation(ctx context.Context, request *StopMessa func (c *Client) sendStopMessageLiveLocation(ctx context.Context, request *StopMessageLiveLocation) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("stopMessageLiveLocation"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/stopMessageLiveLocation"), } // Validate request before sending. @@ -6265,7 +6266,7 @@ func (c *Client) sendStopMessageLiveLocation(ctx context.Context, request *StopM uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6300,7 +6301,7 @@ func (c *Client) StopPoll(ctx context.Context, request *StopPoll) (*ResultPoll, func (c *Client) sendStopPoll(ctx context.Context, request *StopPoll) (res *ResultPoll, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("stopPoll"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/stopPoll"), } // Validate request before sending. @@ -6347,7 +6348,7 @@ func (c *Client) sendStopPoll(ctx context.Context, request *StopPoll) (res *Resu uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6382,7 +6383,7 @@ func (c *Client) UnbanChatMember(ctx context.Context, request *UnbanChatMember) func (c *Client) sendUnbanChatMember(ctx context.Context, request *UnbanChatMember) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("unbanChatMember"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/unbanChatMember"), } @@ -6420,7 +6421,7 @@ func (c *Client) sendUnbanChatMember(ctx context.Context, request *UnbanChatMemb uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6455,7 +6456,7 @@ func (c *Client) UnbanChatSenderChat(ctx context.Context, request *UnbanChatSend func (c *Client) sendUnbanChatSenderChat(ctx context.Context, request *UnbanChatSenderChat) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("unbanChatSenderChat"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/unbanChatSenderChat"), } @@ -6493,7 +6494,7 @@ func (c *Client) sendUnbanChatSenderChat(ctx context.Context, request *UnbanChat uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6528,7 +6529,7 @@ func (c *Client) UnpinAllChatMessages(ctx context.Context, request *UnpinAllChat func (c *Client) sendUnpinAllChatMessages(ctx context.Context, request *UnpinAllChatMessages) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("unpinAllChatMessages"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/unpinAllChatMessages"), } @@ -6566,7 +6567,7 @@ func (c *Client) sendUnpinAllChatMessages(ctx context.Context, request *UnpinAll uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6601,7 +6602,7 @@ func (c *Client) UnpinChatMessage(ctx context.Context, request *UnpinChatMessage func (c *Client) sendUnpinChatMessage(ctx context.Context, request *UnpinChatMessage) (res *Result, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("unpinChatMessage"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/unpinChatMessage"), } @@ -6639,7 +6640,7 @@ func (c *Client) sendUnpinChatMessage(ctx context.Context, request *UnpinChatMes uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6674,7 +6675,7 @@ func (c *Client) UploadStickerFile(ctx context.Context, request *UploadStickerFi func (c *Client) sendUploadStickerFile(ctx context.Context, request *UploadStickerFile) (res *ResultFile, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("uploadStickerFile"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/uploadStickerFile"), } @@ -6712,7 +6713,7 @@ func (c *Client) sendUploadStickerFile(ctx context.Context, request *UploadStick uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/examples/ex_test_format/oas_client_gen.go b/examples/ex_test_format/oas_client_gen.go index 82db69042..30a3e3b2c 100644 --- a/examples/ex_test_format/oas_client_gen.go +++ b/examples/ex_test_format/oas_client_gen.go @@ -5,6 +5,7 @@ package api import ( "context" "fmt" + "net/http" "net/netip" "net/url" "strings" @@ -4089,7 +4090,7 @@ func (c *Client) TestQueryParameter(ctx context.Context, request string, params func (c *Client) sendTestQueryParameter(ctx context.Context, request string, params TestQueryParameterParams) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_query_parameter"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_query_parameter"), } @@ -6129,7 +6130,7 @@ func (c *Client) sendTestQueryParameter(ctx context.Context, request string, par u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6164,7 +6165,7 @@ func (c *Client) TestRequestAny(ctx context.Context, request jx.Raw) (*Error, er func (c *Client) sendTestRequestAny(ctx context.Context, request jx.Raw) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_Any"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_Any"), } @@ -6202,7 +6203,7 @@ func (c *Client) sendTestRequestAny(ctx context.Context, request jx.Raw) (res *E uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6237,7 +6238,7 @@ func (c *Client) TestRequestBoolean(ctx context.Context, request OptBool) (*Erro func (c *Client) sendTestRequestBoolean(ctx context.Context, request OptBool) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_boolean"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_boolean"), } @@ -6275,7 +6276,7 @@ func (c *Client) sendTestRequestBoolean(ctx context.Context, request OptBool) (r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6310,7 +6311,7 @@ func (c *Client) TestRequestBooleanArray(ctx context.Context, request []bool) (* func (c *Client) sendTestRequestBooleanArray(ctx context.Context, request []bool) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_boolean_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_boolean_array"), } @@ -6348,7 +6349,7 @@ func (c *Client) sendTestRequestBooleanArray(ctx context.Context, request []bool uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6383,7 +6384,7 @@ func (c *Client) TestRequestBooleanArrayArray(ctx context.Context, request [][]b func (c *Client) sendTestRequestBooleanArrayArray(ctx context.Context, request [][]bool) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_boolean_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_boolean_array_array"), } // Validate request before sending. @@ -6444,7 +6445,7 @@ func (c *Client) sendTestRequestBooleanArrayArray(ctx context.Context, request [ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6479,7 +6480,7 @@ func (c *Client) TestRequestBooleanNullable(ctx context.Context, request OptNilB func (c *Client) sendTestRequestBooleanNullable(ctx context.Context, request OptNilBool) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_boolean_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_boolean_nullable"), } @@ -6517,7 +6518,7 @@ func (c *Client) sendTestRequestBooleanNullable(ctx context.Context, request Opt uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6552,7 +6553,7 @@ func (c *Client) TestRequestBooleanNullableArray(ctx context.Context, request [] func (c *Client) sendTestRequestBooleanNullableArray(ctx context.Context, request []NilBool) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_boolean_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_boolean_nullable_array"), } @@ -6590,7 +6591,7 @@ func (c *Client) sendTestRequestBooleanNullableArray(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6625,7 +6626,7 @@ func (c *Client) TestRequestBooleanNullableArrayArray(ctx context.Context, reque func (c *Client) sendTestRequestBooleanNullableArrayArray(ctx context.Context, request [][]NilBool) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_boolean_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_boolean_nullable_array_array"), } // Validate request before sending. @@ -6686,7 +6687,7 @@ func (c *Client) sendTestRequestBooleanNullableArrayArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6721,7 +6722,7 @@ func (c *Client) TestRequestEmptyStruct(ctx context.Context, request *TestReques func (c *Client) sendTestRequestEmptyStruct(ctx context.Context, request *TestRequestEmptyStructReq) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_EmptyStruct"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_EmptyStruct"), } @@ -6759,7 +6760,7 @@ func (c *Client) sendTestRequestEmptyStruct(ctx context.Context, request *TestRe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6794,7 +6795,7 @@ func (c *Client) TestRequestFormatTest(ctx context.Context, request OptTestReque func (c *Client) sendTestRequestFormatTest(ctx context.Context, request OptTestRequestFormatTestReq) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_FormatTest"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_FormatTest"), } // Validate request before sending. @@ -6848,7 +6849,7 @@ func (c *Client) sendTestRequestFormatTest(ctx context.Context, request OptTestR uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6883,7 +6884,7 @@ func (c *Client) TestRequestInteger(ctx context.Context, request OptInt) (*Error func (c *Client) sendTestRequestInteger(ctx context.Context, request OptInt) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer"), } @@ -6921,7 +6922,7 @@ func (c *Client) sendTestRequestInteger(ctx context.Context, request OptInt) (re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -6956,7 +6957,7 @@ func (c *Client) TestRequestIntegerArray(ctx context.Context, request []int) (*E func (c *Client) sendTestRequestIntegerArray(ctx context.Context, request []int) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_array"), } @@ -6994,7 +6995,7 @@ func (c *Client) sendTestRequestIntegerArray(ctx context.Context, request []int) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -7029,7 +7030,7 @@ func (c *Client) TestRequestIntegerArrayArray(ctx context.Context, request [][]i func (c *Client) sendTestRequestIntegerArrayArray(ctx context.Context, request [][]int) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_array_array"), } // Validate request before sending. @@ -7090,7 +7091,7 @@ func (c *Client) sendTestRequestIntegerArrayArray(ctx context.Context, request [ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -7125,7 +7126,7 @@ func (c *Client) TestRequestIntegerInt16(ctx context.Context, request OptInt16) func (c *Client) sendTestRequestIntegerInt16(ctx context.Context, request OptInt16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_int16"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_int16"), } @@ -7163,7 +7164,7 @@ func (c *Client) sendTestRequestIntegerInt16(ctx context.Context, request OptInt uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -7198,7 +7199,7 @@ func (c *Client) TestRequestIntegerInt16Array(ctx context.Context, request []int func (c *Client) sendTestRequestIntegerInt16Array(ctx context.Context, request []int16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_int16_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_int16_array"), } @@ -7236,7 +7237,7 @@ func (c *Client) sendTestRequestIntegerInt16Array(ctx context.Context, request [ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -7271,7 +7272,7 @@ func (c *Client) TestRequestIntegerInt16ArrayArray(ctx context.Context, request func (c *Client) sendTestRequestIntegerInt16ArrayArray(ctx context.Context, request [][]int16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_int16_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_int16_array_array"), } // Validate request before sending. @@ -7332,7 +7333,7 @@ func (c *Client) sendTestRequestIntegerInt16ArrayArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -7367,7 +7368,7 @@ func (c *Client) TestRequestIntegerInt16Nullable(ctx context.Context, request Op func (c *Client) sendTestRequestIntegerInt16Nullable(ctx context.Context, request OptNilInt16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_int16_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_int16_nullable"), } @@ -7405,7 +7406,7 @@ func (c *Client) sendTestRequestIntegerInt16Nullable(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -7440,7 +7441,7 @@ func (c *Client) TestRequestIntegerInt16NullableArray(ctx context.Context, reque func (c *Client) sendTestRequestIntegerInt16NullableArray(ctx context.Context, request []NilInt16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_int16_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_int16_nullable_array"), } @@ -7478,7 +7479,7 @@ func (c *Client) sendTestRequestIntegerInt16NullableArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -7513,7 +7514,7 @@ func (c *Client) TestRequestIntegerInt16NullableArrayArray(ctx context.Context, func (c *Client) sendTestRequestIntegerInt16NullableArrayArray(ctx context.Context, request [][]NilInt16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_int16_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_int16_nullable_array_array"), } // Validate request before sending. @@ -7574,7 +7575,7 @@ func (c *Client) sendTestRequestIntegerInt16NullableArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -7609,7 +7610,7 @@ func (c *Client) TestRequestIntegerInt32(ctx context.Context, request OptInt32) func (c *Client) sendTestRequestIntegerInt32(ctx context.Context, request OptInt32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_int32"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_int32"), } @@ -7647,7 +7648,7 @@ func (c *Client) sendTestRequestIntegerInt32(ctx context.Context, request OptInt uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -7682,7 +7683,7 @@ func (c *Client) TestRequestIntegerInt32Array(ctx context.Context, request []int func (c *Client) sendTestRequestIntegerInt32Array(ctx context.Context, request []int32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_int32_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_int32_array"), } @@ -7720,7 +7721,7 @@ func (c *Client) sendTestRequestIntegerInt32Array(ctx context.Context, request [ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -7755,7 +7756,7 @@ func (c *Client) TestRequestIntegerInt32ArrayArray(ctx context.Context, request func (c *Client) sendTestRequestIntegerInt32ArrayArray(ctx context.Context, request [][]int32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_int32_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_int32_array_array"), } // Validate request before sending. @@ -7816,7 +7817,7 @@ func (c *Client) sendTestRequestIntegerInt32ArrayArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -7851,7 +7852,7 @@ func (c *Client) TestRequestIntegerInt32Nullable(ctx context.Context, request Op func (c *Client) sendTestRequestIntegerInt32Nullable(ctx context.Context, request OptNilInt32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_int32_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_int32_nullable"), } @@ -7889,7 +7890,7 @@ func (c *Client) sendTestRequestIntegerInt32Nullable(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -7924,7 +7925,7 @@ func (c *Client) TestRequestIntegerInt32NullableArray(ctx context.Context, reque func (c *Client) sendTestRequestIntegerInt32NullableArray(ctx context.Context, request []NilInt32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_int32_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_int32_nullable_array"), } @@ -7962,7 +7963,7 @@ func (c *Client) sendTestRequestIntegerInt32NullableArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -7997,7 +7998,7 @@ func (c *Client) TestRequestIntegerInt32NullableArrayArray(ctx context.Context, func (c *Client) sendTestRequestIntegerInt32NullableArrayArray(ctx context.Context, request [][]NilInt32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_int32_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_int32_nullable_array_array"), } // Validate request before sending. @@ -8058,7 +8059,7 @@ func (c *Client) sendTestRequestIntegerInt32NullableArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -8093,7 +8094,7 @@ func (c *Client) TestRequestIntegerInt64(ctx context.Context, request OptInt64) func (c *Client) sendTestRequestIntegerInt64(ctx context.Context, request OptInt64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_int64"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_int64"), } @@ -8131,7 +8132,7 @@ func (c *Client) sendTestRequestIntegerInt64(ctx context.Context, request OptInt uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -8166,7 +8167,7 @@ func (c *Client) TestRequestIntegerInt64Array(ctx context.Context, request []int func (c *Client) sendTestRequestIntegerInt64Array(ctx context.Context, request []int64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_int64_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_int64_array"), } @@ -8204,7 +8205,7 @@ func (c *Client) sendTestRequestIntegerInt64Array(ctx context.Context, request [ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -8239,7 +8240,7 @@ func (c *Client) TestRequestIntegerInt64ArrayArray(ctx context.Context, request func (c *Client) sendTestRequestIntegerInt64ArrayArray(ctx context.Context, request [][]int64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_int64_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_int64_array_array"), } // Validate request before sending. @@ -8300,7 +8301,7 @@ func (c *Client) sendTestRequestIntegerInt64ArrayArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -8335,7 +8336,7 @@ func (c *Client) TestRequestIntegerInt64Nullable(ctx context.Context, request Op func (c *Client) sendTestRequestIntegerInt64Nullable(ctx context.Context, request OptNilInt64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_int64_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_int64_nullable"), } @@ -8373,7 +8374,7 @@ func (c *Client) sendTestRequestIntegerInt64Nullable(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -8408,7 +8409,7 @@ func (c *Client) TestRequestIntegerInt64NullableArray(ctx context.Context, reque func (c *Client) sendTestRequestIntegerInt64NullableArray(ctx context.Context, request []NilInt64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_int64_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_int64_nullable_array"), } @@ -8446,7 +8447,7 @@ func (c *Client) sendTestRequestIntegerInt64NullableArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -8481,7 +8482,7 @@ func (c *Client) TestRequestIntegerInt64NullableArrayArray(ctx context.Context, func (c *Client) sendTestRequestIntegerInt64NullableArrayArray(ctx context.Context, request [][]NilInt64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_int64_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_int64_nullable_array_array"), } // Validate request before sending. @@ -8542,7 +8543,7 @@ func (c *Client) sendTestRequestIntegerInt64NullableArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -8577,7 +8578,7 @@ func (c *Client) TestRequestIntegerInt8(ctx context.Context, request OptInt8) (* func (c *Client) sendTestRequestIntegerInt8(ctx context.Context, request OptInt8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_int8"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_int8"), } @@ -8615,7 +8616,7 @@ func (c *Client) sendTestRequestIntegerInt8(ctx context.Context, request OptInt8 uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -8650,7 +8651,7 @@ func (c *Client) TestRequestIntegerInt8Array(ctx context.Context, request []int8 func (c *Client) sendTestRequestIntegerInt8Array(ctx context.Context, request []int8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_int8_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_int8_array"), } @@ -8688,7 +8689,7 @@ func (c *Client) sendTestRequestIntegerInt8Array(ctx context.Context, request [] uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -8723,7 +8724,7 @@ func (c *Client) TestRequestIntegerInt8ArrayArray(ctx context.Context, request [ func (c *Client) sendTestRequestIntegerInt8ArrayArray(ctx context.Context, request [][]int8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_int8_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_int8_array_array"), } // Validate request before sending. @@ -8784,7 +8785,7 @@ func (c *Client) sendTestRequestIntegerInt8ArrayArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -8819,7 +8820,7 @@ func (c *Client) TestRequestIntegerInt8Nullable(ctx context.Context, request Opt func (c *Client) sendTestRequestIntegerInt8Nullable(ctx context.Context, request OptNilInt8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_int8_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_int8_nullable"), } @@ -8857,7 +8858,7 @@ func (c *Client) sendTestRequestIntegerInt8Nullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -8892,7 +8893,7 @@ func (c *Client) TestRequestIntegerInt8NullableArray(ctx context.Context, reques func (c *Client) sendTestRequestIntegerInt8NullableArray(ctx context.Context, request []NilInt8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_int8_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_int8_nullable_array"), } @@ -8930,7 +8931,7 @@ func (c *Client) sendTestRequestIntegerInt8NullableArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -8965,7 +8966,7 @@ func (c *Client) TestRequestIntegerInt8NullableArrayArray(ctx context.Context, r func (c *Client) sendTestRequestIntegerInt8NullableArrayArray(ctx context.Context, request [][]NilInt8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_int8_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_int8_nullable_array_array"), } // Validate request before sending. @@ -9026,7 +9027,7 @@ func (c *Client) sendTestRequestIntegerInt8NullableArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -9061,7 +9062,7 @@ func (c *Client) TestRequestIntegerNullable(ctx context.Context, request OptNilI func (c *Client) sendTestRequestIntegerNullable(ctx context.Context, request OptNilInt) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_nullable"), } @@ -9099,7 +9100,7 @@ func (c *Client) sendTestRequestIntegerNullable(ctx context.Context, request Opt uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -9134,7 +9135,7 @@ func (c *Client) TestRequestIntegerNullableArray(ctx context.Context, request [] func (c *Client) sendTestRequestIntegerNullableArray(ctx context.Context, request []NilInt) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_nullable_array"), } @@ -9172,7 +9173,7 @@ func (c *Client) sendTestRequestIntegerNullableArray(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -9207,7 +9208,7 @@ func (c *Client) TestRequestIntegerNullableArrayArray(ctx context.Context, reque func (c *Client) sendTestRequestIntegerNullableArrayArray(ctx context.Context, request [][]NilInt) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_nullable_array_array"), } // Validate request before sending. @@ -9268,7 +9269,7 @@ func (c *Client) sendTestRequestIntegerNullableArrayArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -9303,7 +9304,7 @@ func (c *Client) TestRequestIntegerUint(ctx context.Context, request OptUint) (* func (c *Client) sendTestRequestIntegerUint(ctx context.Context, request OptUint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint"), } @@ -9341,7 +9342,7 @@ func (c *Client) sendTestRequestIntegerUint(ctx context.Context, request OptUint uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -9376,7 +9377,7 @@ func (c *Client) TestRequestIntegerUint16(ctx context.Context, request OptUint16 func (c *Client) sendTestRequestIntegerUint16(ctx context.Context, request OptUint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint16"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint16"), } @@ -9414,7 +9415,7 @@ func (c *Client) sendTestRequestIntegerUint16(ctx context.Context, request OptUi uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -9449,7 +9450,7 @@ func (c *Client) TestRequestIntegerUint16Array(ctx context.Context, request []ui func (c *Client) sendTestRequestIntegerUint16Array(ctx context.Context, request []uint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint16_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint16_array"), } @@ -9487,7 +9488,7 @@ func (c *Client) sendTestRequestIntegerUint16Array(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -9522,7 +9523,7 @@ func (c *Client) TestRequestIntegerUint16ArrayArray(ctx context.Context, request func (c *Client) sendTestRequestIntegerUint16ArrayArray(ctx context.Context, request [][]uint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint16_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint16_array_array"), } // Validate request before sending. @@ -9583,7 +9584,7 @@ func (c *Client) sendTestRequestIntegerUint16ArrayArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -9618,7 +9619,7 @@ func (c *Client) TestRequestIntegerUint16Nullable(ctx context.Context, request O func (c *Client) sendTestRequestIntegerUint16Nullable(ctx context.Context, request OptNilUint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint16_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint16_nullable"), } @@ -9656,7 +9657,7 @@ func (c *Client) sendTestRequestIntegerUint16Nullable(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -9691,7 +9692,7 @@ func (c *Client) TestRequestIntegerUint16NullableArray(ctx context.Context, requ func (c *Client) sendTestRequestIntegerUint16NullableArray(ctx context.Context, request []NilUint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint16_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint16_nullable_array"), } @@ -9729,7 +9730,7 @@ func (c *Client) sendTestRequestIntegerUint16NullableArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -9764,7 +9765,7 @@ func (c *Client) TestRequestIntegerUint16NullableArrayArray(ctx context.Context, func (c *Client) sendTestRequestIntegerUint16NullableArrayArray(ctx context.Context, request [][]NilUint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint16_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint16_nullable_array_array"), } // Validate request before sending. @@ -9825,7 +9826,7 @@ func (c *Client) sendTestRequestIntegerUint16NullableArrayArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -9860,7 +9861,7 @@ func (c *Client) TestRequestIntegerUint32(ctx context.Context, request OptUint32 func (c *Client) sendTestRequestIntegerUint32(ctx context.Context, request OptUint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint32"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint32"), } @@ -9898,7 +9899,7 @@ func (c *Client) sendTestRequestIntegerUint32(ctx context.Context, request OptUi uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -9933,7 +9934,7 @@ func (c *Client) TestRequestIntegerUint32Array(ctx context.Context, request []ui func (c *Client) sendTestRequestIntegerUint32Array(ctx context.Context, request []uint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint32_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint32_array"), } @@ -9971,7 +9972,7 @@ func (c *Client) sendTestRequestIntegerUint32Array(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -10006,7 +10007,7 @@ func (c *Client) TestRequestIntegerUint32ArrayArray(ctx context.Context, request func (c *Client) sendTestRequestIntegerUint32ArrayArray(ctx context.Context, request [][]uint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint32_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint32_array_array"), } // Validate request before sending. @@ -10067,7 +10068,7 @@ func (c *Client) sendTestRequestIntegerUint32ArrayArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -10102,7 +10103,7 @@ func (c *Client) TestRequestIntegerUint32Nullable(ctx context.Context, request O func (c *Client) sendTestRequestIntegerUint32Nullable(ctx context.Context, request OptNilUint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint32_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint32_nullable"), } @@ -10140,7 +10141,7 @@ func (c *Client) sendTestRequestIntegerUint32Nullable(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -10175,7 +10176,7 @@ func (c *Client) TestRequestIntegerUint32NullableArray(ctx context.Context, requ func (c *Client) sendTestRequestIntegerUint32NullableArray(ctx context.Context, request []NilUint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint32_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint32_nullable_array"), } @@ -10213,7 +10214,7 @@ func (c *Client) sendTestRequestIntegerUint32NullableArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -10248,7 +10249,7 @@ func (c *Client) TestRequestIntegerUint32NullableArrayArray(ctx context.Context, func (c *Client) sendTestRequestIntegerUint32NullableArrayArray(ctx context.Context, request [][]NilUint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint32_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint32_nullable_array_array"), } // Validate request before sending. @@ -10309,7 +10310,7 @@ func (c *Client) sendTestRequestIntegerUint32NullableArrayArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -10344,7 +10345,7 @@ func (c *Client) TestRequestIntegerUint64(ctx context.Context, request OptUint64 func (c *Client) sendTestRequestIntegerUint64(ctx context.Context, request OptUint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint64"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint64"), } @@ -10382,7 +10383,7 @@ func (c *Client) sendTestRequestIntegerUint64(ctx context.Context, request OptUi uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -10417,7 +10418,7 @@ func (c *Client) TestRequestIntegerUint64Array(ctx context.Context, request []ui func (c *Client) sendTestRequestIntegerUint64Array(ctx context.Context, request []uint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint64_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint64_array"), } @@ -10455,7 +10456,7 @@ func (c *Client) sendTestRequestIntegerUint64Array(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -10490,7 +10491,7 @@ func (c *Client) TestRequestIntegerUint64ArrayArray(ctx context.Context, request func (c *Client) sendTestRequestIntegerUint64ArrayArray(ctx context.Context, request [][]uint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint64_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint64_array_array"), } // Validate request before sending. @@ -10551,7 +10552,7 @@ func (c *Client) sendTestRequestIntegerUint64ArrayArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -10586,7 +10587,7 @@ func (c *Client) TestRequestIntegerUint64Nullable(ctx context.Context, request O func (c *Client) sendTestRequestIntegerUint64Nullable(ctx context.Context, request OptNilUint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint64_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint64_nullable"), } @@ -10624,7 +10625,7 @@ func (c *Client) sendTestRequestIntegerUint64Nullable(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -10659,7 +10660,7 @@ func (c *Client) TestRequestIntegerUint64NullableArray(ctx context.Context, requ func (c *Client) sendTestRequestIntegerUint64NullableArray(ctx context.Context, request []NilUint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint64_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint64_nullable_array"), } @@ -10697,7 +10698,7 @@ func (c *Client) sendTestRequestIntegerUint64NullableArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -10732,7 +10733,7 @@ func (c *Client) TestRequestIntegerUint64NullableArrayArray(ctx context.Context, func (c *Client) sendTestRequestIntegerUint64NullableArrayArray(ctx context.Context, request [][]NilUint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint64_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint64_nullable_array_array"), } // Validate request before sending. @@ -10793,7 +10794,7 @@ func (c *Client) sendTestRequestIntegerUint64NullableArrayArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -10828,7 +10829,7 @@ func (c *Client) TestRequestIntegerUint8(ctx context.Context, request OptUint8) func (c *Client) sendTestRequestIntegerUint8(ctx context.Context, request OptUint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint8"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint8"), } @@ -10866,7 +10867,7 @@ func (c *Client) sendTestRequestIntegerUint8(ctx context.Context, request OptUin uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -10901,7 +10902,7 @@ func (c *Client) TestRequestIntegerUint8Array(ctx context.Context, request []uin func (c *Client) sendTestRequestIntegerUint8Array(ctx context.Context, request []uint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint8_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint8_array"), } @@ -10939,7 +10940,7 @@ func (c *Client) sendTestRequestIntegerUint8Array(ctx context.Context, request [ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -10974,7 +10975,7 @@ func (c *Client) TestRequestIntegerUint8ArrayArray(ctx context.Context, request func (c *Client) sendTestRequestIntegerUint8ArrayArray(ctx context.Context, request [][]uint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint8_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint8_array_array"), } // Validate request before sending. @@ -11035,7 +11036,7 @@ func (c *Client) sendTestRequestIntegerUint8ArrayArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11070,7 +11071,7 @@ func (c *Client) TestRequestIntegerUint8Nullable(ctx context.Context, request Op func (c *Client) sendTestRequestIntegerUint8Nullable(ctx context.Context, request OptNilUint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint8_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint8_nullable"), } @@ -11108,7 +11109,7 @@ func (c *Client) sendTestRequestIntegerUint8Nullable(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11143,7 +11144,7 @@ func (c *Client) TestRequestIntegerUint8NullableArray(ctx context.Context, reque func (c *Client) sendTestRequestIntegerUint8NullableArray(ctx context.Context, request []NilUint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint8_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint8_nullable_array"), } @@ -11181,7 +11182,7 @@ func (c *Client) sendTestRequestIntegerUint8NullableArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11216,7 +11217,7 @@ func (c *Client) TestRequestIntegerUint8NullableArrayArray(ctx context.Context, func (c *Client) sendTestRequestIntegerUint8NullableArrayArray(ctx context.Context, request [][]NilUint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint8_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint8_nullable_array_array"), } // Validate request before sending. @@ -11277,7 +11278,7 @@ func (c *Client) sendTestRequestIntegerUint8NullableArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11312,7 +11313,7 @@ func (c *Client) TestRequestIntegerUintArray(ctx context.Context, request []uint func (c *Client) sendTestRequestIntegerUintArray(ctx context.Context, request []uint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint_array"), } @@ -11350,7 +11351,7 @@ func (c *Client) sendTestRequestIntegerUintArray(ctx context.Context, request [] uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11385,7 +11386,7 @@ func (c *Client) TestRequestIntegerUintArrayArray(ctx context.Context, request [ func (c *Client) sendTestRequestIntegerUintArrayArray(ctx context.Context, request [][]uint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint_array_array"), } // Validate request before sending. @@ -11446,7 +11447,7 @@ func (c *Client) sendTestRequestIntegerUintArrayArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11481,7 +11482,7 @@ func (c *Client) TestRequestIntegerUintNullable(ctx context.Context, request Opt func (c *Client) sendTestRequestIntegerUintNullable(ctx context.Context, request OptNilUint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint_nullable"), } @@ -11519,7 +11520,7 @@ func (c *Client) sendTestRequestIntegerUintNullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11554,7 +11555,7 @@ func (c *Client) TestRequestIntegerUintNullableArray(ctx context.Context, reques func (c *Client) sendTestRequestIntegerUintNullableArray(ctx context.Context, request []NilUint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint_nullable_array"), } @@ -11592,7 +11593,7 @@ func (c *Client) sendTestRequestIntegerUintNullableArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11627,7 +11628,7 @@ func (c *Client) TestRequestIntegerUintNullableArrayArray(ctx context.Context, r func (c *Client) sendTestRequestIntegerUintNullableArrayArray(ctx context.Context, request [][]NilUint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_uint_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_uint_nullable_array_array"), } // Validate request before sending. @@ -11688,7 +11689,7 @@ func (c *Client) sendTestRequestIntegerUintNullableArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11723,7 +11724,7 @@ func (c *Client) TestRequestIntegerUnix(ctx context.Context, request OptUnixSeco func (c *Client) sendTestRequestIntegerUnix(ctx context.Context, request OptUnixSeconds) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix"), } @@ -11761,7 +11762,7 @@ func (c *Client) sendTestRequestIntegerUnix(ctx context.Context, request OptUnix uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11796,7 +11797,7 @@ func (c *Client) TestRequestIntegerUnixArray(ctx context.Context, request []time func (c *Client) sendTestRequestIntegerUnixArray(ctx context.Context, request []time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix_array"), } @@ -11834,7 +11835,7 @@ func (c *Client) sendTestRequestIntegerUnixArray(ctx context.Context, request [] uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11869,7 +11870,7 @@ func (c *Client) TestRequestIntegerUnixArrayArray(ctx context.Context, request [ func (c *Client) sendTestRequestIntegerUnixArrayArray(ctx context.Context, request [][]time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix_array_array"), } // Validate request before sending. @@ -11930,7 +11931,7 @@ func (c *Client) sendTestRequestIntegerUnixArrayArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -11965,7 +11966,7 @@ func (c *Client) TestRequestIntegerUnixMicro(ctx context.Context, request OptUni func (c *Client) sendTestRequestIntegerUnixMicro(ctx context.Context, request OptUnixMicro) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix-micro"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix-micro"), } @@ -12003,7 +12004,7 @@ func (c *Client) sendTestRequestIntegerUnixMicro(ctx context.Context, request Op uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12038,7 +12039,7 @@ func (c *Client) TestRequestIntegerUnixMicroArray(ctx context.Context, request [ func (c *Client) sendTestRequestIntegerUnixMicroArray(ctx context.Context, request []time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix-micro_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix-micro_array"), } @@ -12076,7 +12077,7 @@ func (c *Client) sendTestRequestIntegerUnixMicroArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12111,7 +12112,7 @@ func (c *Client) TestRequestIntegerUnixMicroArrayArray(ctx context.Context, requ func (c *Client) sendTestRequestIntegerUnixMicroArrayArray(ctx context.Context, request [][]time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix-micro_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix-micro_array_array"), } // Validate request before sending. @@ -12172,7 +12173,7 @@ func (c *Client) sendTestRequestIntegerUnixMicroArrayArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12207,7 +12208,7 @@ func (c *Client) TestRequestIntegerUnixMicroNullable(ctx context.Context, reques func (c *Client) sendTestRequestIntegerUnixMicroNullable(ctx context.Context, request OptNilUnixMicro) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix-micro_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix-micro_nullable"), } @@ -12245,7 +12246,7 @@ func (c *Client) sendTestRequestIntegerUnixMicroNullable(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12280,7 +12281,7 @@ func (c *Client) TestRequestIntegerUnixMicroNullableArray(ctx context.Context, r func (c *Client) sendTestRequestIntegerUnixMicroNullableArray(ctx context.Context, request []NilUnixMicro) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix-micro_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix-micro_nullable_array"), } @@ -12318,7 +12319,7 @@ func (c *Client) sendTestRequestIntegerUnixMicroNullableArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12353,7 +12354,7 @@ func (c *Client) TestRequestIntegerUnixMicroNullableArrayArray(ctx context.Conte func (c *Client) sendTestRequestIntegerUnixMicroNullableArrayArray(ctx context.Context, request [][]NilUnixMicro) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix-micro_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix-micro_nullable_array_array"), } // Validate request before sending. @@ -12414,7 +12415,7 @@ func (c *Client) sendTestRequestIntegerUnixMicroNullableArrayArray(ctx context.C uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12449,7 +12450,7 @@ func (c *Client) TestRequestIntegerUnixMilli(ctx context.Context, request OptUni func (c *Client) sendTestRequestIntegerUnixMilli(ctx context.Context, request OptUnixMilli) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix-milli"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix-milli"), } @@ -12487,7 +12488,7 @@ func (c *Client) sendTestRequestIntegerUnixMilli(ctx context.Context, request Op uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12522,7 +12523,7 @@ func (c *Client) TestRequestIntegerUnixMilliArray(ctx context.Context, request [ func (c *Client) sendTestRequestIntegerUnixMilliArray(ctx context.Context, request []time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix-milli_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix-milli_array"), } @@ -12560,7 +12561,7 @@ func (c *Client) sendTestRequestIntegerUnixMilliArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12595,7 +12596,7 @@ func (c *Client) TestRequestIntegerUnixMilliArrayArray(ctx context.Context, requ func (c *Client) sendTestRequestIntegerUnixMilliArrayArray(ctx context.Context, request [][]time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix-milli_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix-milli_array_array"), } // Validate request before sending. @@ -12656,7 +12657,7 @@ func (c *Client) sendTestRequestIntegerUnixMilliArrayArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12691,7 +12692,7 @@ func (c *Client) TestRequestIntegerUnixMilliNullable(ctx context.Context, reques func (c *Client) sendTestRequestIntegerUnixMilliNullable(ctx context.Context, request OptNilUnixMilli) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix-milli_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix-milli_nullable"), } @@ -12729,7 +12730,7 @@ func (c *Client) sendTestRequestIntegerUnixMilliNullable(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12764,7 +12765,7 @@ func (c *Client) TestRequestIntegerUnixMilliNullableArray(ctx context.Context, r func (c *Client) sendTestRequestIntegerUnixMilliNullableArray(ctx context.Context, request []NilUnixMilli) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix-milli_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix-milli_nullable_array"), } @@ -12802,7 +12803,7 @@ func (c *Client) sendTestRequestIntegerUnixMilliNullableArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12837,7 +12838,7 @@ func (c *Client) TestRequestIntegerUnixMilliNullableArrayArray(ctx context.Conte func (c *Client) sendTestRequestIntegerUnixMilliNullableArrayArray(ctx context.Context, request [][]NilUnixMilli) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix-milli_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix-milli_nullable_array_array"), } // Validate request before sending. @@ -12898,7 +12899,7 @@ func (c *Client) sendTestRequestIntegerUnixMilliNullableArrayArray(ctx context.C uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -12933,7 +12934,7 @@ func (c *Client) TestRequestIntegerUnixNano(ctx context.Context, request OptUnix func (c *Client) sendTestRequestIntegerUnixNano(ctx context.Context, request OptUnixNano) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix-nano"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix-nano"), } @@ -12971,7 +12972,7 @@ func (c *Client) sendTestRequestIntegerUnixNano(ctx context.Context, request Opt uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13006,7 +13007,7 @@ func (c *Client) TestRequestIntegerUnixNanoArray(ctx context.Context, request [] func (c *Client) sendTestRequestIntegerUnixNanoArray(ctx context.Context, request []time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix-nano_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix-nano_array"), } @@ -13044,7 +13045,7 @@ func (c *Client) sendTestRequestIntegerUnixNanoArray(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13079,7 +13080,7 @@ func (c *Client) TestRequestIntegerUnixNanoArrayArray(ctx context.Context, reque func (c *Client) sendTestRequestIntegerUnixNanoArrayArray(ctx context.Context, request [][]time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix-nano_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix-nano_array_array"), } // Validate request before sending. @@ -13140,7 +13141,7 @@ func (c *Client) sendTestRequestIntegerUnixNanoArrayArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13175,7 +13176,7 @@ func (c *Client) TestRequestIntegerUnixNanoNullable(ctx context.Context, request func (c *Client) sendTestRequestIntegerUnixNanoNullable(ctx context.Context, request OptNilUnixNano) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix-nano_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix-nano_nullable"), } @@ -13213,7 +13214,7 @@ func (c *Client) sendTestRequestIntegerUnixNanoNullable(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13248,7 +13249,7 @@ func (c *Client) TestRequestIntegerUnixNanoNullableArray(ctx context.Context, re func (c *Client) sendTestRequestIntegerUnixNanoNullableArray(ctx context.Context, request []NilUnixNano) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix-nano_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix-nano_nullable_array"), } @@ -13286,7 +13287,7 @@ func (c *Client) sendTestRequestIntegerUnixNanoNullableArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13321,7 +13322,7 @@ func (c *Client) TestRequestIntegerUnixNanoNullableArrayArray(ctx context.Contex func (c *Client) sendTestRequestIntegerUnixNanoNullableArrayArray(ctx context.Context, request [][]NilUnixNano) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix-nano_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix-nano_nullable_array_array"), } // Validate request before sending. @@ -13382,7 +13383,7 @@ func (c *Client) sendTestRequestIntegerUnixNanoNullableArrayArray(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13417,7 +13418,7 @@ func (c *Client) TestRequestIntegerUnixNullable(ctx context.Context, request Opt func (c *Client) sendTestRequestIntegerUnixNullable(ctx context.Context, request OptNilUnixSeconds) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix_nullable"), } @@ -13455,7 +13456,7 @@ func (c *Client) sendTestRequestIntegerUnixNullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13490,7 +13491,7 @@ func (c *Client) TestRequestIntegerUnixNullableArray(ctx context.Context, reques func (c *Client) sendTestRequestIntegerUnixNullableArray(ctx context.Context, request []NilUnixSeconds) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix_nullable_array"), } @@ -13528,7 +13529,7 @@ func (c *Client) sendTestRequestIntegerUnixNullableArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13563,7 +13564,7 @@ func (c *Client) TestRequestIntegerUnixNullableArrayArray(ctx context.Context, r func (c *Client) sendTestRequestIntegerUnixNullableArrayArray(ctx context.Context, request [][]NilUnixSeconds) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix_nullable_array_array"), } // Validate request before sending. @@ -13624,7 +13625,7 @@ func (c *Client) sendTestRequestIntegerUnixNullableArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13659,7 +13660,7 @@ func (c *Client) TestRequestIntegerUnixSeconds(ctx context.Context, request OptU func (c *Client) sendTestRequestIntegerUnixSeconds(ctx context.Context, request OptUnixSeconds) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix-seconds"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix-seconds"), } @@ -13697,7 +13698,7 @@ func (c *Client) sendTestRequestIntegerUnixSeconds(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13732,7 +13733,7 @@ func (c *Client) TestRequestIntegerUnixSecondsArray(ctx context.Context, request func (c *Client) sendTestRequestIntegerUnixSecondsArray(ctx context.Context, request []time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix-seconds_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix-seconds_array"), } @@ -13770,7 +13771,7 @@ func (c *Client) sendTestRequestIntegerUnixSecondsArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13805,7 +13806,7 @@ func (c *Client) TestRequestIntegerUnixSecondsArrayArray(ctx context.Context, re func (c *Client) sendTestRequestIntegerUnixSecondsArrayArray(ctx context.Context, request [][]time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix-seconds_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix-seconds_array_array"), } // Validate request before sending. @@ -13866,7 +13867,7 @@ func (c *Client) sendTestRequestIntegerUnixSecondsArrayArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13901,7 +13902,7 @@ func (c *Client) TestRequestIntegerUnixSecondsNullable(ctx context.Context, requ func (c *Client) sendTestRequestIntegerUnixSecondsNullable(ctx context.Context, request OptNilUnixSeconds) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix-seconds_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix-seconds_nullable"), } @@ -13939,7 +13940,7 @@ func (c *Client) sendTestRequestIntegerUnixSecondsNullable(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -13974,7 +13975,7 @@ func (c *Client) TestRequestIntegerUnixSecondsNullableArray(ctx context.Context, func (c *Client) sendTestRequestIntegerUnixSecondsNullableArray(ctx context.Context, request []NilUnixSeconds) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix-seconds_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix-seconds_nullable_array"), } @@ -14012,7 +14013,7 @@ func (c *Client) sendTestRequestIntegerUnixSecondsNullableArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -14047,7 +14048,7 @@ func (c *Client) TestRequestIntegerUnixSecondsNullableArrayArray(ctx context.Con func (c *Client) sendTestRequestIntegerUnixSecondsNullableArrayArray(ctx context.Context, request [][]NilUnixSeconds) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_integer_unix-seconds_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_integer_unix-seconds_nullable_array_array"), } // Validate request before sending. @@ -14108,7 +14109,7 @@ func (c *Client) sendTestRequestIntegerUnixSecondsNullableArrayArray(ctx context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -14143,7 +14144,7 @@ func (c *Client) TestRequestNull(ctx context.Context, request OptNull) (*Error, func (c *Client) sendTestRequestNull(ctx context.Context, request OptNull) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_null"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_null"), } @@ -14181,7 +14182,7 @@ func (c *Client) sendTestRequestNull(ctx context.Context, request OptNull) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -14216,7 +14217,7 @@ func (c *Client) TestRequestNullArray(ctx context.Context, request []struct{}) ( func (c *Client) sendTestRequestNullArray(ctx context.Context, request []struct{}) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_null_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_null_array"), } @@ -14254,7 +14255,7 @@ func (c *Client) sendTestRequestNullArray(ctx context.Context, request []struct{ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -14289,7 +14290,7 @@ func (c *Client) TestRequestNullArrayArray(ctx context.Context, request [][]stru func (c *Client) sendTestRequestNullArrayArray(ctx context.Context, request [][]struct{}) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_null_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_null_array_array"), } // Validate request before sending. @@ -14350,7 +14351,7 @@ func (c *Client) sendTestRequestNullArrayArray(ctx context.Context, request [][] uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -14385,7 +14386,7 @@ func (c *Client) TestRequestNullNullable(ctx context.Context, request OptNull) ( func (c *Client) sendTestRequestNullNullable(ctx context.Context, request OptNull) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_null_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_null_nullable"), } @@ -14423,7 +14424,7 @@ func (c *Client) sendTestRequestNullNullable(ctx context.Context, request OptNul uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -14458,7 +14459,7 @@ func (c *Client) TestRequestNullNullableArray(ctx context.Context, request []str func (c *Client) sendTestRequestNullNullableArray(ctx context.Context, request []struct{}) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_null_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_null_nullable_array"), } @@ -14496,7 +14497,7 @@ func (c *Client) sendTestRequestNullNullableArray(ctx context.Context, request [ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -14531,7 +14532,7 @@ func (c *Client) TestRequestNullNullableArrayArray(ctx context.Context, request func (c *Client) sendTestRequestNullNullableArrayArray(ctx context.Context, request [][]struct{}) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_null_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_null_nullable_array_array"), } // Validate request before sending. @@ -14592,7 +14593,7 @@ func (c *Client) sendTestRequestNullNullableArrayArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -14627,7 +14628,7 @@ func (c *Client) TestRequestNumber(ctx context.Context, request OptFloat64) (*Er func (c *Client) sendTestRequestNumber(ctx context.Context, request OptFloat64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number"), } // Validate request before sending. @@ -14681,7 +14682,7 @@ func (c *Client) sendTestRequestNumber(ctx context.Context, request OptFloat64) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -14716,7 +14717,7 @@ func (c *Client) TestRequestNumberArray(ctx context.Context, request []float64) func (c *Client) sendTestRequestNumberArray(ctx context.Context, request []float64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_array"), } // Validate request before sending. @@ -14777,7 +14778,7 @@ func (c *Client) sendTestRequestNumberArray(ctx context.Context, request []float uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -14812,7 +14813,7 @@ func (c *Client) TestRequestNumberArrayArray(ctx context.Context, request [][]fl func (c *Client) sendTestRequestNumberArrayArray(ctx context.Context, request [][]float64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_array_array"), } // Validate request before sending. @@ -14890,7 +14891,7 @@ func (c *Client) sendTestRequestNumberArrayArray(ctx context.Context, request [] uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -14925,7 +14926,7 @@ func (c *Client) TestRequestNumberDouble(ctx context.Context, request OptFloat64 func (c *Client) sendTestRequestNumberDouble(ctx context.Context, request OptFloat64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_double"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_double"), } // Validate request before sending. @@ -14979,7 +14980,7 @@ func (c *Client) sendTestRequestNumberDouble(ctx context.Context, request OptFlo uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -15014,7 +15015,7 @@ func (c *Client) TestRequestNumberDoubleArray(ctx context.Context, request []flo func (c *Client) sendTestRequestNumberDoubleArray(ctx context.Context, request []float64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_double_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_double_array"), } // Validate request before sending. @@ -15075,7 +15076,7 @@ func (c *Client) sendTestRequestNumberDoubleArray(ctx context.Context, request [ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -15110,7 +15111,7 @@ func (c *Client) TestRequestNumberDoubleArrayArray(ctx context.Context, request func (c *Client) sendTestRequestNumberDoubleArrayArray(ctx context.Context, request [][]float64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_double_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_double_array_array"), } // Validate request before sending. @@ -15188,7 +15189,7 @@ func (c *Client) sendTestRequestNumberDoubleArrayArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -15223,7 +15224,7 @@ func (c *Client) TestRequestNumberDoubleNullable(ctx context.Context, request Op func (c *Client) sendTestRequestNumberDoubleNullable(ctx context.Context, request OptNilFloat64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_double_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_double_nullable"), } // Validate request before sending. @@ -15277,7 +15278,7 @@ func (c *Client) sendTestRequestNumberDoubleNullable(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -15312,7 +15313,7 @@ func (c *Client) TestRequestNumberDoubleNullableArray(ctx context.Context, reque func (c *Client) sendTestRequestNumberDoubleNullableArray(ctx context.Context, request []NilFloat64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_double_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_double_nullable_array"), } // Validate request before sending. @@ -15380,7 +15381,7 @@ func (c *Client) sendTestRequestNumberDoubleNullableArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -15415,7 +15416,7 @@ func (c *Client) TestRequestNumberDoubleNullableArrayArray(ctx context.Context, func (c *Client) sendTestRequestNumberDoubleNullableArrayArray(ctx context.Context, request [][]NilFloat64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_double_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_double_nullable_array_array"), } // Validate request before sending. @@ -15500,7 +15501,7 @@ func (c *Client) sendTestRequestNumberDoubleNullableArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -15535,7 +15536,7 @@ func (c *Client) TestRequestNumberFloat(ctx context.Context, request OptFloat32) func (c *Client) sendTestRequestNumberFloat(ctx context.Context, request OptFloat32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_float"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_float"), } // Validate request before sending. @@ -15589,7 +15590,7 @@ func (c *Client) sendTestRequestNumberFloat(ctx context.Context, request OptFloa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -15624,7 +15625,7 @@ func (c *Client) TestRequestNumberFloatArray(ctx context.Context, request []floa func (c *Client) sendTestRequestNumberFloatArray(ctx context.Context, request []float32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_float_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_float_array"), } // Validate request before sending. @@ -15685,7 +15686,7 @@ func (c *Client) sendTestRequestNumberFloatArray(ctx context.Context, request [] uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -15720,7 +15721,7 @@ func (c *Client) TestRequestNumberFloatArrayArray(ctx context.Context, request [ func (c *Client) sendTestRequestNumberFloatArrayArray(ctx context.Context, request [][]float32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_float_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_float_array_array"), } // Validate request before sending. @@ -15798,7 +15799,7 @@ func (c *Client) sendTestRequestNumberFloatArrayArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -15833,7 +15834,7 @@ func (c *Client) TestRequestNumberFloatNullable(ctx context.Context, request Opt func (c *Client) sendTestRequestNumberFloatNullable(ctx context.Context, request OptNilFloat32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_float_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_float_nullable"), } // Validate request before sending. @@ -15887,7 +15888,7 @@ func (c *Client) sendTestRequestNumberFloatNullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -15922,7 +15923,7 @@ func (c *Client) TestRequestNumberFloatNullableArray(ctx context.Context, reques func (c *Client) sendTestRequestNumberFloatNullableArray(ctx context.Context, request []NilFloat32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_float_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_float_nullable_array"), } // Validate request before sending. @@ -15990,7 +15991,7 @@ func (c *Client) sendTestRequestNumberFloatNullableArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16025,7 +16026,7 @@ func (c *Client) TestRequestNumberFloatNullableArrayArray(ctx context.Context, r func (c *Client) sendTestRequestNumberFloatNullableArrayArray(ctx context.Context, request [][]NilFloat32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_float_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_float_nullable_array_array"), } // Validate request before sending. @@ -16110,7 +16111,7 @@ func (c *Client) sendTestRequestNumberFloatNullableArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16145,7 +16146,7 @@ func (c *Client) TestRequestNumberInt32(ctx context.Context, request OptInt32) ( func (c *Client) sendTestRequestNumberInt32(ctx context.Context, request OptInt32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_int32"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_int32"), } @@ -16183,7 +16184,7 @@ func (c *Client) sendTestRequestNumberInt32(ctx context.Context, request OptInt3 uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16218,7 +16219,7 @@ func (c *Client) TestRequestNumberInt32Array(ctx context.Context, request []int3 func (c *Client) sendTestRequestNumberInt32Array(ctx context.Context, request []int32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_int32_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_int32_array"), } @@ -16256,7 +16257,7 @@ func (c *Client) sendTestRequestNumberInt32Array(ctx context.Context, request [] uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16291,7 +16292,7 @@ func (c *Client) TestRequestNumberInt32ArrayArray(ctx context.Context, request [ func (c *Client) sendTestRequestNumberInt32ArrayArray(ctx context.Context, request [][]int32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_int32_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_int32_array_array"), } // Validate request before sending. @@ -16352,7 +16353,7 @@ func (c *Client) sendTestRequestNumberInt32ArrayArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16387,7 +16388,7 @@ func (c *Client) TestRequestNumberInt32Nullable(ctx context.Context, request Opt func (c *Client) sendTestRequestNumberInt32Nullable(ctx context.Context, request OptNilInt32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_int32_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_int32_nullable"), } @@ -16425,7 +16426,7 @@ func (c *Client) sendTestRequestNumberInt32Nullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16460,7 +16461,7 @@ func (c *Client) TestRequestNumberInt32NullableArray(ctx context.Context, reques func (c *Client) sendTestRequestNumberInt32NullableArray(ctx context.Context, request []NilInt32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_int32_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_int32_nullable_array"), } @@ -16498,7 +16499,7 @@ func (c *Client) sendTestRequestNumberInt32NullableArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16533,7 +16534,7 @@ func (c *Client) TestRequestNumberInt32NullableArrayArray(ctx context.Context, r func (c *Client) sendTestRequestNumberInt32NullableArrayArray(ctx context.Context, request [][]NilInt32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_int32_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_int32_nullable_array_array"), } // Validate request before sending. @@ -16594,7 +16595,7 @@ func (c *Client) sendTestRequestNumberInt32NullableArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16629,7 +16630,7 @@ func (c *Client) TestRequestNumberInt64(ctx context.Context, request OptInt64) ( func (c *Client) sendTestRequestNumberInt64(ctx context.Context, request OptInt64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_int64"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_int64"), } @@ -16667,7 +16668,7 @@ func (c *Client) sendTestRequestNumberInt64(ctx context.Context, request OptInt6 uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16702,7 +16703,7 @@ func (c *Client) TestRequestNumberInt64Array(ctx context.Context, request []int6 func (c *Client) sendTestRequestNumberInt64Array(ctx context.Context, request []int64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_int64_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_int64_array"), } @@ -16740,7 +16741,7 @@ func (c *Client) sendTestRequestNumberInt64Array(ctx context.Context, request [] uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16775,7 +16776,7 @@ func (c *Client) TestRequestNumberInt64ArrayArray(ctx context.Context, request [ func (c *Client) sendTestRequestNumberInt64ArrayArray(ctx context.Context, request [][]int64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_int64_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_int64_array_array"), } // Validate request before sending. @@ -16836,7 +16837,7 @@ func (c *Client) sendTestRequestNumberInt64ArrayArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16871,7 +16872,7 @@ func (c *Client) TestRequestNumberInt64Nullable(ctx context.Context, request Opt func (c *Client) sendTestRequestNumberInt64Nullable(ctx context.Context, request OptNilInt64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_int64_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_int64_nullable"), } @@ -16909,7 +16910,7 @@ func (c *Client) sendTestRequestNumberInt64Nullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -16944,7 +16945,7 @@ func (c *Client) TestRequestNumberInt64NullableArray(ctx context.Context, reques func (c *Client) sendTestRequestNumberInt64NullableArray(ctx context.Context, request []NilInt64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_int64_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_int64_nullable_array"), } @@ -16982,7 +16983,7 @@ func (c *Client) sendTestRequestNumberInt64NullableArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -17017,7 +17018,7 @@ func (c *Client) TestRequestNumberInt64NullableArrayArray(ctx context.Context, r func (c *Client) sendTestRequestNumberInt64NullableArrayArray(ctx context.Context, request [][]NilInt64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_int64_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_int64_nullable_array_array"), } // Validate request before sending. @@ -17078,7 +17079,7 @@ func (c *Client) sendTestRequestNumberInt64NullableArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -17113,7 +17114,7 @@ func (c *Client) TestRequestNumberNullable(ctx context.Context, request OptNilFl func (c *Client) sendTestRequestNumberNullable(ctx context.Context, request OptNilFloat64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_nullable"), } // Validate request before sending. @@ -17167,7 +17168,7 @@ func (c *Client) sendTestRequestNumberNullable(ctx context.Context, request OptN uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -17202,7 +17203,7 @@ func (c *Client) TestRequestNumberNullableArray(ctx context.Context, request []N func (c *Client) sendTestRequestNumberNullableArray(ctx context.Context, request []NilFloat64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_nullable_array"), } // Validate request before sending. @@ -17270,7 +17271,7 @@ func (c *Client) sendTestRequestNumberNullableArray(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -17305,7 +17306,7 @@ func (c *Client) TestRequestNumberNullableArrayArray(ctx context.Context, reques func (c *Client) sendTestRequestNumberNullableArrayArray(ctx context.Context, request [][]NilFloat64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_number_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_number_nullable_array_array"), } // Validate request before sending. @@ -17390,7 +17391,7 @@ func (c *Client) sendTestRequestNumberNullableArrayArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -17425,7 +17426,7 @@ func (c *Client) TestRequestRequiredAny(ctx context.Context, request jx.Raw) (*E func (c *Client) sendTestRequestRequiredAny(ctx context.Context, request jx.Raw) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_Any"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_Any"), } @@ -17463,7 +17464,7 @@ func (c *Client) sendTestRequestRequiredAny(ctx context.Context, request jx.Raw) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -17498,7 +17499,7 @@ func (c *Client) TestRequestRequiredBoolean(ctx context.Context, request bool) ( func (c *Client) sendTestRequestRequiredBoolean(ctx context.Context, request bool) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_boolean"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_boolean"), } @@ -17536,7 +17537,7 @@ func (c *Client) sendTestRequestRequiredBoolean(ctx context.Context, request boo uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -17571,7 +17572,7 @@ func (c *Client) TestRequestRequiredBooleanArray(ctx context.Context, request [] func (c *Client) sendTestRequestRequiredBooleanArray(ctx context.Context, request []bool) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_boolean_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_boolean_array"), } // Validate request before sending. @@ -17618,7 +17619,7 @@ func (c *Client) sendTestRequestRequiredBooleanArray(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -17653,7 +17654,7 @@ func (c *Client) TestRequestRequiredBooleanArrayArray(ctx context.Context, reque func (c *Client) sendTestRequestRequiredBooleanArrayArray(ctx context.Context, request [][]bool) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_boolean_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_boolean_array_array"), } // Validate request before sending. @@ -17717,7 +17718,7 @@ func (c *Client) sendTestRequestRequiredBooleanArrayArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -17752,7 +17753,7 @@ func (c *Client) TestRequestRequiredBooleanNullable(ctx context.Context, request func (c *Client) sendTestRequestRequiredBooleanNullable(ctx context.Context, request NilBool) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_boolean_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_boolean_nullable"), } @@ -17790,7 +17791,7 @@ func (c *Client) sendTestRequestRequiredBooleanNullable(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -17825,7 +17826,7 @@ func (c *Client) TestRequestRequiredBooleanNullableArray(ctx context.Context, re func (c *Client) sendTestRequestRequiredBooleanNullableArray(ctx context.Context, request []NilBool) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_boolean_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_boolean_nullable_array"), } // Validate request before sending. @@ -17872,7 +17873,7 @@ func (c *Client) sendTestRequestRequiredBooleanNullableArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -17907,7 +17908,7 @@ func (c *Client) TestRequestRequiredBooleanNullableArrayArray(ctx context.Contex func (c *Client) sendTestRequestRequiredBooleanNullableArrayArray(ctx context.Context, request [][]NilBool) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_boolean_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_boolean_nullable_array_array"), } // Validate request before sending. @@ -17971,7 +17972,7 @@ func (c *Client) sendTestRequestRequiredBooleanNullableArrayArray(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -18006,7 +18007,7 @@ func (c *Client) TestRequestRequiredEmptyStruct(ctx context.Context, request *Te func (c *Client) sendTestRequestRequiredEmptyStruct(ctx context.Context, request *TestRequestRequiredEmptyStructReq) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_EmptyStruct"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_EmptyStruct"), } @@ -18044,7 +18045,7 @@ func (c *Client) sendTestRequestRequiredEmptyStruct(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -18079,7 +18080,7 @@ func (c *Client) TestRequestRequiredFormatTest(ctx context.Context, request *Tes func (c *Client) sendTestRequestRequiredFormatTest(ctx context.Context, request *TestRequestRequiredFormatTestReq) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_FormatTest"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_FormatTest"), } // Validate request before sending. @@ -18126,7 +18127,7 @@ func (c *Client) sendTestRequestRequiredFormatTest(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -18161,7 +18162,7 @@ func (c *Client) TestRequestRequiredInteger(ctx context.Context, request int) (* func (c *Client) sendTestRequestRequiredInteger(ctx context.Context, request int) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer"), } @@ -18199,7 +18200,7 @@ func (c *Client) sendTestRequestRequiredInteger(ctx context.Context, request int uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -18234,7 +18235,7 @@ func (c *Client) TestRequestRequiredIntegerArray(ctx context.Context, request [] func (c *Client) sendTestRequestRequiredIntegerArray(ctx context.Context, request []int) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_array"), } // Validate request before sending. @@ -18281,7 +18282,7 @@ func (c *Client) sendTestRequestRequiredIntegerArray(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -18316,7 +18317,7 @@ func (c *Client) TestRequestRequiredIntegerArrayArray(ctx context.Context, reque func (c *Client) sendTestRequestRequiredIntegerArrayArray(ctx context.Context, request [][]int) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_array_array"), } // Validate request before sending. @@ -18380,7 +18381,7 @@ func (c *Client) sendTestRequestRequiredIntegerArrayArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -18415,7 +18416,7 @@ func (c *Client) TestRequestRequiredIntegerInt16(ctx context.Context, request in func (c *Client) sendTestRequestRequiredIntegerInt16(ctx context.Context, request int16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_int16"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_int16"), } @@ -18453,7 +18454,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt16(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -18488,7 +18489,7 @@ func (c *Client) TestRequestRequiredIntegerInt16Array(ctx context.Context, reque func (c *Client) sendTestRequestRequiredIntegerInt16Array(ctx context.Context, request []int16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_int16_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_int16_array"), } // Validate request before sending. @@ -18535,7 +18536,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt16Array(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -18570,7 +18571,7 @@ func (c *Client) TestRequestRequiredIntegerInt16ArrayArray(ctx context.Context, func (c *Client) sendTestRequestRequiredIntegerInt16ArrayArray(ctx context.Context, request [][]int16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_int16_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_int16_array_array"), } // Validate request before sending. @@ -18634,7 +18635,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt16ArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -18669,7 +18670,7 @@ func (c *Client) TestRequestRequiredIntegerInt16Nullable(ctx context.Context, re func (c *Client) sendTestRequestRequiredIntegerInt16Nullable(ctx context.Context, request NilInt16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_int16_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_int16_nullable"), } @@ -18707,7 +18708,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt16Nullable(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -18742,7 +18743,7 @@ func (c *Client) TestRequestRequiredIntegerInt16NullableArray(ctx context.Contex func (c *Client) sendTestRequestRequiredIntegerInt16NullableArray(ctx context.Context, request []NilInt16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_int16_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_int16_nullable_array"), } // Validate request before sending. @@ -18789,7 +18790,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt16NullableArray(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -18824,7 +18825,7 @@ func (c *Client) TestRequestRequiredIntegerInt16NullableArrayArray(ctx context.C func (c *Client) sendTestRequestRequiredIntegerInt16NullableArrayArray(ctx context.Context, request [][]NilInt16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_int16_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_int16_nullable_array_array"), } // Validate request before sending. @@ -18888,7 +18889,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt16NullableArrayArray(ctx conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -18923,7 +18924,7 @@ func (c *Client) TestRequestRequiredIntegerInt32(ctx context.Context, request in func (c *Client) sendTestRequestRequiredIntegerInt32(ctx context.Context, request int32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_int32"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_int32"), } @@ -18961,7 +18962,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt32(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -18996,7 +18997,7 @@ func (c *Client) TestRequestRequiredIntegerInt32Array(ctx context.Context, reque func (c *Client) sendTestRequestRequiredIntegerInt32Array(ctx context.Context, request []int32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_int32_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_int32_array"), } // Validate request before sending. @@ -19043,7 +19044,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt32Array(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -19078,7 +19079,7 @@ func (c *Client) TestRequestRequiredIntegerInt32ArrayArray(ctx context.Context, func (c *Client) sendTestRequestRequiredIntegerInt32ArrayArray(ctx context.Context, request [][]int32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_int32_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_int32_array_array"), } // Validate request before sending. @@ -19142,7 +19143,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt32ArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -19177,7 +19178,7 @@ func (c *Client) TestRequestRequiredIntegerInt32Nullable(ctx context.Context, re func (c *Client) sendTestRequestRequiredIntegerInt32Nullable(ctx context.Context, request NilInt32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_int32_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_int32_nullable"), } @@ -19215,7 +19216,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt32Nullable(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -19250,7 +19251,7 @@ func (c *Client) TestRequestRequiredIntegerInt32NullableArray(ctx context.Contex func (c *Client) sendTestRequestRequiredIntegerInt32NullableArray(ctx context.Context, request []NilInt32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_int32_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_int32_nullable_array"), } // Validate request before sending. @@ -19297,7 +19298,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt32NullableArray(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -19332,7 +19333,7 @@ func (c *Client) TestRequestRequiredIntegerInt32NullableArrayArray(ctx context.C func (c *Client) sendTestRequestRequiredIntegerInt32NullableArrayArray(ctx context.Context, request [][]NilInt32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_int32_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_int32_nullable_array_array"), } // Validate request before sending. @@ -19396,7 +19397,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt32NullableArrayArray(ctx conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -19431,7 +19432,7 @@ func (c *Client) TestRequestRequiredIntegerInt64(ctx context.Context, request in func (c *Client) sendTestRequestRequiredIntegerInt64(ctx context.Context, request int64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_int64"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_int64"), } @@ -19469,7 +19470,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt64(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -19504,7 +19505,7 @@ func (c *Client) TestRequestRequiredIntegerInt64Array(ctx context.Context, reque func (c *Client) sendTestRequestRequiredIntegerInt64Array(ctx context.Context, request []int64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_int64_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_int64_array"), } // Validate request before sending. @@ -19551,7 +19552,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt64Array(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -19586,7 +19587,7 @@ func (c *Client) TestRequestRequiredIntegerInt64ArrayArray(ctx context.Context, func (c *Client) sendTestRequestRequiredIntegerInt64ArrayArray(ctx context.Context, request [][]int64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_int64_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_int64_array_array"), } // Validate request before sending. @@ -19650,7 +19651,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt64ArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -19685,7 +19686,7 @@ func (c *Client) TestRequestRequiredIntegerInt64Nullable(ctx context.Context, re func (c *Client) sendTestRequestRequiredIntegerInt64Nullable(ctx context.Context, request NilInt64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_int64_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_int64_nullable"), } @@ -19723,7 +19724,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt64Nullable(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -19758,7 +19759,7 @@ func (c *Client) TestRequestRequiredIntegerInt64NullableArray(ctx context.Contex func (c *Client) sendTestRequestRequiredIntegerInt64NullableArray(ctx context.Context, request []NilInt64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_int64_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_int64_nullable_array"), } // Validate request before sending. @@ -19805,7 +19806,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt64NullableArray(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -19840,7 +19841,7 @@ func (c *Client) TestRequestRequiredIntegerInt64NullableArrayArray(ctx context.C func (c *Client) sendTestRequestRequiredIntegerInt64NullableArrayArray(ctx context.Context, request [][]NilInt64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_int64_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_int64_nullable_array_array"), } // Validate request before sending. @@ -19904,7 +19905,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt64NullableArrayArray(ctx conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -19939,7 +19940,7 @@ func (c *Client) TestRequestRequiredIntegerInt8(ctx context.Context, request int func (c *Client) sendTestRequestRequiredIntegerInt8(ctx context.Context, request int8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_int8"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_int8"), } @@ -19977,7 +19978,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt8(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -20012,7 +20013,7 @@ func (c *Client) TestRequestRequiredIntegerInt8Array(ctx context.Context, reques func (c *Client) sendTestRequestRequiredIntegerInt8Array(ctx context.Context, request []int8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_int8_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_int8_array"), } // Validate request before sending. @@ -20059,7 +20060,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt8Array(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -20094,7 +20095,7 @@ func (c *Client) TestRequestRequiredIntegerInt8ArrayArray(ctx context.Context, r func (c *Client) sendTestRequestRequiredIntegerInt8ArrayArray(ctx context.Context, request [][]int8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_int8_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_int8_array_array"), } // Validate request before sending. @@ -20158,7 +20159,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt8ArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -20193,7 +20194,7 @@ func (c *Client) TestRequestRequiredIntegerInt8Nullable(ctx context.Context, req func (c *Client) sendTestRequestRequiredIntegerInt8Nullable(ctx context.Context, request NilInt8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_int8_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_int8_nullable"), } @@ -20231,7 +20232,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt8Nullable(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -20266,7 +20267,7 @@ func (c *Client) TestRequestRequiredIntegerInt8NullableArray(ctx context.Context func (c *Client) sendTestRequestRequiredIntegerInt8NullableArray(ctx context.Context, request []NilInt8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_int8_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_int8_nullable_array"), } // Validate request before sending. @@ -20313,7 +20314,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt8NullableArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -20348,7 +20349,7 @@ func (c *Client) TestRequestRequiredIntegerInt8NullableArrayArray(ctx context.Co func (c *Client) sendTestRequestRequiredIntegerInt8NullableArrayArray(ctx context.Context, request [][]NilInt8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_int8_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_int8_nullable_array_array"), } // Validate request before sending. @@ -20412,7 +20413,7 @@ func (c *Client) sendTestRequestRequiredIntegerInt8NullableArrayArray(ctx contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -20447,7 +20448,7 @@ func (c *Client) TestRequestRequiredIntegerNullable(ctx context.Context, request func (c *Client) sendTestRequestRequiredIntegerNullable(ctx context.Context, request NilInt) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_nullable"), } @@ -20485,7 +20486,7 @@ func (c *Client) sendTestRequestRequiredIntegerNullable(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -20520,7 +20521,7 @@ func (c *Client) TestRequestRequiredIntegerNullableArray(ctx context.Context, re func (c *Client) sendTestRequestRequiredIntegerNullableArray(ctx context.Context, request []NilInt) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_nullable_array"), } // Validate request before sending. @@ -20567,7 +20568,7 @@ func (c *Client) sendTestRequestRequiredIntegerNullableArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -20602,7 +20603,7 @@ func (c *Client) TestRequestRequiredIntegerNullableArrayArray(ctx context.Contex func (c *Client) sendTestRequestRequiredIntegerNullableArrayArray(ctx context.Context, request [][]NilInt) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_nullable_array_array"), } // Validate request before sending. @@ -20666,7 +20667,7 @@ func (c *Client) sendTestRequestRequiredIntegerNullableArrayArray(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -20701,7 +20702,7 @@ func (c *Client) TestRequestRequiredIntegerUint(ctx context.Context, request uin func (c *Client) sendTestRequestRequiredIntegerUint(ctx context.Context, request uint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint"), } @@ -20739,7 +20740,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -20774,7 +20775,7 @@ func (c *Client) TestRequestRequiredIntegerUint16(ctx context.Context, request u func (c *Client) sendTestRequestRequiredIntegerUint16(ctx context.Context, request uint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint16"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint16"), } @@ -20812,7 +20813,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint16(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -20847,7 +20848,7 @@ func (c *Client) TestRequestRequiredIntegerUint16Array(ctx context.Context, requ func (c *Client) sendTestRequestRequiredIntegerUint16Array(ctx context.Context, request []uint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint16_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint16_array"), } // Validate request before sending. @@ -20894,7 +20895,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint16Array(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -20929,7 +20930,7 @@ func (c *Client) TestRequestRequiredIntegerUint16ArrayArray(ctx context.Context, func (c *Client) sendTestRequestRequiredIntegerUint16ArrayArray(ctx context.Context, request [][]uint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint16_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint16_array_array"), } // Validate request before sending. @@ -20993,7 +20994,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint16ArrayArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -21028,7 +21029,7 @@ func (c *Client) TestRequestRequiredIntegerUint16Nullable(ctx context.Context, r func (c *Client) sendTestRequestRequiredIntegerUint16Nullable(ctx context.Context, request NilUint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint16_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint16_nullable"), } @@ -21066,7 +21067,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint16Nullable(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -21101,7 +21102,7 @@ func (c *Client) TestRequestRequiredIntegerUint16NullableArray(ctx context.Conte func (c *Client) sendTestRequestRequiredIntegerUint16NullableArray(ctx context.Context, request []NilUint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint16_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint16_nullable_array"), } // Validate request before sending. @@ -21148,7 +21149,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint16NullableArray(ctx context.C uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -21183,7 +21184,7 @@ func (c *Client) TestRequestRequiredIntegerUint16NullableArrayArray(ctx context. func (c *Client) sendTestRequestRequiredIntegerUint16NullableArrayArray(ctx context.Context, request [][]NilUint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint16_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint16_nullable_array_array"), } // Validate request before sending. @@ -21247,7 +21248,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint16NullableArrayArray(ctx cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -21282,7 +21283,7 @@ func (c *Client) TestRequestRequiredIntegerUint32(ctx context.Context, request u func (c *Client) sendTestRequestRequiredIntegerUint32(ctx context.Context, request uint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint32"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint32"), } @@ -21320,7 +21321,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint32(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -21355,7 +21356,7 @@ func (c *Client) TestRequestRequiredIntegerUint32Array(ctx context.Context, requ func (c *Client) sendTestRequestRequiredIntegerUint32Array(ctx context.Context, request []uint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint32_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint32_array"), } // Validate request before sending. @@ -21402,7 +21403,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint32Array(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -21437,7 +21438,7 @@ func (c *Client) TestRequestRequiredIntegerUint32ArrayArray(ctx context.Context, func (c *Client) sendTestRequestRequiredIntegerUint32ArrayArray(ctx context.Context, request [][]uint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint32_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint32_array_array"), } // Validate request before sending. @@ -21501,7 +21502,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint32ArrayArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -21536,7 +21537,7 @@ func (c *Client) TestRequestRequiredIntegerUint32Nullable(ctx context.Context, r func (c *Client) sendTestRequestRequiredIntegerUint32Nullable(ctx context.Context, request NilUint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint32_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint32_nullable"), } @@ -21574,7 +21575,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint32Nullable(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -21609,7 +21610,7 @@ func (c *Client) TestRequestRequiredIntegerUint32NullableArray(ctx context.Conte func (c *Client) sendTestRequestRequiredIntegerUint32NullableArray(ctx context.Context, request []NilUint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint32_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint32_nullable_array"), } // Validate request before sending. @@ -21656,7 +21657,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint32NullableArray(ctx context.C uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -21691,7 +21692,7 @@ func (c *Client) TestRequestRequiredIntegerUint32NullableArrayArray(ctx context. func (c *Client) sendTestRequestRequiredIntegerUint32NullableArrayArray(ctx context.Context, request [][]NilUint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint32_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint32_nullable_array_array"), } // Validate request before sending. @@ -21755,7 +21756,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint32NullableArrayArray(ctx cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -21790,7 +21791,7 @@ func (c *Client) TestRequestRequiredIntegerUint64(ctx context.Context, request u func (c *Client) sendTestRequestRequiredIntegerUint64(ctx context.Context, request uint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint64"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint64"), } @@ -21828,7 +21829,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint64(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -21863,7 +21864,7 @@ func (c *Client) TestRequestRequiredIntegerUint64Array(ctx context.Context, requ func (c *Client) sendTestRequestRequiredIntegerUint64Array(ctx context.Context, request []uint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint64_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint64_array"), } // Validate request before sending. @@ -21910,7 +21911,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint64Array(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -21945,7 +21946,7 @@ func (c *Client) TestRequestRequiredIntegerUint64ArrayArray(ctx context.Context, func (c *Client) sendTestRequestRequiredIntegerUint64ArrayArray(ctx context.Context, request [][]uint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint64_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint64_array_array"), } // Validate request before sending. @@ -22009,7 +22010,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint64ArrayArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -22044,7 +22045,7 @@ func (c *Client) TestRequestRequiredIntegerUint64Nullable(ctx context.Context, r func (c *Client) sendTestRequestRequiredIntegerUint64Nullable(ctx context.Context, request NilUint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint64_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint64_nullable"), } @@ -22082,7 +22083,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint64Nullable(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -22117,7 +22118,7 @@ func (c *Client) TestRequestRequiredIntegerUint64NullableArray(ctx context.Conte func (c *Client) sendTestRequestRequiredIntegerUint64NullableArray(ctx context.Context, request []NilUint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint64_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint64_nullable_array"), } // Validate request before sending. @@ -22164,7 +22165,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint64NullableArray(ctx context.C uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -22199,7 +22200,7 @@ func (c *Client) TestRequestRequiredIntegerUint64NullableArrayArray(ctx context. func (c *Client) sendTestRequestRequiredIntegerUint64NullableArrayArray(ctx context.Context, request [][]NilUint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint64_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint64_nullable_array_array"), } // Validate request before sending. @@ -22263,7 +22264,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint64NullableArrayArray(ctx cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -22298,7 +22299,7 @@ func (c *Client) TestRequestRequiredIntegerUint8(ctx context.Context, request ui func (c *Client) sendTestRequestRequiredIntegerUint8(ctx context.Context, request uint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint8"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint8"), } @@ -22336,7 +22337,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint8(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -22371,7 +22372,7 @@ func (c *Client) TestRequestRequiredIntegerUint8Array(ctx context.Context, reque func (c *Client) sendTestRequestRequiredIntegerUint8Array(ctx context.Context, request []uint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint8_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint8_array"), } // Validate request before sending. @@ -22418,7 +22419,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint8Array(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -22453,7 +22454,7 @@ func (c *Client) TestRequestRequiredIntegerUint8ArrayArray(ctx context.Context, func (c *Client) sendTestRequestRequiredIntegerUint8ArrayArray(ctx context.Context, request [][]uint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint8_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint8_array_array"), } // Validate request before sending. @@ -22517,7 +22518,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint8ArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -22552,7 +22553,7 @@ func (c *Client) TestRequestRequiredIntegerUint8Nullable(ctx context.Context, re func (c *Client) sendTestRequestRequiredIntegerUint8Nullable(ctx context.Context, request NilUint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint8_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint8_nullable"), } @@ -22590,7 +22591,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint8Nullable(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -22625,7 +22626,7 @@ func (c *Client) TestRequestRequiredIntegerUint8NullableArray(ctx context.Contex func (c *Client) sendTestRequestRequiredIntegerUint8NullableArray(ctx context.Context, request []NilUint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint8_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint8_nullable_array"), } // Validate request before sending. @@ -22672,7 +22673,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint8NullableArray(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -22707,7 +22708,7 @@ func (c *Client) TestRequestRequiredIntegerUint8NullableArrayArray(ctx context.C func (c *Client) sendTestRequestRequiredIntegerUint8NullableArrayArray(ctx context.Context, request [][]NilUint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint8_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint8_nullable_array_array"), } // Validate request before sending. @@ -22771,7 +22772,7 @@ func (c *Client) sendTestRequestRequiredIntegerUint8NullableArrayArray(ctx conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -22806,7 +22807,7 @@ func (c *Client) TestRequestRequiredIntegerUintArray(ctx context.Context, reques func (c *Client) sendTestRequestRequiredIntegerUintArray(ctx context.Context, request []uint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint_array"), } // Validate request before sending. @@ -22853,7 +22854,7 @@ func (c *Client) sendTestRequestRequiredIntegerUintArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -22888,7 +22889,7 @@ func (c *Client) TestRequestRequiredIntegerUintArrayArray(ctx context.Context, r func (c *Client) sendTestRequestRequiredIntegerUintArrayArray(ctx context.Context, request [][]uint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint_array_array"), } // Validate request before sending. @@ -22952,7 +22953,7 @@ func (c *Client) sendTestRequestRequiredIntegerUintArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -22987,7 +22988,7 @@ func (c *Client) TestRequestRequiredIntegerUintNullable(ctx context.Context, req func (c *Client) sendTestRequestRequiredIntegerUintNullable(ctx context.Context, request NilUint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint_nullable"), } @@ -23025,7 +23026,7 @@ func (c *Client) sendTestRequestRequiredIntegerUintNullable(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -23060,7 +23061,7 @@ func (c *Client) TestRequestRequiredIntegerUintNullableArray(ctx context.Context func (c *Client) sendTestRequestRequiredIntegerUintNullableArray(ctx context.Context, request []NilUint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint_nullable_array"), } // Validate request before sending. @@ -23107,7 +23108,7 @@ func (c *Client) sendTestRequestRequiredIntegerUintNullableArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -23142,7 +23143,7 @@ func (c *Client) TestRequestRequiredIntegerUintNullableArrayArray(ctx context.Co func (c *Client) sendTestRequestRequiredIntegerUintNullableArrayArray(ctx context.Context, request [][]NilUint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_uint_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_uint_nullable_array_array"), } // Validate request before sending. @@ -23206,7 +23207,7 @@ func (c *Client) sendTestRequestRequiredIntegerUintNullableArrayArray(ctx contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -23241,7 +23242,7 @@ func (c *Client) TestRequestRequiredIntegerUnix(ctx context.Context, request tim func (c *Client) sendTestRequestRequiredIntegerUnix(ctx context.Context, request time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix"), } @@ -23279,7 +23280,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnix(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -23314,7 +23315,7 @@ func (c *Client) TestRequestRequiredIntegerUnixArray(ctx context.Context, reques func (c *Client) sendTestRequestRequiredIntegerUnixArray(ctx context.Context, request []time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix_array"), } // Validate request before sending. @@ -23361,7 +23362,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -23396,7 +23397,7 @@ func (c *Client) TestRequestRequiredIntegerUnixArrayArray(ctx context.Context, r func (c *Client) sendTestRequestRequiredIntegerUnixArrayArray(ctx context.Context, request [][]time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix_array_array"), } // Validate request before sending. @@ -23460,7 +23461,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -23495,7 +23496,7 @@ func (c *Client) TestRequestRequiredIntegerUnixMicro(ctx context.Context, reques func (c *Client) sendTestRequestRequiredIntegerUnixMicro(ctx context.Context, request time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix-micro"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix-micro"), } @@ -23533,7 +23534,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMicro(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -23568,7 +23569,7 @@ func (c *Client) TestRequestRequiredIntegerUnixMicroArray(ctx context.Context, r func (c *Client) sendTestRequestRequiredIntegerUnixMicroArray(ctx context.Context, request []time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix-micro_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix-micro_array"), } // Validate request before sending. @@ -23615,7 +23616,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMicroArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -23650,7 +23651,7 @@ func (c *Client) TestRequestRequiredIntegerUnixMicroArrayArray(ctx context.Conte func (c *Client) sendTestRequestRequiredIntegerUnixMicroArrayArray(ctx context.Context, request [][]time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix-micro_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix-micro_array_array"), } // Validate request before sending. @@ -23714,7 +23715,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMicroArrayArray(ctx context.C uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -23749,7 +23750,7 @@ func (c *Client) TestRequestRequiredIntegerUnixMicroNullable(ctx context.Context func (c *Client) sendTestRequestRequiredIntegerUnixMicroNullable(ctx context.Context, request NilUnixMicro) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix-micro_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix-micro_nullable"), } @@ -23787,7 +23788,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMicroNullable(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -23822,7 +23823,7 @@ func (c *Client) TestRequestRequiredIntegerUnixMicroNullableArray(ctx context.Co func (c *Client) sendTestRequestRequiredIntegerUnixMicroNullableArray(ctx context.Context, request []NilUnixMicro) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix-micro_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix-micro_nullable_array"), } // Validate request before sending. @@ -23869,7 +23870,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMicroNullableArray(ctx contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -23904,7 +23905,7 @@ func (c *Client) TestRequestRequiredIntegerUnixMicroNullableArrayArray(ctx conte func (c *Client) sendTestRequestRequiredIntegerUnixMicroNullableArrayArray(ctx context.Context, request [][]NilUnixMicro) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix-micro_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix-micro_nullable_array_array"), } // Validate request before sending. @@ -23968,7 +23969,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMicroNullableArrayArray(ctx c uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -24003,7 +24004,7 @@ func (c *Client) TestRequestRequiredIntegerUnixMilli(ctx context.Context, reques func (c *Client) sendTestRequestRequiredIntegerUnixMilli(ctx context.Context, request time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix-milli"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix-milli"), } @@ -24041,7 +24042,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMilli(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -24076,7 +24077,7 @@ func (c *Client) TestRequestRequiredIntegerUnixMilliArray(ctx context.Context, r func (c *Client) sendTestRequestRequiredIntegerUnixMilliArray(ctx context.Context, request []time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix-milli_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix-milli_array"), } // Validate request before sending. @@ -24123,7 +24124,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMilliArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -24158,7 +24159,7 @@ func (c *Client) TestRequestRequiredIntegerUnixMilliArrayArray(ctx context.Conte func (c *Client) sendTestRequestRequiredIntegerUnixMilliArrayArray(ctx context.Context, request [][]time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix-milli_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix-milli_array_array"), } // Validate request before sending. @@ -24222,7 +24223,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMilliArrayArray(ctx context.C uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -24257,7 +24258,7 @@ func (c *Client) TestRequestRequiredIntegerUnixMilliNullable(ctx context.Context func (c *Client) sendTestRequestRequiredIntegerUnixMilliNullable(ctx context.Context, request NilUnixMilli) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix-milli_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix-milli_nullable"), } @@ -24295,7 +24296,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMilliNullable(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -24330,7 +24331,7 @@ func (c *Client) TestRequestRequiredIntegerUnixMilliNullableArray(ctx context.Co func (c *Client) sendTestRequestRequiredIntegerUnixMilliNullableArray(ctx context.Context, request []NilUnixMilli) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix-milli_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix-milli_nullable_array"), } // Validate request before sending. @@ -24377,7 +24378,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMilliNullableArray(ctx contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -24412,7 +24413,7 @@ func (c *Client) TestRequestRequiredIntegerUnixMilliNullableArrayArray(ctx conte func (c *Client) sendTestRequestRequiredIntegerUnixMilliNullableArrayArray(ctx context.Context, request [][]NilUnixMilli) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix-milli_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix-milli_nullable_array_array"), } // Validate request before sending. @@ -24476,7 +24477,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixMilliNullableArrayArray(ctx c uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -24511,7 +24512,7 @@ func (c *Client) TestRequestRequiredIntegerUnixNano(ctx context.Context, request func (c *Client) sendTestRequestRequiredIntegerUnixNano(ctx context.Context, request time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix-nano"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix-nano"), } @@ -24549,7 +24550,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNano(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -24584,7 +24585,7 @@ func (c *Client) TestRequestRequiredIntegerUnixNanoArray(ctx context.Context, re func (c *Client) sendTestRequestRequiredIntegerUnixNanoArray(ctx context.Context, request []time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix-nano_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix-nano_array"), } // Validate request before sending. @@ -24631,7 +24632,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNanoArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -24666,7 +24667,7 @@ func (c *Client) TestRequestRequiredIntegerUnixNanoArrayArray(ctx context.Contex func (c *Client) sendTestRequestRequiredIntegerUnixNanoArrayArray(ctx context.Context, request [][]time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix-nano_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix-nano_array_array"), } // Validate request before sending. @@ -24730,7 +24731,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNanoArrayArray(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -24765,7 +24766,7 @@ func (c *Client) TestRequestRequiredIntegerUnixNanoNullable(ctx context.Context, func (c *Client) sendTestRequestRequiredIntegerUnixNanoNullable(ctx context.Context, request NilUnixNano) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix-nano_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix-nano_nullable"), } @@ -24803,7 +24804,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNanoNullable(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -24838,7 +24839,7 @@ func (c *Client) TestRequestRequiredIntegerUnixNanoNullableArray(ctx context.Con func (c *Client) sendTestRequestRequiredIntegerUnixNanoNullableArray(ctx context.Context, request []NilUnixNano) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix-nano_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix-nano_nullable_array"), } // Validate request before sending. @@ -24885,7 +24886,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNanoNullableArray(ctx context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -24920,7 +24921,7 @@ func (c *Client) TestRequestRequiredIntegerUnixNanoNullableArrayArray(ctx contex func (c *Client) sendTestRequestRequiredIntegerUnixNanoNullableArrayArray(ctx context.Context, request [][]NilUnixNano) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix-nano_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix-nano_nullable_array_array"), } // Validate request before sending. @@ -24984,7 +24985,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNanoNullableArrayArray(ctx co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -25019,7 +25020,7 @@ func (c *Client) TestRequestRequiredIntegerUnixNullable(ctx context.Context, req func (c *Client) sendTestRequestRequiredIntegerUnixNullable(ctx context.Context, request NilUnixSeconds) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix_nullable"), } @@ -25057,7 +25058,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNullable(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -25092,7 +25093,7 @@ func (c *Client) TestRequestRequiredIntegerUnixNullableArray(ctx context.Context func (c *Client) sendTestRequestRequiredIntegerUnixNullableArray(ctx context.Context, request []NilUnixSeconds) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix_nullable_array"), } // Validate request before sending. @@ -25139,7 +25140,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNullableArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -25174,7 +25175,7 @@ func (c *Client) TestRequestRequiredIntegerUnixNullableArrayArray(ctx context.Co func (c *Client) sendTestRequestRequiredIntegerUnixNullableArrayArray(ctx context.Context, request [][]NilUnixSeconds) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix_nullable_array_array"), } // Validate request before sending. @@ -25238,7 +25239,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixNullableArrayArray(ctx contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -25273,7 +25274,7 @@ func (c *Client) TestRequestRequiredIntegerUnixSeconds(ctx context.Context, requ func (c *Client) sendTestRequestRequiredIntegerUnixSeconds(ctx context.Context, request time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix-seconds"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix-seconds"), } @@ -25311,7 +25312,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixSeconds(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -25346,7 +25347,7 @@ func (c *Client) TestRequestRequiredIntegerUnixSecondsArray(ctx context.Context, func (c *Client) sendTestRequestRequiredIntegerUnixSecondsArray(ctx context.Context, request []time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix-seconds_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix-seconds_array"), } // Validate request before sending. @@ -25393,7 +25394,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixSecondsArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -25428,7 +25429,7 @@ func (c *Client) TestRequestRequiredIntegerUnixSecondsArrayArray(ctx context.Con func (c *Client) sendTestRequestRequiredIntegerUnixSecondsArrayArray(ctx context.Context, request [][]time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix-seconds_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix-seconds_array_array"), } // Validate request before sending. @@ -25492,7 +25493,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixSecondsArrayArray(ctx context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -25527,7 +25528,7 @@ func (c *Client) TestRequestRequiredIntegerUnixSecondsNullable(ctx context.Conte func (c *Client) sendTestRequestRequiredIntegerUnixSecondsNullable(ctx context.Context, request NilUnixSeconds) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix-seconds_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix-seconds_nullable"), } @@ -25565,7 +25566,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixSecondsNullable(ctx context.C uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -25600,7 +25601,7 @@ func (c *Client) TestRequestRequiredIntegerUnixSecondsNullableArray(ctx context. func (c *Client) sendTestRequestRequiredIntegerUnixSecondsNullableArray(ctx context.Context, request []NilUnixSeconds) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix-seconds_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix-seconds_nullable_array"), } // Validate request before sending. @@ -25647,7 +25648,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixSecondsNullableArray(ctx cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -25682,7 +25683,7 @@ func (c *Client) TestRequestRequiredIntegerUnixSecondsNullableArrayArray(ctx con func (c *Client) sendTestRequestRequiredIntegerUnixSecondsNullableArrayArray(ctx context.Context, request [][]NilUnixSeconds) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_integer_unix-seconds_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_integer_unix-seconds_nullable_array_array"), } // Validate request before sending. @@ -25746,7 +25747,7 @@ func (c *Client) sendTestRequestRequiredIntegerUnixSecondsNullableArrayArray(ctx uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -25781,7 +25782,7 @@ func (c *Client) TestRequestRequiredNull(ctx context.Context, request struct{}) func (c *Client) sendTestRequestRequiredNull(ctx context.Context, request struct{}) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_null"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_null"), } @@ -25819,7 +25820,7 @@ func (c *Client) sendTestRequestRequiredNull(ctx context.Context, request struct uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -25854,7 +25855,7 @@ func (c *Client) TestRequestRequiredNullArray(ctx context.Context, request []str func (c *Client) sendTestRequestRequiredNullArray(ctx context.Context, request []struct{}) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_null_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_null_array"), } // Validate request before sending. @@ -25901,7 +25902,7 @@ func (c *Client) sendTestRequestRequiredNullArray(ctx context.Context, request [ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -25936,7 +25937,7 @@ func (c *Client) TestRequestRequiredNullArrayArray(ctx context.Context, request func (c *Client) sendTestRequestRequiredNullArrayArray(ctx context.Context, request [][]struct{}) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_null_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_null_array_array"), } // Validate request before sending. @@ -26000,7 +26001,7 @@ func (c *Client) sendTestRequestRequiredNullArrayArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -26035,7 +26036,7 @@ func (c *Client) TestRequestRequiredNullNullable(ctx context.Context, request st func (c *Client) sendTestRequestRequiredNullNullable(ctx context.Context, request struct{}) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_null_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_null_nullable"), } @@ -26073,7 +26074,7 @@ func (c *Client) sendTestRequestRequiredNullNullable(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -26108,7 +26109,7 @@ func (c *Client) TestRequestRequiredNullNullableArray(ctx context.Context, reque func (c *Client) sendTestRequestRequiredNullNullableArray(ctx context.Context, request []struct{}) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_null_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_null_nullable_array"), } // Validate request before sending. @@ -26155,7 +26156,7 @@ func (c *Client) sendTestRequestRequiredNullNullableArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -26190,7 +26191,7 @@ func (c *Client) TestRequestRequiredNullNullableArrayArray(ctx context.Context, func (c *Client) sendTestRequestRequiredNullNullableArrayArray(ctx context.Context, request [][]struct{}) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_null_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_null_nullable_array_array"), } // Validate request before sending. @@ -26254,7 +26255,7 @@ func (c *Client) sendTestRequestRequiredNullNullableArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -26289,7 +26290,7 @@ func (c *Client) TestRequestRequiredNumber(ctx context.Context, request float64) func (c *Client) sendTestRequestRequiredNumber(ctx context.Context, request float64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number"), } // Validate request before sending. @@ -26336,7 +26337,7 @@ func (c *Client) sendTestRequestRequiredNumber(ctx context.Context, request floa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -26371,7 +26372,7 @@ func (c *Client) TestRequestRequiredNumberArray(ctx context.Context, request []f func (c *Client) sendTestRequestRequiredNumberArray(ctx context.Context, request []float64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_array"), } // Validate request before sending. @@ -26435,7 +26436,7 @@ func (c *Client) sendTestRequestRequiredNumberArray(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -26470,7 +26471,7 @@ func (c *Client) TestRequestRequiredNumberArrayArray(ctx context.Context, reques func (c *Client) sendTestRequestRequiredNumberArrayArray(ctx context.Context, request [][]float64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_array_array"), } // Validate request before sending. @@ -26551,7 +26552,7 @@ func (c *Client) sendTestRequestRequiredNumberArrayArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -26586,7 +26587,7 @@ func (c *Client) TestRequestRequiredNumberDouble(ctx context.Context, request fl func (c *Client) sendTestRequestRequiredNumberDouble(ctx context.Context, request float64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_double"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_double"), } // Validate request before sending. @@ -26633,7 +26634,7 @@ func (c *Client) sendTestRequestRequiredNumberDouble(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -26668,7 +26669,7 @@ func (c *Client) TestRequestRequiredNumberDoubleArray(ctx context.Context, reque func (c *Client) sendTestRequestRequiredNumberDoubleArray(ctx context.Context, request []float64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_double_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_double_array"), } // Validate request before sending. @@ -26732,7 +26733,7 @@ func (c *Client) sendTestRequestRequiredNumberDoubleArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -26767,7 +26768,7 @@ func (c *Client) TestRequestRequiredNumberDoubleArrayArray(ctx context.Context, func (c *Client) sendTestRequestRequiredNumberDoubleArrayArray(ctx context.Context, request [][]float64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_double_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_double_array_array"), } // Validate request before sending. @@ -26848,7 +26849,7 @@ func (c *Client) sendTestRequestRequiredNumberDoubleArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -26883,7 +26884,7 @@ func (c *Client) TestRequestRequiredNumberDoubleNullable(ctx context.Context, re func (c *Client) sendTestRequestRequiredNumberDoubleNullable(ctx context.Context, request NilFloat64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_double_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_double_nullable"), } // Validate request before sending. @@ -26937,7 +26938,7 @@ func (c *Client) sendTestRequestRequiredNumberDoubleNullable(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -26972,7 +26973,7 @@ func (c *Client) TestRequestRequiredNumberDoubleNullableArray(ctx context.Contex func (c *Client) sendTestRequestRequiredNumberDoubleNullableArray(ctx context.Context, request []NilFloat64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_double_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_double_nullable_array"), } // Validate request before sending. @@ -27043,7 +27044,7 @@ func (c *Client) sendTestRequestRequiredNumberDoubleNullableArray(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -27078,7 +27079,7 @@ func (c *Client) TestRequestRequiredNumberDoubleNullableArrayArray(ctx context.C func (c *Client) sendTestRequestRequiredNumberDoubleNullableArrayArray(ctx context.Context, request [][]NilFloat64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_double_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_double_nullable_array_array"), } // Validate request before sending. @@ -27166,7 +27167,7 @@ func (c *Client) sendTestRequestRequiredNumberDoubleNullableArrayArray(ctx conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -27201,7 +27202,7 @@ func (c *Client) TestRequestRequiredNumberFloat(ctx context.Context, request flo func (c *Client) sendTestRequestRequiredNumberFloat(ctx context.Context, request float32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_float"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_float"), } // Validate request before sending. @@ -27248,7 +27249,7 @@ func (c *Client) sendTestRequestRequiredNumberFloat(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -27283,7 +27284,7 @@ func (c *Client) TestRequestRequiredNumberFloatArray(ctx context.Context, reques func (c *Client) sendTestRequestRequiredNumberFloatArray(ctx context.Context, request []float32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_float_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_float_array"), } // Validate request before sending. @@ -27347,7 +27348,7 @@ func (c *Client) sendTestRequestRequiredNumberFloatArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -27382,7 +27383,7 @@ func (c *Client) TestRequestRequiredNumberFloatArrayArray(ctx context.Context, r func (c *Client) sendTestRequestRequiredNumberFloatArrayArray(ctx context.Context, request [][]float32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_float_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_float_array_array"), } // Validate request before sending. @@ -27463,7 +27464,7 @@ func (c *Client) sendTestRequestRequiredNumberFloatArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -27498,7 +27499,7 @@ func (c *Client) TestRequestRequiredNumberFloatNullable(ctx context.Context, req func (c *Client) sendTestRequestRequiredNumberFloatNullable(ctx context.Context, request NilFloat32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_float_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_float_nullable"), } // Validate request before sending. @@ -27552,7 +27553,7 @@ func (c *Client) sendTestRequestRequiredNumberFloatNullable(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -27587,7 +27588,7 @@ func (c *Client) TestRequestRequiredNumberFloatNullableArray(ctx context.Context func (c *Client) sendTestRequestRequiredNumberFloatNullableArray(ctx context.Context, request []NilFloat32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_float_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_float_nullable_array"), } // Validate request before sending. @@ -27658,7 +27659,7 @@ func (c *Client) sendTestRequestRequiredNumberFloatNullableArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -27693,7 +27694,7 @@ func (c *Client) TestRequestRequiredNumberFloatNullableArrayArray(ctx context.Co func (c *Client) sendTestRequestRequiredNumberFloatNullableArrayArray(ctx context.Context, request [][]NilFloat32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_float_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_float_nullable_array_array"), } // Validate request before sending. @@ -27781,7 +27782,7 @@ func (c *Client) sendTestRequestRequiredNumberFloatNullableArrayArray(ctx contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -27816,7 +27817,7 @@ func (c *Client) TestRequestRequiredNumberInt32(ctx context.Context, request int func (c *Client) sendTestRequestRequiredNumberInt32(ctx context.Context, request int32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_int32"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_int32"), } @@ -27854,7 +27855,7 @@ func (c *Client) sendTestRequestRequiredNumberInt32(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -27889,7 +27890,7 @@ func (c *Client) TestRequestRequiredNumberInt32Array(ctx context.Context, reques func (c *Client) sendTestRequestRequiredNumberInt32Array(ctx context.Context, request []int32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_int32_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_int32_array"), } // Validate request before sending. @@ -27936,7 +27937,7 @@ func (c *Client) sendTestRequestRequiredNumberInt32Array(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -27971,7 +27972,7 @@ func (c *Client) TestRequestRequiredNumberInt32ArrayArray(ctx context.Context, r func (c *Client) sendTestRequestRequiredNumberInt32ArrayArray(ctx context.Context, request [][]int32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_int32_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_int32_array_array"), } // Validate request before sending. @@ -28035,7 +28036,7 @@ func (c *Client) sendTestRequestRequiredNumberInt32ArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -28070,7 +28071,7 @@ func (c *Client) TestRequestRequiredNumberInt32Nullable(ctx context.Context, req func (c *Client) sendTestRequestRequiredNumberInt32Nullable(ctx context.Context, request NilInt32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_int32_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_int32_nullable"), } @@ -28108,7 +28109,7 @@ func (c *Client) sendTestRequestRequiredNumberInt32Nullable(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -28143,7 +28144,7 @@ func (c *Client) TestRequestRequiredNumberInt32NullableArray(ctx context.Context func (c *Client) sendTestRequestRequiredNumberInt32NullableArray(ctx context.Context, request []NilInt32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_int32_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_int32_nullable_array"), } // Validate request before sending. @@ -28190,7 +28191,7 @@ func (c *Client) sendTestRequestRequiredNumberInt32NullableArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -28225,7 +28226,7 @@ func (c *Client) TestRequestRequiredNumberInt32NullableArrayArray(ctx context.Co func (c *Client) sendTestRequestRequiredNumberInt32NullableArrayArray(ctx context.Context, request [][]NilInt32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_int32_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_int32_nullable_array_array"), } // Validate request before sending. @@ -28289,7 +28290,7 @@ func (c *Client) sendTestRequestRequiredNumberInt32NullableArrayArray(ctx contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -28324,7 +28325,7 @@ func (c *Client) TestRequestRequiredNumberInt64(ctx context.Context, request int func (c *Client) sendTestRequestRequiredNumberInt64(ctx context.Context, request int64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_int64"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_int64"), } @@ -28362,7 +28363,7 @@ func (c *Client) sendTestRequestRequiredNumberInt64(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -28397,7 +28398,7 @@ func (c *Client) TestRequestRequiredNumberInt64Array(ctx context.Context, reques func (c *Client) sendTestRequestRequiredNumberInt64Array(ctx context.Context, request []int64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_int64_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_int64_array"), } // Validate request before sending. @@ -28444,7 +28445,7 @@ func (c *Client) sendTestRequestRequiredNumberInt64Array(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -28479,7 +28480,7 @@ func (c *Client) TestRequestRequiredNumberInt64ArrayArray(ctx context.Context, r func (c *Client) sendTestRequestRequiredNumberInt64ArrayArray(ctx context.Context, request [][]int64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_int64_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_int64_array_array"), } // Validate request before sending. @@ -28543,7 +28544,7 @@ func (c *Client) sendTestRequestRequiredNumberInt64ArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -28578,7 +28579,7 @@ func (c *Client) TestRequestRequiredNumberInt64Nullable(ctx context.Context, req func (c *Client) sendTestRequestRequiredNumberInt64Nullable(ctx context.Context, request NilInt64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_int64_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_int64_nullable"), } @@ -28616,7 +28617,7 @@ func (c *Client) sendTestRequestRequiredNumberInt64Nullable(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -28651,7 +28652,7 @@ func (c *Client) TestRequestRequiredNumberInt64NullableArray(ctx context.Context func (c *Client) sendTestRequestRequiredNumberInt64NullableArray(ctx context.Context, request []NilInt64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_int64_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_int64_nullable_array"), } // Validate request before sending. @@ -28698,7 +28699,7 @@ func (c *Client) sendTestRequestRequiredNumberInt64NullableArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -28733,7 +28734,7 @@ func (c *Client) TestRequestRequiredNumberInt64NullableArrayArray(ctx context.Co func (c *Client) sendTestRequestRequiredNumberInt64NullableArrayArray(ctx context.Context, request [][]NilInt64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_int64_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_int64_nullable_array_array"), } // Validate request before sending. @@ -28797,7 +28798,7 @@ func (c *Client) sendTestRequestRequiredNumberInt64NullableArrayArray(ctx contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -28832,7 +28833,7 @@ func (c *Client) TestRequestRequiredNumberNullable(ctx context.Context, request func (c *Client) sendTestRequestRequiredNumberNullable(ctx context.Context, request NilFloat64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_nullable"), } // Validate request before sending. @@ -28886,7 +28887,7 @@ func (c *Client) sendTestRequestRequiredNumberNullable(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -28921,7 +28922,7 @@ func (c *Client) TestRequestRequiredNumberNullableArray(ctx context.Context, req func (c *Client) sendTestRequestRequiredNumberNullableArray(ctx context.Context, request []NilFloat64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_nullable_array"), } // Validate request before sending. @@ -28992,7 +28993,7 @@ func (c *Client) sendTestRequestRequiredNumberNullableArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -29027,7 +29028,7 @@ func (c *Client) TestRequestRequiredNumberNullableArrayArray(ctx context.Context func (c *Client) sendTestRequestRequiredNumberNullableArrayArray(ctx context.Context, request [][]NilFloat64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_number_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_number_nullable_array_array"), } // Validate request before sending. @@ -29115,7 +29116,7 @@ func (c *Client) sendTestRequestRequiredNumberNullableArrayArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -29150,7 +29151,7 @@ func (c *Client) TestRequestRequiredString(ctx context.Context, request string) func (c *Client) sendTestRequestRequiredString(ctx context.Context, request string) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string"), } @@ -29188,7 +29189,7 @@ func (c *Client) sendTestRequestRequiredString(ctx context.Context, request stri uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -29223,7 +29224,7 @@ func (c *Client) TestRequestRequiredStringArray(ctx context.Context, request []s func (c *Client) sendTestRequestRequiredStringArray(ctx context.Context, request []string) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_array"), } // Validate request before sending. @@ -29270,7 +29271,7 @@ func (c *Client) sendTestRequestRequiredStringArray(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -29305,7 +29306,7 @@ func (c *Client) TestRequestRequiredStringArrayArray(ctx context.Context, reques func (c *Client) sendTestRequestRequiredStringArrayArray(ctx context.Context, request [][]string) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_array_array"), } // Validate request before sending. @@ -29369,7 +29370,7 @@ func (c *Client) sendTestRequestRequiredStringArrayArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -29404,7 +29405,7 @@ func (c *Client) TestRequestRequiredStringBase64(ctx context.Context, request [] func (c *Client) sendTestRequestRequiredStringBase64(ctx context.Context, request []byte) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_base64"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_base64"), } @@ -29442,7 +29443,7 @@ func (c *Client) sendTestRequestRequiredStringBase64(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -29477,7 +29478,7 @@ func (c *Client) TestRequestRequiredStringBase64Array(ctx context.Context, reque func (c *Client) sendTestRequestRequiredStringBase64Array(ctx context.Context, request [][]byte) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_base64_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_base64_array"), } // Validate request before sending. @@ -29524,7 +29525,7 @@ func (c *Client) sendTestRequestRequiredStringBase64Array(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -29559,7 +29560,7 @@ func (c *Client) TestRequestRequiredStringBase64ArrayArray(ctx context.Context, func (c *Client) sendTestRequestRequiredStringBase64ArrayArray(ctx context.Context, request [][][]byte) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_base64_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_base64_array_array"), } // Validate request before sending. @@ -29623,7 +29624,7 @@ func (c *Client) sendTestRequestRequiredStringBase64ArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -29658,7 +29659,7 @@ func (c *Client) TestRequestRequiredStringBase64Nullable(ctx context.Context, re func (c *Client) sendTestRequestRequiredStringBase64Nullable(ctx context.Context, request []byte) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_base64_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_base64_nullable"), } @@ -29696,7 +29697,7 @@ func (c *Client) sendTestRequestRequiredStringBase64Nullable(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -29731,7 +29732,7 @@ func (c *Client) TestRequestRequiredStringBase64NullableArray(ctx context.Contex func (c *Client) sendTestRequestRequiredStringBase64NullableArray(ctx context.Context, request [][]byte) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_base64_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_base64_nullable_array"), } // Validate request before sending. @@ -29778,7 +29779,7 @@ func (c *Client) sendTestRequestRequiredStringBase64NullableArray(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -29813,7 +29814,7 @@ func (c *Client) TestRequestRequiredStringBase64NullableArrayArray(ctx context.C func (c *Client) sendTestRequestRequiredStringBase64NullableArrayArray(ctx context.Context, request [][][]byte) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_base64_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_base64_nullable_array_array"), } // Validate request before sending. @@ -29877,7 +29878,7 @@ func (c *Client) sendTestRequestRequiredStringBase64NullableArrayArray(ctx conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -29912,7 +29913,7 @@ func (c *Client) TestRequestRequiredStringBinary(ctx context.Context, request st func (c *Client) sendTestRequestRequiredStringBinary(ctx context.Context, request string) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_binary"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_binary"), } @@ -29950,7 +29951,7 @@ func (c *Client) sendTestRequestRequiredStringBinary(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -29985,7 +29986,7 @@ func (c *Client) TestRequestRequiredStringBinaryArray(ctx context.Context, reque func (c *Client) sendTestRequestRequiredStringBinaryArray(ctx context.Context, request []string) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_binary_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_binary_array"), } // Validate request before sending. @@ -30032,7 +30033,7 @@ func (c *Client) sendTestRequestRequiredStringBinaryArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -30067,7 +30068,7 @@ func (c *Client) TestRequestRequiredStringBinaryArrayArray(ctx context.Context, func (c *Client) sendTestRequestRequiredStringBinaryArrayArray(ctx context.Context, request [][]string) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_binary_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_binary_array_array"), } // Validate request before sending. @@ -30131,7 +30132,7 @@ func (c *Client) sendTestRequestRequiredStringBinaryArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -30166,7 +30167,7 @@ func (c *Client) TestRequestRequiredStringBinaryNullable(ctx context.Context, re func (c *Client) sendTestRequestRequiredStringBinaryNullable(ctx context.Context, request NilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_binary_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_binary_nullable"), } @@ -30204,7 +30205,7 @@ func (c *Client) sendTestRequestRequiredStringBinaryNullable(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -30239,7 +30240,7 @@ func (c *Client) TestRequestRequiredStringBinaryNullableArray(ctx context.Contex func (c *Client) sendTestRequestRequiredStringBinaryNullableArray(ctx context.Context, request []NilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_binary_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_binary_nullable_array"), } // Validate request before sending. @@ -30286,7 +30287,7 @@ func (c *Client) sendTestRequestRequiredStringBinaryNullableArray(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -30321,7 +30322,7 @@ func (c *Client) TestRequestRequiredStringBinaryNullableArrayArray(ctx context.C func (c *Client) sendTestRequestRequiredStringBinaryNullableArrayArray(ctx context.Context, request [][]NilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_binary_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_binary_nullable_array_array"), } // Validate request before sending. @@ -30385,7 +30386,7 @@ func (c *Client) sendTestRequestRequiredStringBinaryNullableArrayArray(ctx conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -30420,7 +30421,7 @@ func (c *Client) TestRequestRequiredStringByte(ctx context.Context, request []by func (c *Client) sendTestRequestRequiredStringByte(ctx context.Context, request []byte) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_byte"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_byte"), } @@ -30458,7 +30459,7 @@ func (c *Client) sendTestRequestRequiredStringByte(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -30493,7 +30494,7 @@ func (c *Client) TestRequestRequiredStringByteArray(ctx context.Context, request func (c *Client) sendTestRequestRequiredStringByteArray(ctx context.Context, request [][]byte) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_byte_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_byte_array"), } // Validate request before sending. @@ -30540,7 +30541,7 @@ func (c *Client) sendTestRequestRequiredStringByteArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -30575,7 +30576,7 @@ func (c *Client) TestRequestRequiredStringByteArrayArray(ctx context.Context, re func (c *Client) sendTestRequestRequiredStringByteArrayArray(ctx context.Context, request [][][]byte) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_byte_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_byte_array_array"), } // Validate request before sending. @@ -30639,7 +30640,7 @@ func (c *Client) sendTestRequestRequiredStringByteArrayArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -30674,7 +30675,7 @@ func (c *Client) TestRequestRequiredStringByteNullable(ctx context.Context, requ func (c *Client) sendTestRequestRequiredStringByteNullable(ctx context.Context, request []byte) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_byte_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_byte_nullable"), } @@ -30712,7 +30713,7 @@ func (c *Client) sendTestRequestRequiredStringByteNullable(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -30747,7 +30748,7 @@ func (c *Client) TestRequestRequiredStringByteNullableArray(ctx context.Context, func (c *Client) sendTestRequestRequiredStringByteNullableArray(ctx context.Context, request [][]byte) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_byte_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_byte_nullable_array"), } // Validate request before sending. @@ -30794,7 +30795,7 @@ func (c *Client) sendTestRequestRequiredStringByteNullableArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -30829,7 +30830,7 @@ func (c *Client) TestRequestRequiredStringByteNullableArrayArray(ctx context.Con func (c *Client) sendTestRequestRequiredStringByteNullableArrayArray(ctx context.Context, request [][][]byte) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_byte_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_byte_nullable_array_array"), } // Validate request before sending. @@ -30893,7 +30894,7 @@ func (c *Client) sendTestRequestRequiredStringByteNullableArrayArray(ctx context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -30928,7 +30929,7 @@ func (c *Client) TestRequestRequiredStringDate(ctx context.Context, request time func (c *Client) sendTestRequestRequiredStringDate(ctx context.Context, request time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_date"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_date"), } @@ -30966,7 +30967,7 @@ func (c *Client) sendTestRequestRequiredStringDate(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -31001,7 +31002,7 @@ func (c *Client) TestRequestRequiredStringDateArray(ctx context.Context, request func (c *Client) sendTestRequestRequiredStringDateArray(ctx context.Context, request []time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_date_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_date_array"), } // Validate request before sending. @@ -31048,7 +31049,7 @@ func (c *Client) sendTestRequestRequiredStringDateArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -31083,7 +31084,7 @@ func (c *Client) TestRequestRequiredStringDateArrayArray(ctx context.Context, re func (c *Client) sendTestRequestRequiredStringDateArrayArray(ctx context.Context, request [][]time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_date_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_date_array_array"), } // Validate request before sending. @@ -31147,7 +31148,7 @@ func (c *Client) sendTestRequestRequiredStringDateArrayArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -31182,7 +31183,7 @@ func (c *Client) TestRequestRequiredStringDateNullable(ctx context.Context, requ func (c *Client) sendTestRequestRequiredStringDateNullable(ctx context.Context, request NilDate) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_date_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_date_nullable"), } @@ -31220,7 +31221,7 @@ func (c *Client) sendTestRequestRequiredStringDateNullable(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -31255,7 +31256,7 @@ func (c *Client) TestRequestRequiredStringDateNullableArray(ctx context.Context, func (c *Client) sendTestRequestRequiredStringDateNullableArray(ctx context.Context, request []NilDate) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_date_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_date_nullable_array"), } // Validate request before sending. @@ -31302,7 +31303,7 @@ func (c *Client) sendTestRequestRequiredStringDateNullableArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -31337,7 +31338,7 @@ func (c *Client) TestRequestRequiredStringDateNullableArrayArray(ctx context.Con func (c *Client) sendTestRequestRequiredStringDateNullableArrayArray(ctx context.Context, request [][]NilDate) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_date_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_date_nullable_array_array"), } // Validate request before sending. @@ -31401,7 +31402,7 @@ func (c *Client) sendTestRequestRequiredStringDateNullableArrayArray(ctx context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -31436,7 +31437,7 @@ func (c *Client) TestRequestRequiredStringDateTime(ctx context.Context, request func (c *Client) sendTestRequestRequiredStringDateTime(ctx context.Context, request time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_date-time"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_date-time"), } @@ -31474,7 +31475,7 @@ func (c *Client) sendTestRequestRequiredStringDateTime(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -31509,7 +31510,7 @@ func (c *Client) TestRequestRequiredStringDateTimeArray(ctx context.Context, req func (c *Client) sendTestRequestRequiredStringDateTimeArray(ctx context.Context, request []time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_date-time_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_date-time_array"), } // Validate request before sending. @@ -31556,7 +31557,7 @@ func (c *Client) sendTestRequestRequiredStringDateTimeArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -31591,7 +31592,7 @@ func (c *Client) TestRequestRequiredStringDateTimeArrayArray(ctx context.Context func (c *Client) sendTestRequestRequiredStringDateTimeArrayArray(ctx context.Context, request [][]time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_date-time_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_date-time_array_array"), } // Validate request before sending. @@ -31655,7 +31656,7 @@ func (c *Client) sendTestRequestRequiredStringDateTimeArrayArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -31690,7 +31691,7 @@ func (c *Client) TestRequestRequiredStringDateTimeNullable(ctx context.Context, func (c *Client) sendTestRequestRequiredStringDateTimeNullable(ctx context.Context, request NilDateTime) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_date-time_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_date-time_nullable"), } @@ -31728,7 +31729,7 @@ func (c *Client) sendTestRequestRequiredStringDateTimeNullable(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -31763,7 +31764,7 @@ func (c *Client) TestRequestRequiredStringDateTimeNullableArray(ctx context.Cont func (c *Client) sendTestRequestRequiredStringDateTimeNullableArray(ctx context.Context, request []NilDateTime) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_date-time_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_date-time_nullable_array"), } // Validate request before sending. @@ -31810,7 +31811,7 @@ func (c *Client) sendTestRequestRequiredStringDateTimeNullableArray(ctx context. uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -31845,7 +31846,7 @@ func (c *Client) TestRequestRequiredStringDateTimeNullableArrayArray(ctx context func (c *Client) sendTestRequestRequiredStringDateTimeNullableArrayArray(ctx context.Context, request [][]NilDateTime) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_date-time_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_date-time_nullable_array_array"), } // Validate request before sending. @@ -31909,7 +31910,7 @@ func (c *Client) sendTestRequestRequiredStringDateTimeNullableArrayArray(ctx con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -31944,7 +31945,7 @@ func (c *Client) TestRequestRequiredStringDuration(ctx context.Context, request func (c *Client) sendTestRequestRequiredStringDuration(ctx context.Context, request time.Duration) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_duration"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_duration"), } @@ -31982,7 +31983,7 @@ func (c *Client) sendTestRequestRequiredStringDuration(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -32017,7 +32018,7 @@ func (c *Client) TestRequestRequiredStringDurationArray(ctx context.Context, req func (c *Client) sendTestRequestRequiredStringDurationArray(ctx context.Context, request []time.Duration) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_duration_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_duration_array"), } // Validate request before sending. @@ -32064,7 +32065,7 @@ func (c *Client) sendTestRequestRequiredStringDurationArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -32099,7 +32100,7 @@ func (c *Client) TestRequestRequiredStringDurationArrayArray(ctx context.Context func (c *Client) sendTestRequestRequiredStringDurationArrayArray(ctx context.Context, request [][]time.Duration) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_duration_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_duration_array_array"), } // Validate request before sending. @@ -32163,7 +32164,7 @@ func (c *Client) sendTestRequestRequiredStringDurationArrayArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -32198,7 +32199,7 @@ func (c *Client) TestRequestRequiredStringDurationNullable(ctx context.Context, func (c *Client) sendTestRequestRequiredStringDurationNullable(ctx context.Context, request NilDuration) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_duration_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_duration_nullable"), } @@ -32236,7 +32237,7 @@ func (c *Client) sendTestRequestRequiredStringDurationNullable(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -32271,7 +32272,7 @@ func (c *Client) TestRequestRequiredStringDurationNullableArray(ctx context.Cont func (c *Client) sendTestRequestRequiredStringDurationNullableArray(ctx context.Context, request []NilDuration) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_duration_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_duration_nullable_array"), } // Validate request before sending. @@ -32318,7 +32319,7 @@ func (c *Client) sendTestRequestRequiredStringDurationNullableArray(ctx context. uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -32353,7 +32354,7 @@ func (c *Client) TestRequestRequiredStringDurationNullableArrayArray(ctx context func (c *Client) sendTestRequestRequiredStringDurationNullableArrayArray(ctx context.Context, request [][]NilDuration) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_duration_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_duration_nullable_array_array"), } // Validate request before sending. @@ -32417,7 +32418,7 @@ func (c *Client) sendTestRequestRequiredStringDurationNullableArrayArray(ctx con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -32452,7 +32453,7 @@ func (c *Client) TestRequestRequiredStringEmail(ctx context.Context, request str func (c *Client) sendTestRequestRequiredStringEmail(ctx context.Context, request string) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_email"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_email"), } // Validate request before sending. @@ -32507,7 +32508,7 @@ func (c *Client) sendTestRequestRequiredStringEmail(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -32542,7 +32543,7 @@ func (c *Client) TestRequestRequiredStringEmailArray(ctx context.Context, reques func (c *Client) sendTestRequestRequiredStringEmailArray(ctx context.Context, request []string) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_email_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_email_array"), } // Validate request before sending. @@ -32614,7 +32615,7 @@ func (c *Client) sendTestRequestRequiredStringEmailArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -32649,7 +32650,7 @@ func (c *Client) TestRequestRequiredStringEmailArrayArray(ctx context.Context, r func (c *Client) sendTestRequestRequiredStringEmailArrayArray(ctx context.Context, request [][]string) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_email_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_email_array_array"), } // Validate request before sending. @@ -32738,7 +32739,7 @@ func (c *Client) sendTestRequestRequiredStringEmailArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -32773,7 +32774,7 @@ func (c *Client) TestRequestRequiredStringEmailNullable(ctx context.Context, req func (c *Client) sendTestRequestRequiredStringEmailNullable(ctx context.Context, request NilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_email_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_email_nullable"), } // Validate request before sending. @@ -32835,7 +32836,7 @@ func (c *Client) sendTestRequestRequiredStringEmailNullable(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -32870,7 +32871,7 @@ func (c *Client) TestRequestRequiredStringEmailNullableArray(ctx context.Context func (c *Client) sendTestRequestRequiredStringEmailNullableArray(ctx context.Context, request []NilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_email_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_email_nullable_array"), } // Validate request before sending. @@ -32949,7 +32950,7 @@ func (c *Client) sendTestRequestRequiredStringEmailNullableArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -32984,7 +32985,7 @@ func (c *Client) TestRequestRequiredStringEmailNullableArrayArray(ctx context.Co func (c *Client) sendTestRequestRequiredStringEmailNullableArrayArray(ctx context.Context, request [][]NilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_email_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_email_nullable_array_array"), } // Validate request before sending. @@ -33080,7 +33081,7 @@ func (c *Client) sendTestRequestRequiredStringEmailNullableArrayArray(ctx contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -33115,7 +33116,7 @@ func (c *Client) TestRequestRequiredStringFloat32(ctx context.Context, request f func (c *Client) sendTestRequestRequiredStringFloat32(ctx context.Context, request float32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_float32"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_float32"), } // Validate request before sending. @@ -33162,7 +33163,7 @@ func (c *Client) sendTestRequestRequiredStringFloat32(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -33197,7 +33198,7 @@ func (c *Client) TestRequestRequiredStringFloat32Array(ctx context.Context, requ func (c *Client) sendTestRequestRequiredStringFloat32Array(ctx context.Context, request []float32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_float32_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_float32_array"), } // Validate request before sending. @@ -33261,7 +33262,7 @@ func (c *Client) sendTestRequestRequiredStringFloat32Array(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -33296,7 +33297,7 @@ func (c *Client) TestRequestRequiredStringFloat32ArrayArray(ctx context.Context, func (c *Client) sendTestRequestRequiredStringFloat32ArrayArray(ctx context.Context, request [][]float32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_float32_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_float32_array_array"), } // Validate request before sending. @@ -33377,7 +33378,7 @@ func (c *Client) sendTestRequestRequiredStringFloat32ArrayArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -33412,7 +33413,7 @@ func (c *Client) TestRequestRequiredStringFloat32Nullable(ctx context.Context, r func (c *Client) sendTestRequestRequiredStringFloat32Nullable(ctx context.Context, request NilFloat32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_float32_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_float32_nullable"), } // Validate request before sending. @@ -33466,7 +33467,7 @@ func (c *Client) sendTestRequestRequiredStringFloat32Nullable(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -33501,7 +33502,7 @@ func (c *Client) TestRequestRequiredStringFloat32NullableArray(ctx context.Conte func (c *Client) sendTestRequestRequiredStringFloat32NullableArray(ctx context.Context, request []NilFloat32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_float32_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_float32_nullable_array"), } // Validate request before sending. @@ -33572,7 +33573,7 @@ func (c *Client) sendTestRequestRequiredStringFloat32NullableArray(ctx context.C uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -33607,7 +33608,7 @@ func (c *Client) TestRequestRequiredStringFloat32NullableArrayArray(ctx context. func (c *Client) sendTestRequestRequiredStringFloat32NullableArrayArray(ctx context.Context, request [][]NilFloat32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_float32_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_float32_nullable_array_array"), } // Validate request before sending. @@ -33695,7 +33696,7 @@ func (c *Client) sendTestRequestRequiredStringFloat32NullableArrayArray(ctx cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -33730,7 +33731,7 @@ func (c *Client) TestRequestRequiredStringFloat64(ctx context.Context, request f func (c *Client) sendTestRequestRequiredStringFloat64(ctx context.Context, request float64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_float64"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_float64"), } // Validate request before sending. @@ -33777,7 +33778,7 @@ func (c *Client) sendTestRequestRequiredStringFloat64(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -33812,7 +33813,7 @@ func (c *Client) TestRequestRequiredStringFloat64Array(ctx context.Context, requ func (c *Client) sendTestRequestRequiredStringFloat64Array(ctx context.Context, request []float64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_float64_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_float64_array"), } // Validate request before sending. @@ -33876,7 +33877,7 @@ func (c *Client) sendTestRequestRequiredStringFloat64Array(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -33911,7 +33912,7 @@ func (c *Client) TestRequestRequiredStringFloat64ArrayArray(ctx context.Context, func (c *Client) sendTestRequestRequiredStringFloat64ArrayArray(ctx context.Context, request [][]float64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_float64_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_float64_array_array"), } // Validate request before sending. @@ -33992,7 +33993,7 @@ func (c *Client) sendTestRequestRequiredStringFloat64ArrayArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -34027,7 +34028,7 @@ func (c *Client) TestRequestRequiredStringFloat64Nullable(ctx context.Context, r func (c *Client) sendTestRequestRequiredStringFloat64Nullable(ctx context.Context, request NilFloat64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_float64_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_float64_nullable"), } // Validate request before sending. @@ -34081,7 +34082,7 @@ func (c *Client) sendTestRequestRequiredStringFloat64Nullable(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -34116,7 +34117,7 @@ func (c *Client) TestRequestRequiredStringFloat64NullableArray(ctx context.Conte func (c *Client) sendTestRequestRequiredStringFloat64NullableArray(ctx context.Context, request []NilFloat64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_float64_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_float64_nullable_array"), } // Validate request before sending. @@ -34187,7 +34188,7 @@ func (c *Client) sendTestRequestRequiredStringFloat64NullableArray(ctx context.C uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -34222,7 +34223,7 @@ func (c *Client) TestRequestRequiredStringFloat64NullableArrayArray(ctx context. func (c *Client) sendTestRequestRequiredStringFloat64NullableArrayArray(ctx context.Context, request [][]NilFloat64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_float64_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_float64_nullable_array_array"), } // Validate request before sending. @@ -34310,7 +34311,7 @@ func (c *Client) sendTestRequestRequiredStringFloat64NullableArrayArray(ctx cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -34345,7 +34346,7 @@ func (c *Client) TestRequestRequiredStringHostname(ctx context.Context, request func (c *Client) sendTestRequestRequiredStringHostname(ctx context.Context, request string) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_hostname"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_hostname"), } // Validate request before sending. @@ -34400,7 +34401,7 @@ func (c *Client) sendTestRequestRequiredStringHostname(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -34435,7 +34436,7 @@ func (c *Client) TestRequestRequiredStringHostnameArray(ctx context.Context, req func (c *Client) sendTestRequestRequiredStringHostnameArray(ctx context.Context, request []string) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_hostname_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_hostname_array"), } // Validate request before sending. @@ -34507,7 +34508,7 @@ func (c *Client) sendTestRequestRequiredStringHostnameArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -34542,7 +34543,7 @@ func (c *Client) TestRequestRequiredStringHostnameArrayArray(ctx context.Context func (c *Client) sendTestRequestRequiredStringHostnameArrayArray(ctx context.Context, request [][]string) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_hostname_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_hostname_array_array"), } // Validate request before sending. @@ -34631,7 +34632,7 @@ func (c *Client) sendTestRequestRequiredStringHostnameArrayArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -34666,7 +34667,7 @@ func (c *Client) TestRequestRequiredStringHostnameNullable(ctx context.Context, func (c *Client) sendTestRequestRequiredStringHostnameNullable(ctx context.Context, request NilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_hostname_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_hostname_nullable"), } // Validate request before sending. @@ -34728,7 +34729,7 @@ func (c *Client) sendTestRequestRequiredStringHostnameNullable(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -34763,7 +34764,7 @@ func (c *Client) TestRequestRequiredStringHostnameNullableArray(ctx context.Cont func (c *Client) sendTestRequestRequiredStringHostnameNullableArray(ctx context.Context, request []NilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_hostname_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_hostname_nullable_array"), } // Validate request before sending. @@ -34842,7 +34843,7 @@ func (c *Client) sendTestRequestRequiredStringHostnameNullableArray(ctx context. uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -34877,7 +34878,7 @@ func (c *Client) TestRequestRequiredStringHostnameNullableArrayArray(ctx context func (c *Client) sendTestRequestRequiredStringHostnameNullableArrayArray(ctx context.Context, request [][]NilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_hostname_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_hostname_nullable_array_array"), } // Validate request before sending. @@ -34973,7 +34974,7 @@ func (c *Client) sendTestRequestRequiredStringHostnameNullableArrayArray(ctx con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -35008,7 +35009,7 @@ func (c *Client) TestRequestRequiredStringIP(ctx context.Context, request netip. func (c *Client) sendTestRequestRequiredStringIP(ctx context.Context, request netip.Addr) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_ip"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_ip"), } @@ -35046,7 +35047,7 @@ func (c *Client) sendTestRequestRequiredStringIP(ctx context.Context, request ne uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -35081,7 +35082,7 @@ func (c *Client) TestRequestRequiredStringIPArray(ctx context.Context, request [ func (c *Client) sendTestRequestRequiredStringIPArray(ctx context.Context, request []netip.Addr) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_ip_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_ip_array"), } // Validate request before sending. @@ -35128,7 +35129,7 @@ func (c *Client) sendTestRequestRequiredStringIPArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -35163,7 +35164,7 @@ func (c *Client) TestRequestRequiredStringIPArrayArray(ctx context.Context, requ func (c *Client) sendTestRequestRequiredStringIPArrayArray(ctx context.Context, request [][]netip.Addr) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_ip_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_ip_array_array"), } // Validate request before sending. @@ -35227,7 +35228,7 @@ func (c *Client) sendTestRequestRequiredStringIPArrayArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -35262,7 +35263,7 @@ func (c *Client) TestRequestRequiredStringIPNullable(ctx context.Context, reques func (c *Client) sendTestRequestRequiredStringIPNullable(ctx context.Context, request NilIP) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_ip_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_ip_nullable"), } @@ -35300,7 +35301,7 @@ func (c *Client) sendTestRequestRequiredStringIPNullable(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -35335,7 +35336,7 @@ func (c *Client) TestRequestRequiredStringIPNullableArray(ctx context.Context, r func (c *Client) sendTestRequestRequiredStringIPNullableArray(ctx context.Context, request []NilIP) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_ip_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_ip_nullable_array"), } // Validate request before sending. @@ -35382,7 +35383,7 @@ func (c *Client) sendTestRequestRequiredStringIPNullableArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -35417,7 +35418,7 @@ func (c *Client) TestRequestRequiredStringIPNullableArrayArray(ctx context.Conte func (c *Client) sendTestRequestRequiredStringIPNullableArrayArray(ctx context.Context, request [][]NilIP) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_ip_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_ip_nullable_array_array"), } // Validate request before sending. @@ -35481,7 +35482,7 @@ func (c *Client) sendTestRequestRequiredStringIPNullableArrayArray(ctx context.C uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -35516,7 +35517,7 @@ func (c *Client) TestRequestRequiredStringInt(ctx context.Context, request int) func (c *Client) sendTestRequestRequiredStringInt(ctx context.Context, request int) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int"), } @@ -35554,7 +35555,7 @@ func (c *Client) sendTestRequestRequiredStringInt(ctx context.Context, request i uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -35589,7 +35590,7 @@ func (c *Client) TestRequestRequiredStringInt16(ctx context.Context, request int func (c *Client) sendTestRequestRequiredStringInt16(ctx context.Context, request int16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int16"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int16"), } @@ -35627,7 +35628,7 @@ func (c *Client) sendTestRequestRequiredStringInt16(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -35662,7 +35663,7 @@ func (c *Client) TestRequestRequiredStringInt16Array(ctx context.Context, reques func (c *Client) sendTestRequestRequiredStringInt16Array(ctx context.Context, request []int16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int16_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int16_array"), } // Validate request before sending. @@ -35709,7 +35710,7 @@ func (c *Client) sendTestRequestRequiredStringInt16Array(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -35744,7 +35745,7 @@ func (c *Client) TestRequestRequiredStringInt16ArrayArray(ctx context.Context, r func (c *Client) sendTestRequestRequiredStringInt16ArrayArray(ctx context.Context, request [][]int16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int16_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int16_array_array"), } // Validate request before sending. @@ -35808,7 +35809,7 @@ func (c *Client) sendTestRequestRequiredStringInt16ArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -35843,7 +35844,7 @@ func (c *Client) TestRequestRequiredStringInt16Nullable(ctx context.Context, req func (c *Client) sendTestRequestRequiredStringInt16Nullable(ctx context.Context, request NilInt16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int16_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int16_nullable"), } @@ -35881,7 +35882,7 @@ func (c *Client) sendTestRequestRequiredStringInt16Nullable(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -35916,7 +35917,7 @@ func (c *Client) TestRequestRequiredStringInt16NullableArray(ctx context.Context func (c *Client) sendTestRequestRequiredStringInt16NullableArray(ctx context.Context, request []NilInt16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int16_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int16_nullable_array"), } // Validate request before sending. @@ -35963,7 +35964,7 @@ func (c *Client) sendTestRequestRequiredStringInt16NullableArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -35998,7 +35999,7 @@ func (c *Client) TestRequestRequiredStringInt16NullableArrayArray(ctx context.Co func (c *Client) sendTestRequestRequiredStringInt16NullableArrayArray(ctx context.Context, request [][]NilInt16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int16_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int16_nullable_array_array"), } // Validate request before sending. @@ -36062,7 +36063,7 @@ func (c *Client) sendTestRequestRequiredStringInt16NullableArrayArray(ctx contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -36097,7 +36098,7 @@ func (c *Client) TestRequestRequiredStringInt32(ctx context.Context, request int func (c *Client) sendTestRequestRequiredStringInt32(ctx context.Context, request int32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int32"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int32"), } @@ -36135,7 +36136,7 @@ func (c *Client) sendTestRequestRequiredStringInt32(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -36170,7 +36171,7 @@ func (c *Client) TestRequestRequiredStringInt32Array(ctx context.Context, reques func (c *Client) sendTestRequestRequiredStringInt32Array(ctx context.Context, request []int32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int32_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int32_array"), } // Validate request before sending. @@ -36217,7 +36218,7 @@ func (c *Client) sendTestRequestRequiredStringInt32Array(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -36252,7 +36253,7 @@ func (c *Client) TestRequestRequiredStringInt32ArrayArray(ctx context.Context, r func (c *Client) sendTestRequestRequiredStringInt32ArrayArray(ctx context.Context, request [][]int32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int32_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int32_array_array"), } // Validate request before sending. @@ -36316,7 +36317,7 @@ func (c *Client) sendTestRequestRequiredStringInt32ArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -36351,7 +36352,7 @@ func (c *Client) TestRequestRequiredStringInt32Nullable(ctx context.Context, req func (c *Client) sendTestRequestRequiredStringInt32Nullable(ctx context.Context, request NilStringInt32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int32_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int32_nullable"), } @@ -36389,7 +36390,7 @@ func (c *Client) sendTestRequestRequiredStringInt32Nullable(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -36424,7 +36425,7 @@ func (c *Client) TestRequestRequiredStringInt32NullableArray(ctx context.Context func (c *Client) sendTestRequestRequiredStringInt32NullableArray(ctx context.Context, request []NilStringInt32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int32_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int32_nullable_array"), } // Validate request before sending. @@ -36471,7 +36472,7 @@ func (c *Client) sendTestRequestRequiredStringInt32NullableArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -36506,7 +36507,7 @@ func (c *Client) TestRequestRequiredStringInt32NullableArrayArray(ctx context.Co func (c *Client) sendTestRequestRequiredStringInt32NullableArrayArray(ctx context.Context, request [][]NilStringInt32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int32_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int32_nullable_array_array"), } // Validate request before sending. @@ -36570,7 +36571,7 @@ func (c *Client) sendTestRequestRequiredStringInt32NullableArrayArray(ctx contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -36605,7 +36606,7 @@ func (c *Client) TestRequestRequiredStringInt64(ctx context.Context, request int func (c *Client) sendTestRequestRequiredStringInt64(ctx context.Context, request int64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int64"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int64"), } @@ -36643,7 +36644,7 @@ func (c *Client) sendTestRequestRequiredStringInt64(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -36678,7 +36679,7 @@ func (c *Client) TestRequestRequiredStringInt64Array(ctx context.Context, reques func (c *Client) sendTestRequestRequiredStringInt64Array(ctx context.Context, request []int64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int64_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int64_array"), } // Validate request before sending. @@ -36725,7 +36726,7 @@ func (c *Client) sendTestRequestRequiredStringInt64Array(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -36760,7 +36761,7 @@ func (c *Client) TestRequestRequiredStringInt64ArrayArray(ctx context.Context, r func (c *Client) sendTestRequestRequiredStringInt64ArrayArray(ctx context.Context, request [][]int64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int64_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int64_array_array"), } // Validate request before sending. @@ -36824,7 +36825,7 @@ func (c *Client) sendTestRequestRequiredStringInt64ArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -36859,7 +36860,7 @@ func (c *Client) TestRequestRequiredStringInt64Nullable(ctx context.Context, req func (c *Client) sendTestRequestRequiredStringInt64Nullable(ctx context.Context, request NilStringInt64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int64_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int64_nullable"), } @@ -36897,7 +36898,7 @@ func (c *Client) sendTestRequestRequiredStringInt64Nullable(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -36932,7 +36933,7 @@ func (c *Client) TestRequestRequiredStringInt64NullableArray(ctx context.Context func (c *Client) sendTestRequestRequiredStringInt64NullableArray(ctx context.Context, request []NilStringInt64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int64_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int64_nullable_array"), } // Validate request before sending. @@ -36979,7 +36980,7 @@ func (c *Client) sendTestRequestRequiredStringInt64NullableArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -37014,7 +37015,7 @@ func (c *Client) TestRequestRequiredStringInt64NullableArrayArray(ctx context.Co func (c *Client) sendTestRequestRequiredStringInt64NullableArrayArray(ctx context.Context, request [][]NilStringInt64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int64_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int64_nullable_array_array"), } // Validate request before sending. @@ -37078,7 +37079,7 @@ func (c *Client) sendTestRequestRequiredStringInt64NullableArrayArray(ctx contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -37113,7 +37114,7 @@ func (c *Client) TestRequestRequiredStringInt8(ctx context.Context, request int8 func (c *Client) sendTestRequestRequiredStringInt8(ctx context.Context, request int8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int8"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int8"), } @@ -37151,7 +37152,7 @@ func (c *Client) sendTestRequestRequiredStringInt8(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -37186,7 +37187,7 @@ func (c *Client) TestRequestRequiredStringInt8Array(ctx context.Context, request func (c *Client) sendTestRequestRequiredStringInt8Array(ctx context.Context, request []int8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int8_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int8_array"), } // Validate request before sending. @@ -37233,7 +37234,7 @@ func (c *Client) sendTestRequestRequiredStringInt8Array(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -37268,7 +37269,7 @@ func (c *Client) TestRequestRequiredStringInt8ArrayArray(ctx context.Context, re func (c *Client) sendTestRequestRequiredStringInt8ArrayArray(ctx context.Context, request [][]int8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int8_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int8_array_array"), } // Validate request before sending. @@ -37332,7 +37333,7 @@ func (c *Client) sendTestRequestRequiredStringInt8ArrayArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -37367,7 +37368,7 @@ func (c *Client) TestRequestRequiredStringInt8Nullable(ctx context.Context, requ func (c *Client) sendTestRequestRequiredStringInt8Nullable(ctx context.Context, request NilInt8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int8_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int8_nullable"), } @@ -37405,7 +37406,7 @@ func (c *Client) sendTestRequestRequiredStringInt8Nullable(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -37440,7 +37441,7 @@ func (c *Client) TestRequestRequiredStringInt8NullableArray(ctx context.Context, func (c *Client) sendTestRequestRequiredStringInt8NullableArray(ctx context.Context, request []NilInt8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int8_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int8_nullable_array"), } // Validate request before sending. @@ -37487,7 +37488,7 @@ func (c *Client) sendTestRequestRequiredStringInt8NullableArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -37522,7 +37523,7 @@ func (c *Client) TestRequestRequiredStringInt8NullableArrayArray(ctx context.Con func (c *Client) sendTestRequestRequiredStringInt8NullableArrayArray(ctx context.Context, request [][]NilInt8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int8_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int8_nullable_array_array"), } // Validate request before sending. @@ -37586,7 +37587,7 @@ func (c *Client) sendTestRequestRequiredStringInt8NullableArrayArray(ctx context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -37621,7 +37622,7 @@ func (c *Client) TestRequestRequiredStringIntArray(ctx context.Context, request func (c *Client) sendTestRequestRequiredStringIntArray(ctx context.Context, request []int) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int_array"), } // Validate request before sending. @@ -37668,7 +37669,7 @@ func (c *Client) sendTestRequestRequiredStringIntArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -37703,7 +37704,7 @@ func (c *Client) TestRequestRequiredStringIntArrayArray(ctx context.Context, req func (c *Client) sendTestRequestRequiredStringIntArrayArray(ctx context.Context, request [][]int) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int_array_array"), } // Validate request before sending. @@ -37767,7 +37768,7 @@ func (c *Client) sendTestRequestRequiredStringIntArrayArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -37802,7 +37803,7 @@ func (c *Client) TestRequestRequiredStringIntNullable(ctx context.Context, reque func (c *Client) sendTestRequestRequiredStringIntNullable(ctx context.Context, request NilInt) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int_nullable"), } @@ -37840,7 +37841,7 @@ func (c *Client) sendTestRequestRequiredStringIntNullable(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -37875,7 +37876,7 @@ func (c *Client) TestRequestRequiredStringIntNullableArray(ctx context.Context, func (c *Client) sendTestRequestRequiredStringIntNullableArray(ctx context.Context, request []NilInt) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int_nullable_array"), } // Validate request before sending. @@ -37922,7 +37923,7 @@ func (c *Client) sendTestRequestRequiredStringIntNullableArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -37957,7 +37958,7 @@ func (c *Client) TestRequestRequiredStringIntNullableArrayArray(ctx context.Cont func (c *Client) sendTestRequestRequiredStringIntNullableArrayArray(ctx context.Context, request [][]NilInt) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_int_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_int_nullable_array_array"), } // Validate request before sending. @@ -38021,7 +38022,7 @@ func (c *Client) sendTestRequestRequiredStringIntNullableArrayArray(ctx context. uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -38056,7 +38057,7 @@ func (c *Client) TestRequestRequiredStringIpv4(ctx context.Context, request neti func (c *Client) sendTestRequestRequiredStringIpv4(ctx context.Context, request netip.Addr) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_ipv4"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_ipv4"), } @@ -38094,7 +38095,7 @@ func (c *Client) sendTestRequestRequiredStringIpv4(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -38129,7 +38130,7 @@ func (c *Client) TestRequestRequiredStringIpv4Array(ctx context.Context, request func (c *Client) sendTestRequestRequiredStringIpv4Array(ctx context.Context, request []netip.Addr) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_ipv4_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_ipv4_array"), } // Validate request before sending. @@ -38176,7 +38177,7 @@ func (c *Client) sendTestRequestRequiredStringIpv4Array(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -38211,7 +38212,7 @@ func (c *Client) TestRequestRequiredStringIpv4ArrayArray(ctx context.Context, re func (c *Client) sendTestRequestRequiredStringIpv4ArrayArray(ctx context.Context, request [][]netip.Addr) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_ipv4_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_ipv4_array_array"), } // Validate request before sending. @@ -38275,7 +38276,7 @@ func (c *Client) sendTestRequestRequiredStringIpv4ArrayArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -38310,7 +38311,7 @@ func (c *Client) TestRequestRequiredStringIpv4Nullable(ctx context.Context, requ func (c *Client) sendTestRequestRequiredStringIpv4Nullable(ctx context.Context, request NilIPv4) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_ipv4_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_ipv4_nullable"), } @@ -38348,7 +38349,7 @@ func (c *Client) sendTestRequestRequiredStringIpv4Nullable(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -38383,7 +38384,7 @@ func (c *Client) TestRequestRequiredStringIpv4NullableArray(ctx context.Context, func (c *Client) sendTestRequestRequiredStringIpv4NullableArray(ctx context.Context, request []NilIPv4) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_ipv4_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_ipv4_nullable_array"), } // Validate request before sending. @@ -38430,7 +38431,7 @@ func (c *Client) sendTestRequestRequiredStringIpv4NullableArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -38465,7 +38466,7 @@ func (c *Client) TestRequestRequiredStringIpv4NullableArrayArray(ctx context.Con func (c *Client) sendTestRequestRequiredStringIpv4NullableArrayArray(ctx context.Context, request [][]NilIPv4) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_ipv4_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_ipv4_nullable_array_array"), } // Validate request before sending. @@ -38529,7 +38530,7 @@ func (c *Client) sendTestRequestRequiredStringIpv4NullableArrayArray(ctx context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -38564,7 +38565,7 @@ func (c *Client) TestRequestRequiredStringIpv6(ctx context.Context, request neti func (c *Client) sendTestRequestRequiredStringIpv6(ctx context.Context, request netip.Addr) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_ipv6"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_ipv6"), } @@ -38602,7 +38603,7 @@ func (c *Client) sendTestRequestRequiredStringIpv6(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -38637,7 +38638,7 @@ func (c *Client) TestRequestRequiredStringIpv6Array(ctx context.Context, request func (c *Client) sendTestRequestRequiredStringIpv6Array(ctx context.Context, request []netip.Addr) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_ipv6_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_ipv6_array"), } // Validate request before sending. @@ -38684,7 +38685,7 @@ func (c *Client) sendTestRequestRequiredStringIpv6Array(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -38719,7 +38720,7 @@ func (c *Client) TestRequestRequiredStringIpv6ArrayArray(ctx context.Context, re func (c *Client) sendTestRequestRequiredStringIpv6ArrayArray(ctx context.Context, request [][]netip.Addr) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_ipv6_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_ipv6_array_array"), } // Validate request before sending. @@ -38783,7 +38784,7 @@ func (c *Client) sendTestRequestRequiredStringIpv6ArrayArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -38818,7 +38819,7 @@ func (c *Client) TestRequestRequiredStringIpv6Nullable(ctx context.Context, requ func (c *Client) sendTestRequestRequiredStringIpv6Nullable(ctx context.Context, request NilIPv6) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_ipv6_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_ipv6_nullable"), } @@ -38856,7 +38857,7 @@ func (c *Client) sendTestRequestRequiredStringIpv6Nullable(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -38891,7 +38892,7 @@ func (c *Client) TestRequestRequiredStringIpv6NullableArray(ctx context.Context, func (c *Client) sendTestRequestRequiredStringIpv6NullableArray(ctx context.Context, request []NilIPv6) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_ipv6_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_ipv6_nullable_array"), } // Validate request before sending. @@ -38938,7 +38939,7 @@ func (c *Client) sendTestRequestRequiredStringIpv6NullableArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -38973,7 +38974,7 @@ func (c *Client) TestRequestRequiredStringIpv6NullableArrayArray(ctx context.Con func (c *Client) sendTestRequestRequiredStringIpv6NullableArrayArray(ctx context.Context, request [][]NilIPv6) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_ipv6_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_ipv6_nullable_array_array"), } // Validate request before sending. @@ -39037,7 +39038,7 @@ func (c *Client) sendTestRequestRequiredStringIpv6NullableArrayArray(ctx context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -39072,7 +39073,7 @@ func (c *Client) TestRequestRequiredStringNullable(ctx context.Context, request func (c *Client) sendTestRequestRequiredStringNullable(ctx context.Context, request NilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_nullable"), } @@ -39110,7 +39111,7 @@ func (c *Client) sendTestRequestRequiredStringNullable(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -39145,7 +39146,7 @@ func (c *Client) TestRequestRequiredStringNullableArray(ctx context.Context, req func (c *Client) sendTestRequestRequiredStringNullableArray(ctx context.Context, request []NilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_nullable_array"), } // Validate request before sending. @@ -39192,7 +39193,7 @@ func (c *Client) sendTestRequestRequiredStringNullableArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -39227,7 +39228,7 @@ func (c *Client) TestRequestRequiredStringNullableArrayArray(ctx context.Context func (c *Client) sendTestRequestRequiredStringNullableArrayArray(ctx context.Context, request [][]NilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_nullable_array_array"), } // Validate request before sending. @@ -39291,7 +39292,7 @@ func (c *Client) sendTestRequestRequiredStringNullableArrayArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -39326,7 +39327,7 @@ func (c *Client) TestRequestRequiredStringPassword(ctx context.Context, request func (c *Client) sendTestRequestRequiredStringPassword(ctx context.Context, request string) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_password"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_password"), } @@ -39364,7 +39365,7 @@ func (c *Client) sendTestRequestRequiredStringPassword(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -39399,7 +39400,7 @@ func (c *Client) TestRequestRequiredStringPasswordArray(ctx context.Context, req func (c *Client) sendTestRequestRequiredStringPasswordArray(ctx context.Context, request []string) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_password_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_password_array"), } // Validate request before sending. @@ -39446,7 +39447,7 @@ func (c *Client) sendTestRequestRequiredStringPasswordArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -39481,7 +39482,7 @@ func (c *Client) TestRequestRequiredStringPasswordArrayArray(ctx context.Context func (c *Client) sendTestRequestRequiredStringPasswordArrayArray(ctx context.Context, request [][]string) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_password_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_password_array_array"), } // Validate request before sending. @@ -39545,7 +39546,7 @@ func (c *Client) sendTestRequestRequiredStringPasswordArrayArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -39580,7 +39581,7 @@ func (c *Client) TestRequestRequiredStringPasswordNullable(ctx context.Context, func (c *Client) sendTestRequestRequiredStringPasswordNullable(ctx context.Context, request NilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_password_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_password_nullable"), } @@ -39618,7 +39619,7 @@ func (c *Client) sendTestRequestRequiredStringPasswordNullable(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -39653,7 +39654,7 @@ func (c *Client) TestRequestRequiredStringPasswordNullableArray(ctx context.Cont func (c *Client) sendTestRequestRequiredStringPasswordNullableArray(ctx context.Context, request []NilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_password_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_password_nullable_array"), } // Validate request before sending. @@ -39700,7 +39701,7 @@ func (c *Client) sendTestRequestRequiredStringPasswordNullableArray(ctx context. uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -39735,7 +39736,7 @@ func (c *Client) TestRequestRequiredStringPasswordNullableArrayArray(ctx context func (c *Client) sendTestRequestRequiredStringPasswordNullableArrayArray(ctx context.Context, request [][]NilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_password_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_password_nullable_array_array"), } // Validate request before sending. @@ -39799,7 +39800,7 @@ func (c *Client) sendTestRequestRequiredStringPasswordNullableArrayArray(ctx con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -39834,7 +39835,7 @@ func (c *Client) TestRequestRequiredStringTime(ctx context.Context, request time func (c *Client) sendTestRequestRequiredStringTime(ctx context.Context, request time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_time"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_time"), } @@ -39872,7 +39873,7 @@ func (c *Client) sendTestRequestRequiredStringTime(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -39907,7 +39908,7 @@ func (c *Client) TestRequestRequiredStringTimeArray(ctx context.Context, request func (c *Client) sendTestRequestRequiredStringTimeArray(ctx context.Context, request []time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_time_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_time_array"), } // Validate request before sending. @@ -39954,7 +39955,7 @@ func (c *Client) sendTestRequestRequiredStringTimeArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -39989,7 +39990,7 @@ func (c *Client) TestRequestRequiredStringTimeArrayArray(ctx context.Context, re func (c *Client) sendTestRequestRequiredStringTimeArrayArray(ctx context.Context, request [][]time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_time_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_time_array_array"), } // Validate request before sending. @@ -40053,7 +40054,7 @@ func (c *Client) sendTestRequestRequiredStringTimeArrayArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -40088,7 +40089,7 @@ func (c *Client) TestRequestRequiredStringTimeNullable(ctx context.Context, requ func (c *Client) sendTestRequestRequiredStringTimeNullable(ctx context.Context, request NilTime) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_time_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_time_nullable"), } @@ -40126,7 +40127,7 @@ func (c *Client) sendTestRequestRequiredStringTimeNullable(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -40161,7 +40162,7 @@ func (c *Client) TestRequestRequiredStringTimeNullableArray(ctx context.Context, func (c *Client) sendTestRequestRequiredStringTimeNullableArray(ctx context.Context, request []NilTime) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_time_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_time_nullable_array"), } // Validate request before sending. @@ -40208,7 +40209,7 @@ func (c *Client) sendTestRequestRequiredStringTimeNullableArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -40243,7 +40244,7 @@ func (c *Client) TestRequestRequiredStringTimeNullableArrayArray(ctx context.Con func (c *Client) sendTestRequestRequiredStringTimeNullableArrayArray(ctx context.Context, request [][]NilTime) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_time_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_time_nullable_array_array"), } // Validate request before sending. @@ -40307,7 +40308,7 @@ func (c *Client) sendTestRequestRequiredStringTimeNullableArrayArray(ctx context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -40342,7 +40343,7 @@ func (c *Client) TestRequestRequiredStringURI(ctx context.Context, request url.U func (c *Client) sendTestRequestRequiredStringURI(ctx context.Context, request url.URL) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uri"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uri"), } @@ -40380,7 +40381,7 @@ func (c *Client) sendTestRequestRequiredStringURI(ctx context.Context, request u uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -40415,7 +40416,7 @@ func (c *Client) TestRequestRequiredStringURIArray(ctx context.Context, request func (c *Client) sendTestRequestRequiredStringURIArray(ctx context.Context, request []url.URL) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uri_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uri_array"), } // Validate request before sending. @@ -40462,7 +40463,7 @@ func (c *Client) sendTestRequestRequiredStringURIArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -40497,7 +40498,7 @@ func (c *Client) TestRequestRequiredStringURIArrayArray(ctx context.Context, req func (c *Client) sendTestRequestRequiredStringURIArrayArray(ctx context.Context, request [][]url.URL) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uri_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uri_array_array"), } // Validate request before sending. @@ -40561,7 +40562,7 @@ func (c *Client) sendTestRequestRequiredStringURIArrayArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -40596,7 +40597,7 @@ func (c *Client) TestRequestRequiredStringURINullable(ctx context.Context, reque func (c *Client) sendTestRequestRequiredStringURINullable(ctx context.Context, request NilURI) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uri_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uri_nullable"), } @@ -40634,7 +40635,7 @@ func (c *Client) sendTestRequestRequiredStringURINullable(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -40669,7 +40670,7 @@ func (c *Client) TestRequestRequiredStringURINullableArray(ctx context.Context, func (c *Client) sendTestRequestRequiredStringURINullableArray(ctx context.Context, request []NilURI) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uri_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uri_nullable_array"), } // Validate request before sending. @@ -40716,7 +40717,7 @@ func (c *Client) sendTestRequestRequiredStringURINullableArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -40751,7 +40752,7 @@ func (c *Client) TestRequestRequiredStringURINullableArrayArray(ctx context.Cont func (c *Client) sendTestRequestRequiredStringURINullableArrayArray(ctx context.Context, request [][]NilURI) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uri_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uri_nullable_array_array"), } // Validate request before sending. @@ -40815,7 +40816,7 @@ func (c *Client) sendTestRequestRequiredStringURINullableArrayArray(ctx context. uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -40850,7 +40851,7 @@ func (c *Client) TestRequestRequiredStringUUID(ctx context.Context, request uuid func (c *Client) sendTestRequestRequiredStringUUID(ctx context.Context, request uuid.UUID) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uuid"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uuid"), } @@ -40888,7 +40889,7 @@ func (c *Client) sendTestRequestRequiredStringUUID(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -40923,7 +40924,7 @@ func (c *Client) TestRequestRequiredStringUUIDArray(ctx context.Context, request func (c *Client) sendTestRequestRequiredStringUUIDArray(ctx context.Context, request []uuid.UUID) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uuid_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uuid_array"), } // Validate request before sending. @@ -40970,7 +40971,7 @@ func (c *Client) sendTestRequestRequiredStringUUIDArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -41005,7 +41006,7 @@ func (c *Client) TestRequestRequiredStringUUIDArrayArray(ctx context.Context, re func (c *Client) sendTestRequestRequiredStringUUIDArrayArray(ctx context.Context, request [][]uuid.UUID) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uuid_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uuid_array_array"), } // Validate request before sending. @@ -41069,7 +41070,7 @@ func (c *Client) sendTestRequestRequiredStringUUIDArrayArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -41104,7 +41105,7 @@ func (c *Client) TestRequestRequiredStringUUIDNullable(ctx context.Context, requ func (c *Client) sendTestRequestRequiredStringUUIDNullable(ctx context.Context, request NilUUID) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uuid_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uuid_nullable"), } @@ -41142,7 +41143,7 @@ func (c *Client) sendTestRequestRequiredStringUUIDNullable(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -41177,7 +41178,7 @@ func (c *Client) TestRequestRequiredStringUUIDNullableArray(ctx context.Context, func (c *Client) sendTestRequestRequiredStringUUIDNullableArray(ctx context.Context, request []NilUUID) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uuid_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uuid_nullable_array"), } // Validate request before sending. @@ -41224,7 +41225,7 @@ func (c *Client) sendTestRequestRequiredStringUUIDNullableArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -41259,7 +41260,7 @@ func (c *Client) TestRequestRequiredStringUUIDNullableArrayArray(ctx context.Con func (c *Client) sendTestRequestRequiredStringUUIDNullableArrayArray(ctx context.Context, request [][]NilUUID) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uuid_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uuid_nullable_array_array"), } // Validate request before sending. @@ -41323,7 +41324,7 @@ func (c *Client) sendTestRequestRequiredStringUUIDNullableArrayArray(ctx context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -41358,7 +41359,7 @@ func (c *Client) TestRequestRequiredStringUint(ctx context.Context, request uint func (c *Client) sendTestRequestRequiredStringUint(ctx context.Context, request uint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint"), } @@ -41396,7 +41397,7 @@ func (c *Client) sendTestRequestRequiredStringUint(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -41431,7 +41432,7 @@ func (c *Client) TestRequestRequiredStringUint16(ctx context.Context, request ui func (c *Client) sendTestRequestRequiredStringUint16(ctx context.Context, request uint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint16"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint16"), } @@ -41469,7 +41470,7 @@ func (c *Client) sendTestRequestRequiredStringUint16(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -41504,7 +41505,7 @@ func (c *Client) TestRequestRequiredStringUint16Array(ctx context.Context, reque func (c *Client) sendTestRequestRequiredStringUint16Array(ctx context.Context, request []uint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint16_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint16_array"), } // Validate request before sending. @@ -41551,7 +41552,7 @@ func (c *Client) sendTestRequestRequiredStringUint16Array(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -41586,7 +41587,7 @@ func (c *Client) TestRequestRequiredStringUint16ArrayArray(ctx context.Context, func (c *Client) sendTestRequestRequiredStringUint16ArrayArray(ctx context.Context, request [][]uint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint16_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint16_array_array"), } // Validate request before sending. @@ -41650,7 +41651,7 @@ func (c *Client) sendTestRequestRequiredStringUint16ArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -41685,7 +41686,7 @@ func (c *Client) TestRequestRequiredStringUint16Nullable(ctx context.Context, re func (c *Client) sendTestRequestRequiredStringUint16Nullable(ctx context.Context, request NilUint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint16_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint16_nullable"), } @@ -41723,7 +41724,7 @@ func (c *Client) sendTestRequestRequiredStringUint16Nullable(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -41758,7 +41759,7 @@ func (c *Client) TestRequestRequiredStringUint16NullableArray(ctx context.Contex func (c *Client) sendTestRequestRequiredStringUint16NullableArray(ctx context.Context, request []NilUint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint16_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint16_nullable_array"), } // Validate request before sending. @@ -41805,7 +41806,7 @@ func (c *Client) sendTestRequestRequiredStringUint16NullableArray(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -41840,7 +41841,7 @@ func (c *Client) TestRequestRequiredStringUint16NullableArrayArray(ctx context.C func (c *Client) sendTestRequestRequiredStringUint16NullableArrayArray(ctx context.Context, request [][]NilUint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint16_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint16_nullable_array_array"), } // Validate request before sending. @@ -41904,7 +41905,7 @@ func (c *Client) sendTestRequestRequiredStringUint16NullableArrayArray(ctx conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -41939,7 +41940,7 @@ func (c *Client) TestRequestRequiredStringUint32(ctx context.Context, request ui func (c *Client) sendTestRequestRequiredStringUint32(ctx context.Context, request uint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint32"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint32"), } @@ -41977,7 +41978,7 @@ func (c *Client) sendTestRequestRequiredStringUint32(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -42012,7 +42013,7 @@ func (c *Client) TestRequestRequiredStringUint32Array(ctx context.Context, reque func (c *Client) sendTestRequestRequiredStringUint32Array(ctx context.Context, request []uint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint32_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint32_array"), } // Validate request before sending. @@ -42059,7 +42060,7 @@ func (c *Client) sendTestRequestRequiredStringUint32Array(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -42094,7 +42095,7 @@ func (c *Client) TestRequestRequiredStringUint32ArrayArray(ctx context.Context, func (c *Client) sendTestRequestRequiredStringUint32ArrayArray(ctx context.Context, request [][]uint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint32_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint32_array_array"), } // Validate request before sending. @@ -42158,7 +42159,7 @@ func (c *Client) sendTestRequestRequiredStringUint32ArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -42193,7 +42194,7 @@ func (c *Client) TestRequestRequiredStringUint32Nullable(ctx context.Context, re func (c *Client) sendTestRequestRequiredStringUint32Nullable(ctx context.Context, request NilUint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint32_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint32_nullable"), } @@ -42231,7 +42232,7 @@ func (c *Client) sendTestRequestRequiredStringUint32Nullable(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -42266,7 +42267,7 @@ func (c *Client) TestRequestRequiredStringUint32NullableArray(ctx context.Contex func (c *Client) sendTestRequestRequiredStringUint32NullableArray(ctx context.Context, request []NilUint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint32_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint32_nullable_array"), } // Validate request before sending. @@ -42313,7 +42314,7 @@ func (c *Client) sendTestRequestRequiredStringUint32NullableArray(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -42348,7 +42349,7 @@ func (c *Client) TestRequestRequiredStringUint32NullableArrayArray(ctx context.C func (c *Client) sendTestRequestRequiredStringUint32NullableArrayArray(ctx context.Context, request [][]NilUint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint32_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint32_nullable_array_array"), } // Validate request before sending. @@ -42412,7 +42413,7 @@ func (c *Client) sendTestRequestRequiredStringUint32NullableArrayArray(ctx conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -42447,7 +42448,7 @@ func (c *Client) TestRequestRequiredStringUint64(ctx context.Context, request ui func (c *Client) sendTestRequestRequiredStringUint64(ctx context.Context, request uint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint64"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint64"), } @@ -42485,7 +42486,7 @@ func (c *Client) sendTestRequestRequiredStringUint64(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -42520,7 +42521,7 @@ func (c *Client) TestRequestRequiredStringUint64Array(ctx context.Context, reque func (c *Client) sendTestRequestRequiredStringUint64Array(ctx context.Context, request []uint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint64_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint64_array"), } // Validate request before sending. @@ -42567,7 +42568,7 @@ func (c *Client) sendTestRequestRequiredStringUint64Array(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -42602,7 +42603,7 @@ func (c *Client) TestRequestRequiredStringUint64ArrayArray(ctx context.Context, func (c *Client) sendTestRequestRequiredStringUint64ArrayArray(ctx context.Context, request [][]uint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint64_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint64_array_array"), } // Validate request before sending. @@ -42666,7 +42667,7 @@ func (c *Client) sendTestRequestRequiredStringUint64ArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -42701,7 +42702,7 @@ func (c *Client) TestRequestRequiredStringUint64Nullable(ctx context.Context, re func (c *Client) sendTestRequestRequiredStringUint64Nullable(ctx context.Context, request NilUint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint64_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint64_nullable"), } @@ -42739,7 +42740,7 @@ func (c *Client) sendTestRequestRequiredStringUint64Nullable(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -42774,7 +42775,7 @@ func (c *Client) TestRequestRequiredStringUint64NullableArray(ctx context.Contex func (c *Client) sendTestRequestRequiredStringUint64NullableArray(ctx context.Context, request []NilUint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint64_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint64_nullable_array"), } // Validate request before sending. @@ -42821,7 +42822,7 @@ func (c *Client) sendTestRequestRequiredStringUint64NullableArray(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -42856,7 +42857,7 @@ func (c *Client) TestRequestRequiredStringUint64NullableArrayArray(ctx context.C func (c *Client) sendTestRequestRequiredStringUint64NullableArrayArray(ctx context.Context, request [][]NilUint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint64_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint64_nullable_array_array"), } // Validate request before sending. @@ -42920,7 +42921,7 @@ func (c *Client) sendTestRequestRequiredStringUint64NullableArrayArray(ctx conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -42955,7 +42956,7 @@ func (c *Client) TestRequestRequiredStringUint8(ctx context.Context, request uin func (c *Client) sendTestRequestRequiredStringUint8(ctx context.Context, request uint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint8"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint8"), } @@ -42993,7 +42994,7 @@ func (c *Client) sendTestRequestRequiredStringUint8(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -43028,7 +43029,7 @@ func (c *Client) TestRequestRequiredStringUint8Array(ctx context.Context, reques func (c *Client) sendTestRequestRequiredStringUint8Array(ctx context.Context, request []uint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint8_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint8_array"), } // Validate request before sending. @@ -43075,7 +43076,7 @@ func (c *Client) sendTestRequestRequiredStringUint8Array(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -43110,7 +43111,7 @@ func (c *Client) TestRequestRequiredStringUint8ArrayArray(ctx context.Context, r func (c *Client) sendTestRequestRequiredStringUint8ArrayArray(ctx context.Context, request [][]uint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint8_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint8_array_array"), } // Validate request before sending. @@ -43174,7 +43175,7 @@ func (c *Client) sendTestRequestRequiredStringUint8ArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -43209,7 +43210,7 @@ func (c *Client) TestRequestRequiredStringUint8Nullable(ctx context.Context, req func (c *Client) sendTestRequestRequiredStringUint8Nullable(ctx context.Context, request NilUint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint8_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint8_nullable"), } @@ -43247,7 +43248,7 @@ func (c *Client) sendTestRequestRequiredStringUint8Nullable(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -43282,7 +43283,7 @@ func (c *Client) TestRequestRequiredStringUint8NullableArray(ctx context.Context func (c *Client) sendTestRequestRequiredStringUint8NullableArray(ctx context.Context, request []NilUint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint8_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint8_nullable_array"), } // Validate request before sending. @@ -43329,7 +43330,7 @@ func (c *Client) sendTestRequestRequiredStringUint8NullableArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -43364,7 +43365,7 @@ func (c *Client) TestRequestRequiredStringUint8NullableArrayArray(ctx context.Co func (c *Client) sendTestRequestRequiredStringUint8NullableArrayArray(ctx context.Context, request [][]NilUint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint8_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint8_nullable_array_array"), } // Validate request before sending. @@ -43428,7 +43429,7 @@ func (c *Client) sendTestRequestRequiredStringUint8NullableArrayArray(ctx contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -43463,7 +43464,7 @@ func (c *Client) TestRequestRequiredStringUintArray(ctx context.Context, request func (c *Client) sendTestRequestRequiredStringUintArray(ctx context.Context, request []uint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint_array"), } // Validate request before sending. @@ -43510,7 +43511,7 @@ func (c *Client) sendTestRequestRequiredStringUintArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -43545,7 +43546,7 @@ func (c *Client) TestRequestRequiredStringUintArrayArray(ctx context.Context, re func (c *Client) sendTestRequestRequiredStringUintArrayArray(ctx context.Context, request [][]uint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint_array_array"), } // Validate request before sending. @@ -43609,7 +43610,7 @@ func (c *Client) sendTestRequestRequiredStringUintArrayArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -43644,7 +43645,7 @@ func (c *Client) TestRequestRequiredStringUintNullable(ctx context.Context, requ func (c *Client) sendTestRequestRequiredStringUintNullable(ctx context.Context, request NilUint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint_nullable"), } @@ -43682,7 +43683,7 @@ func (c *Client) sendTestRequestRequiredStringUintNullable(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -43717,7 +43718,7 @@ func (c *Client) TestRequestRequiredStringUintNullableArray(ctx context.Context, func (c *Client) sendTestRequestRequiredStringUintNullableArray(ctx context.Context, request []NilUint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint_nullable_array"), } // Validate request before sending. @@ -43764,7 +43765,7 @@ func (c *Client) sendTestRequestRequiredStringUintNullableArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -43799,7 +43800,7 @@ func (c *Client) TestRequestRequiredStringUintNullableArrayArray(ctx context.Con func (c *Client) sendTestRequestRequiredStringUintNullableArrayArray(ctx context.Context, request [][]NilUint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_uint_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_uint_nullable_array_array"), } // Validate request before sending. @@ -43863,7 +43864,7 @@ func (c *Client) sendTestRequestRequiredStringUintNullableArrayArray(ctx context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -43898,7 +43899,7 @@ func (c *Client) TestRequestRequiredStringUnix(ctx context.Context, request time func (c *Client) sendTestRequestRequiredStringUnix(ctx context.Context, request time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix"), } @@ -43936,7 +43937,7 @@ func (c *Client) sendTestRequestRequiredStringUnix(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -43971,7 +43972,7 @@ func (c *Client) TestRequestRequiredStringUnixArray(ctx context.Context, request func (c *Client) sendTestRequestRequiredStringUnixArray(ctx context.Context, request []time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix_array"), } // Validate request before sending. @@ -44018,7 +44019,7 @@ func (c *Client) sendTestRequestRequiredStringUnixArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -44053,7 +44054,7 @@ func (c *Client) TestRequestRequiredStringUnixArrayArray(ctx context.Context, re func (c *Client) sendTestRequestRequiredStringUnixArrayArray(ctx context.Context, request [][]time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix_array_array"), } // Validate request before sending. @@ -44117,7 +44118,7 @@ func (c *Client) sendTestRequestRequiredStringUnixArrayArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -44152,7 +44153,7 @@ func (c *Client) TestRequestRequiredStringUnixMicro(ctx context.Context, request func (c *Client) sendTestRequestRequiredStringUnixMicro(ctx context.Context, request time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix-micro"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix-micro"), } @@ -44190,7 +44191,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMicro(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -44225,7 +44226,7 @@ func (c *Client) TestRequestRequiredStringUnixMicroArray(ctx context.Context, re func (c *Client) sendTestRequestRequiredStringUnixMicroArray(ctx context.Context, request []time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix-micro_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix-micro_array"), } // Validate request before sending. @@ -44272,7 +44273,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMicroArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -44307,7 +44308,7 @@ func (c *Client) TestRequestRequiredStringUnixMicroArrayArray(ctx context.Contex func (c *Client) sendTestRequestRequiredStringUnixMicroArrayArray(ctx context.Context, request [][]time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix-micro_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix-micro_array_array"), } // Validate request before sending. @@ -44371,7 +44372,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMicroArrayArray(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -44406,7 +44407,7 @@ func (c *Client) TestRequestRequiredStringUnixMicroNullable(ctx context.Context, func (c *Client) sendTestRequestRequiredStringUnixMicroNullable(ctx context.Context, request NilStringUnixMicro) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix-micro_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix-micro_nullable"), } @@ -44444,7 +44445,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMicroNullable(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -44479,7 +44480,7 @@ func (c *Client) TestRequestRequiredStringUnixMicroNullableArray(ctx context.Con func (c *Client) sendTestRequestRequiredStringUnixMicroNullableArray(ctx context.Context, request []NilStringUnixMicro) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix-micro_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix-micro_nullable_array"), } // Validate request before sending. @@ -44526,7 +44527,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMicroNullableArray(ctx context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -44561,7 +44562,7 @@ func (c *Client) TestRequestRequiredStringUnixMicroNullableArrayArray(ctx contex func (c *Client) sendTestRequestRequiredStringUnixMicroNullableArrayArray(ctx context.Context, request [][]NilStringUnixMicro) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix-micro_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix-micro_nullable_array_array"), } // Validate request before sending. @@ -44625,7 +44626,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMicroNullableArrayArray(ctx co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -44660,7 +44661,7 @@ func (c *Client) TestRequestRequiredStringUnixMilli(ctx context.Context, request func (c *Client) sendTestRequestRequiredStringUnixMilli(ctx context.Context, request time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix-milli"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix-milli"), } @@ -44698,7 +44699,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMilli(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -44733,7 +44734,7 @@ func (c *Client) TestRequestRequiredStringUnixMilliArray(ctx context.Context, re func (c *Client) sendTestRequestRequiredStringUnixMilliArray(ctx context.Context, request []time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix-milli_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix-milli_array"), } // Validate request before sending. @@ -44780,7 +44781,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMilliArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -44815,7 +44816,7 @@ func (c *Client) TestRequestRequiredStringUnixMilliArrayArray(ctx context.Contex func (c *Client) sendTestRequestRequiredStringUnixMilliArrayArray(ctx context.Context, request [][]time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix-milli_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix-milli_array_array"), } // Validate request before sending. @@ -44879,7 +44880,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMilliArrayArray(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -44914,7 +44915,7 @@ func (c *Client) TestRequestRequiredStringUnixMilliNullable(ctx context.Context, func (c *Client) sendTestRequestRequiredStringUnixMilliNullable(ctx context.Context, request NilStringUnixMilli) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix-milli_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix-milli_nullable"), } @@ -44952,7 +44953,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMilliNullable(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -44987,7 +44988,7 @@ func (c *Client) TestRequestRequiredStringUnixMilliNullableArray(ctx context.Con func (c *Client) sendTestRequestRequiredStringUnixMilliNullableArray(ctx context.Context, request []NilStringUnixMilli) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix-milli_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix-milli_nullable_array"), } // Validate request before sending. @@ -45034,7 +45035,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMilliNullableArray(ctx context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -45069,7 +45070,7 @@ func (c *Client) TestRequestRequiredStringUnixMilliNullableArrayArray(ctx contex func (c *Client) sendTestRequestRequiredStringUnixMilliNullableArrayArray(ctx context.Context, request [][]NilStringUnixMilli) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix-milli_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix-milli_nullable_array_array"), } // Validate request before sending. @@ -45133,7 +45134,7 @@ func (c *Client) sendTestRequestRequiredStringUnixMilliNullableArrayArray(ctx co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -45168,7 +45169,7 @@ func (c *Client) TestRequestRequiredStringUnixNano(ctx context.Context, request func (c *Client) sendTestRequestRequiredStringUnixNano(ctx context.Context, request time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix-nano"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix-nano"), } @@ -45206,7 +45207,7 @@ func (c *Client) sendTestRequestRequiredStringUnixNano(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -45241,7 +45242,7 @@ func (c *Client) TestRequestRequiredStringUnixNanoArray(ctx context.Context, req func (c *Client) sendTestRequestRequiredStringUnixNanoArray(ctx context.Context, request []time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix-nano_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix-nano_array"), } // Validate request before sending. @@ -45288,7 +45289,7 @@ func (c *Client) sendTestRequestRequiredStringUnixNanoArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -45323,7 +45324,7 @@ func (c *Client) TestRequestRequiredStringUnixNanoArrayArray(ctx context.Context func (c *Client) sendTestRequestRequiredStringUnixNanoArrayArray(ctx context.Context, request [][]time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix-nano_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix-nano_array_array"), } // Validate request before sending. @@ -45387,7 +45388,7 @@ func (c *Client) sendTestRequestRequiredStringUnixNanoArrayArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -45422,7 +45423,7 @@ func (c *Client) TestRequestRequiredStringUnixNanoNullable(ctx context.Context, func (c *Client) sendTestRequestRequiredStringUnixNanoNullable(ctx context.Context, request NilStringUnixNano) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix-nano_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix-nano_nullable"), } @@ -45460,7 +45461,7 @@ func (c *Client) sendTestRequestRequiredStringUnixNanoNullable(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -45495,7 +45496,7 @@ func (c *Client) TestRequestRequiredStringUnixNanoNullableArray(ctx context.Cont func (c *Client) sendTestRequestRequiredStringUnixNanoNullableArray(ctx context.Context, request []NilStringUnixNano) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix-nano_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix-nano_nullable_array"), } // Validate request before sending. @@ -45542,7 +45543,7 @@ func (c *Client) sendTestRequestRequiredStringUnixNanoNullableArray(ctx context. uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -45577,7 +45578,7 @@ func (c *Client) TestRequestRequiredStringUnixNanoNullableArrayArray(ctx context func (c *Client) sendTestRequestRequiredStringUnixNanoNullableArrayArray(ctx context.Context, request [][]NilStringUnixNano) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix-nano_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix-nano_nullable_array_array"), } // Validate request before sending. @@ -45641,7 +45642,7 @@ func (c *Client) sendTestRequestRequiredStringUnixNanoNullableArrayArray(ctx con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -45676,7 +45677,7 @@ func (c *Client) TestRequestRequiredStringUnixNullable(ctx context.Context, requ func (c *Client) sendTestRequestRequiredStringUnixNullable(ctx context.Context, request NilStringUnixSeconds) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix_nullable"), } @@ -45714,7 +45715,7 @@ func (c *Client) sendTestRequestRequiredStringUnixNullable(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -45749,7 +45750,7 @@ func (c *Client) TestRequestRequiredStringUnixNullableArray(ctx context.Context, func (c *Client) sendTestRequestRequiredStringUnixNullableArray(ctx context.Context, request []NilStringUnixSeconds) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix_nullable_array"), } // Validate request before sending. @@ -45796,7 +45797,7 @@ func (c *Client) sendTestRequestRequiredStringUnixNullableArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -45831,7 +45832,7 @@ func (c *Client) TestRequestRequiredStringUnixNullableArrayArray(ctx context.Con func (c *Client) sendTestRequestRequiredStringUnixNullableArrayArray(ctx context.Context, request [][]NilStringUnixSeconds) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix_nullable_array_array"), } // Validate request before sending. @@ -45895,7 +45896,7 @@ func (c *Client) sendTestRequestRequiredStringUnixNullableArrayArray(ctx context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -45930,7 +45931,7 @@ func (c *Client) TestRequestRequiredStringUnixSeconds(ctx context.Context, reque func (c *Client) sendTestRequestRequiredStringUnixSeconds(ctx context.Context, request time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix-seconds"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix-seconds"), } @@ -45968,7 +45969,7 @@ func (c *Client) sendTestRequestRequiredStringUnixSeconds(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -46003,7 +46004,7 @@ func (c *Client) TestRequestRequiredStringUnixSecondsArray(ctx context.Context, func (c *Client) sendTestRequestRequiredStringUnixSecondsArray(ctx context.Context, request []time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix-seconds_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix-seconds_array"), } // Validate request before sending. @@ -46050,7 +46051,7 @@ func (c *Client) sendTestRequestRequiredStringUnixSecondsArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -46085,7 +46086,7 @@ func (c *Client) TestRequestRequiredStringUnixSecondsArrayArray(ctx context.Cont func (c *Client) sendTestRequestRequiredStringUnixSecondsArrayArray(ctx context.Context, request [][]time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix-seconds_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix-seconds_array_array"), } // Validate request before sending. @@ -46149,7 +46150,7 @@ func (c *Client) sendTestRequestRequiredStringUnixSecondsArrayArray(ctx context. uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -46184,7 +46185,7 @@ func (c *Client) TestRequestRequiredStringUnixSecondsNullable(ctx context.Contex func (c *Client) sendTestRequestRequiredStringUnixSecondsNullable(ctx context.Context, request NilStringUnixSeconds) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix-seconds_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix-seconds_nullable"), } @@ -46222,7 +46223,7 @@ func (c *Client) sendTestRequestRequiredStringUnixSecondsNullable(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -46257,7 +46258,7 @@ func (c *Client) TestRequestRequiredStringUnixSecondsNullableArray(ctx context.C func (c *Client) sendTestRequestRequiredStringUnixSecondsNullableArray(ctx context.Context, request []NilStringUnixSeconds) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix-seconds_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix-seconds_nullable_array"), } // Validate request before sending. @@ -46304,7 +46305,7 @@ func (c *Client) sendTestRequestRequiredStringUnixSecondsNullableArray(ctx conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -46339,7 +46340,7 @@ func (c *Client) TestRequestRequiredStringUnixSecondsNullableArrayArray(ctx cont func (c *Client) sendTestRequestRequiredStringUnixSecondsNullableArrayArray(ctx context.Context, request [][]NilStringUnixSeconds) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_required_string_unix-seconds_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_required_string_unix-seconds_nullable_array_array"), } // Validate request before sending. @@ -46403,7 +46404,7 @@ func (c *Client) sendTestRequestRequiredStringUnixSecondsNullableArrayArray(ctx uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -46438,7 +46439,7 @@ func (c *Client) TestRequestString(ctx context.Context, request OptString) (*Err func (c *Client) sendTestRequestString(ctx context.Context, request OptString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string"), } @@ -46476,7 +46477,7 @@ func (c *Client) sendTestRequestString(ctx context.Context, request OptString) ( uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -46511,7 +46512,7 @@ func (c *Client) TestRequestStringArray(ctx context.Context, request []string) ( func (c *Client) sendTestRequestStringArray(ctx context.Context, request []string) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_array"), } @@ -46549,7 +46550,7 @@ func (c *Client) sendTestRequestStringArray(ctx context.Context, request []strin uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -46584,7 +46585,7 @@ func (c *Client) TestRequestStringArrayArray(ctx context.Context, request [][]st func (c *Client) sendTestRequestStringArrayArray(ctx context.Context, request [][]string) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_array_array"), } // Validate request before sending. @@ -46645,7 +46646,7 @@ func (c *Client) sendTestRequestStringArrayArray(ctx context.Context, request [] uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -46680,7 +46681,7 @@ func (c *Client) TestRequestStringBase64(ctx context.Context, request []byte) (* func (c *Client) sendTestRequestStringBase64(ctx context.Context, request []byte) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_base64"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_base64"), } @@ -46718,7 +46719,7 @@ func (c *Client) sendTestRequestStringBase64(ctx context.Context, request []byte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -46753,7 +46754,7 @@ func (c *Client) TestRequestStringBase64Array(ctx context.Context, request [][]b func (c *Client) sendTestRequestStringBase64Array(ctx context.Context, request [][]byte) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_base64_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_base64_array"), } @@ -46791,7 +46792,7 @@ func (c *Client) sendTestRequestStringBase64Array(ctx context.Context, request [ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -46826,7 +46827,7 @@ func (c *Client) TestRequestStringBase64ArrayArray(ctx context.Context, request func (c *Client) sendTestRequestStringBase64ArrayArray(ctx context.Context, request [][][]byte) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_base64_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_base64_array_array"), } // Validate request before sending. @@ -46887,7 +46888,7 @@ func (c *Client) sendTestRequestStringBase64ArrayArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -46922,7 +46923,7 @@ func (c *Client) TestRequestStringBase64Nullable(ctx context.Context, request Op func (c *Client) sendTestRequestStringBase64Nullable(ctx context.Context, request OptNilByte) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_base64_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_base64_nullable"), } @@ -46960,7 +46961,7 @@ func (c *Client) sendTestRequestStringBase64Nullable(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -46995,7 +46996,7 @@ func (c *Client) TestRequestStringBase64NullableArray(ctx context.Context, reque func (c *Client) sendTestRequestStringBase64NullableArray(ctx context.Context, request [][]byte) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_base64_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_base64_nullable_array"), } @@ -47033,7 +47034,7 @@ func (c *Client) sendTestRequestStringBase64NullableArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -47068,7 +47069,7 @@ func (c *Client) TestRequestStringBase64NullableArrayArray(ctx context.Context, func (c *Client) sendTestRequestStringBase64NullableArrayArray(ctx context.Context, request [][][]byte) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_base64_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_base64_nullable_array_array"), } // Validate request before sending. @@ -47129,7 +47130,7 @@ func (c *Client) sendTestRequestStringBase64NullableArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -47164,7 +47165,7 @@ func (c *Client) TestRequestStringBinary(ctx context.Context, request OptString) func (c *Client) sendTestRequestStringBinary(ctx context.Context, request OptString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_binary"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_binary"), } @@ -47202,7 +47203,7 @@ func (c *Client) sendTestRequestStringBinary(ctx context.Context, request OptStr uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -47237,7 +47238,7 @@ func (c *Client) TestRequestStringBinaryArray(ctx context.Context, request []str func (c *Client) sendTestRequestStringBinaryArray(ctx context.Context, request []string) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_binary_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_binary_array"), } @@ -47275,7 +47276,7 @@ func (c *Client) sendTestRequestStringBinaryArray(ctx context.Context, request [ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -47310,7 +47311,7 @@ func (c *Client) TestRequestStringBinaryArrayArray(ctx context.Context, request func (c *Client) sendTestRequestStringBinaryArrayArray(ctx context.Context, request [][]string) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_binary_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_binary_array_array"), } // Validate request before sending. @@ -47371,7 +47372,7 @@ func (c *Client) sendTestRequestStringBinaryArrayArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -47406,7 +47407,7 @@ func (c *Client) TestRequestStringBinaryNullable(ctx context.Context, request Op func (c *Client) sendTestRequestStringBinaryNullable(ctx context.Context, request OptNilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_binary_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_binary_nullable"), } @@ -47444,7 +47445,7 @@ func (c *Client) sendTestRequestStringBinaryNullable(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -47479,7 +47480,7 @@ func (c *Client) TestRequestStringBinaryNullableArray(ctx context.Context, reque func (c *Client) sendTestRequestStringBinaryNullableArray(ctx context.Context, request []NilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_binary_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_binary_nullable_array"), } @@ -47517,7 +47518,7 @@ func (c *Client) sendTestRequestStringBinaryNullableArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -47552,7 +47553,7 @@ func (c *Client) TestRequestStringBinaryNullableArrayArray(ctx context.Context, func (c *Client) sendTestRequestStringBinaryNullableArrayArray(ctx context.Context, request [][]NilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_binary_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_binary_nullable_array_array"), } // Validate request before sending. @@ -47613,7 +47614,7 @@ func (c *Client) sendTestRequestStringBinaryNullableArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -47648,7 +47649,7 @@ func (c *Client) TestRequestStringByte(ctx context.Context, request []byte) (*Er func (c *Client) sendTestRequestStringByte(ctx context.Context, request []byte) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_byte"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_byte"), } @@ -47686,7 +47687,7 @@ func (c *Client) sendTestRequestStringByte(ctx context.Context, request []byte) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -47721,7 +47722,7 @@ func (c *Client) TestRequestStringByteArray(ctx context.Context, request [][]byt func (c *Client) sendTestRequestStringByteArray(ctx context.Context, request [][]byte) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_byte_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_byte_array"), } @@ -47759,7 +47760,7 @@ func (c *Client) sendTestRequestStringByteArray(ctx context.Context, request [][ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -47794,7 +47795,7 @@ func (c *Client) TestRequestStringByteArrayArray(ctx context.Context, request [] func (c *Client) sendTestRequestStringByteArrayArray(ctx context.Context, request [][][]byte) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_byte_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_byte_array_array"), } // Validate request before sending. @@ -47855,7 +47856,7 @@ func (c *Client) sendTestRequestStringByteArrayArray(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -47890,7 +47891,7 @@ func (c *Client) TestRequestStringByteNullable(ctx context.Context, request OptN func (c *Client) sendTestRequestStringByteNullable(ctx context.Context, request OptNilByte) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_byte_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_byte_nullable"), } @@ -47928,7 +47929,7 @@ func (c *Client) sendTestRequestStringByteNullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -47963,7 +47964,7 @@ func (c *Client) TestRequestStringByteNullableArray(ctx context.Context, request func (c *Client) sendTestRequestStringByteNullableArray(ctx context.Context, request [][]byte) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_byte_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_byte_nullable_array"), } @@ -48001,7 +48002,7 @@ func (c *Client) sendTestRequestStringByteNullableArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -48036,7 +48037,7 @@ func (c *Client) TestRequestStringByteNullableArrayArray(ctx context.Context, re func (c *Client) sendTestRequestStringByteNullableArrayArray(ctx context.Context, request [][][]byte) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_byte_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_byte_nullable_array_array"), } // Validate request before sending. @@ -48097,7 +48098,7 @@ func (c *Client) sendTestRequestStringByteNullableArrayArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -48132,7 +48133,7 @@ func (c *Client) TestRequestStringDate(ctx context.Context, request OptDate) (*E func (c *Client) sendTestRequestStringDate(ctx context.Context, request OptDate) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_date"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_date"), } @@ -48170,7 +48171,7 @@ func (c *Client) sendTestRequestStringDate(ctx context.Context, request OptDate) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -48205,7 +48206,7 @@ func (c *Client) TestRequestStringDateArray(ctx context.Context, request []time. func (c *Client) sendTestRequestStringDateArray(ctx context.Context, request []time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_date_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_date_array"), } @@ -48243,7 +48244,7 @@ func (c *Client) sendTestRequestStringDateArray(ctx context.Context, request []t uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -48278,7 +48279,7 @@ func (c *Client) TestRequestStringDateArrayArray(ctx context.Context, request [] func (c *Client) sendTestRequestStringDateArrayArray(ctx context.Context, request [][]time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_date_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_date_array_array"), } // Validate request before sending. @@ -48339,7 +48340,7 @@ func (c *Client) sendTestRequestStringDateArrayArray(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -48374,7 +48375,7 @@ func (c *Client) TestRequestStringDateNullable(ctx context.Context, request OptN func (c *Client) sendTestRequestStringDateNullable(ctx context.Context, request OptNilDate) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_date_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_date_nullable"), } @@ -48412,7 +48413,7 @@ func (c *Client) sendTestRequestStringDateNullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -48447,7 +48448,7 @@ func (c *Client) TestRequestStringDateNullableArray(ctx context.Context, request func (c *Client) sendTestRequestStringDateNullableArray(ctx context.Context, request []NilDate) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_date_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_date_nullable_array"), } @@ -48485,7 +48486,7 @@ func (c *Client) sendTestRequestStringDateNullableArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -48520,7 +48521,7 @@ func (c *Client) TestRequestStringDateNullableArrayArray(ctx context.Context, re func (c *Client) sendTestRequestStringDateNullableArrayArray(ctx context.Context, request [][]NilDate) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_date_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_date_nullable_array_array"), } // Validate request before sending. @@ -48581,7 +48582,7 @@ func (c *Client) sendTestRequestStringDateNullableArrayArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -48616,7 +48617,7 @@ func (c *Client) TestRequestStringDateTime(ctx context.Context, request OptDateT func (c *Client) sendTestRequestStringDateTime(ctx context.Context, request OptDateTime) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_date-time"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_date-time"), } @@ -48654,7 +48655,7 @@ func (c *Client) sendTestRequestStringDateTime(ctx context.Context, request OptD uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -48689,7 +48690,7 @@ func (c *Client) TestRequestStringDateTimeArray(ctx context.Context, request []t func (c *Client) sendTestRequestStringDateTimeArray(ctx context.Context, request []time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_date-time_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_date-time_array"), } @@ -48727,7 +48728,7 @@ func (c *Client) sendTestRequestStringDateTimeArray(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -48762,7 +48763,7 @@ func (c *Client) TestRequestStringDateTimeArrayArray(ctx context.Context, reques func (c *Client) sendTestRequestStringDateTimeArrayArray(ctx context.Context, request [][]time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_date-time_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_date-time_array_array"), } // Validate request before sending. @@ -48823,7 +48824,7 @@ func (c *Client) sendTestRequestStringDateTimeArrayArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -48858,7 +48859,7 @@ func (c *Client) TestRequestStringDateTimeNullable(ctx context.Context, request func (c *Client) sendTestRequestStringDateTimeNullable(ctx context.Context, request OptNilDateTime) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_date-time_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_date-time_nullable"), } @@ -48896,7 +48897,7 @@ func (c *Client) sendTestRequestStringDateTimeNullable(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -48931,7 +48932,7 @@ func (c *Client) TestRequestStringDateTimeNullableArray(ctx context.Context, req func (c *Client) sendTestRequestStringDateTimeNullableArray(ctx context.Context, request []NilDateTime) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_date-time_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_date-time_nullable_array"), } @@ -48969,7 +48970,7 @@ func (c *Client) sendTestRequestStringDateTimeNullableArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -49004,7 +49005,7 @@ func (c *Client) TestRequestStringDateTimeNullableArrayArray(ctx context.Context func (c *Client) sendTestRequestStringDateTimeNullableArrayArray(ctx context.Context, request [][]NilDateTime) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_date-time_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_date-time_nullable_array_array"), } // Validate request before sending. @@ -49065,7 +49066,7 @@ func (c *Client) sendTestRequestStringDateTimeNullableArrayArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -49100,7 +49101,7 @@ func (c *Client) TestRequestStringDuration(ctx context.Context, request OptDurat func (c *Client) sendTestRequestStringDuration(ctx context.Context, request OptDuration) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_duration"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_duration"), } @@ -49138,7 +49139,7 @@ func (c *Client) sendTestRequestStringDuration(ctx context.Context, request OptD uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -49173,7 +49174,7 @@ func (c *Client) TestRequestStringDurationArray(ctx context.Context, request []t func (c *Client) sendTestRequestStringDurationArray(ctx context.Context, request []time.Duration) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_duration_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_duration_array"), } @@ -49211,7 +49212,7 @@ func (c *Client) sendTestRequestStringDurationArray(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -49246,7 +49247,7 @@ func (c *Client) TestRequestStringDurationArrayArray(ctx context.Context, reques func (c *Client) sendTestRequestStringDurationArrayArray(ctx context.Context, request [][]time.Duration) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_duration_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_duration_array_array"), } // Validate request before sending. @@ -49307,7 +49308,7 @@ func (c *Client) sendTestRequestStringDurationArrayArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -49342,7 +49343,7 @@ func (c *Client) TestRequestStringDurationNullable(ctx context.Context, request func (c *Client) sendTestRequestStringDurationNullable(ctx context.Context, request OptNilDuration) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_duration_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_duration_nullable"), } @@ -49380,7 +49381,7 @@ func (c *Client) sendTestRequestStringDurationNullable(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -49415,7 +49416,7 @@ func (c *Client) TestRequestStringDurationNullableArray(ctx context.Context, req func (c *Client) sendTestRequestStringDurationNullableArray(ctx context.Context, request []NilDuration) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_duration_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_duration_nullable_array"), } @@ -49453,7 +49454,7 @@ func (c *Client) sendTestRequestStringDurationNullableArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -49488,7 +49489,7 @@ func (c *Client) TestRequestStringDurationNullableArrayArray(ctx context.Context func (c *Client) sendTestRequestStringDurationNullableArrayArray(ctx context.Context, request [][]NilDuration) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_duration_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_duration_nullable_array_array"), } // Validate request before sending. @@ -49549,7 +49550,7 @@ func (c *Client) sendTestRequestStringDurationNullableArrayArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -49584,7 +49585,7 @@ func (c *Client) TestRequestStringEmail(ctx context.Context, request OptString) func (c *Client) sendTestRequestStringEmail(ctx context.Context, request OptString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_email"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_email"), } // Validate request before sending. @@ -49646,7 +49647,7 @@ func (c *Client) sendTestRequestStringEmail(ctx context.Context, request OptStri uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -49681,7 +49682,7 @@ func (c *Client) TestRequestStringEmailArray(ctx context.Context, request []stri func (c *Client) sendTestRequestStringEmailArray(ctx context.Context, request []string) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_email_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_email_array"), } // Validate request before sending. @@ -49750,7 +49751,7 @@ func (c *Client) sendTestRequestStringEmailArray(ctx context.Context, request [] uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -49785,7 +49786,7 @@ func (c *Client) TestRequestStringEmailArrayArray(ctx context.Context, request [ func (c *Client) sendTestRequestStringEmailArrayArray(ctx context.Context, request [][]string) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_email_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_email_array_array"), } // Validate request before sending. @@ -49871,7 +49872,7 @@ func (c *Client) sendTestRequestStringEmailArrayArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -49906,7 +49907,7 @@ func (c *Client) TestRequestStringEmailNullable(ctx context.Context, request Opt func (c *Client) sendTestRequestStringEmailNullable(ctx context.Context, request OptNilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_email_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_email_nullable"), } // Validate request before sending. @@ -49968,7 +49969,7 @@ func (c *Client) sendTestRequestStringEmailNullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -50003,7 +50004,7 @@ func (c *Client) TestRequestStringEmailNullableArray(ctx context.Context, reques func (c *Client) sendTestRequestStringEmailNullableArray(ctx context.Context, request []NilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_email_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_email_nullable_array"), } // Validate request before sending. @@ -50079,7 +50080,7 @@ func (c *Client) sendTestRequestStringEmailNullableArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -50114,7 +50115,7 @@ func (c *Client) TestRequestStringEmailNullableArrayArray(ctx context.Context, r func (c *Client) sendTestRequestStringEmailNullableArrayArray(ctx context.Context, request [][]NilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_email_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_email_nullable_array_array"), } // Validate request before sending. @@ -50207,7 +50208,7 @@ func (c *Client) sendTestRequestStringEmailNullableArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -50242,7 +50243,7 @@ func (c *Client) TestRequestStringFloat32(ctx context.Context, request OptFloat3 func (c *Client) sendTestRequestStringFloat32(ctx context.Context, request OptFloat32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_float32"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_float32"), } // Validate request before sending. @@ -50296,7 +50297,7 @@ func (c *Client) sendTestRequestStringFloat32(ctx context.Context, request OptFl uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -50331,7 +50332,7 @@ func (c *Client) TestRequestStringFloat32Array(ctx context.Context, request []fl func (c *Client) sendTestRequestStringFloat32Array(ctx context.Context, request []float32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_float32_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_float32_array"), } // Validate request before sending. @@ -50392,7 +50393,7 @@ func (c *Client) sendTestRequestStringFloat32Array(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -50427,7 +50428,7 @@ func (c *Client) TestRequestStringFloat32ArrayArray(ctx context.Context, request func (c *Client) sendTestRequestStringFloat32ArrayArray(ctx context.Context, request [][]float32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_float32_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_float32_array_array"), } // Validate request before sending. @@ -50505,7 +50506,7 @@ func (c *Client) sendTestRequestStringFloat32ArrayArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -50540,7 +50541,7 @@ func (c *Client) TestRequestStringFloat32Nullable(ctx context.Context, request O func (c *Client) sendTestRequestStringFloat32Nullable(ctx context.Context, request OptNilFloat32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_float32_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_float32_nullable"), } // Validate request before sending. @@ -50594,7 +50595,7 @@ func (c *Client) sendTestRequestStringFloat32Nullable(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -50629,7 +50630,7 @@ func (c *Client) TestRequestStringFloat32NullableArray(ctx context.Context, requ func (c *Client) sendTestRequestStringFloat32NullableArray(ctx context.Context, request []NilFloat32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_float32_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_float32_nullable_array"), } // Validate request before sending. @@ -50697,7 +50698,7 @@ func (c *Client) sendTestRequestStringFloat32NullableArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -50732,7 +50733,7 @@ func (c *Client) TestRequestStringFloat32NullableArrayArray(ctx context.Context, func (c *Client) sendTestRequestStringFloat32NullableArrayArray(ctx context.Context, request [][]NilFloat32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_float32_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_float32_nullable_array_array"), } // Validate request before sending. @@ -50817,7 +50818,7 @@ func (c *Client) sendTestRequestStringFloat32NullableArrayArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -50852,7 +50853,7 @@ func (c *Client) TestRequestStringFloat64(ctx context.Context, request OptFloat6 func (c *Client) sendTestRequestStringFloat64(ctx context.Context, request OptFloat64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_float64"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_float64"), } // Validate request before sending. @@ -50906,7 +50907,7 @@ func (c *Client) sendTestRequestStringFloat64(ctx context.Context, request OptFl uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -50941,7 +50942,7 @@ func (c *Client) TestRequestStringFloat64Array(ctx context.Context, request []fl func (c *Client) sendTestRequestStringFloat64Array(ctx context.Context, request []float64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_float64_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_float64_array"), } // Validate request before sending. @@ -51002,7 +51003,7 @@ func (c *Client) sendTestRequestStringFloat64Array(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -51037,7 +51038,7 @@ func (c *Client) TestRequestStringFloat64ArrayArray(ctx context.Context, request func (c *Client) sendTestRequestStringFloat64ArrayArray(ctx context.Context, request [][]float64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_float64_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_float64_array_array"), } // Validate request before sending. @@ -51115,7 +51116,7 @@ func (c *Client) sendTestRequestStringFloat64ArrayArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -51150,7 +51151,7 @@ func (c *Client) TestRequestStringFloat64Nullable(ctx context.Context, request O func (c *Client) sendTestRequestStringFloat64Nullable(ctx context.Context, request OptNilFloat64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_float64_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_float64_nullable"), } // Validate request before sending. @@ -51204,7 +51205,7 @@ func (c *Client) sendTestRequestStringFloat64Nullable(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -51239,7 +51240,7 @@ func (c *Client) TestRequestStringFloat64NullableArray(ctx context.Context, requ func (c *Client) sendTestRequestStringFloat64NullableArray(ctx context.Context, request []NilFloat64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_float64_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_float64_nullable_array"), } // Validate request before sending. @@ -51307,7 +51308,7 @@ func (c *Client) sendTestRequestStringFloat64NullableArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -51342,7 +51343,7 @@ func (c *Client) TestRequestStringFloat64NullableArrayArray(ctx context.Context, func (c *Client) sendTestRequestStringFloat64NullableArrayArray(ctx context.Context, request [][]NilFloat64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_float64_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_float64_nullable_array_array"), } // Validate request before sending. @@ -51427,7 +51428,7 @@ func (c *Client) sendTestRequestStringFloat64NullableArrayArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -51462,7 +51463,7 @@ func (c *Client) TestRequestStringHostname(ctx context.Context, request OptStrin func (c *Client) sendTestRequestStringHostname(ctx context.Context, request OptString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_hostname"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_hostname"), } // Validate request before sending. @@ -51524,7 +51525,7 @@ func (c *Client) sendTestRequestStringHostname(ctx context.Context, request OptS uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -51559,7 +51560,7 @@ func (c *Client) TestRequestStringHostnameArray(ctx context.Context, request []s func (c *Client) sendTestRequestStringHostnameArray(ctx context.Context, request []string) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_hostname_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_hostname_array"), } // Validate request before sending. @@ -51628,7 +51629,7 @@ func (c *Client) sendTestRequestStringHostnameArray(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -51663,7 +51664,7 @@ func (c *Client) TestRequestStringHostnameArrayArray(ctx context.Context, reques func (c *Client) sendTestRequestStringHostnameArrayArray(ctx context.Context, request [][]string) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_hostname_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_hostname_array_array"), } // Validate request before sending. @@ -51749,7 +51750,7 @@ func (c *Client) sendTestRequestStringHostnameArrayArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -51784,7 +51785,7 @@ func (c *Client) TestRequestStringHostnameNullable(ctx context.Context, request func (c *Client) sendTestRequestStringHostnameNullable(ctx context.Context, request OptNilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_hostname_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_hostname_nullable"), } // Validate request before sending. @@ -51846,7 +51847,7 @@ func (c *Client) sendTestRequestStringHostnameNullable(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -51881,7 +51882,7 @@ func (c *Client) TestRequestStringHostnameNullableArray(ctx context.Context, req func (c *Client) sendTestRequestStringHostnameNullableArray(ctx context.Context, request []NilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_hostname_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_hostname_nullable_array"), } // Validate request before sending. @@ -51957,7 +51958,7 @@ func (c *Client) sendTestRequestStringHostnameNullableArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -51992,7 +51993,7 @@ func (c *Client) TestRequestStringHostnameNullableArrayArray(ctx context.Context func (c *Client) sendTestRequestStringHostnameNullableArrayArray(ctx context.Context, request [][]NilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_hostname_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_hostname_nullable_array_array"), } // Validate request before sending. @@ -52085,7 +52086,7 @@ func (c *Client) sendTestRequestStringHostnameNullableArrayArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -52120,7 +52121,7 @@ func (c *Client) TestRequestStringIP(ctx context.Context, request OptIP) (*Error func (c *Client) sendTestRequestStringIP(ctx context.Context, request OptIP) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_ip"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_ip"), } @@ -52158,7 +52159,7 @@ func (c *Client) sendTestRequestStringIP(ctx context.Context, request OptIP) (re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -52193,7 +52194,7 @@ func (c *Client) TestRequestStringIPArray(ctx context.Context, request []netip.A func (c *Client) sendTestRequestStringIPArray(ctx context.Context, request []netip.Addr) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_ip_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_ip_array"), } @@ -52231,7 +52232,7 @@ func (c *Client) sendTestRequestStringIPArray(ctx context.Context, request []net uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -52266,7 +52267,7 @@ func (c *Client) TestRequestStringIPArrayArray(ctx context.Context, request [][] func (c *Client) sendTestRequestStringIPArrayArray(ctx context.Context, request [][]netip.Addr) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_ip_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_ip_array_array"), } // Validate request before sending. @@ -52327,7 +52328,7 @@ func (c *Client) sendTestRequestStringIPArrayArray(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -52362,7 +52363,7 @@ func (c *Client) TestRequestStringIPNullable(ctx context.Context, request OptNil func (c *Client) sendTestRequestStringIPNullable(ctx context.Context, request OptNilIP) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_ip_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_ip_nullable"), } @@ -52400,7 +52401,7 @@ func (c *Client) sendTestRequestStringIPNullable(ctx context.Context, request Op uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -52435,7 +52436,7 @@ func (c *Client) TestRequestStringIPNullableArray(ctx context.Context, request [ func (c *Client) sendTestRequestStringIPNullableArray(ctx context.Context, request []NilIP) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_ip_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_ip_nullable_array"), } @@ -52473,7 +52474,7 @@ func (c *Client) sendTestRequestStringIPNullableArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -52508,7 +52509,7 @@ func (c *Client) TestRequestStringIPNullableArrayArray(ctx context.Context, requ func (c *Client) sendTestRequestStringIPNullableArrayArray(ctx context.Context, request [][]NilIP) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_ip_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_ip_nullable_array_array"), } // Validate request before sending. @@ -52569,7 +52570,7 @@ func (c *Client) sendTestRequestStringIPNullableArrayArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -52604,7 +52605,7 @@ func (c *Client) TestRequestStringInt(ctx context.Context, request OptInt) (*Err func (c *Client) sendTestRequestStringInt(ctx context.Context, request OptInt) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int"), } @@ -52642,7 +52643,7 @@ func (c *Client) sendTestRequestStringInt(ctx context.Context, request OptInt) ( uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -52677,7 +52678,7 @@ func (c *Client) TestRequestStringInt16(ctx context.Context, request OptInt16) ( func (c *Client) sendTestRequestStringInt16(ctx context.Context, request OptInt16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int16"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int16"), } @@ -52715,7 +52716,7 @@ func (c *Client) sendTestRequestStringInt16(ctx context.Context, request OptInt1 uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -52750,7 +52751,7 @@ func (c *Client) TestRequestStringInt16Array(ctx context.Context, request []int1 func (c *Client) sendTestRequestStringInt16Array(ctx context.Context, request []int16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int16_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int16_array"), } @@ -52788,7 +52789,7 @@ func (c *Client) sendTestRequestStringInt16Array(ctx context.Context, request [] uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -52823,7 +52824,7 @@ func (c *Client) TestRequestStringInt16ArrayArray(ctx context.Context, request [ func (c *Client) sendTestRequestStringInt16ArrayArray(ctx context.Context, request [][]int16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int16_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int16_array_array"), } // Validate request before sending. @@ -52884,7 +52885,7 @@ func (c *Client) sendTestRequestStringInt16ArrayArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -52919,7 +52920,7 @@ func (c *Client) TestRequestStringInt16Nullable(ctx context.Context, request Opt func (c *Client) sendTestRequestStringInt16Nullable(ctx context.Context, request OptNilInt16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int16_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int16_nullable"), } @@ -52957,7 +52958,7 @@ func (c *Client) sendTestRequestStringInt16Nullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -52992,7 +52993,7 @@ func (c *Client) TestRequestStringInt16NullableArray(ctx context.Context, reques func (c *Client) sendTestRequestStringInt16NullableArray(ctx context.Context, request []NilInt16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int16_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int16_nullable_array"), } @@ -53030,7 +53031,7 @@ func (c *Client) sendTestRequestStringInt16NullableArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -53065,7 +53066,7 @@ func (c *Client) TestRequestStringInt16NullableArrayArray(ctx context.Context, r func (c *Client) sendTestRequestStringInt16NullableArrayArray(ctx context.Context, request [][]NilInt16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int16_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int16_nullable_array_array"), } // Validate request before sending. @@ -53126,7 +53127,7 @@ func (c *Client) sendTestRequestStringInt16NullableArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -53161,7 +53162,7 @@ func (c *Client) TestRequestStringInt32(ctx context.Context, request OptStringIn func (c *Client) sendTestRequestStringInt32(ctx context.Context, request OptStringInt32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int32"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int32"), } @@ -53199,7 +53200,7 @@ func (c *Client) sendTestRequestStringInt32(ctx context.Context, request OptStri uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -53234,7 +53235,7 @@ func (c *Client) TestRequestStringInt32Array(ctx context.Context, request []int3 func (c *Client) sendTestRequestStringInt32Array(ctx context.Context, request []int32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int32_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int32_array"), } @@ -53272,7 +53273,7 @@ func (c *Client) sendTestRequestStringInt32Array(ctx context.Context, request [] uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -53307,7 +53308,7 @@ func (c *Client) TestRequestStringInt32ArrayArray(ctx context.Context, request [ func (c *Client) sendTestRequestStringInt32ArrayArray(ctx context.Context, request [][]int32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int32_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int32_array_array"), } // Validate request before sending. @@ -53368,7 +53369,7 @@ func (c *Client) sendTestRequestStringInt32ArrayArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -53403,7 +53404,7 @@ func (c *Client) TestRequestStringInt32Nullable(ctx context.Context, request Opt func (c *Client) sendTestRequestStringInt32Nullable(ctx context.Context, request OptNilStringInt32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int32_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int32_nullable"), } @@ -53441,7 +53442,7 @@ func (c *Client) sendTestRequestStringInt32Nullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -53476,7 +53477,7 @@ func (c *Client) TestRequestStringInt32NullableArray(ctx context.Context, reques func (c *Client) sendTestRequestStringInt32NullableArray(ctx context.Context, request []NilStringInt32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int32_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int32_nullable_array"), } @@ -53514,7 +53515,7 @@ func (c *Client) sendTestRequestStringInt32NullableArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -53549,7 +53550,7 @@ func (c *Client) TestRequestStringInt32NullableArrayArray(ctx context.Context, r func (c *Client) sendTestRequestStringInt32NullableArrayArray(ctx context.Context, request [][]NilStringInt32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int32_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int32_nullable_array_array"), } // Validate request before sending. @@ -53610,7 +53611,7 @@ func (c *Client) sendTestRequestStringInt32NullableArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -53645,7 +53646,7 @@ func (c *Client) TestRequestStringInt64(ctx context.Context, request OptStringIn func (c *Client) sendTestRequestStringInt64(ctx context.Context, request OptStringInt64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int64"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int64"), } @@ -53683,7 +53684,7 @@ func (c *Client) sendTestRequestStringInt64(ctx context.Context, request OptStri uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -53718,7 +53719,7 @@ func (c *Client) TestRequestStringInt64Array(ctx context.Context, request []int6 func (c *Client) sendTestRequestStringInt64Array(ctx context.Context, request []int64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int64_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int64_array"), } @@ -53756,7 +53757,7 @@ func (c *Client) sendTestRequestStringInt64Array(ctx context.Context, request [] uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -53791,7 +53792,7 @@ func (c *Client) TestRequestStringInt64ArrayArray(ctx context.Context, request [ func (c *Client) sendTestRequestStringInt64ArrayArray(ctx context.Context, request [][]int64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int64_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int64_array_array"), } // Validate request before sending. @@ -53852,7 +53853,7 @@ func (c *Client) sendTestRequestStringInt64ArrayArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -53887,7 +53888,7 @@ func (c *Client) TestRequestStringInt64Nullable(ctx context.Context, request Opt func (c *Client) sendTestRequestStringInt64Nullable(ctx context.Context, request OptNilStringInt64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int64_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int64_nullable"), } @@ -53925,7 +53926,7 @@ func (c *Client) sendTestRequestStringInt64Nullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -53960,7 +53961,7 @@ func (c *Client) TestRequestStringInt64NullableArray(ctx context.Context, reques func (c *Client) sendTestRequestStringInt64NullableArray(ctx context.Context, request []NilStringInt64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int64_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int64_nullable_array"), } @@ -53998,7 +53999,7 @@ func (c *Client) sendTestRequestStringInt64NullableArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -54033,7 +54034,7 @@ func (c *Client) TestRequestStringInt64NullableArrayArray(ctx context.Context, r func (c *Client) sendTestRequestStringInt64NullableArrayArray(ctx context.Context, request [][]NilStringInt64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int64_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int64_nullable_array_array"), } // Validate request before sending. @@ -54094,7 +54095,7 @@ func (c *Client) sendTestRequestStringInt64NullableArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -54129,7 +54130,7 @@ func (c *Client) TestRequestStringInt8(ctx context.Context, request OptInt8) (*E func (c *Client) sendTestRequestStringInt8(ctx context.Context, request OptInt8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int8"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int8"), } @@ -54167,7 +54168,7 @@ func (c *Client) sendTestRequestStringInt8(ctx context.Context, request OptInt8) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -54202,7 +54203,7 @@ func (c *Client) TestRequestStringInt8Array(ctx context.Context, request []int8) func (c *Client) sendTestRequestStringInt8Array(ctx context.Context, request []int8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int8_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int8_array"), } @@ -54240,7 +54241,7 @@ func (c *Client) sendTestRequestStringInt8Array(ctx context.Context, request []i uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -54275,7 +54276,7 @@ func (c *Client) TestRequestStringInt8ArrayArray(ctx context.Context, request [] func (c *Client) sendTestRequestStringInt8ArrayArray(ctx context.Context, request [][]int8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int8_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int8_array_array"), } // Validate request before sending. @@ -54336,7 +54337,7 @@ func (c *Client) sendTestRequestStringInt8ArrayArray(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -54371,7 +54372,7 @@ func (c *Client) TestRequestStringInt8Nullable(ctx context.Context, request OptN func (c *Client) sendTestRequestStringInt8Nullable(ctx context.Context, request OptNilInt8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int8_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int8_nullable"), } @@ -54409,7 +54410,7 @@ func (c *Client) sendTestRequestStringInt8Nullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -54444,7 +54445,7 @@ func (c *Client) TestRequestStringInt8NullableArray(ctx context.Context, request func (c *Client) sendTestRequestStringInt8NullableArray(ctx context.Context, request []NilInt8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int8_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int8_nullable_array"), } @@ -54482,7 +54483,7 @@ func (c *Client) sendTestRequestStringInt8NullableArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -54517,7 +54518,7 @@ func (c *Client) TestRequestStringInt8NullableArrayArray(ctx context.Context, re func (c *Client) sendTestRequestStringInt8NullableArrayArray(ctx context.Context, request [][]NilInt8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int8_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int8_nullable_array_array"), } // Validate request before sending. @@ -54578,7 +54579,7 @@ func (c *Client) sendTestRequestStringInt8NullableArrayArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -54613,7 +54614,7 @@ func (c *Client) TestRequestStringIntArray(ctx context.Context, request []int) ( func (c *Client) sendTestRequestStringIntArray(ctx context.Context, request []int) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int_array"), } @@ -54651,7 +54652,7 @@ func (c *Client) sendTestRequestStringIntArray(ctx context.Context, request []in uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -54686,7 +54687,7 @@ func (c *Client) TestRequestStringIntArrayArray(ctx context.Context, request [][ func (c *Client) sendTestRequestStringIntArrayArray(ctx context.Context, request [][]int) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int_array_array"), } // Validate request before sending. @@ -54747,7 +54748,7 @@ func (c *Client) sendTestRequestStringIntArrayArray(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -54782,7 +54783,7 @@ func (c *Client) TestRequestStringIntNullable(ctx context.Context, request OptNi func (c *Client) sendTestRequestStringIntNullable(ctx context.Context, request OptNilInt) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int_nullable"), } @@ -54820,7 +54821,7 @@ func (c *Client) sendTestRequestStringIntNullable(ctx context.Context, request O uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -54855,7 +54856,7 @@ func (c *Client) TestRequestStringIntNullableArray(ctx context.Context, request func (c *Client) sendTestRequestStringIntNullableArray(ctx context.Context, request []NilInt) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int_nullable_array"), } @@ -54893,7 +54894,7 @@ func (c *Client) sendTestRequestStringIntNullableArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -54928,7 +54929,7 @@ func (c *Client) TestRequestStringIntNullableArrayArray(ctx context.Context, req func (c *Client) sendTestRequestStringIntNullableArrayArray(ctx context.Context, request [][]NilInt) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_int_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_int_nullable_array_array"), } // Validate request before sending. @@ -54989,7 +54990,7 @@ func (c *Client) sendTestRequestStringIntNullableArrayArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -55024,7 +55025,7 @@ func (c *Client) TestRequestStringIpv4(ctx context.Context, request OptIPv4) (*E func (c *Client) sendTestRequestStringIpv4(ctx context.Context, request OptIPv4) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_ipv4"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_ipv4"), } @@ -55062,7 +55063,7 @@ func (c *Client) sendTestRequestStringIpv4(ctx context.Context, request OptIPv4) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -55097,7 +55098,7 @@ func (c *Client) TestRequestStringIpv4Array(ctx context.Context, request []netip func (c *Client) sendTestRequestStringIpv4Array(ctx context.Context, request []netip.Addr) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_ipv4_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_ipv4_array"), } @@ -55135,7 +55136,7 @@ func (c *Client) sendTestRequestStringIpv4Array(ctx context.Context, request []n uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -55170,7 +55171,7 @@ func (c *Client) TestRequestStringIpv4ArrayArray(ctx context.Context, request [] func (c *Client) sendTestRequestStringIpv4ArrayArray(ctx context.Context, request [][]netip.Addr) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_ipv4_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_ipv4_array_array"), } // Validate request before sending. @@ -55231,7 +55232,7 @@ func (c *Client) sendTestRequestStringIpv4ArrayArray(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -55266,7 +55267,7 @@ func (c *Client) TestRequestStringIpv4Nullable(ctx context.Context, request OptN func (c *Client) sendTestRequestStringIpv4Nullable(ctx context.Context, request OptNilIPv4) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_ipv4_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_ipv4_nullable"), } @@ -55304,7 +55305,7 @@ func (c *Client) sendTestRequestStringIpv4Nullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -55339,7 +55340,7 @@ func (c *Client) TestRequestStringIpv4NullableArray(ctx context.Context, request func (c *Client) sendTestRequestStringIpv4NullableArray(ctx context.Context, request []NilIPv4) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_ipv4_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_ipv4_nullable_array"), } @@ -55377,7 +55378,7 @@ func (c *Client) sendTestRequestStringIpv4NullableArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -55412,7 +55413,7 @@ func (c *Client) TestRequestStringIpv4NullableArrayArray(ctx context.Context, re func (c *Client) sendTestRequestStringIpv4NullableArrayArray(ctx context.Context, request [][]NilIPv4) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_ipv4_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_ipv4_nullable_array_array"), } // Validate request before sending. @@ -55473,7 +55474,7 @@ func (c *Client) sendTestRequestStringIpv4NullableArrayArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -55508,7 +55509,7 @@ func (c *Client) TestRequestStringIpv6(ctx context.Context, request OptIPv6) (*E func (c *Client) sendTestRequestStringIpv6(ctx context.Context, request OptIPv6) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_ipv6"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_ipv6"), } @@ -55546,7 +55547,7 @@ func (c *Client) sendTestRequestStringIpv6(ctx context.Context, request OptIPv6) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -55581,7 +55582,7 @@ func (c *Client) TestRequestStringIpv6Array(ctx context.Context, request []netip func (c *Client) sendTestRequestStringIpv6Array(ctx context.Context, request []netip.Addr) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_ipv6_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_ipv6_array"), } @@ -55619,7 +55620,7 @@ func (c *Client) sendTestRequestStringIpv6Array(ctx context.Context, request []n uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -55654,7 +55655,7 @@ func (c *Client) TestRequestStringIpv6ArrayArray(ctx context.Context, request [] func (c *Client) sendTestRequestStringIpv6ArrayArray(ctx context.Context, request [][]netip.Addr) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_ipv6_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_ipv6_array_array"), } // Validate request before sending. @@ -55715,7 +55716,7 @@ func (c *Client) sendTestRequestStringIpv6ArrayArray(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -55750,7 +55751,7 @@ func (c *Client) TestRequestStringIpv6Nullable(ctx context.Context, request OptN func (c *Client) sendTestRequestStringIpv6Nullable(ctx context.Context, request OptNilIPv6) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_ipv6_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_ipv6_nullable"), } @@ -55788,7 +55789,7 @@ func (c *Client) sendTestRequestStringIpv6Nullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -55823,7 +55824,7 @@ func (c *Client) TestRequestStringIpv6NullableArray(ctx context.Context, request func (c *Client) sendTestRequestStringIpv6NullableArray(ctx context.Context, request []NilIPv6) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_ipv6_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_ipv6_nullable_array"), } @@ -55861,7 +55862,7 @@ func (c *Client) sendTestRequestStringIpv6NullableArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -55896,7 +55897,7 @@ func (c *Client) TestRequestStringIpv6NullableArrayArray(ctx context.Context, re func (c *Client) sendTestRequestStringIpv6NullableArrayArray(ctx context.Context, request [][]NilIPv6) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_ipv6_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_ipv6_nullable_array_array"), } // Validate request before sending. @@ -55957,7 +55958,7 @@ func (c *Client) sendTestRequestStringIpv6NullableArrayArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -55992,7 +55993,7 @@ func (c *Client) TestRequestStringNullable(ctx context.Context, request OptNilSt func (c *Client) sendTestRequestStringNullable(ctx context.Context, request OptNilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_nullable"), } @@ -56030,7 +56031,7 @@ func (c *Client) sendTestRequestStringNullable(ctx context.Context, request OptN uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -56065,7 +56066,7 @@ func (c *Client) TestRequestStringNullableArray(ctx context.Context, request []N func (c *Client) sendTestRequestStringNullableArray(ctx context.Context, request []NilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_nullable_array"), } @@ -56103,7 +56104,7 @@ func (c *Client) sendTestRequestStringNullableArray(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -56138,7 +56139,7 @@ func (c *Client) TestRequestStringNullableArrayArray(ctx context.Context, reques func (c *Client) sendTestRequestStringNullableArrayArray(ctx context.Context, request [][]NilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_nullable_array_array"), } // Validate request before sending. @@ -56199,7 +56200,7 @@ func (c *Client) sendTestRequestStringNullableArrayArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -56234,7 +56235,7 @@ func (c *Client) TestRequestStringPassword(ctx context.Context, request OptStrin func (c *Client) sendTestRequestStringPassword(ctx context.Context, request OptString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_password"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_password"), } @@ -56272,7 +56273,7 @@ func (c *Client) sendTestRequestStringPassword(ctx context.Context, request OptS uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -56307,7 +56308,7 @@ func (c *Client) TestRequestStringPasswordArray(ctx context.Context, request []s func (c *Client) sendTestRequestStringPasswordArray(ctx context.Context, request []string) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_password_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_password_array"), } @@ -56345,7 +56346,7 @@ func (c *Client) sendTestRequestStringPasswordArray(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -56380,7 +56381,7 @@ func (c *Client) TestRequestStringPasswordArrayArray(ctx context.Context, reques func (c *Client) sendTestRequestStringPasswordArrayArray(ctx context.Context, request [][]string) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_password_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_password_array_array"), } // Validate request before sending. @@ -56441,7 +56442,7 @@ func (c *Client) sendTestRequestStringPasswordArrayArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -56476,7 +56477,7 @@ func (c *Client) TestRequestStringPasswordNullable(ctx context.Context, request func (c *Client) sendTestRequestStringPasswordNullable(ctx context.Context, request OptNilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_password_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_password_nullable"), } @@ -56514,7 +56515,7 @@ func (c *Client) sendTestRequestStringPasswordNullable(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -56549,7 +56550,7 @@ func (c *Client) TestRequestStringPasswordNullableArray(ctx context.Context, req func (c *Client) sendTestRequestStringPasswordNullableArray(ctx context.Context, request []NilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_password_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_password_nullable_array"), } @@ -56587,7 +56588,7 @@ func (c *Client) sendTestRequestStringPasswordNullableArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -56622,7 +56623,7 @@ func (c *Client) TestRequestStringPasswordNullableArrayArray(ctx context.Context func (c *Client) sendTestRequestStringPasswordNullableArrayArray(ctx context.Context, request [][]NilString) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_password_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_password_nullable_array_array"), } // Validate request before sending. @@ -56683,7 +56684,7 @@ func (c *Client) sendTestRequestStringPasswordNullableArrayArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -56718,7 +56719,7 @@ func (c *Client) TestRequestStringTime(ctx context.Context, request OptTime) (*E func (c *Client) sendTestRequestStringTime(ctx context.Context, request OptTime) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_time"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_time"), } @@ -56756,7 +56757,7 @@ func (c *Client) sendTestRequestStringTime(ctx context.Context, request OptTime) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -56791,7 +56792,7 @@ func (c *Client) TestRequestStringTimeArray(ctx context.Context, request []time. func (c *Client) sendTestRequestStringTimeArray(ctx context.Context, request []time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_time_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_time_array"), } @@ -56829,7 +56830,7 @@ func (c *Client) sendTestRequestStringTimeArray(ctx context.Context, request []t uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -56864,7 +56865,7 @@ func (c *Client) TestRequestStringTimeArrayArray(ctx context.Context, request [] func (c *Client) sendTestRequestStringTimeArrayArray(ctx context.Context, request [][]time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_time_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_time_array_array"), } // Validate request before sending. @@ -56925,7 +56926,7 @@ func (c *Client) sendTestRequestStringTimeArrayArray(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -56960,7 +56961,7 @@ func (c *Client) TestRequestStringTimeNullable(ctx context.Context, request OptN func (c *Client) sendTestRequestStringTimeNullable(ctx context.Context, request OptNilTime) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_time_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_time_nullable"), } @@ -56998,7 +56999,7 @@ func (c *Client) sendTestRequestStringTimeNullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -57033,7 +57034,7 @@ func (c *Client) TestRequestStringTimeNullableArray(ctx context.Context, request func (c *Client) sendTestRequestStringTimeNullableArray(ctx context.Context, request []NilTime) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_time_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_time_nullable_array"), } @@ -57071,7 +57072,7 @@ func (c *Client) sendTestRequestStringTimeNullableArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -57106,7 +57107,7 @@ func (c *Client) TestRequestStringTimeNullableArrayArray(ctx context.Context, re func (c *Client) sendTestRequestStringTimeNullableArrayArray(ctx context.Context, request [][]NilTime) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_time_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_time_nullable_array_array"), } // Validate request before sending. @@ -57167,7 +57168,7 @@ func (c *Client) sendTestRequestStringTimeNullableArrayArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -57202,7 +57203,7 @@ func (c *Client) TestRequestStringURI(ctx context.Context, request OptURI) (*Err func (c *Client) sendTestRequestStringURI(ctx context.Context, request OptURI) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uri"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uri"), } @@ -57240,7 +57241,7 @@ func (c *Client) sendTestRequestStringURI(ctx context.Context, request OptURI) ( uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -57275,7 +57276,7 @@ func (c *Client) TestRequestStringURIArray(ctx context.Context, request []url.UR func (c *Client) sendTestRequestStringURIArray(ctx context.Context, request []url.URL) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uri_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uri_array"), } @@ -57313,7 +57314,7 @@ func (c *Client) sendTestRequestStringURIArray(ctx context.Context, request []ur uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -57348,7 +57349,7 @@ func (c *Client) TestRequestStringURIArrayArray(ctx context.Context, request [][ func (c *Client) sendTestRequestStringURIArrayArray(ctx context.Context, request [][]url.URL) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uri_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uri_array_array"), } // Validate request before sending. @@ -57409,7 +57410,7 @@ func (c *Client) sendTestRequestStringURIArrayArray(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -57444,7 +57445,7 @@ func (c *Client) TestRequestStringURINullable(ctx context.Context, request OptNi func (c *Client) sendTestRequestStringURINullable(ctx context.Context, request OptNilURI) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uri_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uri_nullable"), } @@ -57482,7 +57483,7 @@ func (c *Client) sendTestRequestStringURINullable(ctx context.Context, request O uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -57517,7 +57518,7 @@ func (c *Client) TestRequestStringURINullableArray(ctx context.Context, request func (c *Client) sendTestRequestStringURINullableArray(ctx context.Context, request []NilURI) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uri_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uri_nullable_array"), } @@ -57555,7 +57556,7 @@ func (c *Client) sendTestRequestStringURINullableArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -57590,7 +57591,7 @@ func (c *Client) TestRequestStringURINullableArrayArray(ctx context.Context, req func (c *Client) sendTestRequestStringURINullableArrayArray(ctx context.Context, request [][]NilURI) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uri_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uri_nullable_array_array"), } // Validate request before sending. @@ -57651,7 +57652,7 @@ func (c *Client) sendTestRequestStringURINullableArrayArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -57686,7 +57687,7 @@ func (c *Client) TestRequestStringUUID(ctx context.Context, request OptUUID) (*E func (c *Client) sendTestRequestStringUUID(ctx context.Context, request OptUUID) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uuid"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uuid"), } @@ -57724,7 +57725,7 @@ func (c *Client) sendTestRequestStringUUID(ctx context.Context, request OptUUID) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -57759,7 +57760,7 @@ func (c *Client) TestRequestStringUUIDArray(ctx context.Context, request []uuid. func (c *Client) sendTestRequestStringUUIDArray(ctx context.Context, request []uuid.UUID) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uuid_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uuid_array"), } @@ -57797,7 +57798,7 @@ func (c *Client) sendTestRequestStringUUIDArray(ctx context.Context, request []u uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -57832,7 +57833,7 @@ func (c *Client) TestRequestStringUUIDArrayArray(ctx context.Context, request [] func (c *Client) sendTestRequestStringUUIDArrayArray(ctx context.Context, request [][]uuid.UUID) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uuid_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uuid_array_array"), } // Validate request before sending. @@ -57893,7 +57894,7 @@ func (c *Client) sendTestRequestStringUUIDArrayArray(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -57928,7 +57929,7 @@ func (c *Client) TestRequestStringUUIDNullable(ctx context.Context, request OptN func (c *Client) sendTestRequestStringUUIDNullable(ctx context.Context, request OptNilUUID) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uuid_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uuid_nullable"), } @@ -57966,7 +57967,7 @@ func (c *Client) sendTestRequestStringUUIDNullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -58001,7 +58002,7 @@ func (c *Client) TestRequestStringUUIDNullableArray(ctx context.Context, request func (c *Client) sendTestRequestStringUUIDNullableArray(ctx context.Context, request []NilUUID) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uuid_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uuid_nullable_array"), } @@ -58039,7 +58040,7 @@ func (c *Client) sendTestRequestStringUUIDNullableArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -58074,7 +58075,7 @@ func (c *Client) TestRequestStringUUIDNullableArrayArray(ctx context.Context, re func (c *Client) sendTestRequestStringUUIDNullableArrayArray(ctx context.Context, request [][]NilUUID) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uuid_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uuid_nullable_array_array"), } // Validate request before sending. @@ -58135,7 +58136,7 @@ func (c *Client) sendTestRequestStringUUIDNullableArrayArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -58170,7 +58171,7 @@ func (c *Client) TestRequestStringUint(ctx context.Context, request OptUint) (*E func (c *Client) sendTestRequestStringUint(ctx context.Context, request OptUint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint"), } @@ -58208,7 +58209,7 @@ func (c *Client) sendTestRequestStringUint(ctx context.Context, request OptUint) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -58243,7 +58244,7 @@ func (c *Client) TestRequestStringUint16(ctx context.Context, request OptUint16) func (c *Client) sendTestRequestStringUint16(ctx context.Context, request OptUint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint16"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint16"), } @@ -58281,7 +58282,7 @@ func (c *Client) sendTestRequestStringUint16(ctx context.Context, request OptUin uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -58316,7 +58317,7 @@ func (c *Client) TestRequestStringUint16Array(ctx context.Context, request []uin func (c *Client) sendTestRequestStringUint16Array(ctx context.Context, request []uint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint16_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint16_array"), } @@ -58354,7 +58355,7 @@ func (c *Client) sendTestRequestStringUint16Array(ctx context.Context, request [ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -58389,7 +58390,7 @@ func (c *Client) TestRequestStringUint16ArrayArray(ctx context.Context, request func (c *Client) sendTestRequestStringUint16ArrayArray(ctx context.Context, request [][]uint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint16_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint16_array_array"), } // Validate request before sending. @@ -58450,7 +58451,7 @@ func (c *Client) sendTestRequestStringUint16ArrayArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -58485,7 +58486,7 @@ func (c *Client) TestRequestStringUint16Nullable(ctx context.Context, request Op func (c *Client) sendTestRequestStringUint16Nullable(ctx context.Context, request OptNilUint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint16_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint16_nullable"), } @@ -58523,7 +58524,7 @@ func (c *Client) sendTestRequestStringUint16Nullable(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -58558,7 +58559,7 @@ func (c *Client) TestRequestStringUint16NullableArray(ctx context.Context, reque func (c *Client) sendTestRequestStringUint16NullableArray(ctx context.Context, request []NilUint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint16_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint16_nullable_array"), } @@ -58596,7 +58597,7 @@ func (c *Client) sendTestRequestStringUint16NullableArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -58631,7 +58632,7 @@ func (c *Client) TestRequestStringUint16NullableArrayArray(ctx context.Context, func (c *Client) sendTestRequestStringUint16NullableArrayArray(ctx context.Context, request [][]NilUint16) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint16_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint16_nullable_array_array"), } // Validate request before sending. @@ -58692,7 +58693,7 @@ func (c *Client) sendTestRequestStringUint16NullableArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -58727,7 +58728,7 @@ func (c *Client) TestRequestStringUint32(ctx context.Context, request OptUint32) func (c *Client) sendTestRequestStringUint32(ctx context.Context, request OptUint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint32"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint32"), } @@ -58765,7 +58766,7 @@ func (c *Client) sendTestRequestStringUint32(ctx context.Context, request OptUin uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -58800,7 +58801,7 @@ func (c *Client) TestRequestStringUint32Array(ctx context.Context, request []uin func (c *Client) sendTestRequestStringUint32Array(ctx context.Context, request []uint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint32_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint32_array"), } @@ -58838,7 +58839,7 @@ func (c *Client) sendTestRequestStringUint32Array(ctx context.Context, request [ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -58873,7 +58874,7 @@ func (c *Client) TestRequestStringUint32ArrayArray(ctx context.Context, request func (c *Client) sendTestRequestStringUint32ArrayArray(ctx context.Context, request [][]uint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint32_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint32_array_array"), } // Validate request before sending. @@ -58934,7 +58935,7 @@ func (c *Client) sendTestRequestStringUint32ArrayArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -58969,7 +58970,7 @@ func (c *Client) TestRequestStringUint32Nullable(ctx context.Context, request Op func (c *Client) sendTestRequestStringUint32Nullable(ctx context.Context, request OptNilUint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint32_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint32_nullable"), } @@ -59007,7 +59008,7 @@ func (c *Client) sendTestRequestStringUint32Nullable(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -59042,7 +59043,7 @@ func (c *Client) TestRequestStringUint32NullableArray(ctx context.Context, reque func (c *Client) sendTestRequestStringUint32NullableArray(ctx context.Context, request []NilUint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint32_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint32_nullable_array"), } @@ -59080,7 +59081,7 @@ func (c *Client) sendTestRequestStringUint32NullableArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -59115,7 +59116,7 @@ func (c *Client) TestRequestStringUint32NullableArrayArray(ctx context.Context, func (c *Client) sendTestRequestStringUint32NullableArrayArray(ctx context.Context, request [][]NilUint32) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint32_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint32_nullable_array_array"), } // Validate request before sending. @@ -59176,7 +59177,7 @@ func (c *Client) sendTestRequestStringUint32NullableArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -59211,7 +59212,7 @@ func (c *Client) TestRequestStringUint64(ctx context.Context, request OptUint64) func (c *Client) sendTestRequestStringUint64(ctx context.Context, request OptUint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint64"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint64"), } @@ -59249,7 +59250,7 @@ func (c *Client) sendTestRequestStringUint64(ctx context.Context, request OptUin uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -59284,7 +59285,7 @@ func (c *Client) TestRequestStringUint64Array(ctx context.Context, request []uin func (c *Client) sendTestRequestStringUint64Array(ctx context.Context, request []uint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint64_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint64_array"), } @@ -59322,7 +59323,7 @@ func (c *Client) sendTestRequestStringUint64Array(ctx context.Context, request [ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -59357,7 +59358,7 @@ func (c *Client) TestRequestStringUint64ArrayArray(ctx context.Context, request func (c *Client) sendTestRequestStringUint64ArrayArray(ctx context.Context, request [][]uint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint64_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint64_array_array"), } // Validate request before sending. @@ -59418,7 +59419,7 @@ func (c *Client) sendTestRequestStringUint64ArrayArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -59453,7 +59454,7 @@ func (c *Client) TestRequestStringUint64Nullable(ctx context.Context, request Op func (c *Client) sendTestRequestStringUint64Nullable(ctx context.Context, request OptNilUint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint64_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint64_nullable"), } @@ -59491,7 +59492,7 @@ func (c *Client) sendTestRequestStringUint64Nullable(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -59526,7 +59527,7 @@ func (c *Client) TestRequestStringUint64NullableArray(ctx context.Context, reque func (c *Client) sendTestRequestStringUint64NullableArray(ctx context.Context, request []NilUint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint64_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint64_nullable_array"), } @@ -59564,7 +59565,7 @@ func (c *Client) sendTestRequestStringUint64NullableArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -59599,7 +59600,7 @@ func (c *Client) TestRequestStringUint64NullableArrayArray(ctx context.Context, func (c *Client) sendTestRequestStringUint64NullableArrayArray(ctx context.Context, request [][]NilUint64) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint64_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint64_nullable_array_array"), } // Validate request before sending. @@ -59660,7 +59661,7 @@ func (c *Client) sendTestRequestStringUint64NullableArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -59695,7 +59696,7 @@ func (c *Client) TestRequestStringUint8(ctx context.Context, request OptUint8) ( func (c *Client) sendTestRequestStringUint8(ctx context.Context, request OptUint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint8"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint8"), } @@ -59733,7 +59734,7 @@ func (c *Client) sendTestRequestStringUint8(ctx context.Context, request OptUint uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -59768,7 +59769,7 @@ func (c *Client) TestRequestStringUint8Array(ctx context.Context, request []uint func (c *Client) sendTestRequestStringUint8Array(ctx context.Context, request []uint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint8_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint8_array"), } @@ -59806,7 +59807,7 @@ func (c *Client) sendTestRequestStringUint8Array(ctx context.Context, request [] uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -59841,7 +59842,7 @@ func (c *Client) TestRequestStringUint8ArrayArray(ctx context.Context, request [ func (c *Client) sendTestRequestStringUint8ArrayArray(ctx context.Context, request [][]uint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint8_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint8_array_array"), } // Validate request before sending. @@ -59902,7 +59903,7 @@ func (c *Client) sendTestRequestStringUint8ArrayArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -59937,7 +59938,7 @@ func (c *Client) TestRequestStringUint8Nullable(ctx context.Context, request Opt func (c *Client) sendTestRequestStringUint8Nullable(ctx context.Context, request OptNilUint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint8_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint8_nullable"), } @@ -59975,7 +59976,7 @@ func (c *Client) sendTestRequestStringUint8Nullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -60010,7 +60011,7 @@ func (c *Client) TestRequestStringUint8NullableArray(ctx context.Context, reques func (c *Client) sendTestRequestStringUint8NullableArray(ctx context.Context, request []NilUint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint8_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint8_nullable_array"), } @@ -60048,7 +60049,7 @@ func (c *Client) sendTestRequestStringUint8NullableArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -60083,7 +60084,7 @@ func (c *Client) TestRequestStringUint8NullableArrayArray(ctx context.Context, r func (c *Client) sendTestRequestStringUint8NullableArrayArray(ctx context.Context, request [][]NilUint8) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint8_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint8_nullable_array_array"), } // Validate request before sending. @@ -60144,7 +60145,7 @@ func (c *Client) sendTestRequestStringUint8NullableArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -60179,7 +60180,7 @@ func (c *Client) TestRequestStringUintArray(ctx context.Context, request []uint) func (c *Client) sendTestRequestStringUintArray(ctx context.Context, request []uint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint_array"), } @@ -60217,7 +60218,7 @@ func (c *Client) sendTestRequestStringUintArray(ctx context.Context, request []u uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -60252,7 +60253,7 @@ func (c *Client) TestRequestStringUintArrayArray(ctx context.Context, request [] func (c *Client) sendTestRequestStringUintArrayArray(ctx context.Context, request [][]uint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint_array_array"), } // Validate request before sending. @@ -60313,7 +60314,7 @@ func (c *Client) sendTestRequestStringUintArrayArray(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -60348,7 +60349,7 @@ func (c *Client) TestRequestStringUintNullable(ctx context.Context, request OptN func (c *Client) sendTestRequestStringUintNullable(ctx context.Context, request OptNilUint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint_nullable"), } @@ -60386,7 +60387,7 @@ func (c *Client) sendTestRequestStringUintNullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -60421,7 +60422,7 @@ func (c *Client) TestRequestStringUintNullableArray(ctx context.Context, request func (c *Client) sendTestRequestStringUintNullableArray(ctx context.Context, request []NilUint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint_nullable_array"), } @@ -60459,7 +60460,7 @@ func (c *Client) sendTestRequestStringUintNullableArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -60494,7 +60495,7 @@ func (c *Client) TestRequestStringUintNullableArrayArray(ctx context.Context, re func (c *Client) sendTestRequestStringUintNullableArrayArray(ctx context.Context, request [][]NilUint) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_uint_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_uint_nullable_array_array"), } // Validate request before sending. @@ -60555,7 +60556,7 @@ func (c *Client) sendTestRequestStringUintNullableArrayArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -60590,7 +60591,7 @@ func (c *Client) TestRequestStringUnix(ctx context.Context, request OptStringUni func (c *Client) sendTestRequestStringUnix(ctx context.Context, request OptStringUnixSeconds) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix"), } @@ -60628,7 +60629,7 @@ func (c *Client) sendTestRequestStringUnix(ctx context.Context, request OptStrin uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -60663,7 +60664,7 @@ func (c *Client) TestRequestStringUnixArray(ctx context.Context, request []time. func (c *Client) sendTestRequestStringUnixArray(ctx context.Context, request []time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix_array"), } @@ -60701,7 +60702,7 @@ func (c *Client) sendTestRequestStringUnixArray(ctx context.Context, request []t uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -60736,7 +60737,7 @@ func (c *Client) TestRequestStringUnixArrayArray(ctx context.Context, request [] func (c *Client) sendTestRequestStringUnixArrayArray(ctx context.Context, request [][]time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix_array_array"), } // Validate request before sending. @@ -60797,7 +60798,7 @@ func (c *Client) sendTestRequestStringUnixArrayArray(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -60832,7 +60833,7 @@ func (c *Client) TestRequestStringUnixMicro(ctx context.Context, request OptStri func (c *Client) sendTestRequestStringUnixMicro(ctx context.Context, request OptStringUnixMicro) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix-micro"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix-micro"), } @@ -60870,7 +60871,7 @@ func (c *Client) sendTestRequestStringUnixMicro(ctx context.Context, request Opt uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -60905,7 +60906,7 @@ func (c *Client) TestRequestStringUnixMicroArray(ctx context.Context, request [] func (c *Client) sendTestRequestStringUnixMicroArray(ctx context.Context, request []time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix-micro_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix-micro_array"), } @@ -60943,7 +60944,7 @@ func (c *Client) sendTestRequestStringUnixMicroArray(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -60978,7 +60979,7 @@ func (c *Client) TestRequestStringUnixMicroArrayArray(ctx context.Context, reque func (c *Client) sendTestRequestStringUnixMicroArrayArray(ctx context.Context, request [][]time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix-micro_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix-micro_array_array"), } // Validate request before sending. @@ -61039,7 +61040,7 @@ func (c *Client) sendTestRequestStringUnixMicroArrayArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -61074,7 +61075,7 @@ func (c *Client) TestRequestStringUnixMicroNullable(ctx context.Context, request func (c *Client) sendTestRequestStringUnixMicroNullable(ctx context.Context, request OptNilStringUnixMicro) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix-micro_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix-micro_nullable"), } @@ -61112,7 +61113,7 @@ func (c *Client) sendTestRequestStringUnixMicroNullable(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -61147,7 +61148,7 @@ func (c *Client) TestRequestStringUnixMicroNullableArray(ctx context.Context, re func (c *Client) sendTestRequestStringUnixMicroNullableArray(ctx context.Context, request []NilStringUnixMicro) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix-micro_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix-micro_nullable_array"), } @@ -61185,7 +61186,7 @@ func (c *Client) sendTestRequestStringUnixMicroNullableArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -61220,7 +61221,7 @@ func (c *Client) TestRequestStringUnixMicroNullableArrayArray(ctx context.Contex func (c *Client) sendTestRequestStringUnixMicroNullableArrayArray(ctx context.Context, request [][]NilStringUnixMicro) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix-micro_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix-micro_nullable_array_array"), } // Validate request before sending. @@ -61281,7 +61282,7 @@ func (c *Client) sendTestRequestStringUnixMicroNullableArrayArray(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -61316,7 +61317,7 @@ func (c *Client) TestRequestStringUnixMilli(ctx context.Context, request OptStri func (c *Client) sendTestRequestStringUnixMilli(ctx context.Context, request OptStringUnixMilli) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix-milli"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix-milli"), } @@ -61354,7 +61355,7 @@ func (c *Client) sendTestRequestStringUnixMilli(ctx context.Context, request Opt uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -61389,7 +61390,7 @@ func (c *Client) TestRequestStringUnixMilliArray(ctx context.Context, request [] func (c *Client) sendTestRequestStringUnixMilliArray(ctx context.Context, request []time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix-milli_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix-milli_array"), } @@ -61427,7 +61428,7 @@ func (c *Client) sendTestRequestStringUnixMilliArray(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -61462,7 +61463,7 @@ func (c *Client) TestRequestStringUnixMilliArrayArray(ctx context.Context, reque func (c *Client) sendTestRequestStringUnixMilliArrayArray(ctx context.Context, request [][]time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix-milli_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix-milli_array_array"), } // Validate request before sending. @@ -61523,7 +61524,7 @@ func (c *Client) sendTestRequestStringUnixMilliArrayArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -61558,7 +61559,7 @@ func (c *Client) TestRequestStringUnixMilliNullable(ctx context.Context, request func (c *Client) sendTestRequestStringUnixMilliNullable(ctx context.Context, request OptNilStringUnixMilli) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix-milli_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix-milli_nullable"), } @@ -61596,7 +61597,7 @@ func (c *Client) sendTestRequestStringUnixMilliNullable(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -61631,7 +61632,7 @@ func (c *Client) TestRequestStringUnixMilliNullableArray(ctx context.Context, re func (c *Client) sendTestRequestStringUnixMilliNullableArray(ctx context.Context, request []NilStringUnixMilli) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix-milli_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix-milli_nullable_array"), } @@ -61669,7 +61670,7 @@ func (c *Client) sendTestRequestStringUnixMilliNullableArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -61704,7 +61705,7 @@ func (c *Client) TestRequestStringUnixMilliNullableArrayArray(ctx context.Contex func (c *Client) sendTestRequestStringUnixMilliNullableArrayArray(ctx context.Context, request [][]NilStringUnixMilli) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix-milli_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix-milli_nullable_array_array"), } // Validate request before sending. @@ -61765,7 +61766,7 @@ func (c *Client) sendTestRequestStringUnixMilliNullableArrayArray(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -61800,7 +61801,7 @@ func (c *Client) TestRequestStringUnixNano(ctx context.Context, request OptStrin func (c *Client) sendTestRequestStringUnixNano(ctx context.Context, request OptStringUnixNano) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix-nano"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix-nano"), } @@ -61838,7 +61839,7 @@ func (c *Client) sendTestRequestStringUnixNano(ctx context.Context, request OptS uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -61873,7 +61874,7 @@ func (c *Client) TestRequestStringUnixNanoArray(ctx context.Context, request []t func (c *Client) sendTestRequestStringUnixNanoArray(ctx context.Context, request []time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix-nano_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix-nano_array"), } @@ -61911,7 +61912,7 @@ func (c *Client) sendTestRequestStringUnixNanoArray(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -61946,7 +61947,7 @@ func (c *Client) TestRequestStringUnixNanoArrayArray(ctx context.Context, reques func (c *Client) sendTestRequestStringUnixNanoArrayArray(ctx context.Context, request [][]time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix-nano_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix-nano_array_array"), } // Validate request before sending. @@ -62007,7 +62008,7 @@ func (c *Client) sendTestRequestStringUnixNanoArrayArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -62042,7 +62043,7 @@ func (c *Client) TestRequestStringUnixNanoNullable(ctx context.Context, request func (c *Client) sendTestRequestStringUnixNanoNullable(ctx context.Context, request OptNilStringUnixNano) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix-nano_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix-nano_nullable"), } @@ -62080,7 +62081,7 @@ func (c *Client) sendTestRequestStringUnixNanoNullable(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -62115,7 +62116,7 @@ func (c *Client) TestRequestStringUnixNanoNullableArray(ctx context.Context, req func (c *Client) sendTestRequestStringUnixNanoNullableArray(ctx context.Context, request []NilStringUnixNano) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix-nano_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix-nano_nullable_array"), } @@ -62153,7 +62154,7 @@ func (c *Client) sendTestRequestStringUnixNanoNullableArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -62188,7 +62189,7 @@ func (c *Client) TestRequestStringUnixNanoNullableArrayArray(ctx context.Context func (c *Client) sendTestRequestStringUnixNanoNullableArrayArray(ctx context.Context, request [][]NilStringUnixNano) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix-nano_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix-nano_nullable_array_array"), } // Validate request before sending. @@ -62249,7 +62250,7 @@ func (c *Client) sendTestRequestStringUnixNanoNullableArrayArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -62284,7 +62285,7 @@ func (c *Client) TestRequestStringUnixNullable(ctx context.Context, request OptN func (c *Client) sendTestRequestStringUnixNullable(ctx context.Context, request OptNilStringUnixSeconds) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix_nullable"), } @@ -62322,7 +62323,7 @@ func (c *Client) sendTestRequestStringUnixNullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -62357,7 +62358,7 @@ func (c *Client) TestRequestStringUnixNullableArray(ctx context.Context, request func (c *Client) sendTestRequestStringUnixNullableArray(ctx context.Context, request []NilStringUnixSeconds) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix_nullable_array"), } @@ -62395,7 +62396,7 @@ func (c *Client) sendTestRequestStringUnixNullableArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -62430,7 +62431,7 @@ func (c *Client) TestRequestStringUnixNullableArrayArray(ctx context.Context, re func (c *Client) sendTestRequestStringUnixNullableArrayArray(ctx context.Context, request [][]NilStringUnixSeconds) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix_nullable_array_array"), } // Validate request before sending. @@ -62491,7 +62492,7 @@ func (c *Client) sendTestRequestStringUnixNullableArrayArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -62526,7 +62527,7 @@ func (c *Client) TestRequestStringUnixSeconds(ctx context.Context, request OptSt func (c *Client) sendTestRequestStringUnixSeconds(ctx context.Context, request OptStringUnixSeconds) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix-seconds"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix-seconds"), } @@ -62564,7 +62565,7 @@ func (c *Client) sendTestRequestStringUnixSeconds(ctx context.Context, request O uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -62599,7 +62600,7 @@ func (c *Client) TestRequestStringUnixSecondsArray(ctx context.Context, request func (c *Client) sendTestRequestStringUnixSecondsArray(ctx context.Context, request []time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix-seconds_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix-seconds_array"), } @@ -62637,7 +62638,7 @@ func (c *Client) sendTestRequestStringUnixSecondsArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -62672,7 +62673,7 @@ func (c *Client) TestRequestStringUnixSecondsArrayArray(ctx context.Context, req func (c *Client) sendTestRequestStringUnixSecondsArrayArray(ctx context.Context, request [][]time.Time) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix-seconds_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix-seconds_array_array"), } // Validate request before sending. @@ -62733,7 +62734,7 @@ func (c *Client) sendTestRequestStringUnixSecondsArrayArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -62768,7 +62769,7 @@ func (c *Client) TestRequestStringUnixSecondsNullable(ctx context.Context, reque func (c *Client) sendTestRequestStringUnixSecondsNullable(ctx context.Context, request OptNilStringUnixSeconds) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix-seconds_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix-seconds_nullable"), } @@ -62806,7 +62807,7 @@ func (c *Client) sendTestRequestStringUnixSecondsNullable(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -62841,7 +62842,7 @@ func (c *Client) TestRequestStringUnixSecondsNullableArray(ctx context.Context, func (c *Client) sendTestRequestStringUnixSecondsNullableArray(ctx context.Context, request []NilStringUnixSeconds) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix-seconds_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix-seconds_nullable_array"), } @@ -62879,7 +62880,7 @@ func (c *Client) sendTestRequestStringUnixSecondsNullableArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -62914,7 +62915,7 @@ func (c *Client) TestRequestStringUnixSecondsNullableArrayArray(ctx context.Cont func (c *Client) sendTestRequestStringUnixSecondsNullableArrayArray(ctx context.Context, request [][]NilStringUnixSeconds) (res *Error, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_request_string_unix-seconds_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_request_string_unix-seconds_nullable_array_array"), } // Validate request before sending. @@ -62975,7 +62976,7 @@ func (c *Client) sendTestRequestStringUnixSecondsNullableArrayArray(ctx context. uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -63010,7 +63011,7 @@ func (c *Client) TestResponseAny(ctx context.Context, request string) (jx.Raw, e func (c *Client) sendTestResponseAny(ctx context.Context, request string) (res jx.Raw, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_Any"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_Any"), } @@ -63048,7 +63049,7 @@ func (c *Client) sendTestResponseAny(ctx context.Context, request string) (res j uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -63083,7 +63084,7 @@ func (c *Client) TestResponseBoolean(ctx context.Context, request string) (bool, func (c *Client) sendTestResponseBoolean(ctx context.Context, request string) (res bool, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_boolean"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_boolean"), } @@ -63121,7 +63122,7 @@ func (c *Client) sendTestResponseBoolean(ctx context.Context, request string) (r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -63156,7 +63157,7 @@ func (c *Client) TestResponseBooleanArray(ctx context.Context, request string) ( func (c *Client) sendTestResponseBooleanArray(ctx context.Context, request string) (res []bool, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_boolean_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_boolean_array"), } @@ -63194,7 +63195,7 @@ func (c *Client) sendTestResponseBooleanArray(ctx context.Context, request strin uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -63229,7 +63230,7 @@ func (c *Client) TestResponseBooleanArrayArray(ctx context.Context, request stri func (c *Client) sendTestResponseBooleanArrayArray(ctx context.Context, request string) (res [][]bool, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_boolean_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_boolean_array_array"), } @@ -63267,7 +63268,7 @@ func (c *Client) sendTestResponseBooleanArrayArray(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -63302,7 +63303,7 @@ func (c *Client) TestResponseBooleanNullable(ctx context.Context, request string func (c *Client) sendTestResponseBooleanNullable(ctx context.Context, request string) (res NilBool, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_boolean_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_boolean_nullable"), } @@ -63340,7 +63341,7 @@ func (c *Client) sendTestResponseBooleanNullable(ctx context.Context, request st uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -63375,7 +63376,7 @@ func (c *Client) TestResponseBooleanNullableArray(ctx context.Context, request s func (c *Client) sendTestResponseBooleanNullableArray(ctx context.Context, request string) (res []NilBool, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_boolean_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_boolean_nullable_array"), } @@ -63413,7 +63414,7 @@ func (c *Client) sendTestResponseBooleanNullableArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -63448,7 +63449,7 @@ func (c *Client) TestResponseBooleanNullableArrayArray(ctx context.Context, requ func (c *Client) sendTestResponseBooleanNullableArrayArray(ctx context.Context, request string) (res [][]NilBool, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_boolean_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_boolean_nullable_array_array"), } @@ -63486,7 +63487,7 @@ func (c *Client) sendTestResponseBooleanNullableArrayArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -63521,7 +63522,7 @@ func (c *Client) TestResponseEmptyStruct(ctx context.Context, request string) er func (c *Client) sendTestResponseEmptyStruct(ctx context.Context, request string) (res *TestResponseEmptyStructOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_EmptyStruct"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_EmptyStruct"), } @@ -63559,7 +63560,7 @@ func (c *Client) sendTestResponseEmptyStruct(ctx context.Context, request string uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -63594,7 +63595,7 @@ func (c *Client) TestResponseFormatTest(ctx context.Context, request string) (*T func (c *Client) sendTestResponseFormatTest(ctx context.Context, request string) (res *TestResponseFormatTestOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_FormatTest"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_FormatTest"), } @@ -63632,7 +63633,7 @@ func (c *Client) sendTestResponseFormatTest(ctx context.Context, request string) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -63667,7 +63668,7 @@ func (c *Client) TestResponseInteger(ctx context.Context, request string) (int, func (c *Client) sendTestResponseInteger(ctx context.Context, request string) (res int, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer"), } @@ -63705,7 +63706,7 @@ func (c *Client) sendTestResponseInteger(ctx context.Context, request string) (r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -63740,7 +63741,7 @@ func (c *Client) TestResponseIntegerArray(ctx context.Context, request string) ( func (c *Client) sendTestResponseIntegerArray(ctx context.Context, request string) (res []int, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_array"), } @@ -63778,7 +63779,7 @@ func (c *Client) sendTestResponseIntegerArray(ctx context.Context, request strin uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -63813,7 +63814,7 @@ func (c *Client) TestResponseIntegerArrayArray(ctx context.Context, request stri func (c *Client) sendTestResponseIntegerArrayArray(ctx context.Context, request string) (res [][]int, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_array_array"), } @@ -63851,7 +63852,7 @@ func (c *Client) sendTestResponseIntegerArrayArray(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -63886,7 +63887,7 @@ func (c *Client) TestResponseIntegerInt16(ctx context.Context, request string) ( func (c *Client) sendTestResponseIntegerInt16(ctx context.Context, request string) (res int16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_int16"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_int16"), } @@ -63924,7 +63925,7 @@ func (c *Client) sendTestResponseIntegerInt16(ctx context.Context, request strin uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -63959,7 +63960,7 @@ func (c *Client) TestResponseIntegerInt16Array(ctx context.Context, request stri func (c *Client) sendTestResponseIntegerInt16Array(ctx context.Context, request string) (res []int16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_int16_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_int16_array"), } @@ -63997,7 +63998,7 @@ func (c *Client) sendTestResponseIntegerInt16Array(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -64032,7 +64033,7 @@ func (c *Client) TestResponseIntegerInt16ArrayArray(ctx context.Context, request func (c *Client) sendTestResponseIntegerInt16ArrayArray(ctx context.Context, request string) (res [][]int16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_int16_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_int16_array_array"), } @@ -64070,7 +64071,7 @@ func (c *Client) sendTestResponseIntegerInt16ArrayArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -64105,7 +64106,7 @@ func (c *Client) TestResponseIntegerInt16Nullable(ctx context.Context, request s func (c *Client) sendTestResponseIntegerInt16Nullable(ctx context.Context, request string) (res NilInt16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_int16_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_int16_nullable"), } @@ -64143,7 +64144,7 @@ func (c *Client) sendTestResponseIntegerInt16Nullable(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -64178,7 +64179,7 @@ func (c *Client) TestResponseIntegerInt16NullableArray(ctx context.Context, requ func (c *Client) sendTestResponseIntegerInt16NullableArray(ctx context.Context, request string) (res []NilInt16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_int16_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_int16_nullable_array"), } @@ -64216,7 +64217,7 @@ func (c *Client) sendTestResponseIntegerInt16NullableArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -64251,7 +64252,7 @@ func (c *Client) TestResponseIntegerInt16NullableArrayArray(ctx context.Context, func (c *Client) sendTestResponseIntegerInt16NullableArrayArray(ctx context.Context, request string) (res [][]NilInt16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_int16_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_int16_nullable_array_array"), } @@ -64289,7 +64290,7 @@ func (c *Client) sendTestResponseIntegerInt16NullableArrayArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -64324,7 +64325,7 @@ func (c *Client) TestResponseIntegerInt32(ctx context.Context, request string) ( func (c *Client) sendTestResponseIntegerInt32(ctx context.Context, request string) (res int32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_int32"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_int32"), } @@ -64362,7 +64363,7 @@ func (c *Client) sendTestResponseIntegerInt32(ctx context.Context, request strin uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -64397,7 +64398,7 @@ func (c *Client) TestResponseIntegerInt32Array(ctx context.Context, request stri func (c *Client) sendTestResponseIntegerInt32Array(ctx context.Context, request string) (res []int32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_int32_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_int32_array"), } @@ -64435,7 +64436,7 @@ func (c *Client) sendTestResponseIntegerInt32Array(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -64470,7 +64471,7 @@ func (c *Client) TestResponseIntegerInt32ArrayArray(ctx context.Context, request func (c *Client) sendTestResponseIntegerInt32ArrayArray(ctx context.Context, request string) (res [][]int32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_int32_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_int32_array_array"), } @@ -64508,7 +64509,7 @@ func (c *Client) sendTestResponseIntegerInt32ArrayArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -64543,7 +64544,7 @@ func (c *Client) TestResponseIntegerInt32Nullable(ctx context.Context, request s func (c *Client) sendTestResponseIntegerInt32Nullable(ctx context.Context, request string) (res NilInt32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_int32_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_int32_nullable"), } @@ -64581,7 +64582,7 @@ func (c *Client) sendTestResponseIntegerInt32Nullable(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -64616,7 +64617,7 @@ func (c *Client) TestResponseIntegerInt32NullableArray(ctx context.Context, requ func (c *Client) sendTestResponseIntegerInt32NullableArray(ctx context.Context, request string) (res []NilInt32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_int32_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_int32_nullable_array"), } @@ -64654,7 +64655,7 @@ func (c *Client) sendTestResponseIntegerInt32NullableArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -64689,7 +64690,7 @@ func (c *Client) TestResponseIntegerInt32NullableArrayArray(ctx context.Context, func (c *Client) sendTestResponseIntegerInt32NullableArrayArray(ctx context.Context, request string) (res [][]NilInt32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_int32_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_int32_nullable_array_array"), } @@ -64727,7 +64728,7 @@ func (c *Client) sendTestResponseIntegerInt32NullableArrayArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -64762,7 +64763,7 @@ func (c *Client) TestResponseIntegerInt64(ctx context.Context, request string) ( func (c *Client) sendTestResponseIntegerInt64(ctx context.Context, request string) (res int64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_int64"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_int64"), } @@ -64800,7 +64801,7 @@ func (c *Client) sendTestResponseIntegerInt64(ctx context.Context, request strin uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -64835,7 +64836,7 @@ func (c *Client) TestResponseIntegerInt64Array(ctx context.Context, request stri func (c *Client) sendTestResponseIntegerInt64Array(ctx context.Context, request string) (res []int64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_int64_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_int64_array"), } @@ -64873,7 +64874,7 @@ func (c *Client) sendTestResponseIntegerInt64Array(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -64908,7 +64909,7 @@ func (c *Client) TestResponseIntegerInt64ArrayArray(ctx context.Context, request func (c *Client) sendTestResponseIntegerInt64ArrayArray(ctx context.Context, request string) (res [][]int64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_int64_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_int64_array_array"), } @@ -64946,7 +64947,7 @@ func (c *Client) sendTestResponseIntegerInt64ArrayArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -64981,7 +64982,7 @@ func (c *Client) TestResponseIntegerInt64Nullable(ctx context.Context, request s func (c *Client) sendTestResponseIntegerInt64Nullable(ctx context.Context, request string) (res NilInt64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_int64_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_int64_nullable"), } @@ -65019,7 +65020,7 @@ func (c *Client) sendTestResponseIntegerInt64Nullable(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -65054,7 +65055,7 @@ func (c *Client) TestResponseIntegerInt64NullableArray(ctx context.Context, requ func (c *Client) sendTestResponseIntegerInt64NullableArray(ctx context.Context, request string) (res []NilInt64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_int64_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_int64_nullable_array"), } @@ -65092,7 +65093,7 @@ func (c *Client) sendTestResponseIntegerInt64NullableArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -65127,7 +65128,7 @@ func (c *Client) TestResponseIntegerInt64NullableArrayArray(ctx context.Context, func (c *Client) sendTestResponseIntegerInt64NullableArrayArray(ctx context.Context, request string) (res [][]NilInt64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_int64_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_int64_nullable_array_array"), } @@ -65165,7 +65166,7 @@ func (c *Client) sendTestResponseIntegerInt64NullableArrayArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -65200,7 +65201,7 @@ func (c *Client) TestResponseIntegerInt8(ctx context.Context, request string) (i func (c *Client) sendTestResponseIntegerInt8(ctx context.Context, request string) (res int8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_int8"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_int8"), } @@ -65238,7 +65239,7 @@ func (c *Client) sendTestResponseIntegerInt8(ctx context.Context, request string uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -65273,7 +65274,7 @@ func (c *Client) TestResponseIntegerInt8Array(ctx context.Context, request strin func (c *Client) sendTestResponseIntegerInt8Array(ctx context.Context, request string) (res []int8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_int8_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_int8_array"), } @@ -65311,7 +65312,7 @@ func (c *Client) sendTestResponseIntegerInt8Array(ctx context.Context, request s uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -65346,7 +65347,7 @@ func (c *Client) TestResponseIntegerInt8ArrayArray(ctx context.Context, request func (c *Client) sendTestResponseIntegerInt8ArrayArray(ctx context.Context, request string) (res [][]int8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_int8_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_int8_array_array"), } @@ -65384,7 +65385,7 @@ func (c *Client) sendTestResponseIntegerInt8ArrayArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -65419,7 +65420,7 @@ func (c *Client) TestResponseIntegerInt8Nullable(ctx context.Context, request st func (c *Client) sendTestResponseIntegerInt8Nullable(ctx context.Context, request string) (res NilInt8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_int8_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_int8_nullable"), } @@ -65457,7 +65458,7 @@ func (c *Client) sendTestResponseIntegerInt8Nullable(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -65492,7 +65493,7 @@ func (c *Client) TestResponseIntegerInt8NullableArray(ctx context.Context, reque func (c *Client) sendTestResponseIntegerInt8NullableArray(ctx context.Context, request string) (res []NilInt8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_int8_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_int8_nullable_array"), } @@ -65530,7 +65531,7 @@ func (c *Client) sendTestResponseIntegerInt8NullableArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -65565,7 +65566,7 @@ func (c *Client) TestResponseIntegerInt8NullableArrayArray(ctx context.Context, func (c *Client) sendTestResponseIntegerInt8NullableArrayArray(ctx context.Context, request string) (res [][]NilInt8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_int8_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_int8_nullable_array_array"), } @@ -65603,7 +65604,7 @@ func (c *Client) sendTestResponseIntegerInt8NullableArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -65638,7 +65639,7 @@ func (c *Client) TestResponseIntegerNullable(ctx context.Context, request string func (c *Client) sendTestResponseIntegerNullable(ctx context.Context, request string) (res NilInt, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_nullable"), } @@ -65676,7 +65677,7 @@ func (c *Client) sendTestResponseIntegerNullable(ctx context.Context, request st uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -65711,7 +65712,7 @@ func (c *Client) TestResponseIntegerNullableArray(ctx context.Context, request s func (c *Client) sendTestResponseIntegerNullableArray(ctx context.Context, request string) (res []NilInt, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_nullable_array"), } @@ -65749,7 +65750,7 @@ func (c *Client) sendTestResponseIntegerNullableArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -65784,7 +65785,7 @@ func (c *Client) TestResponseIntegerNullableArrayArray(ctx context.Context, requ func (c *Client) sendTestResponseIntegerNullableArrayArray(ctx context.Context, request string) (res [][]NilInt, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_nullable_array_array"), } @@ -65822,7 +65823,7 @@ func (c *Client) sendTestResponseIntegerNullableArrayArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -65857,7 +65858,7 @@ func (c *Client) TestResponseIntegerUint(ctx context.Context, request string) (u func (c *Client) sendTestResponseIntegerUint(ctx context.Context, request string) (res uint, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint"), } @@ -65895,7 +65896,7 @@ func (c *Client) sendTestResponseIntegerUint(ctx context.Context, request string uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -65930,7 +65931,7 @@ func (c *Client) TestResponseIntegerUint16(ctx context.Context, request string) func (c *Client) sendTestResponseIntegerUint16(ctx context.Context, request string) (res uint16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint16"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint16"), } @@ -65968,7 +65969,7 @@ func (c *Client) sendTestResponseIntegerUint16(ctx context.Context, request stri uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -66003,7 +66004,7 @@ func (c *Client) TestResponseIntegerUint16Array(ctx context.Context, request str func (c *Client) sendTestResponseIntegerUint16Array(ctx context.Context, request string) (res []uint16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint16_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint16_array"), } @@ -66041,7 +66042,7 @@ func (c *Client) sendTestResponseIntegerUint16Array(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -66076,7 +66077,7 @@ func (c *Client) TestResponseIntegerUint16ArrayArray(ctx context.Context, reques func (c *Client) sendTestResponseIntegerUint16ArrayArray(ctx context.Context, request string) (res [][]uint16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint16_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint16_array_array"), } @@ -66114,7 +66115,7 @@ func (c *Client) sendTestResponseIntegerUint16ArrayArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -66149,7 +66150,7 @@ func (c *Client) TestResponseIntegerUint16Nullable(ctx context.Context, request func (c *Client) sendTestResponseIntegerUint16Nullable(ctx context.Context, request string) (res NilUint16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint16_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint16_nullable"), } @@ -66187,7 +66188,7 @@ func (c *Client) sendTestResponseIntegerUint16Nullable(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -66222,7 +66223,7 @@ func (c *Client) TestResponseIntegerUint16NullableArray(ctx context.Context, req func (c *Client) sendTestResponseIntegerUint16NullableArray(ctx context.Context, request string) (res []NilUint16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint16_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint16_nullable_array"), } @@ -66260,7 +66261,7 @@ func (c *Client) sendTestResponseIntegerUint16NullableArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -66295,7 +66296,7 @@ func (c *Client) TestResponseIntegerUint16NullableArrayArray(ctx context.Context func (c *Client) sendTestResponseIntegerUint16NullableArrayArray(ctx context.Context, request string) (res [][]NilUint16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint16_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint16_nullable_array_array"), } @@ -66333,7 +66334,7 @@ func (c *Client) sendTestResponseIntegerUint16NullableArrayArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -66368,7 +66369,7 @@ func (c *Client) TestResponseIntegerUint32(ctx context.Context, request string) func (c *Client) sendTestResponseIntegerUint32(ctx context.Context, request string) (res uint32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint32"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint32"), } @@ -66406,7 +66407,7 @@ func (c *Client) sendTestResponseIntegerUint32(ctx context.Context, request stri uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -66441,7 +66442,7 @@ func (c *Client) TestResponseIntegerUint32Array(ctx context.Context, request str func (c *Client) sendTestResponseIntegerUint32Array(ctx context.Context, request string) (res []uint32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint32_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint32_array"), } @@ -66479,7 +66480,7 @@ func (c *Client) sendTestResponseIntegerUint32Array(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -66514,7 +66515,7 @@ func (c *Client) TestResponseIntegerUint32ArrayArray(ctx context.Context, reques func (c *Client) sendTestResponseIntegerUint32ArrayArray(ctx context.Context, request string) (res [][]uint32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint32_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint32_array_array"), } @@ -66552,7 +66553,7 @@ func (c *Client) sendTestResponseIntegerUint32ArrayArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -66587,7 +66588,7 @@ func (c *Client) TestResponseIntegerUint32Nullable(ctx context.Context, request func (c *Client) sendTestResponseIntegerUint32Nullable(ctx context.Context, request string) (res NilUint32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint32_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint32_nullable"), } @@ -66625,7 +66626,7 @@ func (c *Client) sendTestResponseIntegerUint32Nullable(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -66660,7 +66661,7 @@ func (c *Client) TestResponseIntegerUint32NullableArray(ctx context.Context, req func (c *Client) sendTestResponseIntegerUint32NullableArray(ctx context.Context, request string) (res []NilUint32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint32_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint32_nullable_array"), } @@ -66698,7 +66699,7 @@ func (c *Client) sendTestResponseIntegerUint32NullableArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -66733,7 +66734,7 @@ func (c *Client) TestResponseIntegerUint32NullableArrayArray(ctx context.Context func (c *Client) sendTestResponseIntegerUint32NullableArrayArray(ctx context.Context, request string) (res [][]NilUint32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint32_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint32_nullable_array_array"), } @@ -66771,7 +66772,7 @@ func (c *Client) sendTestResponseIntegerUint32NullableArrayArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -66806,7 +66807,7 @@ func (c *Client) TestResponseIntegerUint64(ctx context.Context, request string) func (c *Client) sendTestResponseIntegerUint64(ctx context.Context, request string) (res uint64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint64"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint64"), } @@ -66844,7 +66845,7 @@ func (c *Client) sendTestResponseIntegerUint64(ctx context.Context, request stri uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -66879,7 +66880,7 @@ func (c *Client) TestResponseIntegerUint64Array(ctx context.Context, request str func (c *Client) sendTestResponseIntegerUint64Array(ctx context.Context, request string) (res []uint64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint64_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint64_array"), } @@ -66917,7 +66918,7 @@ func (c *Client) sendTestResponseIntegerUint64Array(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -66952,7 +66953,7 @@ func (c *Client) TestResponseIntegerUint64ArrayArray(ctx context.Context, reques func (c *Client) sendTestResponseIntegerUint64ArrayArray(ctx context.Context, request string) (res [][]uint64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint64_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint64_array_array"), } @@ -66990,7 +66991,7 @@ func (c *Client) sendTestResponseIntegerUint64ArrayArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -67025,7 +67026,7 @@ func (c *Client) TestResponseIntegerUint64Nullable(ctx context.Context, request func (c *Client) sendTestResponseIntegerUint64Nullable(ctx context.Context, request string) (res NilUint64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint64_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint64_nullable"), } @@ -67063,7 +67064,7 @@ func (c *Client) sendTestResponseIntegerUint64Nullable(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -67098,7 +67099,7 @@ func (c *Client) TestResponseIntegerUint64NullableArray(ctx context.Context, req func (c *Client) sendTestResponseIntegerUint64NullableArray(ctx context.Context, request string) (res []NilUint64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint64_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint64_nullable_array"), } @@ -67136,7 +67137,7 @@ func (c *Client) sendTestResponseIntegerUint64NullableArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -67171,7 +67172,7 @@ func (c *Client) TestResponseIntegerUint64NullableArrayArray(ctx context.Context func (c *Client) sendTestResponseIntegerUint64NullableArrayArray(ctx context.Context, request string) (res [][]NilUint64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint64_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint64_nullable_array_array"), } @@ -67209,7 +67210,7 @@ func (c *Client) sendTestResponseIntegerUint64NullableArrayArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -67244,7 +67245,7 @@ func (c *Client) TestResponseIntegerUint8(ctx context.Context, request string) ( func (c *Client) sendTestResponseIntegerUint8(ctx context.Context, request string) (res uint8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint8"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint8"), } @@ -67282,7 +67283,7 @@ func (c *Client) sendTestResponseIntegerUint8(ctx context.Context, request strin uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -67317,7 +67318,7 @@ func (c *Client) TestResponseIntegerUint8Array(ctx context.Context, request stri func (c *Client) sendTestResponseIntegerUint8Array(ctx context.Context, request string) (res []uint8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint8_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint8_array"), } @@ -67355,7 +67356,7 @@ func (c *Client) sendTestResponseIntegerUint8Array(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -67390,7 +67391,7 @@ func (c *Client) TestResponseIntegerUint8ArrayArray(ctx context.Context, request func (c *Client) sendTestResponseIntegerUint8ArrayArray(ctx context.Context, request string) (res [][]uint8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint8_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint8_array_array"), } @@ -67428,7 +67429,7 @@ func (c *Client) sendTestResponseIntegerUint8ArrayArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -67463,7 +67464,7 @@ func (c *Client) TestResponseIntegerUint8Nullable(ctx context.Context, request s func (c *Client) sendTestResponseIntegerUint8Nullable(ctx context.Context, request string) (res NilUint8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint8_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint8_nullable"), } @@ -67501,7 +67502,7 @@ func (c *Client) sendTestResponseIntegerUint8Nullable(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -67536,7 +67537,7 @@ func (c *Client) TestResponseIntegerUint8NullableArray(ctx context.Context, requ func (c *Client) sendTestResponseIntegerUint8NullableArray(ctx context.Context, request string) (res []NilUint8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint8_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint8_nullable_array"), } @@ -67574,7 +67575,7 @@ func (c *Client) sendTestResponseIntegerUint8NullableArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -67609,7 +67610,7 @@ func (c *Client) TestResponseIntegerUint8NullableArrayArray(ctx context.Context, func (c *Client) sendTestResponseIntegerUint8NullableArrayArray(ctx context.Context, request string) (res [][]NilUint8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint8_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint8_nullable_array_array"), } @@ -67647,7 +67648,7 @@ func (c *Client) sendTestResponseIntegerUint8NullableArrayArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -67682,7 +67683,7 @@ func (c *Client) TestResponseIntegerUintArray(ctx context.Context, request strin func (c *Client) sendTestResponseIntegerUintArray(ctx context.Context, request string) (res []uint, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint_array"), } @@ -67720,7 +67721,7 @@ func (c *Client) sendTestResponseIntegerUintArray(ctx context.Context, request s uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -67755,7 +67756,7 @@ func (c *Client) TestResponseIntegerUintArrayArray(ctx context.Context, request func (c *Client) sendTestResponseIntegerUintArrayArray(ctx context.Context, request string) (res [][]uint, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint_array_array"), } @@ -67793,7 +67794,7 @@ func (c *Client) sendTestResponseIntegerUintArrayArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -67828,7 +67829,7 @@ func (c *Client) TestResponseIntegerUintNullable(ctx context.Context, request st func (c *Client) sendTestResponseIntegerUintNullable(ctx context.Context, request string) (res NilUint, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint_nullable"), } @@ -67866,7 +67867,7 @@ func (c *Client) sendTestResponseIntegerUintNullable(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -67901,7 +67902,7 @@ func (c *Client) TestResponseIntegerUintNullableArray(ctx context.Context, reque func (c *Client) sendTestResponseIntegerUintNullableArray(ctx context.Context, request string) (res []NilUint, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint_nullable_array"), } @@ -67939,7 +67940,7 @@ func (c *Client) sendTestResponseIntegerUintNullableArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -67974,7 +67975,7 @@ func (c *Client) TestResponseIntegerUintNullableArrayArray(ctx context.Context, func (c *Client) sendTestResponseIntegerUintNullableArrayArray(ctx context.Context, request string) (res [][]NilUint, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_uint_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_uint_nullable_array_array"), } @@ -68012,7 +68013,7 @@ func (c *Client) sendTestResponseIntegerUintNullableArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -68047,7 +68048,7 @@ func (c *Client) TestResponseIntegerUnix(ctx context.Context, request string) (t func (c *Client) sendTestResponseIntegerUnix(ctx context.Context, request string) (res time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix"), } @@ -68085,7 +68086,7 @@ func (c *Client) sendTestResponseIntegerUnix(ctx context.Context, request string uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -68120,7 +68121,7 @@ func (c *Client) TestResponseIntegerUnixArray(ctx context.Context, request strin func (c *Client) sendTestResponseIntegerUnixArray(ctx context.Context, request string) (res []time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix_array"), } @@ -68158,7 +68159,7 @@ func (c *Client) sendTestResponseIntegerUnixArray(ctx context.Context, request s uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -68193,7 +68194,7 @@ func (c *Client) TestResponseIntegerUnixArrayArray(ctx context.Context, request func (c *Client) sendTestResponseIntegerUnixArrayArray(ctx context.Context, request string) (res [][]time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix_array_array"), } @@ -68231,7 +68232,7 @@ func (c *Client) sendTestResponseIntegerUnixArrayArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -68266,7 +68267,7 @@ func (c *Client) TestResponseIntegerUnixMicro(ctx context.Context, request strin func (c *Client) sendTestResponseIntegerUnixMicro(ctx context.Context, request string) (res time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix-micro"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix-micro"), } @@ -68304,7 +68305,7 @@ func (c *Client) sendTestResponseIntegerUnixMicro(ctx context.Context, request s uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -68339,7 +68340,7 @@ func (c *Client) TestResponseIntegerUnixMicroArray(ctx context.Context, request func (c *Client) sendTestResponseIntegerUnixMicroArray(ctx context.Context, request string) (res []time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix-micro_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix-micro_array"), } @@ -68377,7 +68378,7 @@ func (c *Client) sendTestResponseIntegerUnixMicroArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -68412,7 +68413,7 @@ func (c *Client) TestResponseIntegerUnixMicroArrayArray(ctx context.Context, req func (c *Client) sendTestResponseIntegerUnixMicroArrayArray(ctx context.Context, request string) (res [][]time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix-micro_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix-micro_array_array"), } @@ -68450,7 +68451,7 @@ func (c *Client) sendTestResponseIntegerUnixMicroArrayArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -68485,7 +68486,7 @@ func (c *Client) TestResponseIntegerUnixMicroNullable(ctx context.Context, reque func (c *Client) sendTestResponseIntegerUnixMicroNullable(ctx context.Context, request string) (res NilUnixMicro, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix-micro_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix-micro_nullable"), } @@ -68523,7 +68524,7 @@ func (c *Client) sendTestResponseIntegerUnixMicroNullable(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -68558,7 +68559,7 @@ func (c *Client) TestResponseIntegerUnixMicroNullableArray(ctx context.Context, func (c *Client) sendTestResponseIntegerUnixMicroNullableArray(ctx context.Context, request string) (res []NilUnixMicro, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix-micro_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix-micro_nullable_array"), } @@ -68596,7 +68597,7 @@ func (c *Client) sendTestResponseIntegerUnixMicroNullableArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -68631,7 +68632,7 @@ func (c *Client) TestResponseIntegerUnixMicroNullableArrayArray(ctx context.Cont func (c *Client) sendTestResponseIntegerUnixMicroNullableArrayArray(ctx context.Context, request string) (res [][]NilUnixMicro, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix-micro_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix-micro_nullable_array_array"), } @@ -68669,7 +68670,7 @@ func (c *Client) sendTestResponseIntegerUnixMicroNullableArrayArray(ctx context. uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -68704,7 +68705,7 @@ func (c *Client) TestResponseIntegerUnixMilli(ctx context.Context, request strin func (c *Client) sendTestResponseIntegerUnixMilli(ctx context.Context, request string) (res time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix-milli"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix-milli"), } @@ -68742,7 +68743,7 @@ func (c *Client) sendTestResponseIntegerUnixMilli(ctx context.Context, request s uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -68777,7 +68778,7 @@ func (c *Client) TestResponseIntegerUnixMilliArray(ctx context.Context, request func (c *Client) sendTestResponseIntegerUnixMilliArray(ctx context.Context, request string) (res []time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix-milli_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix-milli_array"), } @@ -68815,7 +68816,7 @@ func (c *Client) sendTestResponseIntegerUnixMilliArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -68850,7 +68851,7 @@ func (c *Client) TestResponseIntegerUnixMilliArrayArray(ctx context.Context, req func (c *Client) sendTestResponseIntegerUnixMilliArrayArray(ctx context.Context, request string) (res [][]time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix-milli_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix-milli_array_array"), } @@ -68888,7 +68889,7 @@ func (c *Client) sendTestResponseIntegerUnixMilliArrayArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -68923,7 +68924,7 @@ func (c *Client) TestResponseIntegerUnixMilliNullable(ctx context.Context, reque func (c *Client) sendTestResponseIntegerUnixMilliNullable(ctx context.Context, request string) (res NilUnixMilli, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix-milli_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix-milli_nullable"), } @@ -68961,7 +68962,7 @@ func (c *Client) sendTestResponseIntegerUnixMilliNullable(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -68996,7 +68997,7 @@ func (c *Client) TestResponseIntegerUnixMilliNullableArray(ctx context.Context, func (c *Client) sendTestResponseIntegerUnixMilliNullableArray(ctx context.Context, request string) (res []NilUnixMilli, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix-milli_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix-milli_nullable_array"), } @@ -69034,7 +69035,7 @@ func (c *Client) sendTestResponseIntegerUnixMilliNullableArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -69069,7 +69070,7 @@ func (c *Client) TestResponseIntegerUnixMilliNullableArrayArray(ctx context.Cont func (c *Client) sendTestResponseIntegerUnixMilliNullableArrayArray(ctx context.Context, request string) (res [][]NilUnixMilli, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix-milli_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix-milli_nullable_array_array"), } @@ -69107,7 +69108,7 @@ func (c *Client) sendTestResponseIntegerUnixMilliNullableArrayArray(ctx context. uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -69142,7 +69143,7 @@ func (c *Client) TestResponseIntegerUnixNano(ctx context.Context, request string func (c *Client) sendTestResponseIntegerUnixNano(ctx context.Context, request string) (res time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix-nano"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix-nano"), } @@ -69180,7 +69181,7 @@ func (c *Client) sendTestResponseIntegerUnixNano(ctx context.Context, request st uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -69215,7 +69216,7 @@ func (c *Client) TestResponseIntegerUnixNanoArray(ctx context.Context, request s func (c *Client) sendTestResponseIntegerUnixNanoArray(ctx context.Context, request string) (res []time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix-nano_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix-nano_array"), } @@ -69253,7 +69254,7 @@ func (c *Client) sendTestResponseIntegerUnixNanoArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -69288,7 +69289,7 @@ func (c *Client) TestResponseIntegerUnixNanoArrayArray(ctx context.Context, requ func (c *Client) sendTestResponseIntegerUnixNanoArrayArray(ctx context.Context, request string) (res [][]time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix-nano_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix-nano_array_array"), } @@ -69326,7 +69327,7 @@ func (c *Client) sendTestResponseIntegerUnixNanoArrayArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -69361,7 +69362,7 @@ func (c *Client) TestResponseIntegerUnixNanoNullable(ctx context.Context, reques func (c *Client) sendTestResponseIntegerUnixNanoNullable(ctx context.Context, request string) (res NilUnixNano, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix-nano_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix-nano_nullable"), } @@ -69399,7 +69400,7 @@ func (c *Client) sendTestResponseIntegerUnixNanoNullable(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -69434,7 +69435,7 @@ func (c *Client) TestResponseIntegerUnixNanoNullableArray(ctx context.Context, r func (c *Client) sendTestResponseIntegerUnixNanoNullableArray(ctx context.Context, request string) (res []NilUnixNano, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix-nano_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix-nano_nullable_array"), } @@ -69472,7 +69473,7 @@ func (c *Client) sendTestResponseIntegerUnixNanoNullableArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -69507,7 +69508,7 @@ func (c *Client) TestResponseIntegerUnixNanoNullableArrayArray(ctx context.Conte func (c *Client) sendTestResponseIntegerUnixNanoNullableArrayArray(ctx context.Context, request string) (res [][]NilUnixNano, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix-nano_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix-nano_nullable_array_array"), } @@ -69545,7 +69546,7 @@ func (c *Client) sendTestResponseIntegerUnixNanoNullableArrayArray(ctx context.C uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -69580,7 +69581,7 @@ func (c *Client) TestResponseIntegerUnixNullable(ctx context.Context, request st func (c *Client) sendTestResponseIntegerUnixNullable(ctx context.Context, request string) (res NilUnixSeconds, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix_nullable"), } @@ -69618,7 +69619,7 @@ func (c *Client) sendTestResponseIntegerUnixNullable(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -69653,7 +69654,7 @@ func (c *Client) TestResponseIntegerUnixNullableArray(ctx context.Context, reque func (c *Client) sendTestResponseIntegerUnixNullableArray(ctx context.Context, request string) (res []NilUnixSeconds, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix_nullable_array"), } @@ -69691,7 +69692,7 @@ func (c *Client) sendTestResponseIntegerUnixNullableArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -69726,7 +69727,7 @@ func (c *Client) TestResponseIntegerUnixNullableArrayArray(ctx context.Context, func (c *Client) sendTestResponseIntegerUnixNullableArrayArray(ctx context.Context, request string) (res [][]NilUnixSeconds, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix_nullable_array_array"), } @@ -69764,7 +69765,7 @@ func (c *Client) sendTestResponseIntegerUnixNullableArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -69799,7 +69800,7 @@ func (c *Client) TestResponseIntegerUnixSeconds(ctx context.Context, request str func (c *Client) sendTestResponseIntegerUnixSeconds(ctx context.Context, request string) (res time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix-seconds"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix-seconds"), } @@ -69837,7 +69838,7 @@ func (c *Client) sendTestResponseIntegerUnixSeconds(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -69872,7 +69873,7 @@ func (c *Client) TestResponseIntegerUnixSecondsArray(ctx context.Context, reques func (c *Client) sendTestResponseIntegerUnixSecondsArray(ctx context.Context, request string) (res []time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix-seconds_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix-seconds_array"), } @@ -69910,7 +69911,7 @@ func (c *Client) sendTestResponseIntegerUnixSecondsArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -69945,7 +69946,7 @@ func (c *Client) TestResponseIntegerUnixSecondsArrayArray(ctx context.Context, r func (c *Client) sendTestResponseIntegerUnixSecondsArrayArray(ctx context.Context, request string) (res [][]time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix-seconds_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix-seconds_array_array"), } @@ -69983,7 +69984,7 @@ func (c *Client) sendTestResponseIntegerUnixSecondsArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -70018,7 +70019,7 @@ func (c *Client) TestResponseIntegerUnixSecondsNullable(ctx context.Context, req func (c *Client) sendTestResponseIntegerUnixSecondsNullable(ctx context.Context, request string) (res NilUnixSeconds, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix-seconds_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix-seconds_nullable"), } @@ -70056,7 +70057,7 @@ func (c *Client) sendTestResponseIntegerUnixSecondsNullable(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -70091,7 +70092,7 @@ func (c *Client) TestResponseIntegerUnixSecondsNullableArray(ctx context.Context func (c *Client) sendTestResponseIntegerUnixSecondsNullableArray(ctx context.Context, request string) (res []NilUnixSeconds, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix-seconds_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix-seconds_nullable_array"), } @@ -70129,7 +70130,7 @@ func (c *Client) sendTestResponseIntegerUnixSecondsNullableArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -70164,7 +70165,7 @@ func (c *Client) TestResponseIntegerUnixSecondsNullableArrayArray(ctx context.Co func (c *Client) sendTestResponseIntegerUnixSecondsNullableArrayArray(ctx context.Context, request string) (res [][]NilUnixSeconds, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_integer_unix-seconds_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_integer_unix-seconds_nullable_array_array"), } @@ -70202,7 +70203,7 @@ func (c *Client) sendTestResponseIntegerUnixSecondsNullableArrayArray(ctx contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -70237,7 +70238,7 @@ func (c *Client) TestResponseNull(ctx context.Context, request string) (struct{} func (c *Client) sendTestResponseNull(ctx context.Context, request string) (res struct{}, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_null"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_null"), } @@ -70275,7 +70276,7 @@ func (c *Client) sendTestResponseNull(ctx context.Context, request string) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -70310,7 +70311,7 @@ func (c *Client) TestResponseNullArray(ctx context.Context, request string) ([]s func (c *Client) sendTestResponseNullArray(ctx context.Context, request string) (res []struct{}, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_null_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_null_array"), } @@ -70348,7 +70349,7 @@ func (c *Client) sendTestResponseNullArray(ctx context.Context, request string) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -70383,7 +70384,7 @@ func (c *Client) TestResponseNullArrayArray(ctx context.Context, request string) func (c *Client) sendTestResponseNullArrayArray(ctx context.Context, request string) (res [][]struct{}, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_null_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_null_array_array"), } @@ -70421,7 +70422,7 @@ func (c *Client) sendTestResponseNullArrayArray(ctx context.Context, request str uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -70456,7 +70457,7 @@ func (c *Client) TestResponseNullNullable(ctx context.Context, request string) ( func (c *Client) sendTestResponseNullNullable(ctx context.Context, request string) (res struct{}, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_null_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_null_nullable"), } @@ -70494,7 +70495,7 @@ func (c *Client) sendTestResponseNullNullable(ctx context.Context, request strin uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -70529,7 +70530,7 @@ func (c *Client) TestResponseNullNullableArray(ctx context.Context, request stri func (c *Client) sendTestResponseNullNullableArray(ctx context.Context, request string) (res []struct{}, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_null_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_null_nullable_array"), } @@ -70567,7 +70568,7 @@ func (c *Client) sendTestResponseNullNullableArray(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -70602,7 +70603,7 @@ func (c *Client) TestResponseNullNullableArrayArray(ctx context.Context, request func (c *Client) sendTestResponseNullNullableArrayArray(ctx context.Context, request string) (res [][]struct{}, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_null_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_null_nullable_array_array"), } @@ -70640,7 +70641,7 @@ func (c *Client) sendTestResponseNullNullableArrayArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -70675,7 +70676,7 @@ func (c *Client) TestResponseNumber(ctx context.Context, request string) (float6 func (c *Client) sendTestResponseNumber(ctx context.Context, request string) (res float64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number"), } @@ -70713,7 +70714,7 @@ func (c *Client) sendTestResponseNumber(ctx context.Context, request string) (re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -70748,7 +70749,7 @@ func (c *Client) TestResponseNumberArray(ctx context.Context, request string) ([ func (c *Client) sendTestResponseNumberArray(ctx context.Context, request string) (res []float64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_array"), } @@ -70786,7 +70787,7 @@ func (c *Client) sendTestResponseNumberArray(ctx context.Context, request string uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -70821,7 +70822,7 @@ func (c *Client) TestResponseNumberArrayArray(ctx context.Context, request strin func (c *Client) sendTestResponseNumberArrayArray(ctx context.Context, request string) (res [][]float64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_array_array"), } @@ -70859,7 +70860,7 @@ func (c *Client) sendTestResponseNumberArrayArray(ctx context.Context, request s uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -70894,7 +70895,7 @@ func (c *Client) TestResponseNumberDouble(ctx context.Context, request string) ( func (c *Client) sendTestResponseNumberDouble(ctx context.Context, request string) (res float64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_double"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_double"), } @@ -70932,7 +70933,7 @@ func (c *Client) sendTestResponseNumberDouble(ctx context.Context, request strin uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -70967,7 +70968,7 @@ func (c *Client) TestResponseNumberDoubleArray(ctx context.Context, request stri func (c *Client) sendTestResponseNumberDoubleArray(ctx context.Context, request string) (res []float64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_double_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_double_array"), } @@ -71005,7 +71006,7 @@ func (c *Client) sendTestResponseNumberDoubleArray(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -71040,7 +71041,7 @@ func (c *Client) TestResponseNumberDoubleArrayArray(ctx context.Context, request func (c *Client) sendTestResponseNumberDoubleArrayArray(ctx context.Context, request string) (res [][]float64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_double_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_double_array_array"), } @@ -71078,7 +71079,7 @@ func (c *Client) sendTestResponseNumberDoubleArrayArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -71113,7 +71114,7 @@ func (c *Client) TestResponseNumberDoubleNullable(ctx context.Context, request s func (c *Client) sendTestResponseNumberDoubleNullable(ctx context.Context, request string) (res NilFloat64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_double_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_double_nullable"), } @@ -71151,7 +71152,7 @@ func (c *Client) sendTestResponseNumberDoubleNullable(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -71186,7 +71187,7 @@ func (c *Client) TestResponseNumberDoubleNullableArray(ctx context.Context, requ func (c *Client) sendTestResponseNumberDoubleNullableArray(ctx context.Context, request string) (res []NilFloat64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_double_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_double_nullable_array"), } @@ -71224,7 +71225,7 @@ func (c *Client) sendTestResponseNumberDoubleNullableArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -71259,7 +71260,7 @@ func (c *Client) TestResponseNumberDoubleNullableArrayArray(ctx context.Context, func (c *Client) sendTestResponseNumberDoubleNullableArrayArray(ctx context.Context, request string) (res [][]NilFloat64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_double_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_double_nullable_array_array"), } @@ -71297,7 +71298,7 @@ func (c *Client) sendTestResponseNumberDoubleNullableArrayArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -71332,7 +71333,7 @@ func (c *Client) TestResponseNumberFloat(ctx context.Context, request string) (f func (c *Client) sendTestResponseNumberFloat(ctx context.Context, request string) (res float32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_float"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_float"), } @@ -71370,7 +71371,7 @@ func (c *Client) sendTestResponseNumberFloat(ctx context.Context, request string uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -71405,7 +71406,7 @@ func (c *Client) TestResponseNumberFloatArray(ctx context.Context, request strin func (c *Client) sendTestResponseNumberFloatArray(ctx context.Context, request string) (res []float32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_float_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_float_array"), } @@ -71443,7 +71444,7 @@ func (c *Client) sendTestResponseNumberFloatArray(ctx context.Context, request s uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -71478,7 +71479,7 @@ func (c *Client) TestResponseNumberFloatArrayArray(ctx context.Context, request func (c *Client) sendTestResponseNumberFloatArrayArray(ctx context.Context, request string) (res [][]float32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_float_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_float_array_array"), } @@ -71516,7 +71517,7 @@ func (c *Client) sendTestResponseNumberFloatArrayArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -71551,7 +71552,7 @@ func (c *Client) TestResponseNumberFloatNullable(ctx context.Context, request st func (c *Client) sendTestResponseNumberFloatNullable(ctx context.Context, request string) (res NilFloat32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_float_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_float_nullable"), } @@ -71589,7 +71590,7 @@ func (c *Client) sendTestResponseNumberFloatNullable(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -71624,7 +71625,7 @@ func (c *Client) TestResponseNumberFloatNullableArray(ctx context.Context, reque func (c *Client) sendTestResponseNumberFloatNullableArray(ctx context.Context, request string) (res []NilFloat32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_float_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_float_nullable_array"), } @@ -71662,7 +71663,7 @@ func (c *Client) sendTestResponseNumberFloatNullableArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -71697,7 +71698,7 @@ func (c *Client) TestResponseNumberFloatNullableArrayArray(ctx context.Context, func (c *Client) sendTestResponseNumberFloatNullableArrayArray(ctx context.Context, request string) (res [][]NilFloat32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_float_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_float_nullable_array_array"), } @@ -71735,7 +71736,7 @@ func (c *Client) sendTestResponseNumberFloatNullableArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -71770,7 +71771,7 @@ func (c *Client) TestResponseNumberInt32(ctx context.Context, request string) (i func (c *Client) sendTestResponseNumberInt32(ctx context.Context, request string) (res int32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_int32"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_int32"), } @@ -71808,7 +71809,7 @@ func (c *Client) sendTestResponseNumberInt32(ctx context.Context, request string uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -71843,7 +71844,7 @@ func (c *Client) TestResponseNumberInt32Array(ctx context.Context, request strin func (c *Client) sendTestResponseNumberInt32Array(ctx context.Context, request string) (res []int32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_int32_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_int32_array"), } @@ -71881,7 +71882,7 @@ func (c *Client) sendTestResponseNumberInt32Array(ctx context.Context, request s uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -71916,7 +71917,7 @@ func (c *Client) TestResponseNumberInt32ArrayArray(ctx context.Context, request func (c *Client) sendTestResponseNumberInt32ArrayArray(ctx context.Context, request string) (res [][]int32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_int32_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_int32_array_array"), } @@ -71954,7 +71955,7 @@ func (c *Client) sendTestResponseNumberInt32ArrayArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -71989,7 +71990,7 @@ func (c *Client) TestResponseNumberInt32Nullable(ctx context.Context, request st func (c *Client) sendTestResponseNumberInt32Nullable(ctx context.Context, request string) (res NilInt32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_int32_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_int32_nullable"), } @@ -72027,7 +72028,7 @@ func (c *Client) sendTestResponseNumberInt32Nullable(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -72062,7 +72063,7 @@ func (c *Client) TestResponseNumberInt32NullableArray(ctx context.Context, reque func (c *Client) sendTestResponseNumberInt32NullableArray(ctx context.Context, request string) (res []NilInt32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_int32_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_int32_nullable_array"), } @@ -72100,7 +72101,7 @@ func (c *Client) sendTestResponseNumberInt32NullableArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -72135,7 +72136,7 @@ func (c *Client) TestResponseNumberInt32NullableArrayArray(ctx context.Context, func (c *Client) sendTestResponseNumberInt32NullableArrayArray(ctx context.Context, request string) (res [][]NilInt32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_int32_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_int32_nullable_array_array"), } @@ -72173,7 +72174,7 @@ func (c *Client) sendTestResponseNumberInt32NullableArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -72208,7 +72209,7 @@ func (c *Client) TestResponseNumberInt64(ctx context.Context, request string) (i func (c *Client) sendTestResponseNumberInt64(ctx context.Context, request string) (res int64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_int64"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_int64"), } @@ -72246,7 +72247,7 @@ func (c *Client) sendTestResponseNumberInt64(ctx context.Context, request string uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -72281,7 +72282,7 @@ func (c *Client) TestResponseNumberInt64Array(ctx context.Context, request strin func (c *Client) sendTestResponseNumberInt64Array(ctx context.Context, request string) (res []int64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_int64_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_int64_array"), } @@ -72319,7 +72320,7 @@ func (c *Client) sendTestResponseNumberInt64Array(ctx context.Context, request s uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -72354,7 +72355,7 @@ func (c *Client) TestResponseNumberInt64ArrayArray(ctx context.Context, request func (c *Client) sendTestResponseNumberInt64ArrayArray(ctx context.Context, request string) (res [][]int64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_int64_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_int64_array_array"), } @@ -72392,7 +72393,7 @@ func (c *Client) sendTestResponseNumberInt64ArrayArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -72427,7 +72428,7 @@ func (c *Client) TestResponseNumberInt64Nullable(ctx context.Context, request st func (c *Client) sendTestResponseNumberInt64Nullable(ctx context.Context, request string) (res NilInt64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_int64_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_int64_nullable"), } @@ -72465,7 +72466,7 @@ func (c *Client) sendTestResponseNumberInt64Nullable(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -72500,7 +72501,7 @@ func (c *Client) TestResponseNumberInt64NullableArray(ctx context.Context, reque func (c *Client) sendTestResponseNumberInt64NullableArray(ctx context.Context, request string) (res []NilInt64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_int64_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_int64_nullable_array"), } @@ -72538,7 +72539,7 @@ func (c *Client) sendTestResponseNumberInt64NullableArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -72573,7 +72574,7 @@ func (c *Client) TestResponseNumberInt64NullableArrayArray(ctx context.Context, func (c *Client) sendTestResponseNumberInt64NullableArrayArray(ctx context.Context, request string) (res [][]NilInt64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_int64_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_int64_nullable_array_array"), } @@ -72611,7 +72612,7 @@ func (c *Client) sendTestResponseNumberInt64NullableArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -72646,7 +72647,7 @@ func (c *Client) TestResponseNumberNullable(ctx context.Context, request string) func (c *Client) sendTestResponseNumberNullable(ctx context.Context, request string) (res NilFloat64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_nullable"), } @@ -72684,7 +72685,7 @@ func (c *Client) sendTestResponseNumberNullable(ctx context.Context, request str uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -72719,7 +72720,7 @@ func (c *Client) TestResponseNumberNullableArray(ctx context.Context, request st func (c *Client) sendTestResponseNumberNullableArray(ctx context.Context, request string) (res []NilFloat64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_nullable_array"), } @@ -72757,7 +72758,7 @@ func (c *Client) sendTestResponseNumberNullableArray(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -72792,7 +72793,7 @@ func (c *Client) TestResponseNumberNullableArrayArray(ctx context.Context, reque func (c *Client) sendTestResponseNumberNullableArrayArray(ctx context.Context, request string) (res [][]NilFloat64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_number_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_number_nullable_array_array"), } @@ -72830,7 +72831,7 @@ func (c *Client) sendTestResponseNumberNullableArrayArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -72865,7 +72866,7 @@ func (c *Client) TestResponseString(ctx context.Context, request string) (string func (c *Client) sendTestResponseString(ctx context.Context, request string) (res string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string"), } @@ -72903,7 +72904,7 @@ func (c *Client) sendTestResponseString(ctx context.Context, request string) (re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -72938,7 +72939,7 @@ func (c *Client) TestResponseStringArray(ctx context.Context, request string) ([ func (c *Client) sendTestResponseStringArray(ctx context.Context, request string) (res []string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_array"), } @@ -72976,7 +72977,7 @@ func (c *Client) sendTestResponseStringArray(ctx context.Context, request string uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -73011,7 +73012,7 @@ func (c *Client) TestResponseStringArrayArray(ctx context.Context, request strin func (c *Client) sendTestResponseStringArrayArray(ctx context.Context, request string) (res [][]string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_array_array"), } @@ -73049,7 +73050,7 @@ func (c *Client) sendTestResponseStringArrayArray(ctx context.Context, request s uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -73084,7 +73085,7 @@ func (c *Client) TestResponseStringBase64(ctx context.Context, request string) ( func (c *Client) sendTestResponseStringBase64(ctx context.Context, request string) (res []byte, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_base64"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_base64"), } @@ -73122,7 +73123,7 @@ func (c *Client) sendTestResponseStringBase64(ctx context.Context, request strin uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -73157,7 +73158,7 @@ func (c *Client) TestResponseStringBase64Array(ctx context.Context, request stri func (c *Client) sendTestResponseStringBase64Array(ctx context.Context, request string) (res [][]byte, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_base64_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_base64_array"), } @@ -73195,7 +73196,7 @@ func (c *Client) sendTestResponseStringBase64Array(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -73230,7 +73231,7 @@ func (c *Client) TestResponseStringBase64ArrayArray(ctx context.Context, request func (c *Client) sendTestResponseStringBase64ArrayArray(ctx context.Context, request string) (res [][][]byte, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_base64_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_base64_array_array"), } @@ -73268,7 +73269,7 @@ func (c *Client) sendTestResponseStringBase64ArrayArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -73303,7 +73304,7 @@ func (c *Client) TestResponseStringBase64Nullable(ctx context.Context, request s func (c *Client) sendTestResponseStringBase64Nullable(ctx context.Context, request string) (res []byte, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_base64_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_base64_nullable"), } @@ -73341,7 +73342,7 @@ func (c *Client) sendTestResponseStringBase64Nullable(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -73376,7 +73377,7 @@ func (c *Client) TestResponseStringBase64NullableArray(ctx context.Context, requ func (c *Client) sendTestResponseStringBase64NullableArray(ctx context.Context, request string) (res [][]byte, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_base64_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_base64_nullable_array"), } @@ -73414,7 +73415,7 @@ func (c *Client) sendTestResponseStringBase64NullableArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -73449,7 +73450,7 @@ func (c *Client) TestResponseStringBase64NullableArrayArray(ctx context.Context, func (c *Client) sendTestResponseStringBase64NullableArrayArray(ctx context.Context, request string) (res [][][]byte, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_base64_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_base64_nullable_array_array"), } @@ -73487,7 +73488,7 @@ func (c *Client) sendTestResponseStringBase64NullableArrayArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -73522,7 +73523,7 @@ func (c *Client) TestResponseStringBinary(ctx context.Context, request string) ( func (c *Client) sendTestResponseStringBinary(ctx context.Context, request string) (res string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_binary"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_binary"), } @@ -73560,7 +73561,7 @@ func (c *Client) sendTestResponseStringBinary(ctx context.Context, request strin uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -73595,7 +73596,7 @@ func (c *Client) TestResponseStringBinaryArray(ctx context.Context, request stri func (c *Client) sendTestResponseStringBinaryArray(ctx context.Context, request string) (res []string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_binary_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_binary_array"), } @@ -73633,7 +73634,7 @@ func (c *Client) sendTestResponseStringBinaryArray(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -73668,7 +73669,7 @@ func (c *Client) TestResponseStringBinaryArrayArray(ctx context.Context, request func (c *Client) sendTestResponseStringBinaryArrayArray(ctx context.Context, request string) (res [][]string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_binary_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_binary_array_array"), } @@ -73706,7 +73707,7 @@ func (c *Client) sendTestResponseStringBinaryArrayArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -73741,7 +73742,7 @@ func (c *Client) TestResponseStringBinaryNullable(ctx context.Context, request s func (c *Client) sendTestResponseStringBinaryNullable(ctx context.Context, request string) (res NilString, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_binary_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_binary_nullable"), } @@ -73779,7 +73780,7 @@ func (c *Client) sendTestResponseStringBinaryNullable(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -73814,7 +73815,7 @@ func (c *Client) TestResponseStringBinaryNullableArray(ctx context.Context, requ func (c *Client) sendTestResponseStringBinaryNullableArray(ctx context.Context, request string) (res []NilString, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_binary_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_binary_nullable_array"), } @@ -73852,7 +73853,7 @@ func (c *Client) sendTestResponseStringBinaryNullableArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -73887,7 +73888,7 @@ func (c *Client) TestResponseStringBinaryNullableArrayArray(ctx context.Context, func (c *Client) sendTestResponseStringBinaryNullableArrayArray(ctx context.Context, request string) (res [][]NilString, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_binary_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_binary_nullable_array_array"), } @@ -73925,7 +73926,7 @@ func (c *Client) sendTestResponseStringBinaryNullableArrayArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -73960,7 +73961,7 @@ func (c *Client) TestResponseStringByte(ctx context.Context, request string) ([] func (c *Client) sendTestResponseStringByte(ctx context.Context, request string) (res []byte, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_byte"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_byte"), } @@ -73998,7 +73999,7 @@ func (c *Client) sendTestResponseStringByte(ctx context.Context, request string) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -74033,7 +74034,7 @@ func (c *Client) TestResponseStringByteArray(ctx context.Context, request string func (c *Client) sendTestResponseStringByteArray(ctx context.Context, request string) (res [][]byte, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_byte_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_byte_array"), } @@ -74071,7 +74072,7 @@ func (c *Client) sendTestResponseStringByteArray(ctx context.Context, request st uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -74106,7 +74107,7 @@ func (c *Client) TestResponseStringByteArrayArray(ctx context.Context, request s func (c *Client) sendTestResponseStringByteArrayArray(ctx context.Context, request string) (res [][][]byte, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_byte_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_byte_array_array"), } @@ -74144,7 +74145,7 @@ func (c *Client) sendTestResponseStringByteArrayArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -74179,7 +74180,7 @@ func (c *Client) TestResponseStringByteNullable(ctx context.Context, request str func (c *Client) sendTestResponseStringByteNullable(ctx context.Context, request string) (res []byte, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_byte_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_byte_nullable"), } @@ -74217,7 +74218,7 @@ func (c *Client) sendTestResponseStringByteNullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -74252,7 +74253,7 @@ func (c *Client) TestResponseStringByteNullableArray(ctx context.Context, reques func (c *Client) sendTestResponseStringByteNullableArray(ctx context.Context, request string) (res [][]byte, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_byte_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_byte_nullable_array"), } @@ -74290,7 +74291,7 @@ func (c *Client) sendTestResponseStringByteNullableArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -74325,7 +74326,7 @@ func (c *Client) TestResponseStringByteNullableArrayArray(ctx context.Context, r func (c *Client) sendTestResponseStringByteNullableArrayArray(ctx context.Context, request string) (res [][][]byte, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_byte_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_byte_nullable_array_array"), } @@ -74363,7 +74364,7 @@ func (c *Client) sendTestResponseStringByteNullableArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -74398,7 +74399,7 @@ func (c *Client) TestResponseStringDate(ctx context.Context, request string) (ti func (c *Client) sendTestResponseStringDate(ctx context.Context, request string) (res time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_date"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_date"), } @@ -74436,7 +74437,7 @@ func (c *Client) sendTestResponseStringDate(ctx context.Context, request string) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -74471,7 +74472,7 @@ func (c *Client) TestResponseStringDateArray(ctx context.Context, request string func (c *Client) sendTestResponseStringDateArray(ctx context.Context, request string) (res []time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_date_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_date_array"), } @@ -74509,7 +74510,7 @@ func (c *Client) sendTestResponseStringDateArray(ctx context.Context, request st uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -74544,7 +74545,7 @@ func (c *Client) TestResponseStringDateArrayArray(ctx context.Context, request s func (c *Client) sendTestResponseStringDateArrayArray(ctx context.Context, request string) (res [][]time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_date_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_date_array_array"), } @@ -74582,7 +74583,7 @@ func (c *Client) sendTestResponseStringDateArrayArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -74617,7 +74618,7 @@ func (c *Client) TestResponseStringDateNullable(ctx context.Context, request str func (c *Client) sendTestResponseStringDateNullable(ctx context.Context, request string) (res NilDate, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_date_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_date_nullable"), } @@ -74655,7 +74656,7 @@ func (c *Client) sendTestResponseStringDateNullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -74690,7 +74691,7 @@ func (c *Client) TestResponseStringDateNullableArray(ctx context.Context, reques func (c *Client) sendTestResponseStringDateNullableArray(ctx context.Context, request string) (res []NilDate, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_date_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_date_nullable_array"), } @@ -74728,7 +74729,7 @@ func (c *Client) sendTestResponseStringDateNullableArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -74763,7 +74764,7 @@ func (c *Client) TestResponseStringDateNullableArrayArray(ctx context.Context, r func (c *Client) sendTestResponseStringDateNullableArrayArray(ctx context.Context, request string) (res [][]NilDate, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_date_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_date_nullable_array_array"), } @@ -74801,7 +74802,7 @@ func (c *Client) sendTestResponseStringDateNullableArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -74836,7 +74837,7 @@ func (c *Client) TestResponseStringDateTime(ctx context.Context, request string) func (c *Client) sendTestResponseStringDateTime(ctx context.Context, request string) (res time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_date-time"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_date-time"), } @@ -74874,7 +74875,7 @@ func (c *Client) sendTestResponseStringDateTime(ctx context.Context, request str uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -74909,7 +74910,7 @@ func (c *Client) TestResponseStringDateTimeArray(ctx context.Context, request st func (c *Client) sendTestResponseStringDateTimeArray(ctx context.Context, request string) (res []time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_date-time_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_date-time_array"), } @@ -74947,7 +74948,7 @@ func (c *Client) sendTestResponseStringDateTimeArray(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -74982,7 +74983,7 @@ func (c *Client) TestResponseStringDateTimeArrayArray(ctx context.Context, reque func (c *Client) sendTestResponseStringDateTimeArrayArray(ctx context.Context, request string) (res [][]time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_date-time_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_date-time_array_array"), } @@ -75020,7 +75021,7 @@ func (c *Client) sendTestResponseStringDateTimeArrayArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -75055,7 +75056,7 @@ func (c *Client) TestResponseStringDateTimeNullable(ctx context.Context, request func (c *Client) sendTestResponseStringDateTimeNullable(ctx context.Context, request string) (res NilDateTime, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_date-time_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_date-time_nullable"), } @@ -75093,7 +75094,7 @@ func (c *Client) sendTestResponseStringDateTimeNullable(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -75128,7 +75129,7 @@ func (c *Client) TestResponseStringDateTimeNullableArray(ctx context.Context, re func (c *Client) sendTestResponseStringDateTimeNullableArray(ctx context.Context, request string) (res []NilDateTime, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_date-time_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_date-time_nullable_array"), } @@ -75166,7 +75167,7 @@ func (c *Client) sendTestResponseStringDateTimeNullableArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -75201,7 +75202,7 @@ func (c *Client) TestResponseStringDateTimeNullableArrayArray(ctx context.Contex func (c *Client) sendTestResponseStringDateTimeNullableArrayArray(ctx context.Context, request string) (res [][]NilDateTime, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_date-time_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_date-time_nullable_array_array"), } @@ -75239,7 +75240,7 @@ func (c *Client) sendTestResponseStringDateTimeNullableArrayArray(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -75274,7 +75275,7 @@ func (c *Client) TestResponseStringDuration(ctx context.Context, request string) func (c *Client) sendTestResponseStringDuration(ctx context.Context, request string) (res time.Duration, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_duration"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_duration"), } @@ -75312,7 +75313,7 @@ func (c *Client) sendTestResponseStringDuration(ctx context.Context, request str uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -75347,7 +75348,7 @@ func (c *Client) TestResponseStringDurationArray(ctx context.Context, request st func (c *Client) sendTestResponseStringDurationArray(ctx context.Context, request string) (res []time.Duration, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_duration_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_duration_array"), } @@ -75385,7 +75386,7 @@ func (c *Client) sendTestResponseStringDurationArray(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -75420,7 +75421,7 @@ func (c *Client) TestResponseStringDurationArrayArray(ctx context.Context, reque func (c *Client) sendTestResponseStringDurationArrayArray(ctx context.Context, request string) (res [][]time.Duration, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_duration_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_duration_array_array"), } @@ -75458,7 +75459,7 @@ func (c *Client) sendTestResponseStringDurationArrayArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -75493,7 +75494,7 @@ func (c *Client) TestResponseStringDurationNullable(ctx context.Context, request func (c *Client) sendTestResponseStringDurationNullable(ctx context.Context, request string) (res NilDuration, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_duration_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_duration_nullable"), } @@ -75531,7 +75532,7 @@ func (c *Client) sendTestResponseStringDurationNullable(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -75566,7 +75567,7 @@ func (c *Client) TestResponseStringDurationNullableArray(ctx context.Context, re func (c *Client) sendTestResponseStringDurationNullableArray(ctx context.Context, request string) (res []NilDuration, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_duration_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_duration_nullable_array"), } @@ -75604,7 +75605,7 @@ func (c *Client) sendTestResponseStringDurationNullableArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -75639,7 +75640,7 @@ func (c *Client) TestResponseStringDurationNullableArrayArray(ctx context.Contex func (c *Client) sendTestResponseStringDurationNullableArrayArray(ctx context.Context, request string) (res [][]NilDuration, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_duration_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_duration_nullable_array_array"), } @@ -75677,7 +75678,7 @@ func (c *Client) sendTestResponseStringDurationNullableArrayArray(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -75712,7 +75713,7 @@ func (c *Client) TestResponseStringEmail(ctx context.Context, request string) (s func (c *Client) sendTestResponseStringEmail(ctx context.Context, request string) (res string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_email"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_email"), } @@ -75750,7 +75751,7 @@ func (c *Client) sendTestResponseStringEmail(ctx context.Context, request string uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -75785,7 +75786,7 @@ func (c *Client) TestResponseStringEmailArray(ctx context.Context, request strin func (c *Client) sendTestResponseStringEmailArray(ctx context.Context, request string) (res []string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_email_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_email_array"), } @@ -75823,7 +75824,7 @@ func (c *Client) sendTestResponseStringEmailArray(ctx context.Context, request s uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -75858,7 +75859,7 @@ func (c *Client) TestResponseStringEmailArrayArray(ctx context.Context, request func (c *Client) sendTestResponseStringEmailArrayArray(ctx context.Context, request string) (res [][]string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_email_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_email_array_array"), } @@ -75896,7 +75897,7 @@ func (c *Client) sendTestResponseStringEmailArrayArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -75931,7 +75932,7 @@ func (c *Client) TestResponseStringEmailNullable(ctx context.Context, request st func (c *Client) sendTestResponseStringEmailNullable(ctx context.Context, request string) (res NilString, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_email_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_email_nullable"), } @@ -75969,7 +75970,7 @@ func (c *Client) sendTestResponseStringEmailNullable(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -76004,7 +76005,7 @@ func (c *Client) TestResponseStringEmailNullableArray(ctx context.Context, reque func (c *Client) sendTestResponseStringEmailNullableArray(ctx context.Context, request string) (res []NilString, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_email_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_email_nullable_array"), } @@ -76042,7 +76043,7 @@ func (c *Client) sendTestResponseStringEmailNullableArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -76077,7 +76078,7 @@ func (c *Client) TestResponseStringEmailNullableArrayArray(ctx context.Context, func (c *Client) sendTestResponseStringEmailNullableArrayArray(ctx context.Context, request string) (res [][]NilString, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_email_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_email_nullable_array_array"), } @@ -76115,7 +76116,7 @@ func (c *Client) sendTestResponseStringEmailNullableArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -76150,7 +76151,7 @@ func (c *Client) TestResponseStringFloat32(ctx context.Context, request string) func (c *Client) sendTestResponseStringFloat32(ctx context.Context, request string) (res float32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_float32"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_float32"), } @@ -76188,7 +76189,7 @@ func (c *Client) sendTestResponseStringFloat32(ctx context.Context, request stri uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -76223,7 +76224,7 @@ func (c *Client) TestResponseStringFloat32Array(ctx context.Context, request str func (c *Client) sendTestResponseStringFloat32Array(ctx context.Context, request string) (res []float32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_float32_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_float32_array"), } @@ -76261,7 +76262,7 @@ func (c *Client) sendTestResponseStringFloat32Array(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -76296,7 +76297,7 @@ func (c *Client) TestResponseStringFloat32ArrayArray(ctx context.Context, reques func (c *Client) sendTestResponseStringFloat32ArrayArray(ctx context.Context, request string) (res [][]float32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_float32_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_float32_array_array"), } @@ -76334,7 +76335,7 @@ func (c *Client) sendTestResponseStringFloat32ArrayArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -76369,7 +76370,7 @@ func (c *Client) TestResponseStringFloat32Nullable(ctx context.Context, request func (c *Client) sendTestResponseStringFloat32Nullable(ctx context.Context, request string) (res NilFloat32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_float32_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_float32_nullable"), } @@ -76407,7 +76408,7 @@ func (c *Client) sendTestResponseStringFloat32Nullable(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -76442,7 +76443,7 @@ func (c *Client) TestResponseStringFloat32NullableArray(ctx context.Context, req func (c *Client) sendTestResponseStringFloat32NullableArray(ctx context.Context, request string) (res []NilFloat32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_float32_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_float32_nullable_array"), } @@ -76480,7 +76481,7 @@ func (c *Client) sendTestResponseStringFloat32NullableArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -76515,7 +76516,7 @@ func (c *Client) TestResponseStringFloat32NullableArrayArray(ctx context.Context func (c *Client) sendTestResponseStringFloat32NullableArrayArray(ctx context.Context, request string) (res [][]NilFloat32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_float32_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_float32_nullable_array_array"), } @@ -76553,7 +76554,7 @@ func (c *Client) sendTestResponseStringFloat32NullableArrayArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -76588,7 +76589,7 @@ func (c *Client) TestResponseStringFloat64(ctx context.Context, request string) func (c *Client) sendTestResponseStringFloat64(ctx context.Context, request string) (res float64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_float64"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_float64"), } @@ -76626,7 +76627,7 @@ func (c *Client) sendTestResponseStringFloat64(ctx context.Context, request stri uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -76661,7 +76662,7 @@ func (c *Client) TestResponseStringFloat64Array(ctx context.Context, request str func (c *Client) sendTestResponseStringFloat64Array(ctx context.Context, request string) (res []float64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_float64_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_float64_array"), } @@ -76699,7 +76700,7 @@ func (c *Client) sendTestResponseStringFloat64Array(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -76734,7 +76735,7 @@ func (c *Client) TestResponseStringFloat64ArrayArray(ctx context.Context, reques func (c *Client) sendTestResponseStringFloat64ArrayArray(ctx context.Context, request string) (res [][]float64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_float64_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_float64_array_array"), } @@ -76772,7 +76773,7 @@ func (c *Client) sendTestResponseStringFloat64ArrayArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -76807,7 +76808,7 @@ func (c *Client) TestResponseStringFloat64Nullable(ctx context.Context, request func (c *Client) sendTestResponseStringFloat64Nullable(ctx context.Context, request string) (res NilFloat64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_float64_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_float64_nullable"), } @@ -76845,7 +76846,7 @@ func (c *Client) sendTestResponseStringFloat64Nullable(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -76880,7 +76881,7 @@ func (c *Client) TestResponseStringFloat64NullableArray(ctx context.Context, req func (c *Client) sendTestResponseStringFloat64NullableArray(ctx context.Context, request string) (res []NilFloat64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_float64_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_float64_nullable_array"), } @@ -76918,7 +76919,7 @@ func (c *Client) sendTestResponseStringFloat64NullableArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -76953,7 +76954,7 @@ func (c *Client) TestResponseStringFloat64NullableArrayArray(ctx context.Context func (c *Client) sendTestResponseStringFloat64NullableArrayArray(ctx context.Context, request string) (res [][]NilFloat64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_float64_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_float64_nullable_array_array"), } @@ -76991,7 +76992,7 @@ func (c *Client) sendTestResponseStringFloat64NullableArrayArray(ctx context.Con uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -77026,7 +77027,7 @@ func (c *Client) TestResponseStringHostname(ctx context.Context, request string) func (c *Client) sendTestResponseStringHostname(ctx context.Context, request string) (res string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_hostname"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_hostname"), } @@ -77064,7 +77065,7 @@ func (c *Client) sendTestResponseStringHostname(ctx context.Context, request str uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -77099,7 +77100,7 @@ func (c *Client) TestResponseStringHostnameArray(ctx context.Context, request st func (c *Client) sendTestResponseStringHostnameArray(ctx context.Context, request string) (res []string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_hostname_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_hostname_array"), } @@ -77137,7 +77138,7 @@ func (c *Client) sendTestResponseStringHostnameArray(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -77172,7 +77173,7 @@ func (c *Client) TestResponseStringHostnameArrayArray(ctx context.Context, reque func (c *Client) sendTestResponseStringHostnameArrayArray(ctx context.Context, request string) (res [][]string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_hostname_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_hostname_array_array"), } @@ -77210,7 +77211,7 @@ func (c *Client) sendTestResponseStringHostnameArrayArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -77245,7 +77246,7 @@ func (c *Client) TestResponseStringHostnameNullable(ctx context.Context, request func (c *Client) sendTestResponseStringHostnameNullable(ctx context.Context, request string) (res NilString, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_hostname_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_hostname_nullable"), } @@ -77283,7 +77284,7 @@ func (c *Client) sendTestResponseStringHostnameNullable(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -77318,7 +77319,7 @@ func (c *Client) TestResponseStringHostnameNullableArray(ctx context.Context, re func (c *Client) sendTestResponseStringHostnameNullableArray(ctx context.Context, request string) (res []NilString, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_hostname_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_hostname_nullable_array"), } @@ -77356,7 +77357,7 @@ func (c *Client) sendTestResponseStringHostnameNullableArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -77391,7 +77392,7 @@ func (c *Client) TestResponseStringHostnameNullableArrayArray(ctx context.Contex func (c *Client) sendTestResponseStringHostnameNullableArrayArray(ctx context.Context, request string) (res [][]NilString, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_hostname_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_hostname_nullable_array_array"), } @@ -77429,7 +77430,7 @@ func (c *Client) sendTestResponseStringHostnameNullableArrayArray(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -77464,7 +77465,7 @@ func (c *Client) TestResponseStringIP(ctx context.Context, request string) (neti func (c *Client) sendTestResponseStringIP(ctx context.Context, request string) (res netip.Addr, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_ip"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_ip"), } @@ -77502,7 +77503,7 @@ func (c *Client) sendTestResponseStringIP(ctx context.Context, request string) ( uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -77537,7 +77538,7 @@ func (c *Client) TestResponseStringIPArray(ctx context.Context, request string) func (c *Client) sendTestResponseStringIPArray(ctx context.Context, request string) (res []netip.Addr, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_ip_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_ip_array"), } @@ -77575,7 +77576,7 @@ func (c *Client) sendTestResponseStringIPArray(ctx context.Context, request stri uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -77610,7 +77611,7 @@ func (c *Client) TestResponseStringIPArrayArray(ctx context.Context, request str func (c *Client) sendTestResponseStringIPArrayArray(ctx context.Context, request string) (res [][]netip.Addr, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_ip_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_ip_array_array"), } @@ -77648,7 +77649,7 @@ func (c *Client) sendTestResponseStringIPArrayArray(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -77683,7 +77684,7 @@ func (c *Client) TestResponseStringIPNullable(ctx context.Context, request strin func (c *Client) sendTestResponseStringIPNullable(ctx context.Context, request string) (res NilIP, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_ip_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_ip_nullable"), } @@ -77721,7 +77722,7 @@ func (c *Client) sendTestResponseStringIPNullable(ctx context.Context, request s uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -77756,7 +77757,7 @@ func (c *Client) TestResponseStringIPNullableArray(ctx context.Context, request func (c *Client) sendTestResponseStringIPNullableArray(ctx context.Context, request string) (res []NilIP, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_ip_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_ip_nullable_array"), } @@ -77794,7 +77795,7 @@ func (c *Client) sendTestResponseStringIPNullableArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -77829,7 +77830,7 @@ func (c *Client) TestResponseStringIPNullableArrayArray(ctx context.Context, req func (c *Client) sendTestResponseStringIPNullableArrayArray(ctx context.Context, request string) (res [][]NilIP, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_ip_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_ip_nullable_array_array"), } @@ -77867,7 +77868,7 @@ func (c *Client) sendTestResponseStringIPNullableArrayArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -77902,7 +77903,7 @@ func (c *Client) TestResponseStringInt(ctx context.Context, request string) (int func (c *Client) sendTestResponseStringInt(ctx context.Context, request string) (res int, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int"), } @@ -77940,7 +77941,7 @@ func (c *Client) sendTestResponseStringInt(ctx context.Context, request string) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -77975,7 +77976,7 @@ func (c *Client) TestResponseStringInt16(ctx context.Context, request string) (i func (c *Client) sendTestResponseStringInt16(ctx context.Context, request string) (res int16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int16"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int16"), } @@ -78013,7 +78014,7 @@ func (c *Client) sendTestResponseStringInt16(ctx context.Context, request string uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -78048,7 +78049,7 @@ func (c *Client) TestResponseStringInt16Array(ctx context.Context, request strin func (c *Client) sendTestResponseStringInt16Array(ctx context.Context, request string) (res []int16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int16_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int16_array"), } @@ -78086,7 +78087,7 @@ func (c *Client) sendTestResponseStringInt16Array(ctx context.Context, request s uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -78121,7 +78122,7 @@ func (c *Client) TestResponseStringInt16ArrayArray(ctx context.Context, request func (c *Client) sendTestResponseStringInt16ArrayArray(ctx context.Context, request string) (res [][]int16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int16_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int16_array_array"), } @@ -78159,7 +78160,7 @@ func (c *Client) sendTestResponseStringInt16ArrayArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -78194,7 +78195,7 @@ func (c *Client) TestResponseStringInt16Nullable(ctx context.Context, request st func (c *Client) sendTestResponseStringInt16Nullable(ctx context.Context, request string) (res NilInt16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int16_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int16_nullable"), } @@ -78232,7 +78233,7 @@ func (c *Client) sendTestResponseStringInt16Nullable(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -78267,7 +78268,7 @@ func (c *Client) TestResponseStringInt16NullableArray(ctx context.Context, reque func (c *Client) sendTestResponseStringInt16NullableArray(ctx context.Context, request string) (res []NilInt16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int16_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int16_nullable_array"), } @@ -78305,7 +78306,7 @@ func (c *Client) sendTestResponseStringInt16NullableArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -78340,7 +78341,7 @@ func (c *Client) TestResponseStringInt16NullableArrayArray(ctx context.Context, func (c *Client) sendTestResponseStringInt16NullableArrayArray(ctx context.Context, request string) (res [][]NilInt16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int16_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int16_nullable_array_array"), } @@ -78378,7 +78379,7 @@ func (c *Client) sendTestResponseStringInt16NullableArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -78413,7 +78414,7 @@ func (c *Client) TestResponseStringInt32(ctx context.Context, request string) (i func (c *Client) sendTestResponseStringInt32(ctx context.Context, request string) (res int32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int32"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int32"), } @@ -78451,7 +78452,7 @@ func (c *Client) sendTestResponseStringInt32(ctx context.Context, request string uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -78486,7 +78487,7 @@ func (c *Client) TestResponseStringInt32Array(ctx context.Context, request strin func (c *Client) sendTestResponseStringInt32Array(ctx context.Context, request string) (res []int32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int32_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int32_array"), } @@ -78524,7 +78525,7 @@ func (c *Client) sendTestResponseStringInt32Array(ctx context.Context, request s uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -78559,7 +78560,7 @@ func (c *Client) TestResponseStringInt32ArrayArray(ctx context.Context, request func (c *Client) sendTestResponseStringInt32ArrayArray(ctx context.Context, request string) (res [][]int32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int32_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int32_array_array"), } @@ -78597,7 +78598,7 @@ func (c *Client) sendTestResponseStringInt32ArrayArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -78632,7 +78633,7 @@ func (c *Client) TestResponseStringInt32Nullable(ctx context.Context, request st func (c *Client) sendTestResponseStringInt32Nullable(ctx context.Context, request string) (res NilStringInt32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int32_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int32_nullable"), } @@ -78670,7 +78671,7 @@ func (c *Client) sendTestResponseStringInt32Nullable(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -78705,7 +78706,7 @@ func (c *Client) TestResponseStringInt32NullableArray(ctx context.Context, reque func (c *Client) sendTestResponseStringInt32NullableArray(ctx context.Context, request string) (res []NilStringInt32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int32_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int32_nullable_array"), } @@ -78743,7 +78744,7 @@ func (c *Client) sendTestResponseStringInt32NullableArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -78778,7 +78779,7 @@ func (c *Client) TestResponseStringInt32NullableArrayArray(ctx context.Context, func (c *Client) sendTestResponseStringInt32NullableArrayArray(ctx context.Context, request string) (res [][]NilStringInt32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int32_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int32_nullable_array_array"), } @@ -78816,7 +78817,7 @@ func (c *Client) sendTestResponseStringInt32NullableArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -78851,7 +78852,7 @@ func (c *Client) TestResponseStringInt64(ctx context.Context, request string) (i func (c *Client) sendTestResponseStringInt64(ctx context.Context, request string) (res int64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int64"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int64"), } @@ -78889,7 +78890,7 @@ func (c *Client) sendTestResponseStringInt64(ctx context.Context, request string uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -78924,7 +78925,7 @@ func (c *Client) TestResponseStringInt64Array(ctx context.Context, request strin func (c *Client) sendTestResponseStringInt64Array(ctx context.Context, request string) (res []int64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int64_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int64_array"), } @@ -78962,7 +78963,7 @@ func (c *Client) sendTestResponseStringInt64Array(ctx context.Context, request s uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -78997,7 +78998,7 @@ func (c *Client) TestResponseStringInt64ArrayArray(ctx context.Context, request func (c *Client) sendTestResponseStringInt64ArrayArray(ctx context.Context, request string) (res [][]int64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int64_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int64_array_array"), } @@ -79035,7 +79036,7 @@ func (c *Client) sendTestResponseStringInt64ArrayArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -79070,7 +79071,7 @@ func (c *Client) TestResponseStringInt64Nullable(ctx context.Context, request st func (c *Client) sendTestResponseStringInt64Nullable(ctx context.Context, request string) (res NilStringInt64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int64_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int64_nullable"), } @@ -79108,7 +79109,7 @@ func (c *Client) sendTestResponseStringInt64Nullable(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -79143,7 +79144,7 @@ func (c *Client) TestResponseStringInt64NullableArray(ctx context.Context, reque func (c *Client) sendTestResponseStringInt64NullableArray(ctx context.Context, request string) (res []NilStringInt64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int64_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int64_nullable_array"), } @@ -79181,7 +79182,7 @@ func (c *Client) sendTestResponseStringInt64NullableArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -79216,7 +79217,7 @@ func (c *Client) TestResponseStringInt64NullableArrayArray(ctx context.Context, func (c *Client) sendTestResponseStringInt64NullableArrayArray(ctx context.Context, request string) (res [][]NilStringInt64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int64_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int64_nullable_array_array"), } @@ -79254,7 +79255,7 @@ func (c *Client) sendTestResponseStringInt64NullableArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -79289,7 +79290,7 @@ func (c *Client) TestResponseStringInt8(ctx context.Context, request string) (in func (c *Client) sendTestResponseStringInt8(ctx context.Context, request string) (res int8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int8"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int8"), } @@ -79327,7 +79328,7 @@ func (c *Client) sendTestResponseStringInt8(ctx context.Context, request string) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -79362,7 +79363,7 @@ func (c *Client) TestResponseStringInt8Array(ctx context.Context, request string func (c *Client) sendTestResponseStringInt8Array(ctx context.Context, request string) (res []int8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int8_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int8_array"), } @@ -79400,7 +79401,7 @@ func (c *Client) sendTestResponseStringInt8Array(ctx context.Context, request st uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -79435,7 +79436,7 @@ func (c *Client) TestResponseStringInt8ArrayArray(ctx context.Context, request s func (c *Client) sendTestResponseStringInt8ArrayArray(ctx context.Context, request string) (res [][]int8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int8_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int8_array_array"), } @@ -79473,7 +79474,7 @@ func (c *Client) sendTestResponseStringInt8ArrayArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -79508,7 +79509,7 @@ func (c *Client) TestResponseStringInt8Nullable(ctx context.Context, request str func (c *Client) sendTestResponseStringInt8Nullable(ctx context.Context, request string) (res NilInt8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int8_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int8_nullable"), } @@ -79546,7 +79547,7 @@ func (c *Client) sendTestResponseStringInt8Nullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -79581,7 +79582,7 @@ func (c *Client) TestResponseStringInt8NullableArray(ctx context.Context, reques func (c *Client) sendTestResponseStringInt8NullableArray(ctx context.Context, request string) (res []NilInt8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int8_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int8_nullable_array"), } @@ -79619,7 +79620,7 @@ func (c *Client) sendTestResponseStringInt8NullableArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -79654,7 +79655,7 @@ func (c *Client) TestResponseStringInt8NullableArrayArray(ctx context.Context, r func (c *Client) sendTestResponseStringInt8NullableArrayArray(ctx context.Context, request string) (res [][]NilInt8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int8_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int8_nullable_array_array"), } @@ -79692,7 +79693,7 @@ func (c *Client) sendTestResponseStringInt8NullableArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -79727,7 +79728,7 @@ func (c *Client) TestResponseStringIntArray(ctx context.Context, request string) func (c *Client) sendTestResponseStringIntArray(ctx context.Context, request string) (res []int, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int_array"), } @@ -79765,7 +79766,7 @@ func (c *Client) sendTestResponseStringIntArray(ctx context.Context, request str uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -79800,7 +79801,7 @@ func (c *Client) TestResponseStringIntArrayArray(ctx context.Context, request st func (c *Client) sendTestResponseStringIntArrayArray(ctx context.Context, request string) (res [][]int, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int_array_array"), } @@ -79838,7 +79839,7 @@ func (c *Client) sendTestResponseStringIntArrayArray(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -79873,7 +79874,7 @@ func (c *Client) TestResponseStringIntNullable(ctx context.Context, request stri func (c *Client) sendTestResponseStringIntNullable(ctx context.Context, request string) (res NilInt, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int_nullable"), } @@ -79911,7 +79912,7 @@ func (c *Client) sendTestResponseStringIntNullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -79946,7 +79947,7 @@ func (c *Client) TestResponseStringIntNullableArray(ctx context.Context, request func (c *Client) sendTestResponseStringIntNullableArray(ctx context.Context, request string) (res []NilInt, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int_nullable_array"), } @@ -79984,7 +79985,7 @@ func (c *Client) sendTestResponseStringIntNullableArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -80019,7 +80020,7 @@ func (c *Client) TestResponseStringIntNullableArrayArray(ctx context.Context, re func (c *Client) sendTestResponseStringIntNullableArrayArray(ctx context.Context, request string) (res [][]NilInt, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_int_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_int_nullable_array_array"), } @@ -80057,7 +80058,7 @@ func (c *Client) sendTestResponseStringIntNullableArrayArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -80092,7 +80093,7 @@ func (c *Client) TestResponseStringIpv4(ctx context.Context, request string) (ne func (c *Client) sendTestResponseStringIpv4(ctx context.Context, request string) (res netip.Addr, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_ipv4"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_ipv4"), } @@ -80130,7 +80131,7 @@ func (c *Client) sendTestResponseStringIpv4(ctx context.Context, request string) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -80165,7 +80166,7 @@ func (c *Client) TestResponseStringIpv4Array(ctx context.Context, request string func (c *Client) sendTestResponseStringIpv4Array(ctx context.Context, request string) (res []netip.Addr, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_ipv4_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_ipv4_array"), } @@ -80203,7 +80204,7 @@ func (c *Client) sendTestResponseStringIpv4Array(ctx context.Context, request st uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -80238,7 +80239,7 @@ func (c *Client) TestResponseStringIpv4ArrayArray(ctx context.Context, request s func (c *Client) sendTestResponseStringIpv4ArrayArray(ctx context.Context, request string) (res [][]netip.Addr, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_ipv4_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_ipv4_array_array"), } @@ -80276,7 +80277,7 @@ func (c *Client) sendTestResponseStringIpv4ArrayArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -80311,7 +80312,7 @@ func (c *Client) TestResponseStringIpv4Nullable(ctx context.Context, request str func (c *Client) sendTestResponseStringIpv4Nullable(ctx context.Context, request string) (res NilIPv4, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_ipv4_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_ipv4_nullable"), } @@ -80349,7 +80350,7 @@ func (c *Client) sendTestResponseStringIpv4Nullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -80384,7 +80385,7 @@ func (c *Client) TestResponseStringIpv4NullableArray(ctx context.Context, reques func (c *Client) sendTestResponseStringIpv4NullableArray(ctx context.Context, request string) (res []NilIPv4, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_ipv4_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_ipv4_nullable_array"), } @@ -80422,7 +80423,7 @@ func (c *Client) sendTestResponseStringIpv4NullableArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -80457,7 +80458,7 @@ func (c *Client) TestResponseStringIpv4NullableArrayArray(ctx context.Context, r func (c *Client) sendTestResponseStringIpv4NullableArrayArray(ctx context.Context, request string) (res [][]NilIPv4, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_ipv4_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_ipv4_nullable_array_array"), } @@ -80495,7 +80496,7 @@ func (c *Client) sendTestResponseStringIpv4NullableArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -80530,7 +80531,7 @@ func (c *Client) TestResponseStringIpv6(ctx context.Context, request string) (ne func (c *Client) sendTestResponseStringIpv6(ctx context.Context, request string) (res netip.Addr, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_ipv6"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_ipv6"), } @@ -80568,7 +80569,7 @@ func (c *Client) sendTestResponseStringIpv6(ctx context.Context, request string) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -80603,7 +80604,7 @@ func (c *Client) TestResponseStringIpv6Array(ctx context.Context, request string func (c *Client) sendTestResponseStringIpv6Array(ctx context.Context, request string) (res []netip.Addr, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_ipv6_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_ipv6_array"), } @@ -80641,7 +80642,7 @@ func (c *Client) sendTestResponseStringIpv6Array(ctx context.Context, request st uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -80676,7 +80677,7 @@ func (c *Client) TestResponseStringIpv6ArrayArray(ctx context.Context, request s func (c *Client) sendTestResponseStringIpv6ArrayArray(ctx context.Context, request string) (res [][]netip.Addr, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_ipv6_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_ipv6_array_array"), } @@ -80714,7 +80715,7 @@ func (c *Client) sendTestResponseStringIpv6ArrayArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -80749,7 +80750,7 @@ func (c *Client) TestResponseStringIpv6Nullable(ctx context.Context, request str func (c *Client) sendTestResponseStringIpv6Nullable(ctx context.Context, request string) (res NilIPv6, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_ipv6_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_ipv6_nullable"), } @@ -80787,7 +80788,7 @@ func (c *Client) sendTestResponseStringIpv6Nullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -80822,7 +80823,7 @@ func (c *Client) TestResponseStringIpv6NullableArray(ctx context.Context, reques func (c *Client) sendTestResponseStringIpv6NullableArray(ctx context.Context, request string) (res []NilIPv6, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_ipv6_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_ipv6_nullable_array"), } @@ -80860,7 +80861,7 @@ func (c *Client) sendTestResponseStringIpv6NullableArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -80895,7 +80896,7 @@ func (c *Client) TestResponseStringIpv6NullableArrayArray(ctx context.Context, r func (c *Client) sendTestResponseStringIpv6NullableArrayArray(ctx context.Context, request string) (res [][]NilIPv6, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_ipv6_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_ipv6_nullable_array_array"), } @@ -80933,7 +80934,7 @@ func (c *Client) sendTestResponseStringIpv6NullableArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -80968,7 +80969,7 @@ func (c *Client) TestResponseStringNullable(ctx context.Context, request string) func (c *Client) sendTestResponseStringNullable(ctx context.Context, request string) (res NilString, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_nullable"), } @@ -81006,7 +81007,7 @@ func (c *Client) sendTestResponseStringNullable(ctx context.Context, request str uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -81041,7 +81042,7 @@ func (c *Client) TestResponseStringNullableArray(ctx context.Context, request st func (c *Client) sendTestResponseStringNullableArray(ctx context.Context, request string) (res []NilString, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_nullable_array"), } @@ -81079,7 +81080,7 @@ func (c *Client) sendTestResponseStringNullableArray(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -81114,7 +81115,7 @@ func (c *Client) TestResponseStringNullableArrayArray(ctx context.Context, reque func (c *Client) sendTestResponseStringNullableArrayArray(ctx context.Context, request string) (res [][]NilString, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_nullable_array_array"), } @@ -81152,7 +81153,7 @@ func (c *Client) sendTestResponseStringNullableArrayArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -81187,7 +81188,7 @@ func (c *Client) TestResponseStringPassword(ctx context.Context, request string) func (c *Client) sendTestResponseStringPassword(ctx context.Context, request string) (res string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_password"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_password"), } @@ -81225,7 +81226,7 @@ func (c *Client) sendTestResponseStringPassword(ctx context.Context, request str uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -81260,7 +81261,7 @@ func (c *Client) TestResponseStringPasswordArray(ctx context.Context, request st func (c *Client) sendTestResponseStringPasswordArray(ctx context.Context, request string) (res []string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_password_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_password_array"), } @@ -81298,7 +81299,7 @@ func (c *Client) sendTestResponseStringPasswordArray(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -81333,7 +81334,7 @@ func (c *Client) TestResponseStringPasswordArrayArray(ctx context.Context, reque func (c *Client) sendTestResponseStringPasswordArrayArray(ctx context.Context, request string) (res [][]string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_password_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_password_array_array"), } @@ -81371,7 +81372,7 @@ func (c *Client) sendTestResponseStringPasswordArrayArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -81406,7 +81407,7 @@ func (c *Client) TestResponseStringPasswordNullable(ctx context.Context, request func (c *Client) sendTestResponseStringPasswordNullable(ctx context.Context, request string) (res NilString, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_password_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_password_nullable"), } @@ -81444,7 +81445,7 @@ func (c *Client) sendTestResponseStringPasswordNullable(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -81479,7 +81480,7 @@ func (c *Client) TestResponseStringPasswordNullableArray(ctx context.Context, re func (c *Client) sendTestResponseStringPasswordNullableArray(ctx context.Context, request string) (res []NilString, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_password_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_password_nullable_array"), } @@ -81517,7 +81518,7 @@ func (c *Client) sendTestResponseStringPasswordNullableArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -81552,7 +81553,7 @@ func (c *Client) TestResponseStringPasswordNullableArrayArray(ctx context.Contex func (c *Client) sendTestResponseStringPasswordNullableArrayArray(ctx context.Context, request string) (res [][]NilString, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_password_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_password_nullable_array_array"), } @@ -81590,7 +81591,7 @@ func (c *Client) sendTestResponseStringPasswordNullableArrayArray(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -81625,7 +81626,7 @@ func (c *Client) TestResponseStringTime(ctx context.Context, request string) (ti func (c *Client) sendTestResponseStringTime(ctx context.Context, request string) (res time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_time"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_time"), } @@ -81663,7 +81664,7 @@ func (c *Client) sendTestResponseStringTime(ctx context.Context, request string) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -81698,7 +81699,7 @@ func (c *Client) TestResponseStringTimeArray(ctx context.Context, request string func (c *Client) sendTestResponseStringTimeArray(ctx context.Context, request string) (res []time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_time_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_time_array"), } @@ -81736,7 +81737,7 @@ func (c *Client) sendTestResponseStringTimeArray(ctx context.Context, request st uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -81771,7 +81772,7 @@ func (c *Client) TestResponseStringTimeArrayArray(ctx context.Context, request s func (c *Client) sendTestResponseStringTimeArrayArray(ctx context.Context, request string) (res [][]time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_time_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_time_array_array"), } @@ -81809,7 +81810,7 @@ func (c *Client) sendTestResponseStringTimeArrayArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -81844,7 +81845,7 @@ func (c *Client) TestResponseStringTimeNullable(ctx context.Context, request str func (c *Client) sendTestResponseStringTimeNullable(ctx context.Context, request string) (res NilTime, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_time_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_time_nullable"), } @@ -81882,7 +81883,7 @@ func (c *Client) sendTestResponseStringTimeNullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -81917,7 +81918,7 @@ func (c *Client) TestResponseStringTimeNullableArray(ctx context.Context, reques func (c *Client) sendTestResponseStringTimeNullableArray(ctx context.Context, request string) (res []NilTime, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_time_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_time_nullable_array"), } @@ -81955,7 +81956,7 @@ func (c *Client) sendTestResponseStringTimeNullableArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -81990,7 +81991,7 @@ func (c *Client) TestResponseStringTimeNullableArrayArray(ctx context.Context, r func (c *Client) sendTestResponseStringTimeNullableArrayArray(ctx context.Context, request string) (res [][]NilTime, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_time_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_time_nullable_array_array"), } @@ -82028,7 +82029,7 @@ func (c *Client) sendTestResponseStringTimeNullableArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -82063,7 +82064,7 @@ func (c *Client) TestResponseStringURI(ctx context.Context, request string) (url func (c *Client) sendTestResponseStringURI(ctx context.Context, request string) (res url.URL, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uri"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uri"), } @@ -82101,7 +82102,7 @@ func (c *Client) sendTestResponseStringURI(ctx context.Context, request string) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -82136,7 +82137,7 @@ func (c *Client) TestResponseStringURIArray(ctx context.Context, request string) func (c *Client) sendTestResponseStringURIArray(ctx context.Context, request string) (res []url.URL, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uri_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uri_array"), } @@ -82174,7 +82175,7 @@ func (c *Client) sendTestResponseStringURIArray(ctx context.Context, request str uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -82209,7 +82210,7 @@ func (c *Client) TestResponseStringURIArrayArray(ctx context.Context, request st func (c *Client) sendTestResponseStringURIArrayArray(ctx context.Context, request string) (res [][]url.URL, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uri_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uri_array_array"), } @@ -82247,7 +82248,7 @@ func (c *Client) sendTestResponseStringURIArrayArray(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -82282,7 +82283,7 @@ func (c *Client) TestResponseStringURINullable(ctx context.Context, request stri func (c *Client) sendTestResponseStringURINullable(ctx context.Context, request string) (res NilURI, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uri_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uri_nullable"), } @@ -82320,7 +82321,7 @@ func (c *Client) sendTestResponseStringURINullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -82355,7 +82356,7 @@ func (c *Client) TestResponseStringURINullableArray(ctx context.Context, request func (c *Client) sendTestResponseStringURINullableArray(ctx context.Context, request string) (res []NilURI, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uri_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uri_nullable_array"), } @@ -82393,7 +82394,7 @@ func (c *Client) sendTestResponseStringURINullableArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -82428,7 +82429,7 @@ func (c *Client) TestResponseStringURINullableArrayArray(ctx context.Context, re func (c *Client) sendTestResponseStringURINullableArrayArray(ctx context.Context, request string) (res [][]NilURI, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uri_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uri_nullable_array_array"), } @@ -82466,7 +82467,7 @@ func (c *Client) sendTestResponseStringURINullableArrayArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -82501,7 +82502,7 @@ func (c *Client) TestResponseStringUUID(ctx context.Context, request string) (uu func (c *Client) sendTestResponseStringUUID(ctx context.Context, request string) (res uuid.UUID, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uuid"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uuid"), } @@ -82539,7 +82540,7 @@ func (c *Client) sendTestResponseStringUUID(ctx context.Context, request string) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -82574,7 +82575,7 @@ func (c *Client) TestResponseStringUUIDArray(ctx context.Context, request string func (c *Client) sendTestResponseStringUUIDArray(ctx context.Context, request string) (res []uuid.UUID, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uuid_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uuid_array"), } @@ -82612,7 +82613,7 @@ func (c *Client) sendTestResponseStringUUIDArray(ctx context.Context, request st uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -82647,7 +82648,7 @@ func (c *Client) TestResponseStringUUIDArrayArray(ctx context.Context, request s func (c *Client) sendTestResponseStringUUIDArrayArray(ctx context.Context, request string) (res [][]uuid.UUID, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uuid_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uuid_array_array"), } @@ -82685,7 +82686,7 @@ func (c *Client) sendTestResponseStringUUIDArrayArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -82720,7 +82721,7 @@ func (c *Client) TestResponseStringUUIDNullable(ctx context.Context, request str func (c *Client) sendTestResponseStringUUIDNullable(ctx context.Context, request string) (res NilUUID, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uuid_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uuid_nullable"), } @@ -82758,7 +82759,7 @@ func (c *Client) sendTestResponseStringUUIDNullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -82793,7 +82794,7 @@ func (c *Client) TestResponseStringUUIDNullableArray(ctx context.Context, reques func (c *Client) sendTestResponseStringUUIDNullableArray(ctx context.Context, request string) (res []NilUUID, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uuid_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uuid_nullable_array"), } @@ -82831,7 +82832,7 @@ func (c *Client) sendTestResponseStringUUIDNullableArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -82866,7 +82867,7 @@ func (c *Client) TestResponseStringUUIDNullableArrayArray(ctx context.Context, r func (c *Client) sendTestResponseStringUUIDNullableArrayArray(ctx context.Context, request string) (res [][]NilUUID, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uuid_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uuid_nullable_array_array"), } @@ -82904,7 +82905,7 @@ func (c *Client) sendTestResponseStringUUIDNullableArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -82939,7 +82940,7 @@ func (c *Client) TestResponseStringUint(ctx context.Context, request string) (ui func (c *Client) sendTestResponseStringUint(ctx context.Context, request string) (res uint, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint"), } @@ -82977,7 +82978,7 @@ func (c *Client) sendTestResponseStringUint(ctx context.Context, request string) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -83012,7 +83013,7 @@ func (c *Client) TestResponseStringUint16(ctx context.Context, request string) ( func (c *Client) sendTestResponseStringUint16(ctx context.Context, request string) (res uint16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint16"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint16"), } @@ -83050,7 +83051,7 @@ func (c *Client) sendTestResponseStringUint16(ctx context.Context, request strin uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -83085,7 +83086,7 @@ func (c *Client) TestResponseStringUint16Array(ctx context.Context, request stri func (c *Client) sendTestResponseStringUint16Array(ctx context.Context, request string) (res []uint16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint16_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint16_array"), } @@ -83123,7 +83124,7 @@ func (c *Client) sendTestResponseStringUint16Array(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -83158,7 +83159,7 @@ func (c *Client) TestResponseStringUint16ArrayArray(ctx context.Context, request func (c *Client) sendTestResponseStringUint16ArrayArray(ctx context.Context, request string) (res [][]uint16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint16_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint16_array_array"), } @@ -83196,7 +83197,7 @@ func (c *Client) sendTestResponseStringUint16ArrayArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -83231,7 +83232,7 @@ func (c *Client) TestResponseStringUint16Nullable(ctx context.Context, request s func (c *Client) sendTestResponseStringUint16Nullable(ctx context.Context, request string) (res NilUint16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint16_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint16_nullable"), } @@ -83269,7 +83270,7 @@ func (c *Client) sendTestResponseStringUint16Nullable(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -83304,7 +83305,7 @@ func (c *Client) TestResponseStringUint16NullableArray(ctx context.Context, requ func (c *Client) sendTestResponseStringUint16NullableArray(ctx context.Context, request string) (res []NilUint16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint16_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint16_nullable_array"), } @@ -83342,7 +83343,7 @@ func (c *Client) sendTestResponseStringUint16NullableArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -83377,7 +83378,7 @@ func (c *Client) TestResponseStringUint16NullableArrayArray(ctx context.Context, func (c *Client) sendTestResponseStringUint16NullableArrayArray(ctx context.Context, request string) (res [][]NilUint16, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint16_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint16_nullable_array_array"), } @@ -83415,7 +83416,7 @@ func (c *Client) sendTestResponseStringUint16NullableArrayArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -83450,7 +83451,7 @@ func (c *Client) TestResponseStringUint32(ctx context.Context, request string) ( func (c *Client) sendTestResponseStringUint32(ctx context.Context, request string) (res uint32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint32"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint32"), } @@ -83488,7 +83489,7 @@ func (c *Client) sendTestResponseStringUint32(ctx context.Context, request strin uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -83523,7 +83524,7 @@ func (c *Client) TestResponseStringUint32Array(ctx context.Context, request stri func (c *Client) sendTestResponseStringUint32Array(ctx context.Context, request string) (res []uint32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint32_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint32_array"), } @@ -83561,7 +83562,7 @@ func (c *Client) sendTestResponseStringUint32Array(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -83596,7 +83597,7 @@ func (c *Client) TestResponseStringUint32ArrayArray(ctx context.Context, request func (c *Client) sendTestResponseStringUint32ArrayArray(ctx context.Context, request string) (res [][]uint32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint32_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint32_array_array"), } @@ -83634,7 +83635,7 @@ func (c *Client) sendTestResponseStringUint32ArrayArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -83669,7 +83670,7 @@ func (c *Client) TestResponseStringUint32Nullable(ctx context.Context, request s func (c *Client) sendTestResponseStringUint32Nullable(ctx context.Context, request string) (res NilUint32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint32_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint32_nullable"), } @@ -83707,7 +83708,7 @@ func (c *Client) sendTestResponseStringUint32Nullable(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -83742,7 +83743,7 @@ func (c *Client) TestResponseStringUint32NullableArray(ctx context.Context, requ func (c *Client) sendTestResponseStringUint32NullableArray(ctx context.Context, request string) (res []NilUint32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint32_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint32_nullable_array"), } @@ -83780,7 +83781,7 @@ func (c *Client) sendTestResponseStringUint32NullableArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -83815,7 +83816,7 @@ func (c *Client) TestResponseStringUint32NullableArrayArray(ctx context.Context, func (c *Client) sendTestResponseStringUint32NullableArrayArray(ctx context.Context, request string) (res [][]NilUint32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint32_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint32_nullable_array_array"), } @@ -83853,7 +83854,7 @@ func (c *Client) sendTestResponseStringUint32NullableArrayArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -83888,7 +83889,7 @@ func (c *Client) TestResponseStringUint64(ctx context.Context, request string) ( func (c *Client) sendTestResponseStringUint64(ctx context.Context, request string) (res uint64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint64"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint64"), } @@ -83926,7 +83927,7 @@ func (c *Client) sendTestResponseStringUint64(ctx context.Context, request strin uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -83961,7 +83962,7 @@ func (c *Client) TestResponseStringUint64Array(ctx context.Context, request stri func (c *Client) sendTestResponseStringUint64Array(ctx context.Context, request string) (res []uint64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint64_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint64_array"), } @@ -83999,7 +84000,7 @@ func (c *Client) sendTestResponseStringUint64Array(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -84034,7 +84035,7 @@ func (c *Client) TestResponseStringUint64ArrayArray(ctx context.Context, request func (c *Client) sendTestResponseStringUint64ArrayArray(ctx context.Context, request string) (res [][]uint64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint64_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint64_array_array"), } @@ -84072,7 +84073,7 @@ func (c *Client) sendTestResponseStringUint64ArrayArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -84107,7 +84108,7 @@ func (c *Client) TestResponseStringUint64Nullable(ctx context.Context, request s func (c *Client) sendTestResponseStringUint64Nullable(ctx context.Context, request string) (res NilUint64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint64_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint64_nullable"), } @@ -84145,7 +84146,7 @@ func (c *Client) sendTestResponseStringUint64Nullable(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -84180,7 +84181,7 @@ func (c *Client) TestResponseStringUint64NullableArray(ctx context.Context, requ func (c *Client) sendTestResponseStringUint64NullableArray(ctx context.Context, request string) (res []NilUint64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint64_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint64_nullable_array"), } @@ -84218,7 +84219,7 @@ func (c *Client) sendTestResponseStringUint64NullableArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -84253,7 +84254,7 @@ func (c *Client) TestResponseStringUint64NullableArrayArray(ctx context.Context, func (c *Client) sendTestResponseStringUint64NullableArrayArray(ctx context.Context, request string) (res [][]NilUint64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint64_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint64_nullable_array_array"), } @@ -84291,7 +84292,7 @@ func (c *Client) sendTestResponseStringUint64NullableArrayArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -84326,7 +84327,7 @@ func (c *Client) TestResponseStringUint8(ctx context.Context, request string) (u func (c *Client) sendTestResponseStringUint8(ctx context.Context, request string) (res uint8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint8"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint8"), } @@ -84364,7 +84365,7 @@ func (c *Client) sendTestResponseStringUint8(ctx context.Context, request string uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -84399,7 +84400,7 @@ func (c *Client) TestResponseStringUint8Array(ctx context.Context, request strin func (c *Client) sendTestResponseStringUint8Array(ctx context.Context, request string) (res []uint8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint8_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint8_array"), } @@ -84437,7 +84438,7 @@ func (c *Client) sendTestResponseStringUint8Array(ctx context.Context, request s uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -84472,7 +84473,7 @@ func (c *Client) TestResponseStringUint8ArrayArray(ctx context.Context, request func (c *Client) sendTestResponseStringUint8ArrayArray(ctx context.Context, request string) (res [][]uint8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint8_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint8_array_array"), } @@ -84510,7 +84511,7 @@ func (c *Client) sendTestResponseStringUint8ArrayArray(ctx context.Context, requ uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -84545,7 +84546,7 @@ func (c *Client) TestResponseStringUint8Nullable(ctx context.Context, request st func (c *Client) sendTestResponseStringUint8Nullable(ctx context.Context, request string) (res NilUint8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint8_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint8_nullable"), } @@ -84583,7 +84584,7 @@ func (c *Client) sendTestResponseStringUint8Nullable(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -84618,7 +84619,7 @@ func (c *Client) TestResponseStringUint8NullableArray(ctx context.Context, reque func (c *Client) sendTestResponseStringUint8NullableArray(ctx context.Context, request string) (res []NilUint8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint8_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint8_nullable_array"), } @@ -84656,7 +84657,7 @@ func (c *Client) sendTestResponseStringUint8NullableArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -84691,7 +84692,7 @@ func (c *Client) TestResponseStringUint8NullableArrayArray(ctx context.Context, func (c *Client) sendTestResponseStringUint8NullableArrayArray(ctx context.Context, request string) (res [][]NilUint8, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint8_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint8_nullable_array_array"), } @@ -84729,7 +84730,7 @@ func (c *Client) sendTestResponseStringUint8NullableArrayArray(ctx context.Conte uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -84764,7 +84765,7 @@ func (c *Client) TestResponseStringUintArray(ctx context.Context, request string func (c *Client) sendTestResponseStringUintArray(ctx context.Context, request string) (res []uint, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint_array"), } @@ -84802,7 +84803,7 @@ func (c *Client) sendTestResponseStringUintArray(ctx context.Context, request st uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -84837,7 +84838,7 @@ func (c *Client) TestResponseStringUintArrayArray(ctx context.Context, request s func (c *Client) sendTestResponseStringUintArrayArray(ctx context.Context, request string) (res [][]uint, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint_array_array"), } @@ -84875,7 +84876,7 @@ func (c *Client) sendTestResponseStringUintArrayArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -84910,7 +84911,7 @@ func (c *Client) TestResponseStringUintNullable(ctx context.Context, request str func (c *Client) sendTestResponseStringUintNullable(ctx context.Context, request string) (res NilUint, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint_nullable"), } @@ -84948,7 +84949,7 @@ func (c *Client) sendTestResponseStringUintNullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -84983,7 +84984,7 @@ func (c *Client) TestResponseStringUintNullableArray(ctx context.Context, reques func (c *Client) sendTestResponseStringUintNullableArray(ctx context.Context, request string) (res []NilUint, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint_nullable_array"), } @@ -85021,7 +85022,7 @@ func (c *Client) sendTestResponseStringUintNullableArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -85056,7 +85057,7 @@ func (c *Client) TestResponseStringUintNullableArrayArray(ctx context.Context, r func (c *Client) sendTestResponseStringUintNullableArrayArray(ctx context.Context, request string) (res [][]NilUint, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_uint_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_uint_nullable_array_array"), } @@ -85094,7 +85095,7 @@ func (c *Client) sendTestResponseStringUintNullableArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -85129,7 +85130,7 @@ func (c *Client) TestResponseStringUnix(ctx context.Context, request string) (ti func (c *Client) sendTestResponseStringUnix(ctx context.Context, request string) (res time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix"), } @@ -85167,7 +85168,7 @@ func (c *Client) sendTestResponseStringUnix(ctx context.Context, request string) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -85202,7 +85203,7 @@ func (c *Client) TestResponseStringUnixArray(ctx context.Context, request string func (c *Client) sendTestResponseStringUnixArray(ctx context.Context, request string) (res []time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix_array"), } @@ -85240,7 +85241,7 @@ func (c *Client) sendTestResponseStringUnixArray(ctx context.Context, request st uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -85275,7 +85276,7 @@ func (c *Client) TestResponseStringUnixArrayArray(ctx context.Context, request s func (c *Client) sendTestResponseStringUnixArrayArray(ctx context.Context, request string) (res [][]time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix_array_array"), } @@ -85313,7 +85314,7 @@ func (c *Client) sendTestResponseStringUnixArrayArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -85348,7 +85349,7 @@ func (c *Client) TestResponseStringUnixMicro(ctx context.Context, request string func (c *Client) sendTestResponseStringUnixMicro(ctx context.Context, request string) (res time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix-micro"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix-micro"), } @@ -85386,7 +85387,7 @@ func (c *Client) sendTestResponseStringUnixMicro(ctx context.Context, request st uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -85421,7 +85422,7 @@ func (c *Client) TestResponseStringUnixMicroArray(ctx context.Context, request s func (c *Client) sendTestResponseStringUnixMicroArray(ctx context.Context, request string) (res []time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix-micro_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix-micro_array"), } @@ -85459,7 +85460,7 @@ func (c *Client) sendTestResponseStringUnixMicroArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -85494,7 +85495,7 @@ func (c *Client) TestResponseStringUnixMicroArrayArray(ctx context.Context, requ func (c *Client) sendTestResponseStringUnixMicroArrayArray(ctx context.Context, request string) (res [][]time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix-micro_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix-micro_array_array"), } @@ -85532,7 +85533,7 @@ func (c *Client) sendTestResponseStringUnixMicroArrayArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -85567,7 +85568,7 @@ func (c *Client) TestResponseStringUnixMicroNullable(ctx context.Context, reques func (c *Client) sendTestResponseStringUnixMicroNullable(ctx context.Context, request string) (res NilStringUnixMicro, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix-micro_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix-micro_nullable"), } @@ -85605,7 +85606,7 @@ func (c *Client) sendTestResponseStringUnixMicroNullable(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -85640,7 +85641,7 @@ func (c *Client) TestResponseStringUnixMicroNullableArray(ctx context.Context, r func (c *Client) sendTestResponseStringUnixMicroNullableArray(ctx context.Context, request string) (res []NilStringUnixMicro, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix-micro_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix-micro_nullable_array"), } @@ -85678,7 +85679,7 @@ func (c *Client) sendTestResponseStringUnixMicroNullableArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -85713,7 +85714,7 @@ func (c *Client) TestResponseStringUnixMicroNullableArrayArray(ctx context.Conte func (c *Client) sendTestResponseStringUnixMicroNullableArrayArray(ctx context.Context, request string) (res [][]NilStringUnixMicro, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix-micro_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix-micro_nullable_array_array"), } @@ -85751,7 +85752,7 @@ func (c *Client) sendTestResponseStringUnixMicroNullableArrayArray(ctx context.C uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -85786,7 +85787,7 @@ func (c *Client) TestResponseStringUnixMilli(ctx context.Context, request string func (c *Client) sendTestResponseStringUnixMilli(ctx context.Context, request string) (res time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix-milli"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix-milli"), } @@ -85824,7 +85825,7 @@ func (c *Client) sendTestResponseStringUnixMilli(ctx context.Context, request st uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -85859,7 +85860,7 @@ func (c *Client) TestResponseStringUnixMilliArray(ctx context.Context, request s func (c *Client) sendTestResponseStringUnixMilliArray(ctx context.Context, request string) (res []time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix-milli_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix-milli_array"), } @@ -85897,7 +85898,7 @@ func (c *Client) sendTestResponseStringUnixMilliArray(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -85932,7 +85933,7 @@ func (c *Client) TestResponseStringUnixMilliArrayArray(ctx context.Context, requ func (c *Client) sendTestResponseStringUnixMilliArrayArray(ctx context.Context, request string) (res [][]time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix-milli_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix-milli_array_array"), } @@ -85970,7 +85971,7 @@ func (c *Client) sendTestResponseStringUnixMilliArrayArray(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -86005,7 +86006,7 @@ func (c *Client) TestResponseStringUnixMilliNullable(ctx context.Context, reques func (c *Client) sendTestResponseStringUnixMilliNullable(ctx context.Context, request string) (res NilStringUnixMilli, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix-milli_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix-milli_nullable"), } @@ -86043,7 +86044,7 @@ func (c *Client) sendTestResponseStringUnixMilliNullable(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -86078,7 +86079,7 @@ func (c *Client) TestResponseStringUnixMilliNullableArray(ctx context.Context, r func (c *Client) sendTestResponseStringUnixMilliNullableArray(ctx context.Context, request string) (res []NilStringUnixMilli, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix-milli_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix-milli_nullable_array"), } @@ -86116,7 +86117,7 @@ func (c *Client) sendTestResponseStringUnixMilliNullableArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -86151,7 +86152,7 @@ func (c *Client) TestResponseStringUnixMilliNullableArrayArray(ctx context.Conte func (c *Client) sendTestResponseStringUnixMilliNullableArrayArray(ctx context.Context, request string) (res [][]NilStringUnixMilli, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix-milli_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix-milli_nullable_array_array"), } @@ -86189,7 +86190,7 @@ func (c *Client) sendTestResponseStringUnixMilliNullableArrayArray(ctx context.C uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -86224,7 +86225,7 @@ func (c *Client) TestResponseStringUnixNano(ctx context.Context, request string) func (c *Client) sendTestResponseStringUnixNano(ctx context.Context, request string) (res time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix-nano"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix-nano"), } @@ -86262,7 +86263,7 @@ func (c *Client) sendTestResponseStringUnixNano(ctx context.Context, request str uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -86297,7 +86298,7 @@ func (c *Client) TestResponseStringUnixNanoArray(ctx context.Context, request st func (c *Client) sendTestResponseStringUnixNanoArray(ctx context.Context, request string) (res []time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix-nano_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix-nano_array"), } @@ -86335,7 +86336,7 @@ func (c *Client) sendTestResponseStringUnixNanoArray(ctx context.Context, reques uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -86370,7 +86371,7 @@ func (c *Client) TestResponseStringUnixNanoArrayArray(ctx context.Context, reque func (c *Client) sendTestResponseStringUnixNanoArrayArray(ctx context.Context, request string) (res [][]time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix-nano_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix-nano_array_array"), } @@ -86408,7 +86409,7 @@ func (c *Client) sendTestResponseStringUnixNanoArrayArray(ctx context.Context, r uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -86443,7 +86444,7 @@ func (c *Client) TestResponseStringUnixNanoNullable(ctx context.Context, request func (c *Client) sendTestResponseStringUnixNanoNullable(ctx context.Context, request string) (res NilStringUnixNano, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix-nano_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix-nano_nullable"), } @@ -86481,7 +86482,7 @@ func (c *Client) sendTestResponseStringUnixNanoNullable(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -86516,7 +86517,7 @@ func (c *Client) TestResponseStringUnixNanoNullableArray(ctx context.Context, re func (c *Client) sendTestResponseStringUnixNanoNullableArray(ctx context.Context, request string) (res []NilStringUnixNano, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix-nano_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix-nano_nullable_array"), } @@ -86554,7 +86555,7 @@ func (c *Client) sendTestResponseStringUnixNanoNullableArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -86589,7 +86590,7 @@ func (c *Client) TestResponseStringUnixNanoNullableArrayArray(ctx context.Contex func (c *Client) sendTestResponseStringUnixNanoNullableArrayArray(ctx context.Context, request string) (res [][]NilStringUnixNano, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix-nano_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix-nano_nullable_array_array"), } @@ -86627,7 +86628,7 @@ func (c *Client) sendTestResponseStringUnixNanoNullableArrayArray(ctx context.Co uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -86662,7 +86663,7 @@ func (c *Client) TestResponseStringUnixNullable(ctx context.Context, request str func (c *Client) sendTestResponseStringUnixNullable(ctx context.Context, request string) (res NilStringUnixSeconds, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix_nullable"), } @@ -86700,7 +86701,7 @@ func (c *Client) sendTestResponseStringUnixNullable(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -86735,7 +86736,7 @@ func (c *Client) TestResponseStringUnixNullableArray(ctx context.Context, reques func (c *Client) sendTestResponseStringUnixNullableArray(ctx context.Context, request string) (res []NilStringUnixSeconds, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix_nullable_array"), } @@ -86773,7 +86774,7 @@ func (c *Client) sendTestResponseStringUnixNullableArray(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -86808,7 +86809,7 @@ func (c *Client) TestResponseStringUnixNullableArrayArray(ctx context.Context, r func (c *Client) sendTestResponseStringUnixNullableArrayArray(ctx context.Context, request string) (res [][]NilStringUnixSeconds, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix_nullable_array_array"), } @@ -86846,7 +86847,7 @@ func (c *Client) sendTestResponseStringUnixNullableArrayArray(ctx context.Contex uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -86881,7 +86882,7 @@ func (c *Client) TestResponseStringUnixSeconds(ctx context.Context, request stri func (c *Client) sendTestResponseStringUnixSeconds(ctx context.Context, request string) (res time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix-seconds"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix-seconds"), } @@ -86919,7 +86920,7 @@ func (c *Client) sendTestResponseStringUnixSeconds(ctx context.Context, request uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -86954,7 +86955,7 @@ func (c *Client) TestResponseStringUnixSecondsArray(ctx context.Context, request func (c *Client) sendTestResponseStringUnixSecondsArray(ctx context.Context, request string) (res []time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix-seconds_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix-seconds_array"), } @@ -86992,7 +86993,7 @@ func (c *Client) sendTestResponseStringUnixSecondsArray(ctx context.Context, req uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -87027,7 +87028,7 @@ func (c *Client) TestResponseStringUnixSecondsArrayArray(ctx context.Context, re func (c *Client) sendTestResponseStringUnixSecondsArrayArray(ctx context.Context, request string) (res [][]time.Time, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix-seconds_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix-seconds_array_array"), } @@ -87065,7 +87066,7 @@ func (c *Client) sendTestResponseStringUnixSecondsArrayArray(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -87100,7 +87101,7 @@ func (c *Client) TestResponseStringUnixSecondsNullable(ctx context.Context, requ func (c *Client) sendTestResponseStringUnixSecondsNullable(ctx context.Context, request string) (res NilStringUnixSeconds, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix-seconds_nullable"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix-seconds_nullable"), } @@ -87138,7 +87139,7 @@ func (c *Client) sendTestResponseStringUnixSecondsNullable(ctx context.Context, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -87173,7 +87174,7 @@ func (c *Client) TestResponseStringUnixSecondsNullableArray(ctx context.Context, func (c *Client) sendTestResponseStringUnixSecondsNullableArray(ctx context.Context, request string) (res []NilStringUnixSeconds, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix-seconds_nullable_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix-seconds_nullable_array"), } @@ -87211,7 +87212,7 @@ func (c *Client) sendTestResponseStringUnixSecondsNullableArray(ctx context.Cont uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -87246,7 +87247,7 @@ func (c *Client) TestResponseStringUnixSecondsNullableArrayArray(ctx context.Con func (c *Client) sendTestResponseStringUnixSecondsNullableArrayArray(ctx context.Context, request string) (res [][]NilStringUnixSeconds, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("test_response_string_unix-seconds_nullable_array_array"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/test_response_string_unix-seconds_nullable_array_array"), } @@ -87284,7 +87285,7 @@ func (c *Client) sendTestResponseStringUnixSecondsNullableArrayArray(ctx context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/examples/ex_tinkoff/oas_client_gen.go b/examples/ex_tinkoff/oas_client_gen.go index 7bbef5f07..7f671c6f5 100644 --- a/examples/ex_tinkoff/oas_client_gen.go +++ b/examples/ex_tinkoff/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -213,7 +214,7 @@ func (c *Client) MarketBondsGet(ctx context.Context) (MarketBondsGetRes, error) func (c *Client) sendMarketBondsGet(ctx context.Context) (res MarketBondsGetRes, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/market/bonds"), } @@ -251,7 +252,7 @@ func (c *Client) sendMarketBondsGet(ctx context.Context) (res MarketBondsGetRes, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -317,7 +318,7 @@ func (c *Client) MarketCandlesGet(ctx context.Context, params MarketCandlesGetPa func (c *Client) sendMarketCandlesGet(ctx context.Context, params MarketCandlesGetParams) (res MarketCandlesGetRes, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/market/candles"), } @@ -415,7 +416,7 @@ func (c *Client) sendMarketCandlesGet(ctx context.Context, params MarketCandlesG u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -481,7 +482,7 @@ func (c *Client) MarketCurrenciesGet(ctx context.Context) (MarketCurrenciesGetRe func (c *Client) sendMarketCurrenciesGet(ctx context.Context) (res MarketCurrenciesGetRes, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/market/currencies"), } @@ -519,7 +520,7 @@ func (c *Client) sendMarketCurrenciesGet(ctx context.Context) (res MarketCurrenc uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -585,7 +586,7 @@ func (c *Client) MarketEtfsGet(ctx context.Context) (MarketEtfsGetRes, error) { func (c *Client) sendMarketEtfsGet(ctx context.Context) (res MarketEtfsGetRes, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/market/etfs"), } @@ -623,7 +624,7 @@ func (c *Client) sendMarketEtfsGet(ctx context.Context) (res MarketEtfsGetRes, e uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -689,7 +690,7 @@ func (c *Client) MarketOrderbookGet(ctx context.Context, params MarketOrderbookG func (c *Client) sendMarketOrderbookGet(ctx context.Context, params MarketOrderbookGetParams) (res MarketOrderbookGetRes, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/market/orderbook"), } @@ -759,7 +760,7 @@ func (c *Client) sendMarketOrderbookGet(ctx context.Context, params MarketOrderb u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -825,7 +826,7 @@ func (c *Client) MarketSearchByFigiGet(ctx context.Context, params MarketSearchB func (c *Client) sendMarketSearchByFigiGet(ctx context.Context, params MarketSearchByFigiGetParams) (res MarketSearchByFigiGetRes, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/market/search/by-figi"), } @@ -881,7 +882,7 @@ func (c *Client) sendMarketSearchByFigiGet(ctx context.Context, params MarketSea u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -947,7 +948,7 @@ func (c *Client) MarketSearchByTickerGet(ctx context.Context, params MarketSearc func (c *Client) sendMarketSearchByTickerGet(ctx context.Context, params MarketSearchByTickerGetParams) (res MarketSearchByTickerGetRes, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/market/search/by-ticker"), } @@ -1003,7 +1004,7 @@ func (c *Client) sendMarketSearchByTickerGet(ctx context.Context, params MarketS u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1069,7 +1070,7 @@ func (c *Client) MarketStocksGet(ctx context.Context) (MarketStocksGetRes, error func (c *Client) sendMarketStocksGet(ctx context.Context) (res MarketStocksGetRes, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/market/stocks"), } @@ -1107,7 +1108,7 @@ func (c *Client) sendMarketStocksGet(ctx context.Context) (res MarketStocksGetRe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1173,7 +1174,7 @@ func (c *Client) OperationsGet(ctx context.Context, params OperationsGetParams) func (c *Client) sendOperationsGet(ctx context.Context, params OperationsGetParams) (res OperationsGetRes, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/operations"), } @@ -1277,7 +1278,7 @@ func (c *Client) sendOperationsGet(ctx context.Context, params OperationsGetPara u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1343,7 +1344,7 @@ func (c *Client) OrdersCancelPost(ctx context.Context, params OrdersCancelPostPa func (c *Client) sendOrdersCancelPost(ctx context.Context, params OrdersCancelPostParams) (res OrdersCancelPostRes, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/orders/cancel"), } @@ -1416,7 +1417,7 @@ func (c *Client) sendOrdersCancelPost(ctx context.Context, params OrdersCancelPo u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1482,7 +1483,7 @@ func (c *Client) OrdersGet(ctx context.Context, params OrdersGetParams) (OrdersG func (c *Client) sendOrdersGet(ctx context.Context, params OrdersGetParams) (res OrdersGetRes, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/orders"), } @@ -1541,7 +1542,7 @@ func (c *Client) sendOrdersGet(ctx context.Context, params OrdersGetParams) (res u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1607,7 +1608,7 @@ func (c *Client) OrdersLimitOrderPost(ctx context.Context, request *LimitOrderRe func (c *Client) sendOrdersLimitOrderPost(ctx context.Context, request *LimitOrderRequest, params OrdersLimitOrderPostParams) (res OrdersLimitOrderPostRes, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/orders/limit-order"), } // Validate request before sending. @@ -1689,7 +1690,7 @@ func (c *Client) sendOrdersLimitOrderPost(ctx context.Context, request *LimitOrd u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1758,7 +1759,7 @@ func (c *Client) OrdersMarketOrderPost(ctx context.Context, request *MarketOrder func (c *Client) sendOrdersMarketOrderPost(ctx context.Context, request *MarketOrderRequest, params OrdersMarketOrderPostParams) (res OrdersMarketOrderPostRes, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/orders/market-order"), } // Validate request before sending. @@ -1840,7 +1841,7 @@ func (c *Client) sendOrdersMarketOrderPost(ctx context.Context, request *MarketO u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1909,7 +1910,7 @@ func (c *Client) PortfolioCurrenciesGet(ctx context.Context, params PortfolioCur func (c *Client) sendPortfolioCurrenciesGet(ctx context.Context, params PortfolioCurrenciesGetParams) (res PortfolioCurrenciesGetRes, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/portfolio/currencies"), } @@ -1968,7 +1969,7 @@ func (c *Client) sendPortfolioCurrenciesGet(ctx context.Context, params Portfoli u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2034,7 +2035,7 @@ func (c *Client) PortfolioGet(ctx context.Context, params PortfolioGetParams) (P func (c *Client) sendPortfolioGet(ctx context.Context, params PortfolioGetParams) (res PortfolioGetRes, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/portfolio"), } @@ -2093,7 +2094,7 @@ func (c *Client) sendPortfolioGet(ctx context.Context, params PortfolioGetParams u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2159,7 +2160,7 @@ func (c *Client) SandboxClearPost(ctx context.Context, params SandboxClearPostPa func (c *Client) sendSandboxClearPost(ctx context.Context, params SandboxClearPostParams) (res SandboxClearPostRes, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sandbox/clear"), } @@ -2218,7 +2219,7 @@ func (c *Client) sendSandboxClearPost(ctx context.Context, params SandboxClearPo u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2284,7 +2285,7 @@ func (c *Client) SandboxCurrenciesBalancePost(ctx context.Context, request *Sand func (c *Client) sendSandboxCurrenciesBalancePost(ctx context.Context, request *SandboxSetCurrencyBalanceRequest, params SandboxCurrenciesBalancePostParams) (res SandboxCurrenciesBalancePostRes, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sandbox/currencies/balance"), } // Validate request before sending. @@ -2352,7 +2353,7 @@ func (c *Client) sendSandboxCurrenciesBalancePost(ctx context.Context, request * u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2421,7 +2422,7 @@ func (c *Client) SandboxPositionsBalancePost(ctx context.Context, request *Sandb func (c *Client) sendSandboxPositionsBalancePost(ctx context.Context, request *SandboxSetPositionBalanceRequest, params SandboxPositionsBalancePostParams) (res SandboxPositionsBalancePostRes, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sandbox/positions/balance"), } // Validate request before sending. @@ -2489,7 +2490,7 @@ func (c *Client) sendSandboxPositionsBalancePost(ctx context.Context, request *S u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2558,7 +2559,7 @@ func (c *Client) SandboxRegisterPost(ctx context.Context, request OptSandboxRegi func (c *Client) sendSandboxRegisterPost(ctx context.Context, request OptSandboxRegisterRequest) (res SandboxRegisterPostRes, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sandbox/register"), } // Validate request before sending. @@ -2612,7 +2613,7 @@ func (c *Client) sendSandboxRegisterPost(ctx context.Context, request OptSandbox uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2681,7 +2682,7 @@ func (c *Client) SandboxRemovePost(ctx context.Context, params SandboxRemovePost func (c *Client) sendSandboxRemovePost(ctx context.Context, params SandboxRemovePostParams) (res SandboxRemovePostRes, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/sandbox/remove"), } @@ -2740,7 +2741,7 @@ func (c *Client) sendSandboxRemovePost(ctx context.Context, params SandboxRemove u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2806,7 +2807,7 @@ func (c *Client) UserAccountsGet(ctx context.Context) (UserAccountsGetRes, error func (c *Client) sendUserAccountsGet(ctx context.Context) (res UserAccountsGetRes, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/user/accounts"), } @@ -2844,7 +2845,7 @@ func (c *Client) sendUserAccountsGet(ctx context.Context) (res UserAccountsGetRe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/gen/_template/client.tmpl b/gen/_template/client.tmpl index 13562c90a..bc40d6129 100644 --- a/gen/_template/client.tmpl +++ b/gen/_template/client.tmpl @@ -145,7 +145,7 @@ func (c *{{ if $op.WebhookInfo }}Webhook{{ end }}Client) send{{ $op.Name }}(ctx {{ $attr.String }}, {{- end }} {{- if not $op.WebhookInfo }} - semconv.HTTPMethodKey.String({{ upper $op.Spec.HTTPMethod | quote }}), + semconv.HTTPMethodKey.String({{ httpMethod $op.Spec.HTTPMethod }}), semconv.HTTPRouteKey.String({{ quote $op.Spec.Path }}), {{- end }} } @@ -233,7 +233,7 @@ func (c *{{ if $op.WebhookInfo }}Webhook{{ end }}Client) send{{ $op.Name }}(ctx {{- end }} stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, {{ $op.Spec.HTTPMethod | upper | quote }}, u) + r, err := ht.NewRequest(ctx, {{ httpMethod $op.Spec.HTTPMethod }}, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/gen/templates.go b/gen/templates.go index 8aaff1920..123892573 100644 --- a/gen/templates.go +++ b/gen/templates.go @@ -3,6 +3,7 @@ package gen import ( "embed" "fmt" + "net/http" "strconv" "strings" "sync" @@ -208,6 +209,39 @@ func templateFunctions() template.FuncMap { }, "isObjectParam": isObjectParam, "paramObjectFields": paramObjectFields, + "httpMethod": func(k string) string { + switch strings.ToUpper(k) { + case http.MethodGet: + return "http.MethodGet" + + case http.MethodHead: + return "http.MethodHead" + + case http.MethodPost: + return "http.MethodPost" + + case http.MethodPut: + return "http.MethodPut" + + case http.MethodPatch: + return "http.MethodPatch" + + case http.MethodDelete: + return "http.MethodDelete" + + case http.MethodConnect: + return "http.MethodConnect" + + case http.MethodOptions: + return "http.MethodOptions" + + case http.MethodTrace: + return "http.MethodTrace" + + default: + return "" + } + }, } } diff --git a/internal/integration/referenced_path_item/oas_client_gen.go b/internal/integration/referenced_path_item/oas_client_gen.go index 70afcac83..7ba26bee7 100644 --- a/internal/integration/referenced_path_item/oas_client_gen.go +++ b/internal/integration/referenced_path_item/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -85,7 +86,7 @@ func (c *Client) FooGet(ctx context.Context) (string, error) { func (c *Client) sendFooGet(ctx context.Context) (res string, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/foo"), } @@ -123,7 +124,7 @@ func (c *Client) sendFooGet(ctx context.Context) (res string, err error) { uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/internal/integration/sample_api/oas_client_gen.go b/internal/integration/sample_api/oas_client_gen.go index d0f21e152..9dd82961c 100644 --- a/internal/integration/sample_api/oas_client_gen.go +++ b/internal/integration/sample_api/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -234,7 +235,7 @@ func (c *Client) DataGetFormat(ctx context.Context, params DataGetFormatParams) func (c *Client) sendDataGetFormat(ctx context.Context, params DataGetFormatParams) (res string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("dataGetFormat"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/name/{id}/{foo}1234{bar}-{baz}!{kek}"), } @@ -366,7 +367,7 @@ func (c *Client) sendDataGetFormat(ctx context.Context, params DataGetFormatPara uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -398,7 +399,7 @@ func (c *Client) DefaultTest(ctx context.Context, request *DefaultTest, params D func (c *Client) sendDefaultTest(ctx context.Context, request *DefaultTest, params DefaultTestParams) (res int32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("defaultTest"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/defaultTest"), } // Validate request before sending. @@ -466,7 +467,7 @@ func (c *Client) sendDefaultTest(ctx context.Context, request *DefaultTest, para u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -503,7 +504,7 @@ func (c *Client) ErrorGet(ctx context.Context) (*ErrorStatusCode, error) { func (c *Client) sendErrorGet(ctx context.Context) (res *ErrorStatusCode, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("errorGet"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/error"), } @@ -541,7 +542,7 @@ func (c *Client) sendErrorGet(ctx context.Context) (res *ErrorStatusCode, err er uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -575,7 +576,7 @@ func (c *Client) FoobarGet(ctx context.Context, params FoobarGetParams) (FoobarG func (c *Client) sendFoobarGet(ctx context.Context, params FoobarGetParams) (res FoobarGetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("foobarGet"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/foobar"), } @@ -645,7 +646,7 @@ func (c *Client) sendFoobarGet(ctx context.Context, params FoobarGetParams) (res u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -679,7 +680,7 @@ func (c *Client) FoobarPost(ctx context.Context, request OptPet) (FoobarPostRes, func (c *Client) sendFoobarPost(ctx context.Context, request OptPet) (res FoobarPostRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("foobarPost"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/foobar"), } // Validate request before sending. @@ -733,7 +734,7 @@ func (c *Client) sendFoobarPost(ctx context.Context, request OptPet) (res Foobar uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -767,7 +768,7 @@ func (c *Client) FoobarPut(ctx context.Context) (*FoobarPutDef, error) { func (c *Client) sendFoobarPut(ctx context.Context) (res *FoobarPutDef, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/foobar"), } @@ -805,7 +806,7 @@ func (c *Client) sendFoobarPut(ctx context.Context) (res *FoobarPutDef, err erro uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -837,7 +838,7 @@ func (c *Client) NoAdditionalPropertiesTest(ctx context.Context) (*NoAdditionalP func (c *Client) sendNoAdditionalPropertiesTest(ctx context.Context) (res *NoAdditionalPropertiesTest, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("noAdditionalPropertiesTest"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/noAdditionalPropertiesTest"), } @@ -875,7 +876,7 @@ func (c *Client) sendNoAdditionalPropertiesTest(ctx context.Context) (res *NoAdd uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -907,7 +908,7 @@ func (c *Client) NullableDefaultResponse(ctx context.Context) (*NilIntStatusCode func (c *Client) sendNullableDefaultResponse(ctx context.Context) (res *NilIntStatusCode, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("nullableDefaultResponse"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/nullableDefaultResponse"), } @@ -945,7 +946,7 @@ func (c *Client) sendNullableDefaultResponse(ctx context.Context) (res *NilIntSt uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -977,7 +978,7 @@ func (c *Client) OneofBug(ctx context.Context, request *OneOfBugs) error { func (c *Client) sendOneofBug(ctx context.Context, request *OneOfBugs) (res *OneofBugOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("oneofBug"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/oneofBug"), } // Validate request before sending. @@ -1024,7 +1025,7 @@ func (c *Client) sendOneofBug(ctx context.Context, request *OneOfBugs) (res *One uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1058,7 +1059,7 @@ func (c *Client) PatternRecursiveMapGet(ctx context.Context) (PatternRecursiveMa func (c *Client) sendPatternRecursiveMapGet(ctx context.Context) (res PatternRecursiveMap, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/patternRecursiveMap"), } @@ -1096,7 +1097,7 @@ func (c *Client) sendPatternRecursiveMapGet(ctx context.Context) (res PatternRec uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1130,7 +1131,7 @@ func (c *Client) PetCreate(ctx context.Context, request OptPet) (*Pet, error) { func (c *Client) sendPetCreate(ctx context.Context, request OptPet) (res *Pet, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("petCreate"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/pet"), } // Validate request before sending. @@ -1184,7 +1185,7 @@ func (c *Client) sendPetCreate(ctx context.Context, request OptPet) (res *Pet, e uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1221,7 +1222,7 @@ func (c *Client) PetFriendsNamesByID(ctx context.Context, params PetFriendsNames func (c *Client) sendPetFriendsNamesByID(ctx context.Context, params PetFriendsNamesByIDParams) (res []string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("petFriendsNamesByID"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/pet/friendNames/{id}"), } @@ -1277,7 +1278,7 @@ func (c *Client) sendPetFriendsNamesByID(ctx context.Context, params PetFriendsN uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1311,7 +1312,7 @@ func (c *Client) PetGet(ctx context.Context, params PetGetParams) (PetGetRes, er func (c *Client) sendPetGet(ctx context.Context, params PetGetParams) (res PetGetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("petGet"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/pet"), } @@ -1381,7 +1382,7 @@ func (c *Client) sendPetGet(ctx context.Context, params PetGetParams) (res PetGe u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1458,7 +1459,7 @@ func (c *Client) PetGetAvatarByID(ctx context.Context, params PetGetAvatarByIDPa func (c *Client) sendPetGetAvatarByID(ctx context.Context, params PetGetAvatarByIDParams) (res PetGetAvatarByIDRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("petGetAvatarByID"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/pet/avatar"), } @@ -1514,7 +1515,7 @@ func (c *Client) sendPetGetAvatarByID(ctx context.Context, params PetGetAvatarBy u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1548,7 +1549,7 @@ func (c *Client) PetGetAvatarByName(ctx context.Context, params PetGetAvatarByNa func (c *Client) sendPetGetAvatarByName(ctx context.Context, params PetGetAvatarByNameParams) (res PetGetAvatarByNameRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("petGetAvatarByName"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/pet/{name}/avatar"), } @@ -1605,7 +1606,7 @@ func (c *Client) sendPetGetAvatarByName(ctx context.Context, params PetGetAvatar uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1639,7 +1640,7 @@ func (c *Client) PetGetByName(ctx context.Context, params PetGetByNameParams) (* func (c *Client) sendPetGetByName(ctx context.Context, params PetGetByNameParams) (res *Pet, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("petGetByName"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/pet/{name}"), } @@ -1695,7 +1696,7 @@ func (c *Client) sendPetGetByName(ctx context.Context, params PetGetByNameParams uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1729,7 +1730,7 @@ func (c *Client) PetNameByID(ctx context.Context, params PetNameByIDParams) (str func (c *Client) sendPetNameByID(ctx context.Context, params PetNameByIDParams) (res string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("petNameByID"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/pet/name/{id}"), } @@ -1785,7 +1786,7 @@ func (c *Client) sendPetNameByID(ctx context.Context, params PetNameByIDParams) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1816,7 +1817,7 @@ func (c *Client) PetUpdateNameAliasPost(ctx context.Context, request OptPetName) func (c *Client) sendPetUpdateNameAliasPost(ctx context.Context, request OptPetName) (res *PetUpdateNameAliasPostDef, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/pet/updateNameAlias"), } // Validate request before sending. @@ -1870,7 +1871,7 @@ func (c *Client) sendPetUpdateNameAliasPost(ctx context.Context, request OptPetN uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1904,7 +1905,7 @@ func (c *Client) PetUpdateNamePost(ctx context.Context, request OptString) (*Pet func (c *Client) sendPetUpdateNamePost(ctx context.Context, request OptString) (res *PetUpdateNamePostDef, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/pet/updateName"), } // Validate request before sending. @@ -1966,7 +1967,7 @@ func (c *Client) sendPetUpdateNamePost(ctx context.Context, request OptString) ( uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2003,7 +2004,7 @@ func (c *Client) PetUploadAvatarByID(ctx context.Context, request PetUploadAvata func (c *Client) sendPetUploadAvatarByID(ctx context.Context, request PetUploadAvatarByIDReq, params PetUploadAvatarByIDParams) (res PetUploadAvatarByIDRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("petUploadAvatarByID"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/pet/avatar"), } @@ -2059,7 +2060,7 @@ func (c *Client) sendPetUploadAvatarByID(ctx context.Context, request PetUploadA u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2093,7 +2094,7 @@ func (c *Client) RecursiveArrayGet(ctx context.Context) (RecursiveArray, error) func (c *Client) sendRecursiveArrayGet(ctx context.Context) (res RecursiveArray, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/recursiveArray"), } @@ -2131,7 +2132,7 @@ func (c *Client) sendRecursiveArrayGet(ctx context.Context) (res RecursiveArray, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2162,7 +2163,7 @@ func (c *Client) RecursiveMapGet(ctx context.Context) (*RecursiveMap, error) { func (c *Client) sendRecursiveMapGet(ctx context.Context) (res *RecursiveMap, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/recursiveMap"), } @@ -2200,7 +2201,7 @@ func (c *Client) sendRecursiveMapGet(ctx context.Context) (res *RecursiveMap, er uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2232,7 +2233,7 @@ func (c *Client) SecurityTest(ctx context.Context) (string, error) { func (c *Client) sendSecurityTest(ctx context.Context) (res string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("securityTest"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/securityTest"), } @@ -2270,7 +2271,7 @@ func (c *Client) sendSecurityTest(ctx context.Context) (res string, err error) { uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2334,7 +2335,7 @@ func (c *Client) StringIntMapGet(ctx context.Context) (*StringIntMap, error) { func (c *Client) sendStringIntMapGet(ctx context.Context) (res *StringIntMap, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/stringIntMap"), } @@ -2372,7 +2373,7 @@ func (c *Client) sendStringIntMapGet(ctx context.Context) (res *StringIntMap, er uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2404,7 +2405,7 @@ func (c *Client) TestFloatValidation(ctx context.Context, request *TestFloatVali func (c *Client) sendTestFloatValidation(ctx context.Context, request *TestFloatValidation) (res *TestFloatValidationOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("testFloatValidation"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/testFloatValidation"), } // Validate request before sending. @@ -2451,7 +2452,7 @@ func (c *Client) sendTestFloatValidation(ctx context.Context, request *TestFloat uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2486,7 +2487,7 @@ func (c *Client) TestInlineOneof(ctx context.Context) (*TestInlineOneOf, error) func (c *Client) sendTestInlineOneof(ctx context.Context) (res *TestInlineOneOf, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("testInlineOneof"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/testInlineOneof"), } @@ -2524,7 +2525,7 @@ func (c *Client) sendTestInlineOneof(ctx context.Context) (res *TestInlineOneOf, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2556,7 +2557,7 @@ func (c *Client) TestNullableOneofs(ctx context.Context) (TestNullableOneofsRes, func (c *Client) sendTestNullableOneofs(ctx context.Context) (res TestNullableOneofsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("testNullableOneofs"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/testNullableOneofs"), } @@ -2594,7 +2595,7 @@ func (c *Client) sendTestNullableOneofs(ctx context.Context) (res TestNullableOn uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2626,7 +2627,7 @@ func (c *Client) TestTuple(ctx context.Context) (*TupleTest, error) { func (c *Client) sendTestTuple(ctx context.Context) (res *TupleTest, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("testTuple"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/testTuple"), } @@ -2664,7 +2665,7 @@ func (c *Client) sendTestTuple(ctx context.Context) (res *TupleTest, err error) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2696,7 +2697,7 @@ func (c *Client) TestTupleNamed(ctx context.Context) (*TupleNamedTest, error) { func (c *Client) sendTestTupleNamed(ctx context.Context) (res *TupleNamedTest, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("testTupleNamed"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/testTupleNamed"), } @@ -2734,7 +2735,7 @@ func (c *Client) sendTestTupleNamed(ctx context.Context) (res *TupleNamedTest, e uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2766,7 +2767,7 @@ func (c *Client) TestUniqueItems(ctx context.Context) (*UniqueItemsTest, error) func (c *Client) sendTestUniqueItems(ctx context.Context) (res *UniqueItemsTest, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("testUniqueItems"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/testUniqueItems"), } @@ -2804,7 +2805,7 @@ func (c *Client) sendTestUniqueItems(ctx context.Context) (res *UniqueItemsTest, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/internal/integration/sample_api_ns/oas_client_gen.go b/internal/integration/sample_api_ns/oas_client_gen.go index 8997c1277..c134cac2b 100644 --- a/internal/integration/sample_api_ns/oas_client_gen.go +++ b/internal/integration/sample_api_ns/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -230,7 +231,7 @@ func (c *Client) DataGetFormat(ctx context.Context, params DataGetFormatParams) func (c *Client) sendDataGetFormat(ctx context.Context, params DataGetFormatParams) (res string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("dataGetFormat"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/name/{id}/{foo}1234{bar}-{baz}!{kek}"), } @@ -362,7 +363,7 @@ func (c *Client) sendDataGetFormat(ctx context.Context, params DataGetFormatPara uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -394,7 +395,7 @@ func (c *Client) DefaultTest(ctx context.Context, request *DefaultTest, params D func (c *Client) sendDefaultTest(ctx context.Context, request *DefaultTest, params DefaultTestParams) (res int32, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("defaultTest"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/defaultTest"), } // Validate request before sending. @@ -462,7 +463,7 @@ func (c *Client) sendDefaultTest(ctx context.Context, request *DefaultTest, para u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -499,7 +500,7 @@ func (c *Client) ErrorGet(ctx context.Context) (*ErrorStatusCode, error) { func (c *Client) sendErrorGet(ctx context.Context) (res *ErrorStatusCode, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("errorGet"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/error"), } @@ -537,7 +538,7 @@ func (c *Client) sendErrorGet(ctx context.Context) (res *ErrorStatusCode, err er uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -571,7 +572,7 @@ func (c *Client) FoobarGet(ctx context.Context, params FoobarGetParams) (FoobarG func (c *Client) sendFoobarGet(ctx context.Context, params FoobarGetParams) (res FoobarGetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("foobarGet"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/foobar"), } @@ -641,7 +642,7 @@ func (c *Client) sendFoobarGet(ctx context.Context, params FoobarGetParams) (res u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -675,7 +676,7 @@ func (c *Client) FoobarPost(ctx context.Context, request OptPet) (FoobarPostRes, func (c *Client) sendFoobarPost(ctx context.Context, request OptPet) (res FoobarPostRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("foobarPost"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/foobar"), } // Validate request before sending. @@ -729,7 +730,7 @@ func (c *Client) sendFoobarPost(ctx context.Context, request OptPet) (res Foobar uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -763,7 +764,7 @@ func (c *Client) FoobarPut(ctx context.Context) (*FoobarPutDef, error) { func (c *Client) sendFoobarPut(ctx context.Context) (res *FoobarPutDef, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("PUT"), + semconv.HTTPMethodKey.String(http.MethodPut), semconv.HTTPRouteKey.String("/foobar"), } @@ -801,7 +802,7 @@ func (c *Client) sendFoobarPut(ctx context.Context) (res *FoobarPutDef, err erro uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "PUT", u) + r, err := ht.NewRequest(ctx, http.MethodPut, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -833,7 +834,7 @@ func (c *Client) NoAdditionalPropertiesTest(ctx context.Context) (*NoAdditionalP func (c *Client) sendNoAdditionalPropertiesTest(ctx context.Context) (res *NoAdditionalPropertiesTest, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("noAdditionalPropertiesTest"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/noAdditionalPropertiesTest"), } @@ -871,7 +872,7 @@ func (c *Client) sendNoAdditionalPropertiesTest(ctx context.Context) (res *NoAdd uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -903,7 +904,7 @@ func (c *Client) NullableDefaultResponse(ctx context.Context) (*NilIntStatusCode func (c *Client) sendNullableDefaultResponse(ctx context.Context) (res *NilIntStatusCode, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("nullableDefaultResponse"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/nullableDefaultResponse"), } @@ -941,7 +942,7 @@ func (c *Client) sendNullableDefaultResponse(ctx context.Context) (res *NilIntSt uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -973,7 +974,7 @@ func (c *Client) OneofBug(ctx context.Context, request *OneOfBugs) error { func (c *Client) sendOneofBug(ctx context.Context, request *OneOfBugs) (res *OneofBugOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("oneofBug"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/oneofBug"), } // Validate request before sending. @@ -1020,7 +1021,7 @@ func (c *Client) sendOneofBug(ctx context.Context, request *OneOfBugs) (res *One uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1054,7 +1055,7 @@ func (c *Client) PatternRecursiveMapGet(ctx context.Context) (PatternRecursiveMa func (c *Client) sendPatternRecursiveMapGet(ctx context.Context) (res PatternRecursiveMap, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/patternRecursiveMap"), } @@ -1092,7 +1093,7 @@ func (c *Client) sendPatternRecursiveMapGet(ctx context.Context) (res PatternRec uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1126,7 +1127,7 @@ func (c *Client) PetCreate(ctx context.Context, request OptPet) (*Pet, error) { func (c *Client) sendPetCreate(ctx context.Context, request OptPet) (res *Pet, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("petCreate"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/pet"), } // Validate request before sending. @@ -1180,7 +1181,7 @@ func (c *Client) sendPetCreate(ctx context.Context, request OptPet) (res *Pet, e uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1217,7 +1218,7 @@ func (c *Client) PetFriendsNamesByID(ctx context.Context, params PetFriendsNames func (c *Client) sendPetFriendsNamesByID(ctx context.Context, params PetFriendsNamesByIDParams) (res []string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("petFriendsNamesByID"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/pet/friendNames/{id}"), } @@ -1273,7 +1274,7 @@ func (c *Client) sendPetFriendsNamesByID(ctx context.Context, params PetFriendsN uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1307,7 +1308,7 @@ func (c *Client) PetGet(ctx context.Context, params PetGetParams) (PetGetRes, er func (c *Client) sendPetGet(ctx context.Context, params PetGetParams) (res PetGetRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("petGet"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/pet"), } @@ -1377,7 +1378,7 @@ func (c *Client) sendPetGet(ctx context.Context, params PetGetParams) (res PetGe u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1454,7 +1455,7 @@ func (c *Client) PetGetAvatarByID(ctx context.Context, params PetGetAvatarByIDPa func (c *Client) sendPetGetAvatarByID(ctx context.Context, params PetGetAvatarByIDParams) (res PetGetAvatarByIDRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("petGetAvatarByID"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/pet/avatar"), } @@ -1510,7 +1511,7 @@ func (c *Client) sendPetGetAvatarByID(ctx context.Context, params PetGetAvatarBy u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1544,7 +1545,7 @@ func (c *Client) PetGetAvatarByName(ctx context.Context, params PetGetAvatarByNa func (c *Client) sendPetGetAvatarByName(ctx context.Context, params PetGetAvatarByNameParams) (res PetGetAvatarByNameRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("petGetAvatarByName"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/pet/{name}/avatar"), } @@ -1601,7 +1602,7 @@ func (c *Client) sendPetGetAvatarByName(ctx context.Context, params PetGetAvatar uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1635,7 +1636,7 @@ func (c *Client) PetGetByName(ctx context.Context, params PetGetByNameParams) (* func (c *Client) sendPetGetByName(ctx context.Context, params PetGetByNameParams) (res *Pet, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("petGetByName"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/pet/{name}"), } @@ -1691,7 +1692,7 @@ func (c *Client) sendPetGetByName(ctx context.Context, params PetGetByNameParams uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1725,7 +1726,7 @@ func (c *Client) PetNameByID(ctx context.Context, params PetNameByIDParams) (str func (c *Client) sendPetNameByID(ctx context.Context, params PetNameByIDParams) (res string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("petNameByID"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/pet/name/{id}"), } @@ -1781,7 +1782,7 @@ func (c *Client) sendPetNameByID(ctx context.Context, params PetNameByIDParams) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1812,7 +1813,7 @@ func (c *Client) PetUpdateNameAliasPost(ctx context.Context, request OptPetName) func (c *Client) sendPetUpdateNameAliasPost(ctx context.Context, request OptPetName) (res *PetUpdateNameAliasPostDef, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/pet/updateNameAlias"), } // Validate request before sending. @@ -1866,7 +1867,7 @@ func (c *Client) sendPetUpdateNameAliasPost(ctx context.Context, request OptPetN uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1900,7 +1901,7 @@ func (c *Client) PetUpdateNamePost(ctx context.Context, request OptString) (*Pet func (c *Client) sendPetUpdateNamePost(ctx context.Context, request OptString) (res *PetUpdateNamePostDef, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/pet/updateName"), } // Validate request before sending. @@ -1962,7 +1963,7 @@ func (c *Client) sendPetUpdateNamePost(ctx context.Context, request OptString) ( uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1999,7 +2000,7 @@ func (c *Client) PetUploadAvatarByID(ctx context.Context, request PetUploadAvata func (c *Client) sendPetUploadAvatarByID(ctx context.Context, request PetUploadAvatarByIDReq, params PetUploadAvatarByIDParams) (res PetUploadAvatarByIDRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("petUploadAvatarByID"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/pet/avatar"), } @@ -2055,7 +2056,7 @@ func (c *Client) sendPetUploadAvatarByID(ctx context.Context, request PetUploadA u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2089,7 +2090,7 @@ func (c *Client) RecursiveArrayGet(ctx context.Context) (RecursiveArray, error) func (c *Client) sendRecursiveArrayGet(ctx context.Context) (res RecursiveArray, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/recursiveArray"), } @@ -2127,7 +2128,7 @@ func (c *Client) sendRecursiveArrayGet(ctx context.Context) (res RecursiveArray, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2158,7 +2159,7 @@ func (c *Client) RecursiveMapGet(ctx context.Context) (*RecursiveMap, error) { func (c *Client) sendRecursiveMapGet(ctx context.Context) (res *RecursiveMap, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/recursiveMap"), } @@ -2196,7 +2197,7 @@ func (c *Client) sendRecursiveMapGet(ctx context.Context) (res *RecursiveMap, er uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2228,7 +2229,7 @@ func (c *Client) SecurityTest(ctx context.Context) (string, error) { func (c *Client) sendSecurityTest(ctx context.Context) (res string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("securityTest"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/securityTest"), } @@ -2266,7 +2267,7 @@ func (c *Client) sendSecurityTest(ctx context.Context) (res string, err error) { uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2330,7 +2331,7 @@ func (c *Client) StringIntMapGet(ctx context.Context) (*StringIntMap, error) { func (c *Client) sendStringIntMapGet(ctx context.Context) (res *StringIntMap, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/stringIntMap"), } @@ -2368,7 +2369,7 @@ func (c *Client) sendStringIntMapGet(ctx context.Context) (res *StringIntMap, er uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2400,7 +2401,7 @@ func (c *Client) TestFloatValidation(ctx context.Context, request *TestFloatVali func (c *Client) sendTestFloatValidation(ctx context.Context, request *TestFloatValidation) (res *TestFloatValidationOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("testFloatValidation"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/testFloatValidation"), } // Validate request before sending. @@ -2447,7 +2448,7 @@ func (c *Client) sendTestFloatValidation(ctx context.Context, request *TestFloat uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2482,7 +2483,7 @@ func (c *Client) TestInlineOneof(ctx context.Context) (*TestInlineOneOf, error) func (c *Client) sendTestInlineOneof(ctx context.Context) (res *TestInlineOneOf, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("testInlineOneof"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/testInlineOneof"), } @@ -2520,7 +2521,7 @@ func (c *Client) sendTestInlineOneof(ctx context.Context) (res *TestInlineOneOf, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2552,7 +2553,7 @@ func (c *Client) TestNullableOneofs(ctx context.Context) (TestNullableOneofsRes, func (c *Client) sendTestNullableOneofs(ctx context.Context) (res TestNullableOneofsRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("testNullableOneofs"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/testNullableOneofs"), } @@ -2590,7 +2591,7 @@ func (c *Client) sendTestNullableOneofs(ctx context.Context) (res TestNullableOn uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2622,7 +2623,7 @@ func (c *Client) TestTuple(ctx context.Context) (*TupleTest, error) { func (c *Client) sendTestTuple(ctx context.Context) (res *TupleTest, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("testTuple"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/testTuple"), } @@ -2660,7 +2661,7 @@ func (c *Client) sendTestTuple(ctx context.Context) (res *TupleTest, err error) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2692,7 +2693,7 @@ func (c *Client) TestTupleNamed(ctx context.Context) (*TupleNamedTest, error) { func (c *Client) sendTestTupleNamed(ctx context.Context) (res *TupleNamedTest, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("testTupleNamed"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/testTupleNamed"), } @@ -2730,7 +2731,7 @@ func (c *Client) sendTestTupleNamed(ctx context.Context) (res *TupleNamedTest, e uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -2762,7 +2763,7 @@ func (c *Client) TestUniqueItems(ctx context.Context) (*UniqueItemsTest, error) func (c *Client) sendTestUniqueItems(ctx context.Context) (res *UniqueItemsTest, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("testUniqueItems"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/testUniqueItems"), } @@ -2800,7 +2801,7 @@ func (c *Client) sendTestUniqueItems(ctx context.Context) (res *UniqueItemsTest, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/internal/integration/sample_err/oas_client_gen.go b/internal/integration/sample_err/oas_client_gen.go index f0d5e1243..f930f64e1 100644 --- a/internal/integration/sample_err/oas_client_gen.go +++ b/internal/integration/sample_err/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -101,7 +102,7 @@ func (c *Client) DataCreate(ctx context.Context, request OptData) (*Data, error) func (c *Client) sendDataCreate(ctx context.Context, request OptData) (res *Data, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("dataCreate"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/data"), } @@ -139,7 +140,7 @@ func (c *Client) sendDataCreate(ctx context.Context, request OptData) (res *Data uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -176,7 +177,7 @@ func (c *Client) DataGet(ctx context.Context) (*Data, error) { func (c *Client) sendDataGet(ctx context.Context) (res *Data, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("dataGet"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/data"), } @@ -214,7 +215,7 @@ func (c *Client) sendDataGet(ctx context.Context) (res *Data, err error) { uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/internal/integration/techempower/oas_client_gen.go b/internal/integration/techempower/oas_client_gen.go index 443016a0e..d0f38ff9c 100644 --- a/internal/integration/techempower/oas_client_gen.go +++ b/internal/integration/techempower/oas_client_gen.go @@ -4,6 +4,7 @@ package techempower import ( "context" + "net/http" "net/url" "strings" "time" @@ -134,7 +135,7 @@ func (c *Client) Caching(ctx context.Context, params CachingParams) (WorldObject func (c *Client) sendCaching(ctx context.Context, params CachingParams) (res WorldObjects, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("Caching"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/cached-worlds"), } @@ -190,7 +191,7 @@ func (c *Client) sendCaching(ctx context.Context, params CachingParams) (res Wor u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -225,7 +226,7 @@ func (c *Client) DB(ctx context.Context) (*WorldObject, error) { func (c *Client) sendDB(ctx context.Context) (res *WorldObject, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("DB"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/db"), } @@ -263,7 +264,7 @@ func (c *Client) sendDB(ctx context.Context) (res *WorldObject, err error) { uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -299,7 +300,7 @@ func (c *Client) JSON(ctx context.Context) (*HelloWorld, error) { func (c *Client) sendJSON(ctx context.Context) (res *HelloWorld, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("json"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/json"), } @@ -337,7 +338,7 @@ func (c *Client) sendJSON(ctx context.Context) (res *HelloWorld, err error) { uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -374,7 +375,7 @@ func (c *Client) Queries(ctx context.Context, params QueriesParams) (WorldObject func (c *Client) sendQueries(ctx context.Context, params QueriesParams) (res WorldObjects, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("Queries"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/queries"), } @@ -430,7 +431,7 @@ func (c *Client) sendQueries(ctx context.Context, params QueriesParams) (res Wor u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -466,7 +467,7 @@ func (c *Client) Updates(ctx context.Context, params UpdatesParams) (WorldObject func (c *Client) sendUpdates(ctx context.Context, params UpdatesParams) (res WorldObjects, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("Updates"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/updates"), } @@ -522,7 +523,7 @@ func (c *Client) sendUpdates(ctx context.Context, params UpdatesParams) (res Wor u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/internal/integration/test_allof/oas_client_gen.go b/internal/integration/test_allof/oas_client_gen.go index de88fd65d..561c49932 100644 --- a/internal/integration/test_allof/oas_client_gen.go +++ b/internal/integration/test_allof/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -132,7 +133,7 @@ func (c *Client) NullableStrings(ctx context.Context, request NilString) error { func (c *Client) sendNullableStrings(ctx context.Context, request NilString) (res *NullableStringsOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("nullableStrings"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/nullableStrings"), } // Validate request before sending. @@ -194,7 +195,7 @@ func (c *Client) sendNullableStrings(ctx context.Context, request NilString) (re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -231,7 +232,7 @@ func (c *Client) ObjectsWithConflictingArrayProperty(ctx context.Context, reques func (c *Client) sendObjectsWithConflictingArrayProperty(ctx context.Context, request *ObjectsWithConflictingArrayPropertyReq) (res *ObjectsWithConflictingArrayPropertyOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("objectsWithConflictingArrayProperty"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/objectsWithConflictingArrayProperty"), } // Validate request before sending. @@ -278,7 +279,7 @@ func (c *Client) sendObjectsWithConflictingArrayProperty(ctx context.Context, re uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -315,7 +316,7 @@ func (c *Client) ObjectsWithConflictingProperties(ctx context.Context, request * func (c *Client) sendObjectsWithConflictingProperties(ctx context.Context, request *ObjectsWithConflictingPropertiesReq) (res *ObjectsWithConflictingPropertiesOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("objectsWithConflictingProperties"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/objectsWithConflictingProperties"), } // Validate request before sending. @@ -362,7 +363,7 @@ func (c *Client) sendObjectsWithConflictingProperties(ctx context.Context, reque uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -399,7 +400,7 @@ func (c *Client) ReferencedAllof(ctx context.Context, request ReferencedAllofReq func (c *Client) sendReferencedAllof(ctx context.Context, request ReferencedAllofReq) (res *ReferencedAllofOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("referencedAllof"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/referencedAllof"), } // Validate request before sending. @@ -460,7 +461,7 @@ func (c *Client) sendReferencedAllof(ctx context.Context, request ReferencedAllo uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -497,7 +498,7 @@ func (c *Client) ReferencedAllofOptional(ctx context.Context, request Referenced func (c *Client) sendReferencedAllofOptional(ctx context.Context, request ReferencedAllofOptionalReq) (res *ReferencedAllofOptionalOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("referencedAllofOptional"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/referencedAllofOptional"), } // Validate request before sending. @@ -560,7 +561,7 @@ func (c *Client) sendReferencedAllofOptional(ctx context.Context, request Refere uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -597,7 +598,7 @@ func (c *Client) SimpleInteger(ctx context.Context, request int) error { func (c *Client) sendSimpleInteger(ctx context.Context, request int) (res *SimpleIntegerOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("simpleInteger"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/simpleInteger"), } // Validate request before sending. @@ -653,7 +654,7 @@ func (c *Client) sendSimpleInteger(ctx context.Context, request int) (res *Simpl uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -690,7 +691,7 @@ func (c *Client) SimpleObjects(ctx context.Context, request *SimpleObjectsReq) e func (c *Client) sendSimpleObjects(ctx context.Context, request *SimpleObjectsReq) (res *SimpleObjectsOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("simpleObjects"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/simpleObjects"), } @@ -728,7 +729,7 @@ func (c *Client) sendSimpleObjects(ctx context.Context, request *SimpleObjectsRe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -763,7 +764,7 @@ func (c *Client) StringsNotype(ctx context.Context, request NilString) error { func (c *Client) sendStringsNotype(ctx context.Context, request NilString) (res *StringsNotypeOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("stringsNotype"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/stringsNotype"), } // Validate request before sending. @@ -825,7 +826,7 @@ func (c *Client) sendStringsNotype(ctx context.Context, request NilString) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/internal/integration/test_anyof/oas_client_gen.go b/internal/integration/test_anyof/oas_client_gen.go index 790986e92..7cd21213d 100644 --- a/internal/integration/test_anyof/oas_client_gen.go +++ b/internal/integration/test_anyof/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -95,7 +96,7 @@ func (c *Client) IntegerNumber(ctx context.Context) (*IntegerNumber, error) { func (c *Client) sendIntegerNumber(ctx context.Context) (res *IntegerNumber, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("integerNumber"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/integerNumber"), } @@ -133,7 +134,7 @@ func (c *Client) sendIntegerNumber(ctx context.Context) (res *IntegerNumber, err uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -165,7 +166,7 @@ func (c *Client) JaegerAnyOf(ctx context.Context) (*JaegerAnyOf, error) { func (c *Client) sendJaegerAnyOf(ctx context.Context) (res *JaegerAnyOf, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("jaegerAnyOf"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/jaegerAnyOf"), } @@ -203,7 +204,7 @@ func (c *Client) sendJaegerAnyOf(ctx context.Context) (res *JaegerAnyOf, err err uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -235,7 +236,7 @@ func (c *Client) OneUUID(ctx context.Context) (*OneUUID, error) { func (c *Client) sendOneUUID(ctx context.Context) (res *OneUUID, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("oneUUID"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/oneUUID"), } @@ -273,7 +274,7 @@ func (c *Client) sendOneUUID(ctx context.Context) (res *OneUUID, err error) { uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/internal/integration/test_customformats/oas_client_gen.go b/internal/integration/test_customformats/oas_client_gen.go index 1717397da..05562e958 100644 --- a/internal/integration/test_customformats/oas_client_gen.go +++ b/internal/integration/test_customformats/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -89,7 +90,7 @@ func (c *Client) EventPost(ctx context.Context, request any) (any, error) { func (c *Client) sendEventPost(ctx context.Context, request any) (res any, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/event"), } @@ -127,7 +128,7 @@ func (c *Client) sendEventPost(ctx context.Context, request any) (res any, err e uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -161,7 +162,7 @@ func (c *Client) PhoneGet(ctx context.Context, request *User, params PhoneGetPar func (c *Client) sendPhoneGet(ctx context.Context, request *User, params PhoneGetParams) (res *User, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/phone"), } @@ -251,7 +252,7 @@ func (c *Client) sendPhoneGet(ctx context.Context, request *User, params PhoneGe u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/internal/integration/test_enum_naming/oas_client_gen.go b/internal/integration/test_enum_naming/oas_client_gen.go index df63a190b..ce111baad 100644 --- a/internal/integration/test_enum_naming/oas_client_gen.go +++ b/internal/integration/test_enum_naming/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -91,7 +92,7 @@ func (c *Client) ProbeLiveness(ctx context.Context) (*ProbeLivenessOK, error) { func (c *Client) sendProbeLiveness(ctx context.Context) (res *ProbeLivenessOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("probeLiveness"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/healthz"), } @@ -129,7 +130,7 @@ func (c *Client) sendProbeLiveness(ctx context.Context) (res *ProbeLivenessOK, e uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/internal/integration/test_form/oas_client_gen.go b/internal/integration/test_form/oas_client_gen.go index 6784f68a6..6004dbec5 100644 --- a/internal/integration/test_form/oas_client_gen.go +++ b/internal/integration/test_form/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -119,7 +120,7 @@ func (c *Client) OnlyForm(ctx context.Context, request *OnlyFormReq) error { func (c *Client) sendOnlyForm(ctx context.Context, request *OnlyFormReq) (res *OnlyFormOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("onlyForm"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/onlyForm"), } @@ -157,7 +158,7 @@ func (c *Client) sendOnlyForm(ctx context.Context, request *OnlyFormReq) (res *O uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -192,7 +193,7 @@ func (c *Client) OnlyMultipartFile(ctx context.Context, request *OnlyMultipartFi func (c *Client) sendOnlyMultipartFile(ctx context.Context, request *OnlyMultipartFileReq) (res *OnlyMultipartFileOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("onlyMultipartFile"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/onlyMultipartFile"), } @@ -230,7 +231,7 @@ func (c *Client) sendOnlyMultipartFile(ctx context.Context, request *OnlyMultipa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -265,7 +266,7 @@ func (c *Client) OnlyMultipartForm(ctx context.Context, request *OnlyMultipartFo func (c *Client) sendOnlyMultipartForm(ctx context.Context, request *OnlyMultipartFormReq) (res *OnlyMultipartFormOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("onlyMultipartForm"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/onlyMultipartForm"), } @@ -303,7 +304,7 @@ func (c *Client) sendOnlyMultipartForm(ctx context.Context, request *OnlyMultipa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -338,7 +339,7 @@ func (c *Client) TestFormURLEncoded(ctx context.Context, request *TestForm) erro func (c *Client) sendTestFormURLEncoded(ctx context.Context, request *TestForm) (res *TestFormURLEncodedOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("testFormURLEncoded"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/testFormURLEncoded"), } @@ -376,7 +377,7 @@ func (c *Client) sendTestFormURLEncoded(ctx context.Context, request *TestForm) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -411,7 +412,7 @@ func (c *Client) TestMultipart(ctx context.Context, request *TestFormMultipart) func (c *Client) sendTestMultipart(ctx context.Context, request *TestFormMultipart) (res *TestMultipartOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("testMultipart"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/testMultipart"), } @@ -449,7 +450,7 @@ func (c *Client) sendTestMultipart(ctx context.Context, request *TestFormMultipa uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -484,7 +485,7 @@ func (c *Client) TestMultipartUpload(ctx context.Context, request *TestMultipart func (c *Client) sendTestMultipartUpload(ctx context.Context, request *TestMultipartUploadReq) (res *TestMultipartUploadOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("testMultipartUpload"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/testMultipartUpload"), } // Validate request before sending. @@ -531,7 +532,7 @@ func (c *Client) sendTestMultipartUpload(ctx context.Context, request *TestMulti uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -566,7 +567,7 @@ func (c *Client) TestReuseFormOptionalSchema(ctx context.Context, request OptSha func (c *Client) sendTestReuseFormOptionalSchema(ctx context.Context, request OptSharedRequestMultipart) (res *TestReuseFormOptionalSchemaOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("testReuseFormOptionalSchema"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/testReuseFormOptionalSchema"), } @@ -604,7 +605,7 @@ func (c *Client) sendTestReuseFormOptionalSchema(ctx context.Context, request Op uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -639,7 +640,7 @@ func (c *Client) TestReuseFormSchema(ctx context.Context, request *SharedRequest func (c *Client) sendTestReuseFormSchema(ctx context.Context, request *SharedRequestMultipart) (res *TestReuseFormSchemaOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("testReuseFormSchema"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/testReuseFormSchema"), } @@ -677,7 +678,7 @@ func (c *Client) sendTestReuseFormSchema(ctx context.Context, request *SharedReq uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -712,7 +713,7 @@ func (c *Client) TestShareFormSchema(ctx context.Context, request TestShareFormS func (c *Client) sendTestShareFormSchema(ctx context.Context, request TestShareFormSchemaReq) (res *TestShareFormSchemaOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("testShareFormSchema"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/testShareFormSchema"), } // Validate request before sending. @@ -759,7 +760,7 @@ func (c *Client) sendTestShareFormSchema(ctx context.Context, request TestShareF uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/internal/integration/test_http_requests/oas_client_gen.go b/internal/integration/test_http_requests/oas_client_gen.go index ed485e94f..a2c4ec12b 100644 --- a/internal/integration/test_http_requests/oas_client_gen.go +++ b/internal/integration/test_http_requests/oas_client_gen.go @@ -5,6 +5,7 @@ package api import ( "context" "fmt" + "net/http" "net/url" "strings" "time" @@ -109,7 +110,7 @@ func (c *Client) AllRequestBodies(ctx context.Context, request AllRequestBodiesR func (c *Client) sendAllRequestBodies(ctx context.Context, request AllRequestBodiesReq) (res AllRequestBodiesOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("allRequestBodies"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/allRequestBodies"), } // Validate request before sending. @@ -162,7 +163,7 @@ func (c *Client) sendAllRequestBodies(ctx context.Context, request AllRequestBod uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -197,7 +198,7 @@ func (c *Client) AllRequestBodiesOptional(ctx context.Context, request AllReques func (c *Client) sendAllRequestBodiesOptional(ctx context.Context, request AllRequestBodiesOptionalReq) (res AllRequestBodiesOptionalOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("allRequestBodiesOptional"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/allRequestBodiesOptional"), } // Validate request before sending. @@ -252,7 +253,7 @@ func (c *Client) sendAllRequestBodiesOptional(ctx context.Context, request AllRe uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -287,7 +288,7 @@ func (c *Client) Base64Request(ctx context.Context, request Base64RequestReq) (B func (c *Client) sendBase64Request(ctx context.Context, request Base64RequestReq) (res Base64RequestOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("base64Request"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/base64Request"), } @@ -325,7 +326,7 @@ func (c *Client) sendBase64Request(ctx context.Context, request Base64RequestReq uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -360,7 +361,7 @@ func (c *Client) MaskContentType(ctx context.Context, request *MaskContentTypeRe func (c *Client) sendMaskContentType(ctx context.Context, request *MaskContentTypeReqWithContentType) (res *MaskResponse, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("maskContentType"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/maskContentType"), } @@ -398,7 +399,7 @@ func (c *Client) sendMaskContentType(ctx context.Context, request *MaskContentTy uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -433,7 +434,7 @@ func (c *Client) MaskContentTypeOptional(ctx context.Context, request *MaskConte func (c *Client) sendMaskContentTypeOptional(ctx context.Context, request *MaskContentTypeOptionalReqWithContentType) (res *MaskResponse, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("maskContentTypeOptional"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/maskContentTypeOptional"), } @@ -471,7 +472,7 @@ func (c *Client) sendMaskContentTypeOptional(ctx context.Context, request *MaskC uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -506,7 +507,7 @@ func (c *Client) StreamJSON(ctx context.Context, request []float64) (float64, er func (c *Client) sendStreamJSON(ctx context.Context, request []float64) (res float64, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("streamJSON"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/streamJSON"), } // Validate request before sending. @@ -570,7 +571,7 @@ func (c *Client) sendStreamJSON(ctx context.Context, request []float64) (res flo uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/internal/integration/test_http_responses/oas_client_gen.go b/internal/integration/test_http_responses/oas_client_gen.go index bbfe2f9e9..2dcc3cf7d 100644 --- a/internal/integration/test_http_responses/oas_client_gen.go +++ b/internal/integration/test_http_responses/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -149,7 +150,7 @@ func (c *Client) AnyContentTypeBinaryStringSchema(ctx context.Context) (AnyConte func (c *Client) sendAnyContentTypeBinaryStringSchema(ctx context.Context) (res AnyContentTypeBinaryStringSchemaOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("anyContentTypeBinaryStringSchema"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/anyContentTypeBinaryStringSchema"), } @@ -187,7 +188,7 @@ func (c *Client) sendAnyContentTypeBinaryStringSchema(ctx context.Context) (res uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -219,7 +220,7 @@ func (c *Client) AnyContentTypeBinaryStringSchemaDefault(ctx context.Context) (* func (c *Client) sendAnyContentTypeBinaryStringSchemaDefault(ctx context.Context) (res *AnyContentTypeBinaryStringSchemaDefaultDefStatusCode, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("anyContentTypeBinaryStringSchemaDefault"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/anyContentTypeBinaryStringSchemaDefault"), } @@ -257,7 +258,7 @@ func (c *Client) sendAnyContentTypeBinaryStringSchemaDefault(ctx context.Context uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -289,7 +290,7 @@ func (c *Client) Combined(ctx context.Context, params CombinedParams) (CombinedR func (c *Client) sendCombined(ctx context.Context, params CombinedParams) (res CombinedRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("combined"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/combined"), } @@ -345,7 +346,7 @@ func (c *Client) sendCombined(ctx context.Context, params CombinedParams) (res C u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -377,7 +378,7 @@ func (c *Client) Headers200(ctx context.Context) (*Headers200OK, error) { func (c *Client) sendHeaders200(ctx context.Context) (res *Headers200OK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("headers200"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/headers200"), } @@ -415,7 +416,7 @@ func (c *Client) sendHeaders200(ctx context.Context) (res *Headers200OK, err err uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -447,7 +448,7 @@ func (c *Client) HeadersCombined(ctx context.Context, params HeadersCombinedPara func (c *Client) sendHeadersCombined(ctx context.Context, params HeadersCombinedParams) (res HeadersCombinedRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("headersCombined"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/headersCombined"), } @@ -503,7 +504,7 @@ func (c *Client) sendHeadersCombined(ctx context.Context, params HeadersCombined u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -535,7 +536,7 @@ func (c *Client) HeadersDefault(ctx context.Context) (*HeadersDefaultDef, error) func (c *Client) sendHeadersDefault(ctx context.Context) (res *HeadersDefaultDef, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("headersDefault"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/headersDefault"), } @@ -573,7 +574,7 @@ func (c *Client) sendHeadersDefault(ctx context.Context) (res *HeadersDefaultDef uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -605,7 +606,7 @@ func (c *Client) HeadersJSON(ctx context.Context) (*HeadersJSONOK, error) { func (c *Client) sendHeadersJSON(ctx context.Context) (res *HeadersJSONOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("headersJSON"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/headersJSON"), } @@ -643,7 +644,7 @@ func (c *Client) sendHeadersJSON(ctx context.Context) (res *HeadersJSONOK, err e uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -675,7 +676,7 @@ func (c *Client) HeadersPattern(ctx context.Context) (*HeadersPattern4XX, error) func (c *Client) sendHeadersPattern(ctx context.Context) (res *HeadersPattern4XX, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("headersPattern"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/headersPattern"), } @@ -713,7 +714,7 @@ func (c *Client) sendHeadersPattern(ctx context.Context) (res *HeadersPattern4XX uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -748,7 +749,7 @@ func (c *Client) IntersectPatternCode(ctx context.Context, params IntersectPatte func (c *Client) sendIntersectPatternCode(ctx context.Context, params IntersectPatternCodeParams) (res IntersectPatternCodeRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("intersectPatternCode"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/intersectPatternCode"), } @@ -804,7 +805,7 @@ func (c *Client) sendIntersectPatternCode(ctx context.Context, params IntersectP u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -836,7 +837,7 @@ func (c *Client) MultipleGenericResponses(ctx context.Context) (MultipleGenericR func (c *Client) sendMultipleGenericResponses(ctx context.Context) (res MultipleGenericResponsesRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("multipleGenericResponses"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/multipleGenericResponses"), } @@ -874,7 +875,7 @@ func (c *Client) sendMultipleGenericResponses(ctx context.Context) (res Multiple uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -906,7 +907,7 @@ func (c *Client) OctetStreamBinaryStringSchema(ctx context.Context) (OctetStream func (c *Client) sendOctetStreamBinaryStringSchema(ctx context.Context) (res OctetStreamBinaryStringSchemaOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("octetStreamBinaryStringSchema"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/octetStreamBinaryStringSchema"), } @@ -944,7 +945,7 @@ func (c *Client) sendOctetStreamBinaryStringSchema(ctx context.Context) (res Oct uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -976,7 +977,7 @@ func (c *Client) OctetStreamEmptySchema(ctx context.Context) (OctetStreamEmptySc func (c *Client) sendOctetStreamEmptySchema(ctx context.Context) (res OctetStreamEmptySchemaOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("octetStreamEmptySchema"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/octetStreamEmptySchema"), } @@ -1014,7 +1015,7 @@ func (c *Client) sendOctetStreamEmptySchema(ctx context.Context) (res OctetStrea uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1048,7 +1049,7 @@ func (c *Client) OptionalHeaders(ctx context.Context) (*OptionalHeadersOK, error func (c *Client) sendOptionalHeaders(ctx context.Context) (res *OptionalHeadersOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("optionalHeaders"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/optionalHeaders"), } @@ -1086,7 +1087,7 @@ func (c *Client) sendOptionalHeaders(ctx context.Context) (res *OptionalHeadersO uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1118,7 +1119,7 @@ func (c *Client) StreamJSON(ctx context.Context, params StreamJSONParams) (Strea func (c *Client) sendStreamJSON(ctx context.Context, params StreamJSONParams) (res StreamJSONRes, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("streamJSON"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/streamJSON"), } @@ -1174,7 +1175,7 @@ func (c *Client) sendStreamJSON(ctx context.Context, params StreamJSONParams) (r u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -1206,7 +1207,7 @@ func (c *Client) TextPlainBinaryStringSchema(ctx context.Context) (TextPlainBina func (c *Client) sendTextPlainBinaryStringSchema(ctx context.Context) (res TextPlainBinaryStringSchemaOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("textPlainBinaryStringSchema"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/textPlainBinaryStringSchema"), } @@ -1244,7 +1245,7 @@ func (c *Client) sendTextPlainBinaryStringSchema(ctx context.Context) (res TextP uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/internal/integration/test_naming_extensions/oas_client_gen.go b/internal/integration/test_naming_extensions/oas_client_gen.go index f45fc49db..7a307caf5 100644 --- a/internal/integration/test_naming_extensions/oas_client_gen.go +++ b/internal/integration/test_naming_extensions/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -85,7 +86,7 @@ func (c *Client) HealthzGet(ctx context.Context) (*Person, error) { func (c *Client) sendHealthzGet(ctx context.Context) (res *Person, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/healthz"), } @@ -123,7 +124,7 @@ func (c *Client) sendHealthzGet(ctx context.Context) (res *Person, err error) { uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/internal/integration/test_parameters/oas_client_gen.go b/internal/integration/test_parameters/oas_client_gen.go index 739f46252..0da7f2799 100644 --- a/internal/integration/test_parameters/oas_client_gen.go +++ b/internal/integration/test_parameters/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -130,7 +131,7 @@ func (c *Client) ComplicatedParameterNameGet(ctx context.Context, params Complic func (c *Client) sendComplicatedParameterNameGet(ctx context.Context, params ComplicatedParameterNameGetParams) (res *ComplicatedParameterNameGetOK, err error) { otelAttrs := []attribute.KeyValue{ - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/complicatedParameterName"), } @@ -242,7 +243,7 @@ func (c *Client) sendComplicatedParameterNameGet(ctx context.Context, params Com u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -274,7 +275,7 @@ func (c *Client) ContentParameters(ctx context.Context, params ContentParameters func (c *Client) sendContentParameters(ctx context.Context, params ContentParametersParams) (res *ContentParameters, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("contentParameters"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/contentParameters/{path}"), } @@ -356,7 +357,7 @@ func (c *Client) sendContentParameters(ctx context.Context, params ContentParame u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -428,7 +429,7 @@ func (c *Client) CookieParameter(ctx context.Context, params CookieParameterPara func (c *Client) sendCookieParameter(ctx context.Context, params CookieParameterParams) (res *Value, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("cookieParameter"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/cookieParameter"), } @@ -466,7 +467,7 @@ func (c *Client) sendCookieParameter(ctx context.Context, params CookieParameter uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -516,7 +517,7 @@ func (c *Client) HeaderParameter(ctx context.Context, params HeaderParameterPara func (c *Client) sendHeaderParameter(ctx context.Context, params HeaderParameterParams) (res *Value, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("headerParameter"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/headerParameter"), } @@ -554,7 +555,7 @@ func (c *Client) sendHeaderParameter(ctx context.Context, params HeaderParameter uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -600,7 +601,7 @@ func (c *Client) ObjectCookieParameter(ctx context.Context, params ObjectCookieP func (c *Client) sendObjectCookieParameter(ctx context.Context, params ObjectCookieParameterParams) (res *OneLevelObject, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("objectCookieParameter"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/objectCookieParameter"), } @@ -638,7 +639,7 @@ func (c *Client) sendObjectCookieParameter(ctx context.Context, params ObjectCoo uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -686,7 +687,7 @@ func (c *Client) ObjectQueryParameter(ctx context.Context, params ObjectQueryPar func (c *Client) sendObjectQueryParameter(ctx context.Context, params ObjectQueryParameterParams) (res *ObjectQueryParameterOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("objectQueryParameter"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/objectQueryParameter"), } @@ -762,7 +763,7 @@ func (c *Client) sendObjectQueryParameter(ctx context.Context, params ObjectQuer u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -796,7 +797,7 @@ func (c *Client) PathParameter(ctx context.Context, params PathParameterParams) func (c *Client) sendPathParameter(ctx context.Context, params PathParameterParams) (res *Value, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("pathParameter"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/pathParameter/{value}"), } @@ -852,7 +853,7 @@ func (c *Client) sendPathParameter(ctx context.Context, params PathParameterPara uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -886,7 +887,7 @@ func (c *Client) SameName(ctx context.Context, params SameNameParams) error { func (c *Client) sendSameName(ctx context.Context, params SameNameParams) (res *SameNameOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("sameName"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/same_name/{param}"), } @@ -960,7 +961,7 @@ func (c *Client) sendSameName(ctx context.Context, params SameNameParams) (res * u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -994,7 +995,7 @@ func (c *Client) SimilarNames(ctx context.Context, params SimilarNamesParams) er func (c *Client) sendSimilarNames(ctx context.Context, params SimilarNamesParams) (res *SimilarNamesOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("similarNames"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/similarNames"), } @@ -1050,7 +1051,7 @@ func (c *Client) sendSimilarNames(ctx context.Context, params SimilarNamesParams u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/internal/integration/test_security/oas_client_gen.go b/internal/integration/test_security/oas_client_gen.go index 561f28620..eb515b867 100644 --- a/internal/integration/test_security/oas_client_gen.go +++ b/internal/integration/test_security/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -102,7 +103,7 @@ func (c *Client) CustomSecurity(ctx context.Context) error { func (c *Client) sendCustomSecurity(ctx context.Context) (res *CustomSecurityOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("customSecurity"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/customSecurity"), } @@ -140,7 +141,7 @@ func (c *Client) sendCustomSecurity(ctx context.Context) (res *CustomSecurityOK, uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -205,7 +206,7 @@ func (c *Client) DisjointSecurity(ctx context.Context) error { func (c *Client) sendDisjointSecurity(ctx context.Context) (res *DisjointSecurityOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("disjointSecurity"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/disjointSecurity"), } @@ -243,7 +244,7 @@ func (c *Client) sendDisjointSecurity(ctx context.Context) (res *DisjointSecurit uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -342,7 +343,7 @@ func (c *Client) IntersectSecurity(ctx context.Context) error { func (c *Client) sendIntersectSecurity(ctx context.Context) (res *IntersectSecurityOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("intersectSecurity"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/intersectSecurity"), } @@ -380,7 +381,7 @@ func (c *Client) sendIntersectSecurity(ctx context.Context) (res *IntersectSecur uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -468,7 +469,7 @@ func (c *Client) OptionalSecurity(ctx context.Context) error { func (c *Client) sendOptionalSecurity(ctx context.Context) (res *OptionalSecurityOK, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("optionalSecurity"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/optionalSecurity"), } @@ -506,7 +507,7 @@ func (c *Client) sendOptionalSecurity(ctx context.Context) (res *OptionalSecurit uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/internal/integration/test_servers/oas_client_gen.go b/internal/integration/test_servers/oas_client_gen.go index e3eb9fc87..a24c49071 100644 --- a/internal/integration/test_servers/oas_client_gen.go +++ b/internal/integration/test_servers/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -95,7 +96,7 @@ func (c *Client) ProbeLiveness(ctx context.Context) (string, error) { func (c *Client) sendProbeLiveness(ctx context.Context) (res string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("probeLiveness"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/healthz"), } @@ -133,7 +134,7 @@ func (c *Client) sendProbeLiveness(ctx context.Context) (res string, err error) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/internal/integration/test_single_endpoint/oas_client_gen.go b/internal/integration/test_single_endpoint/oas_client_gen.go index e3eb9fc87..a24c49071 100644 --- a/internal/integration/test_single_endpoint/oas_client_gen.go +++ b/internal/integration/test_single_endpoint/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -95,7 +96,7 @@ func (c *Client) ProbeLiveness(ctx context.Context) (string, error) { func (c *Client) sendProbeLiveness(ctx context.Context) (res string, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("probeLiveness"), - semconv.HTTPMethodKey.String("GET"), + semconv.HTTPMethodKey.String(http.MethodGet), semconv.HTTPRouteKey.String("/healthz"), } @@ -133,7 +134,7 @@ func (c *Client) sendProbeLiveness(ctx context.Context) (res string, err error) uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } diff --git a/internal/integration/test_webhooks/oas_client_gen.go b/internal/integration/test_webhooks/oas_client_gen.go index 30d4435f3..968f01235 100644 --- a/internal/integration/test_webhooks/oas_client_gen.go +++ b/internal/integration/test_webhooks/oas_client_gen.go @@ -4,6 +4,7 @@ package api import ( "context" + "net/http" "net/url" "strings" "time" @@ -92,7 +93,7 @@ func (c *Client) PublishEvent(ctx context.Context, request OptEvent) (*Event, er func (c *Client) sendPublishEvent(ctx context.Context, request OptEvent) (res *Event, err error) { otelAttrs := []attribute.KeyValue{ otelogen.OperationID("publishEvent"), - semconv.HTTPMethodKey.String("POST"), + semconv.HTTPMethodKey.String(http.MethodPost), semconv.HTTPRouteKey.String("/event"), } @@ -130,7 +131,7 @@ func (c *Client) sendPublishEvent(ctx context.Context, request OptEvent) (res *E uri.AddPathParts(u, pathParts[:]...) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -217,7 +218,7 @@ func (c *WebhookClient) sendStatusWebhook(ctx context.Context, targetURL string) trimTrailingSlashes(u) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "GET", u) + r, err := ht.NewRequest(ctx, http.MethodGet, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -284,7 +285,7 @@ func (c *WebhookClient) sendUpdateDelete(ctx context.Context, targetURL string) trimTrailingSlashes(u) stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "DELETE", u) + r, err := ht.NewRequest(ctx, http.MethodDelete, u) if err != nil { return res, errors.Wrap(err, "create request") } @@ -370,7 +371,7 @@ func (c *WebhookClient) sendUpdateWebhook(ctx context.Context, targetURL string, u.RawQuery = q.Values().Encode() stage = "EncodeRequest" - r, err := ht.NewRequest(ctx, "POST", u) + r, err := ht.NewRequest(ctx, http.MethodPost, u) if err != nil { return res, errors.Wrap(err, "create request") }