diff --git a/services/argus/CHANGELOG.md b/services/argus/CHANGELOG.md index 128e0c942..2dc90a196 100644 --- a/services/argus/CHANGELOG.md +++ b/services/argus/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.9.6 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.9.5 (2024-02-28) - Update `core` to [`v0.10.0`](../../core/CHANGELOG.md#v0100-2024-02-27) diff --git a/services/argus/api_default.go b/services/argus/api_default.go index 9f9446269..5171676e9 100644 --- a/services/argus/api_default.go +++ b/services/argus/api_default.go @@ -87,6 +87,11 @@ func (r ApiCreateAlertConfigReceiverRequest) Execute() (*AlertConfigReceiversRes return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -236,6 +241,11 @@ func (r ApiCreateAlertConfigRouteRequest) Execute() (*AlertConfigRouteResponse, return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -374,6 +384,11 @@ func (r ApiCreateCredentialsRequest) Execute() (*CreateCredentialsResponse, erro return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -510,6 +525,11 @@ func (r ApiCreateInstanceRequest) Execute() (*CreateInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -656,6 +676,11 @@ func (r ApiCreateScrapeConfigRequest) Execute() (*ScrapeConfigsResponse, error) return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -796,6 +821,11 @@ func (r ApiDeleteAlertConfigReceiverRequest) Execute() (*AlertConfigReceiversRes return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -939,6 +969,11 @@ func (r ApiDeleteAlertConfigRouteRequest) Execute() (*AlertConfigRouteResponse, return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1082,6 +1117,11 @@ func (r ApiDeleteCredentialsRequest) Execute() (*Message, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1236,6 +1276,11 @@ func (r ApiDeleteCredentialsRemoteWriteConfigRequest) Execute() (*CredentialsRem return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1399,6 +1444,11 @@ func (r ApiDeleteInstanceRequest) Execute() (*InstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1528,6 +1578,11 @@ func (r ApiDeleteScrapeConfigRequest) Execute() (*DeleteScrapeConfigResponse, er return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1671,6 +1726,11 @@ func (r ApiGetAlertConfigReceiverRequest) Execute() (*Receiver, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1814,6 +1874,11 @@ func (r ApiGetAlertConfigRouteRequest) Execute() (*AlertConfigRouteResponse, err return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1944,6 +2009,11 @@ func (r ApiGetAlertConfigsRequest) Execute() (*GetAlertConfigsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2073,6 +2143,11 @@ func (r ApiGetCredentialsRequest) Execute() (*GetCredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2216,6 +2291,11 @@ func (r ApiGetCredentialsRemoteWriteConfigRequest) Execute() (*CredentialsRemote return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2368,6 +2448,11 @@ func (r ApiGetGrafanaConfigsRequest) Execute() (*GrafanaConfigs, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2495,6 +2580,11 @@ func (r ApiGetInstanceRequest) Execute() (*GetInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2624,6 +2714,11 @@ func (r ApiGetScrapeConfigRequest) Execute() (*GetScrapeConfigResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2754,6 +2849,11 @@ func (r ApiListACLRequest) Execute() (*ListACLResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2881,6 +2981,11 @@ func (r ApiListAlertConfigReceiversRequest) Execute() (*AlertConfigReceiversResp return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -3008,6 +3113,11 @@ func (r ApiListAlertConfigRoutesRequest) Execute() (*AlertConfigRouteResponse, e return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -3135,6 +3245,11 @@ func (r ApiListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -3260,6 +3375,11 @@ func (r ApiListInstancesRequest) Execute() (*ListInstancesResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -3382,6 +3502,11 @@ func (r ApiListPlansRequest) Execute() (*PlansResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -3506,6 +3631,11 @@ func (r ApiListScrapeConfigsRequest) Execute() (*ListScrapeConfigsResponse, erro return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -3641,6 +3771,11 @@ func (r ApiUpdateACLRequest) Execute() (*Message, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -3792,6 +3927,11 @@ func (r ApiUpdateAlertConfigReceiverRequest) Execute() (*AlertConfigReceiversRes return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -3957,6 +4097,11 @@ func (r ApiUpdateAlertConfigRouteRequest) Execute() (*AlertConfigRouteResponse, return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -4120,6 +4265,11 @@ func (r ApiUpdateAlertConfigsRequest) Execute() (*UpdateAlertConfigsResponse, er return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -4271,6 +4421,11 @@ func (r ApiUpdateCredentialsRemoteWriteConfigRequest) Execute() (*CredentialsRem return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -4445,6 +4600,11 @@ func (r ApiUpdateGrafanaConfigsRequest) Execute() (*Message, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -4594,6 +4754,11 @@ func (r ApiUpdateInstanceRequest) Execute() (*InstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -4745,6 +4910,11 @@ func (r ApiUpdateScrapeConfigRequest) Execute() (*ScrapeConfigsResponse, error) return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/authorization/CHANGELOG.md b/services/authorization/CHANGELOG.md index e7ac79845..1c49b7c92 100644 --- a/services/authorization/CHANGELOG.md +++ b/services/authorization/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.1.3 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.1.2 (2024-04-09) - Removed unused model data types. diff --git a/services/authorization/api_default.go b/services/authorization/api_default.go index 83fe2a78c..074f2c465 100644 --- a/services/authorization/api_default.go +++ b/services/authorization/api_default.go @@ -85,6 +85,11 @@ func (r ApiAddMembersRequest) Execute() (*MembersResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -240,6 +245,11 @@ func (r ApiListMembersRequest) Execute() (*ListMembersResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -394,6 +404,11 @@ func (r ApiListPermissionsRequest) Execute() (*ListPermissionsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -537,6 +552,11 @@ func (r ApiListRolesRequest) Execute() (*RolesResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -711,6 +731,11 @@ func (r ApiListUserMembershipsRequest) Execute() (*ListUserMembershipsResponse, return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -866,6 +891,11 @@ func (r ApiRemoveMembersRequest) Execute() (*MembersResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/dns/CHANGELOG.md b/services/dns/CHANGELOG.md index abdb09883..5f6c14727 100644 --- a/services/dns/CHANGELOG.md +++ b/services/dns/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.8.5 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.8.4 (2024-02-28) - Update `core` to [`v0.10.0`](../../core/CHANGELOG.md#v0100-2024-02-27) diff --git a/services/dns/api_default.go b/services/dns/api_default.go index dd7a12afe..d606f0e66 100644 --- a/services/dns/api_default.go +++ b/services/dns/api_default.go @@ -89,6 +89,11 @@ func (r ApiCreateRecordSetRequest) Execute() (*RecordSetResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -260,6 +265,11 @@ func (r ApiCreateZoneRequest) Execute() (*ZoneResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -419,6 +429,11 @@ func (r ApiDeleteRecordSetRequest) Execute() (*Message, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -571,6 +586,11 @@ func (r ApiDeleteZoneRequest) Execute() (*Message, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -722,6 +742,11 @@ func (r ApiGetRecordSetRequest) Execute() (*RecordSetResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -863,6 +888,11 @@ func (r ApiGetZoneRequest) Execute() (*ZoneResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1353,6 +1383,11 @@ func (r ApiListRecordSetsRequest) Execute() (*ListRecordSetsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1973,6 +2008,11 @@ func (r ApiListZonesRequest) Execute() (*ListZonesResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2123,6 +2163,11 @@ func (r ApiPartialUpdateRecordRequest) Execute() (*Message, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2290,6 +2335,11 @@ func (r ApiPartialUpdateRecordSetRequest) Execute() (*Message, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2455,6 +2505,11 @@ func (r ApiPartialUpdateZoneRequest) Execute() (*ZoneResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/logme/CHANGELOG.md b/services/logme/CHANGELOG.md index 5956db743..ead82ab58 100644 --- a/services/logme/CHANGELOG.md +++ b/services/logme/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.11.1 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.11.0 (2024-04-02) - **Feature:** `InstanceParameters` has new fields `FluentdTcp`, `FluentdTls`, `FluentdTlsCiphers`, `FluentdTlsMaxVersion`, `FluentdTlsMinVersion`, `FluentdTlsVersion`, `FluentdUdp`, `Groks`, `IsmDeletionAfter`, `IsmJitter`, `IsmJobInterval`, `JavaHeapspace`, `JavaMaxmetaspace`, `OpensearchTlsCiphers`, `OpensearchTlsProtocols`, and `SyslogUseUdp` diff --git a/services/logme/api_default.go b/services/logme/api_default.go index 647bd7c4d..06c3e569f 100644 --- a/services/logme/api_default.go +++ b/services/logme/api_default.go @@ -76,6 +76,11 @@ func (r ApiCreateCredentialsRequest) Execute() (*CredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -214,6 +219,11 @@ func (r ApiCreateInstanceRequest) Execute() (*CreateInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -350,6 +360,11 @@ func (r ApiDeleteCredentialsRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -469,6 +484,11 @@ func (r ApiDeleteInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -599,6 +619,11 @@ func (r ApiGetCredentialsRequest) Execute() (*CredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -729,6 +754,11 @@ func (r ApiGetInstanceRequest) Execute() (*Instance, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -867,6 +897,11 @@ func (r ApiListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -992,6 +1027,11 @@ func (r ApiListInstancesRequest) Execute() (*ListInstancesResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1114,6 +1154,11 @@ func (r ApiListOfferingsRequest) Execute() (*ListOfferingsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1240,6 +1285,11 @@ func (r ApiPartialUpdateInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/mariadb/CHANGELOG.md b/services/mariadb/CHANGELOG.md index f5297beea..f714aeee1 100644 --- a/services/mariadb/CHANGELOG.md +++ b/services/mariadb/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.11.1 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.11.0 (2024-04-02) - **Breaking change:** Field `Plugins` was removed from `InstanceParameters` diff --git a/services/mariadb/api_default.go b/services/mariadb/api_default.go index e14da082e..0536eeed5 100644 --- a/services/mariadb/api_default.go +++ b/services/mariadb/api_default.go @@ -76,6 +76,11 @@ func (r ApiCreateCredentialsRequest) Execute() (*CredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -214,6 +219,11 @@ func (r ApiCreateInstanceRequest) Execute() (*CreateInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -350,6 +360,11 @@ func (r ApiDeleteCredentialsRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -469,6 +484,11 @@ func (r ApiDeleteInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -599,6 +619,11 @@ func (r ApiGetCredentialsRequest) Execute() (*CredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -729,6 +754,11 @@ func (r ApiGetInstanceRequest) Execute() (*Instance, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -867,6 +897,11 @@ func (r ApiListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -992,6 +1027,11 @@ func (r ApiListInstancesRequest) Execute() (*ListInstancesResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1114,6 +1154,11 @@ func (r ApiListOfferingsRequest) Execute() (*ListOfferingsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1240,6 +1285,11 @@ func (r ApiPartialUpdateInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/membership/CHANGELOG.md b/services/membership/CHANGELOG.md index fe18da8d2..ddcf1489a 100644 --- a/services/membership/CHANGELOG.md +++ b/services/membership/CHANGELOG.md @@ -1,7 +1,6 @@ > This module has been replaced with the authorization module, which connects to the same API. > > **This module will receive no further updates.** Use `github.com/stackitcloud/stackit-sdk-go/services/authorization` instead. - ## v0.4.0 (2024-02-07) - Add deprecation note diff --git a/services/membership/api_default.go b/services/membership/api_default.go index 51e109caf..337e23bc6 100644 --- a/services/membership/api_default.go +++ b/services/membership/api_default.go @@ -85,6 +85,11 @@ func (r ApiAddMembersRequest) Execute() (*MembersResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -240,6 +245,11 @@ func (r ApiListMembersRequest) Execute() (*ListMembersResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -394,6 +404,11 @@ func (r ApiListPermissionsRequest) Execute() (*ListPermissionsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -537,6 +552,11 @@ func (r ApiListRolesRequest) Execute() (*RolesResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -711,6 +731,11 @@ func (r ApiListUserMembershipsRequest) Execute() (*ListUserMembershipsResponse, return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -866,6 +891,11 @@ func (r ApiRemoveMembersRequest) Execute() (*MembersResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/mongodbflex/CHANGELOG.md b/services/mongodbflex/CHANGELOG.md index 49eab10c3..007a4d01e 100644 --- a/services/mongodbflex/CHANGELOG.md +++ b/services/mongodbflex/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.11.2 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.11.1 (2024-02-28) - Update `core` to [`v0.10.0`](../../core/CHANGELOG.md#v0100-2024-02-27) diff --git a/services/mongodbflex/api_default.go b/services/mongodbflex/api_default.go index 7e3fb0164..653764818 100644 --- a/services/mongodbflex/api_default.go +++ b/services/mongodbflex/api_default.go @@ -89,6 +89,11 @@ func (r ApiCloneInstanceRequest) Execute() (*CloneInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -239,6 +244,11 @@ func (r ApiCreateInstanceRequest) Execute() (*CreateInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -398,6 +408,11 @@ func (r ApiCreateUserRequest) Execute() (*CreateUserResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -557,6 +572,11 @@ func (r ApiDeleteInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -697,6 +717,11 @@ func (r ApiDeleteUserRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -825,6 +850,11 @@ func (r ApiDisableServiceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -952,6 +982,11 @@ func (r ApiGetBackupRequest) Execute() (*GetBackupResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1093,6 +1128,11 @@ func (r ApiGetInstanceRequest) Execute() (*GetInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1233,6 +1273,11 @@ func (r ApiGetUserRequest) Execute() (*GetUserResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1374,6 +1419,11 @@ func (r ApiListBackupsRequest) Execute() (*ListBackupsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1510,6 +1560,11 @@ func (r ApiListFlavorsRequest) Execute() (*ListFlavorsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1655,6 +1710,11 @@ func (r ApiListInstancesRequest) Execute() (*ListInstancesResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1837,6 +1897,11 @@ func (r ApiListMetricsRequest) Execute() (*ListMetricsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1989,6 +2054,11 @@ func (r ApiListRestoreJobsRequest) Execute() (*ListRestoreJobsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2127,6 +2197,11 @@ func (r ApiListStoragesRequest) Execute() (*ListStoragesResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2265,6 +2340,11 @@ func (r ApiListUsersRequest) Execute() (*ListUsersResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2401,6 +2481,11 @@ func (r ApiListVersionsRequest) Execute() (*ListVersionsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2538,6 +2623,11 @@ func (r ApiPartialUpdateInstanceRequest) Execute() (*UpdateInstanceResponse, err return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2712,6 +2802,11 @@ func (r ApiPartialUpdateUserRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2856,6 +2951,11 @@ func (r ApiResetUserRequest) Execute() (*User, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -3010,6 +3110,11 @@ func (r ApiRestoreInstanceRequest) Execute() (*RestoreInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -3161,6 +3266,11 @@ func (r ApiUpdateBackupScheduleRequest) Execute() (*BackupSchedule, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -3312,6 +3422,11 @@ func (r ApiUpdateInstanceRequest) Execute() (*UpdateInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -3486,6 +3601,11 @@ func (r ApiUpdateUserRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/objectstorage/CHANGELOG.md b/services/objectstorage/CHANGELOG.md index b8657d162..f8297abab 100644 --- a/services/objectstorage/CHANGELOG.md +++ b/services/objectstorage/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.8.8 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.8.7 (2024-04-09) - Remove unused model data types.. diff --git a/services/objectstorage/api_default.go b/services/objectstorage/api_default.go index 25c3a971d..d8e2f4378 100644 --- a/services/objectstorage/api_default.go +++ b/services/objectstorage/api_default.go @@ -94,6 +94,11 @@ func (r ApiCreateAccessKeyRequest) Execute() (*CreateAccessKeyResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -257,6 +262,11 @@ func (r ApiCreateBucketRequest) Execute() (*CreateBucketResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -427,6 +437,11 @@ func (r ApiCreateCredentialsGroupRequest) Execute() (*CreateCredentialsGroupResp return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -602,6 +617,11 @@ func (r ApiDeleteAccessKeyRequest) Execute() (*DeleteAccessKeyResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -779,6 +799,11 @@ func (r ApiDeleteBucketRequest) Execute() (*DeleteBucketResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -928,6 +953,11 @@ func (r ApiDeleteCredentialsGroupRequest) Execute() (*DeleteCredentialsGroupResp return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1076,6 +1106,11 @@ func (r ApiDisableServiceRequest) Execute() (*ProjectStatus, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1242,6 +1277,11 @@ func (r ApiEnableServiceRequest) Execute() (*ProjectStatus, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1406,6 +1446,11 @@ func (r ApiGetBucketRequest) Execute() (*GetBucketResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1564,6 +1609,11 @@ func (r ApiGetServiceStatusRequest) Execute() (*ProjectStatus, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1728,6 +1778,11 @@ func (r ApiListAccessKeysRequest) Execute() (*ListAccessKeysResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1883,6 +1938,11 @@ func (r ApiListBucketsRequest) Execute() (*ListBucketsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2038,6 +2098,11 @@ func (r ApiListCredentialsGroupsRequest) Execute() (*ListCredentialsGroupsRespon return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/opensearch/CHANGELOG.md b/services/opensearch/CHANGELOG.md index 8160237d2..257888df6 100644 --- a/services/opensearch/CHANGELOG.md +++ b/services/opensearch/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.11.1 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.11.0 (2024-04-02) - **Feature:** `InstanceParameters` has new fields `TlsCiphers`, `TlsProtocols`, `JavaGarbageCollector`, `JavaHeapspace`, and `JavaMaxmetaspace` diff --git a/services/opensearch/api_default.go b/services/opensearch/api_default.go index 000a10eac..6c9852dc6 100644 --- a/services/opensearch/api_default.go +++ b/services/opensearch/api_default.go @@ -76,6 +76,11 @@ func (r ApiCreateCredentialsRequest) Execute() (*CredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -214,6 +219,11 @@ func (r ApiCreateInstanceRequest) Execute() (*CreateInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -350,6 +360,11 @@ func (r ApiDeleteCredentialsRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -469,6 +484,11 @@ func (r ApiDeleteInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -599,6 +619,11 @@ func (r ApiGetCredentialsRequest) Execute() (*CredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -729,6 +754,11 @@ func (r ApiGetInstanceRequest) Execute() (*Instance, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -867,6 +897,11 @@ func (r ApiListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -992,6 +1027,11 @@ func (r ApiListInstancesRequest) Execute() (*ListInstancesResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1114,6 +1154,11 @@ func (r ApiListOfferingsRequest) Execute() (*ListOfferingsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1240,6 +1285,11 @@ func (r ApiPartialUpdateInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/postgresflex/CHANGELOG.md b/services/postgresflex/CHANGELOG.md index 6a94fb9fe..8c2c27dba 100644 --- a/services/postgresflex/CHANGELOG.md +++ b/services/postgresflex/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.12.1 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.12.0 (2024-04-03) - **Improvement**: Update `DeleteInstanceWaitHandler` to support new deletion method. diff --git a/services/postgresflex/api_default.go b/services/postgresflex/api_default.go index 21f992b2f..347eedd0e 100644 --- a/services/postgresflex/api_default.go +++ b/services/postgresflex/api_default.go @@ -89,6 +89,11 @@ func (r ApiCloneInstanceRequest) Execute() (*CloneInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -228,6 +233,11 @@ func (r ApiCreateInstanceRequest) Execute() (*CreateInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -366,6 +376,11 @@ func (r ApiCreateUserRequest) Execute() (*CreateUserResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -493,6 +508,11 @@ func (r ApiDeleteInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -633,6 +653,11 @@ func (r ApiDeleteUserRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -753,6 +778,11 @@ func (r ApiForceDeleteInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -883,6 +913,11 @@ func (r ApiGetBackupRequest) Execute() (*GetBackupResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1014,6 +1049,11 @@ func (r ApiGetInstanceRequest) Execute() (*InstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1144,6 +1184,11 @@ func (r ApiGetUserRequest) Execute() (*GetUserResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1275,6 +1320,11 @@ func (r ApiListBackupsRequest) Execute() (*ListBackupsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1401,6 +1451,11 @@ func (r ApiListFlavorsRequest) Execute() (*ListFlavorsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1524,6 +1579,11 @@ func (r ApiListInstancesRequest) Execute() (*ListInstancesResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1649,6 +1709,11 @@ func (r ApiListStoragesRequest) Execute() (*ListStoragesResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1777,6 +1842,11 @@ func (r ApiListUsersRequest) Execute() (*ListUsersResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1914,6 +1984,11 @@ func (r ApiListVersionsRequest) Execute() (*ListVersionsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2052,6 +2127,11 @@ func (r ApiPartialUpdateInstanceRequest) Execute() (*PartialUpdateInstanceRespon return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2191,6 +2271,11 @@ func (r ApiPartialUpdateUserRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2324,6 +2409,11 @@ func (r ApiResetUserRequest) Execute() (*ResetUserResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2488,6 +2578,11 @@ func (r ApiUpdateBackupScheduleRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2617,6 +2712,11 @@ func (r ApiUpdateUserRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/postgresql/CHANGELOG.md b/services/postgresql/CHANGELOG.md index bc2639684..d77046ed4 100644 --- a/services/postgresql/CHANGELOG.md +++ b/services/postgresql/CHANGELOG.md @@ -2,6 +2,10 @@ > > Use `github.com/stackitcloud/stackit-sdk-go/services/postgresflex` instead. For more details, check https://docs.stackit.cloud/stackit/en/bring-your-data-to-stackit-postgresql-flex-138347648.html. +## v0.13.1 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.13.0 (2024-04-02) - **Breaking change:** Field `Plugins` was removed from `InstanceParameters` diff --git a/services/postgresql/api_default.go b/services/postgresql/api_default.go index 8ef798dae..c8dcc4d93 100644 --- a/services/postgresql/api_default.go +++ b/services/postgresql/api_default.go @@ -76,6 +76,11 @@ func (r ApiCreateCredentialsRequest) Execute() (*CredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -214,6 +219,11 @@ func (r ApiCreateInstanceRequest) Execute() (*CreateInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -350,6 +360,11 @@ func (r ApiDeleteCredentialsRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -469,6 +484,11 @@ func (r ApiDeleteInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -599,6 +619,11 @@ func (r ApiGetCredentialsRequest) Execute() (*CredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -729,6 +754,11 @@ func (r ApiGetInstanceRequest) Execute() (*Instance, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -867,6 +897,11 @@ func (r ApiListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -992,6 +1027,11 @@ func (r ApiListInstancesRequest) Execute() (*ListInstancesResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1114,6 +1154,11 @@ func (r ApiListOfferingsRequest) Execute() (*ListOfferingsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1240,6 +1285,11 @@ func (r ApiPartialUpdateInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/rabbitmq/CHANGELOG.md b/services/rabbitmq/CHANGELOG.md index a6e5f6e18..523c22cf1 100644 --- a/services/rabbitmq/CHANGELOG.md +++ b/services/rabbitmq/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.11.1 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.11.0 (2024-04-02) - **Feature:** `InstanceParameters` has new fields `TlsCiphers`, `TlsProtocols`, `Roles`, and `ConsumerTimeout` diff --git a/services/rabbitmq/api_default.go b/services/rabbitmq/api_default.go index bcec63958..0c7b63f7e 100644 --- a/services/rabbitmq/api_default.go +++ b/services/rabbitmq/api_default.go @@ -76,6 +76,11 @@ func (r ApiCreateCredentialsRequest) Execute() (*CredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -214,6 +219,11 @@ func (r ApiCreateInstanceRequest) Execute() (*CreateInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -350,6 +360,11 @@ func (r ApiDeleteCredentialsRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -469,6 +484,11 @@ func (r ApiDeleteInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -599,6 +619,11 @@ func (r ApiGetCredentialsRequest) Execute() (*CredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -729,6 +754,11 @@ func (r ApiGetInstanceRequest) Execute() (*Instance, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -867,6 +897,11 @@ func (r ApiListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -992,6 +1027,11 @@ func (r ApiListInstancesRequest) Execute() (*ListInstancesResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1114,6 +1154,11 @@ func (r ApiListOfferingsRequest) Execute() (*ListOfferingsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1240,6 +1285,11 @@ func (r ApiPartialUpdateInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/redis/CHANGELOG.md b/services/redis/CHANGELOG.md index 2b34a74c0..1bb7724ac 100644 --- a/services/redis/CHANGELOG.md +++ b/services/redis/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.11.1 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.11.0 (2024-04-02) - **Feature:** `InstanceParameters` has new fields `DownAfterMilliseconds`, `FailoverTimeout`, `LazyfreeLazyEviction`, `LazyfreeLazyExpire`, `LuaTimeLimit`, `Maxclients`, `MaxmemoryPolicy`, `MaxmemorySamples`, `MinReplicasMaxLag`, `NotifyKeyspaceEvents`, `Snapshot`, `TlsCiphers`, `TlsCiphersuites`, and `TlsProtocols` diff --git a/services/redis/api_default.go b/services/redis/api_default.go index 2ccc70f4b..043908299 100644 --- a/services/redis/api_default.go +++ b/services/redis/api_default.go @@ -76,6 +76,11 @@ func (r ApiCreateCredentialsRequest) Execute() (*CredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -214,6 +219,11 @@ func (r ApiCreateInstanceRequest) Execute() (*CreateInstanceResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -350,6 +360,11 @@ func (r ApiDeleteCredentialsRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -469,6 +484,11 @@ func (r ApiDeleteInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -599,6 +619,11 @@ func (r ApiGetCredentialsRequest) Execute() (*CredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -729,6 +754,11 @@ func (r ApiGetInstanceRequest) Execute() (*Instance, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -867,6 +897,11 @@ func (r ApiListCredentialsRequest) Execute() (*ListCredentialsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -992,6 +1027,11 @@ func (r ApiListInstancesRequest) Execute() (*ListInstancesResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1114,6 +1154,11 @@ func (r ApiListOfferingsRequest) Execute() (*ListOfferingsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1240,6 +1285,11 @@ func (r ApiPartialUpdateInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/resourcemanager/CHANGELOG.md b/services/resourcemanager/CHANGELOG.md index 2525b9b2f..c5a96e6ae 100644 --- a/services/resourcemanager/CHANGELOG.md +++ b/services/resourcemanager/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.7.8 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.7.7 (2024-02-28) - Update `core` to [`v0.10.0`](../../core/CHANGELOG.md#v0100-2024-02-27) diff --git a/services/resourcemanager/api_default.go b/services/resourcemanager/api_default.go index 4a670a86e..c7f19009f 100644 --- a/services/resourcemanager/api_default.go +++ b/services/resourcemanager/api_default.go @@ -81,6 +81,11 @@ func (r ApiCreateProjectRequest) Execute() (*ProjectResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -223,6 +228,11 @@ func (r ApiDeleteProjectRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -346,6 +356,11 @@ func (r ApiGetProjectRequest) Execute() (*ProjectResponseWithParents, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -551,6 +566,11 @@ func (r ApiListProjectsRequest) Execute() (*AllProjectsResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -709,6 +729,11 @@ func (r ApiPartialUpdateProjectRequest) Execute() (*ProjectResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/secretsmanager/CHANGELOG.md b/services/secretsmanager/CHANGELOG.md index f8cd28b19..2c7601635 100644 --- a/services/secretsmanager/CHANGELOG.md +++ b/services/secretsmanager/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.6.1 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.6.0 (2024-03-18) - **Feature**: New API method `UpdateACLs` to update all ACLs of an instance diff --git a/services/secretsmanager/api_default.go b/services/secretsmanager/api_default.go index d690fa63b..b6a31a02f 100644 --- a/services/secretsmanager/api_default.go +++ b/services/secretsmanager/api_default.go @@ -87,6 +87,11 @@ func (r ApiCreateACLRequest) Execute() (*Acl, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -213,6 +218,11 @@ func (r ApiCreateInstanceRequest) Execute() (*Instance, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -338,6 +348,11 @@ func (r ApiCreateUserRequest) Execute() (*User, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -456,6 +471,11 @@ func (r ApiDeleteACLRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -565,6 +585,11 @@ func (r ApiDeleteInstanceRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -673,6 +698,11 @@ func (r ApiDeleteUserRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -785,6 +815,11 @@ func (r ApiGetACLRequest) Execute() (*Acl, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -905,6 +940,11 @@ func (r ApiGetInstanceRequest) Execute() (*Instance, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1024,6 +1064,11 @@ func (r ApiGetUserRequest) Execute() (*User, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1144,6 +1189,11 @@ func (r ApiListACLsRequest) Execute() (*AclList, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1259,6 +1309,11 @@ func (r ApiListInstancesRequest) Execute() (*InstanceList, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1373,6 +1428,11 @@ func (r ApiListUsersRequest) Execute() (*UserList, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1502,6 +1562,11 @@ func (r ApiUpdateACLRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1622,6 +1687,11 @@ func (r ApiUpdateACLsRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1741,6 +1811,11 @@ func (r ApiUpdateUserRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/serviceaccount/CHANGELOG.md b/services/serviceaccount/CHANGELOG.md index eb76e2cde..d7e4989cf 100644 --- a/services/serviceaccount/CHANGELOG.md +++ b/services/serviceaccount/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.3.8 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.3.7 (2024-04-09) - Remove unused model data types.. diff --git a/services/serviceaccount/api_default.go b/services/serviceaccount/api_default.go index 0c5749d95..a8b83f06e 100644 --- a/services/serviceaccount/api_default.go +++ b/services/serviceaccount/api_default.go @@ -86,6 +86,11 @@ func (r ApiCreateAccessTokenRequest) Execute() (*AccessToken, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -254,6 +259,11 @@ func (r ApiCreateServiceAccountRequest) Execute() (*ServiceAccount, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -421,6 +431,11 @@ func (r ApiCreateServiceAccountKeyRequest) Execute() (*CreateServiceAccountKeyRe return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -611,6 +626,11 @@ func (r ApiCreateShortLivedAccessTokenRequest) Execute() (*CreateShortLivedAcces return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -724,6 +744,11 @@ func (r ApiDeleteAccessTokenRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -887,6 +912,11 @@ func (r ApiDeleteServiceAccountRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1038,6 +1068,11 @@ func (r ApiDeleteServiceAccountKeyRequest) Execute() error { return err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1178,6 +1213,11 @@ func (r ApiGetJWKSRequest) Execute() (*JWKS, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1305,6 +1345,11 @@ func (r ApiGetServiceAccountKeyRequest) Execute() (*GetServiceAccountKeyResponse return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1457,6 +1502,11 @@ func (r ApiListAccessTokensRequest) Execute() (*ListAccessTokensResponse, error) return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1617,6 +1667,11 @@ func (r ApiListServiceAccountKeysRequest) Execute() (*ListServiceAccountKeysResp return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1764,6 +1819,11 @@ func (r ApiListServiceAccountsRequest) Execute() (*ListServiceAccountsResponse, return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1922,6 +1982,11 @@ func (r ApiPartialUpdateServiceAccountKeyRequest) Execute() (*PartialUpdateServi return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { diff --git a/services/ske/CHANGELOG.md b/services/ske/CHANGELOG.md index 8352a0c7a..8c229e9d9 100644 --- a/services/ske/CHANGELOG.md +++ b/services/ske/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.11.2 (2024-04-09) + +- Set config.ContextHTTPRequest in Execute method + ## v0.11.1 (2024-04-09) - Remove unused model data types.. diff --git a/services/ske/api_default.go b/services/ske/api_default.go index 11818ee6b..ec4cde702 100644 --- a/services/ske/api_default.go +++ b/services/ske/api_default.go @@ -76,6 +76,11 @@ func (r ApiCompleteCredentialsRotationRequest) Execute() (map[string]interface{} return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -234,6 +239,11 @@ func (r ApiCreateKubeconfigRequest) Execute() (*Kubeconfig, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -370,6 +380,11 @@ func (r ApiCreateOrUpdateClusterRequest) Execute() (*Cluster, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -517,6 +532,11 @@ func (r ApiDeleteClusterRequest) Execute() (map[string]interface{}, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -640,6 +660,11 @@ func (r ApiDisableServiceRequest) Execute() (map[string]interface{}, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -771,6 +796,11 @@ func (r ApiEnableServiceRequest) Execute() (*ProjectResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -904,6 +934,11 @@ func (r ApiGetClusterRequest) Execute() (*Cluster, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1029,6 +1064,11 @@ func (r ApiGetCredentialsRequest) Execute() (*Credentials, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1178,6 +1218,11 @@ func (r ApiGetServiceStatusRequest) Execute() (*ProjectResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1309,6 +1354,11 @@ func (r ApiListClustersRequest) Execute() (*ListClustersResponse, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1449,6 +1499,11 @@ func (r ApiListProviderOptionsRequest) Execute() (*ProviderOptions, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1568,6 +1623,11 @@ func (r ApiStartCredentialsRotationRequest) Execute() (map[string]interface{}, e return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1715,6 +1775,11 @@ func (r ApiTriggerHibernateRequest) Execute() (map[string]interface{}, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1851,6 +1916,11 @@ func (r ApiTriggerMaintenanceRequest) Execute() (map[string]interface{}, error) return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -1987,6 +2057,11 @@ func (r ApiTriggerReconcileRequest) Execute() (map[string]interface{}, error) { return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok { @@ -2123,6 +2198,11 @@ func (r ApiTriggerRotateCredentialsRequest) Execute() (map[string]interface{}, e return localVarReturnValue, err } + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + localVarHTTPResponse, err := a.client.callAPI(req) contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) if ok {