diff --git a/services/argus/api_default.go b/services/argus/api_default.go index b92aae8d..8779f41f 100644 --- a/services/argus/api_default.go +++ b/services/argus/api_default.go @@ -19,6 +19,7 @@ import ( "net/url" "strings" + "github.com/stackitcloud/stackit-sdk-go/core/config" "github.com/stackitcloud/stackit-sdk-go/core/oapierror" ) @@ -76,6 +77,10 @@ func (r ApiCreateCredentialRequest) Execute() (*ApiUserProjectCreated, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -208,6 +213,10 @@ func (r ApiCreateInstanceRequest) Execute() (*CreateInstanceResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -350,6 +359,10 @@ func (r ApiCreateInstanceAlertConfigReceiverRequest) Execute() (*ReceiversRespon } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -495,6 +508,10 @@ func (r ApiCreateInstanceAlertConfigRouteRequest) Execute() (*RouteResponse, err } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -640,6 +657,10 @@ func (r ApiCreateScrapeConfigRequest) Execute() (*ScrapeConfigsResponse, error) } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -776,6 +797,10 @@ func (r ApiDeleteCredentialRequest) Execute() (*Message, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -926,6 +951,10 @@ func (r ApiDeleteCredentialRemoteWriteConfigRequest) Execute() (*CredentialsRemo } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1085,6 +1114,10 @@ func (r ApiDeleteInstanceRequest) Execute() (*ProjectInstancesUpdateResponse, er } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1210,6 +1243,10 @@ func (r ApiDeleteInstanceAlertConfigReceiverRequest) Execute() (*ReceiversRespon } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1349,6 +1386,10 @@ func (r ApiDeleteInstanceAlertConfigRouteReceiverRequest) Execute() (*RouteRespo } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1488,6 +1529,10 @@ func (r ApiDeleteScrapeConfigRequest) Execute() (*ScrapeConfigsResponse, error) } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1627,6 +1672,10 @@ func (r ApiGetCredentialRequest) Execute() (*ServiceKeysResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1766,6 +1815,10 @@ func (r ApiGetCredentialRemoteWriteConfigRequest) Execute() (*CredentialsRemoteW } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1914,6 +1967,10 @@ func (r ApiGetCredentialsRequest) Execute() (*CredentialsListResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -2037,6 +2094,10 @@ func (r ApiGetInstanceRequest) Execute() (*InstanceResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -2160,6 +2221,10 @@ func (r ApiGetInstanceAclRequest) Execute() (*AclResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -2285,6 +2350,10 @@ func (r ApiGetInstanceAlertConfigReceiverRequest) Execute() (*ReceiversResponseS } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -2422,6 +2491,10 @@ func (r ApiGetInstanceAlertConfigReceiversRequest) Execute() (*ReceiversResponse } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -2547,6 +2620,10 @@ func (r ApiGetInstanceAlertConfigRouteReceiverRequest) Execute() (*RouteResponse } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -2673,6 +2750,10 @@ func (r ApiGetInstanceAlertConfigRoutesRequest) Execute() (*RouteResponse, error } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -2796,6 +2877,10 @@ func (r ApiGetInstanceAlertConfigsRequest) Execute() (*GetAlert, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -2919,6 +3004,10 @@ func (r ApiGetInstanceGrafanaConfigsRequest) Execute() (*GrafanaConfigs, error) } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -3040,6 +3129,10 @@ func (r ApiGetInstancesRequest) Execute() (*ProjectInstanceFullMany, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -3158,6 +3251,10 @@ func (r ApiGetPlansRequest) Execute() (*PlansResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -3280,6 +3377,10 @@ func (r ApiGetScrapeConfigRequest) Execute() (*ScrapeConfigResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -3406,6 +3507,10 @@ func (r ApiGetScrapeConfigsRequest) Execute() (*ScrapeConfigsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -3542,6 +3647,10 @@ func (r ApiUpdateCredentialRemoteWriteConfigRequest) Execute() (*CredentialsRemo } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -3712,6 +3821,10 @@ func (r ApiUpdateInstanceRequest) Execute() (*ProjectInstancesUpdateResponse, er } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -3854,6 +3967,10 @@ func (r ApiUpdateInstanceAclRequest) Execute() (*Message, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -4001,6 +4118,10 @@ func (r ApiUpdateInstanceAlertConfigReceiverRequest) Execute() (*ReceiversRespon } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -4162,6 +4283,10 @@ func (r ApiUpdateInstanceAlertConfigRouteReceiverRequest) Execute() (*RouteRespo } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -4321,6 +4446,10 @@ func (r ApiUpdateInstanceAlertConfigsRequest) Execute() (*PutAlert, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -4466,6 +4595,10 @@ func (r ApiUpdateInstanceGrafanaConfigsRequest) Execute() (*Message, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -4613,6 +4746,10 @@ func (r ApiUpdateScrapeConfigRequest) Execute() (*ScrapeConfigsResponse, error) } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } diff --git a/services/argus/go.mod b/services/argus/go.mod index 84fb3a7f..ffb83240 100644 --- a/services/argus/go.mod +++ b/services/argus/go.mod @@ -4,7 +4,7 @@ go 1.18 require ( github.com/google/go-cmp v0.6.0 - github.com/stackitcloud/stackit-sdk-go/core v0.6.0 + github.com/stackitcloud/stackit-sdk-go/core v0.4.0 ) require ( diff --git a/services/argus/go.sum b/services/argus/go.sum index 7a04e8a8..bd839d21 100644 --- a/services/argus/go.sum +++ b/services/argus/go.sum @@ -14,8 +14,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0 h1:riAtDyM2dwrAFdGA/GCojJR1zBci3x3EHTH7swuPTXQ= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0 h1:CiHaAph5x1yXCPpb4ctpl6qgsOv4EMBBPfs54hGRf5I= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= diff --git a/services/dns/api_default.go b/services/dns/api_default.go index 366e4f84..4751a9be 100644 --- a/services/dns/api_default.go +++ b/services/dns/api_default.go @@ -19,6 +19,7 @@ import ( "net/url" "strings" + "github.com/stackitcloud/stackit-sdk-go/core/config" "github.com/stackitcloud/stackit-sdk-go/core/oapierror" ) @@ -89,6 +90,10 @@ func (r ApiCreateRecordSetRequest) Execute() (*RecordSetResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -256,6 +261,10 @@ func (r ApiCreateZoneRequest) Execute() (*ZoneResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -411,6 +420,10 @@ func (r ApiDeleteRecordSetRequest) Execute() (*Message, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -559,6 +572,10 @@ func (r ApiDeleteZoneRequest) Execute() (*Message, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -706,6 +723,10 @@ func (r ApiGetRecordSetRequest) Execute() (*RecordSetResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1195,6 +1216,10 @@ func (r ApiGetRecordSetsRequest) Execute() (*RecordSetsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1329,6 +1354,10 @@ func (r ApiGetZoneRequest) Execute() (*ZoneResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1923,6 +1952,10 @@ func (r ApiGetZonesRequest) Execute() (*ZonesResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -2069,6 +2102,10 @@ func (r ApiUpdateRecordRequest) Execute() (*Message, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -2232,6 +2269,10 @@ func (r ApiUpdateRecordSetRequest) Execute() (*Message, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -2393,6 +2434,10 @@ func (r ApiUpdateZoneRequest) Execute() (*ZoneResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } diff --git a/services/dns/go.mod b/services/dns/go.mod index 6f2ec8bc..76230b1a 100644 --- a/services/dns/go.mod +++ b/services/dns/go.mod @@ -4,7 +4,7 @@ go 1.18 require ( github.com/google/go-cmp v0.6.0 - github.com/stackitcloud/stackit-sdk-go/core v0.6.0 + github.com/stackitcloud/stackit-sdk-go/core v0.4.0 ) require ( diff --git a/services/dns/go.sum b/services/dns/go.sum index 7a04e8a8..bd839d21 100644 --- a/services/dns/go.sum +++ b/services/dns/go.sum @@ -14,8 +14,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0 h1:riAtDyM2dwrAFdGA/GCojJR1zBci3x3EHTH7swuPTXQ= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0 h1:CiHaAph5x1yXCPpb4ctpl6qgsOv4EMBBPfs54hGRf5I= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= diff --git a/services/loadbalancer/api_default.go b/services/loadbalancer/api_default.go index a761b5f3..bf51e42c 100644 --- a/services/loadbalancer/api_default.go +++ b/services/loadbalancer/api_default.go @@ -19,6 +19,7 @@ import ( "net/url" "strings" + "github.com/stackitcloud/stackit-sdk-go/core/config" "github.com/stackitcloud/stackit-sdk-go/core/oapierror" ) @@ -95,6 +96,10 @@ func (r ApiCreateLoadBalancerRequest) Execute() (*LoadBalancer, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -205,6 +210,10 @@ func (r ApiDeleteLoadBalancerRequest) Execute() (map[string]interface{}, error) } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -316,6 +325,10 @@ func (r ApiDisableLoadBalancingRequest) Execute() (map[string]interface{}, error } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -434,6 +447,10 @@ func (r ApiEnableLoadBalancingRequest) Execute() (map[string]interface{}, error) } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -544,6 +561,10 @@ func (r ApiGetLoadBalancerRequest) Execute() (*LoadBalancer, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -655,6 +676,10 @@ func (r ApiGetStatusRequest) Execute() (*StatusResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -763,6 +788,10 @@ func (r ApiListLoadBalancersRequest) Execute() (*ListLoadBalancersResponse, erro } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -886,6 +915,10 @@ func (r ApiUpdateTargetPoolRequest) Execute() (*TargetPool, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } diff --git a/services/loadbalancer/go.mod b/services/loadbalancer/go.mod index 22e2065f..e2777f92 100644 --- a/services/loadbalancer/go.mod +++ b/services/loadbalancer/go.mod @@ -4,7 +4,7 @@ go 1.18 require ( github.com/google/go-cmp v0.6.0 - github.com/stackitcloud/stackit-sdk-go/core v0.6.0 + github.com/stackitcloud/stackit-sdk-go/core v0.4.0 ) require ( diff --git a/services/loadbalancer/go.sum b/services/loadbalancer/go.sum index 7a04e8a8..bd839d21 100644 --- a/services/loadbalancer/go.sum +++ b/services/loadbalancer/go.sum @@ -14,8 +14,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0 h1:riAtDyM2dwrAFdGA/GCojJR1zBci3x3EHTH7swuPTXQ= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0 h1:CiHaAph5x1yXCPpb4ctpl6qgsOv4EMBBPfs54hGRf5I= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= diff --git a/services/logme/api_default.go b/services/logme/api_default.go index 7bcac13a..83268986 100644 --- a/services/logme/api_default.go +++ b/services/logme/api_default.go @@ -19,6 +19,7 @@ import ( "net/url" "strings" + "github.com/stackitcloud/stackit-sdk-go/core/config" "github.com/stackitcloud/stackit-sdk-go/core/oapierror" ) @@ -76,6 +77,10 @@ func (r ApiCreateCredentialsRequest) Execute() (*CredentialsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -210,6 +215,10 @@ func (r ApiCreateInstanceRequest) Execute() (*InstanceId, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -342,6 +351,10 @@ func (r ApiDeleteCredentialsRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } @@ -457,6 +470,10 @@ func (r ApiDeleteInstanceRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } @@ -583,6 +600,10 @@ func (r ApiGetCredentialsRequest) Execute() (*CredentialsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -709,6 +730,10 @@ func (r ApiGetCredentialsIdsRequest) Execute() (*CredentialsIdsResponse, error) } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -832,6 +857,10 @@ func (r ApiGetInstanceRequest) Execute() (*Instance, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -964,6 +993,10 @@ func (r ApiGetInstancesRequest) Execute() (*InstanceList, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1082,6 +1115,10 @@ func (r ApiGetOfferingsRequest) Execute() (*OfferingList, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1204,6 +1241,10 @@ func (r ApiUpdateInstanceRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } diff --git a/services/logme/go.mod b/services/logme/go.mod index 0303b65c..a119475c 100644 --- a/services/logme/go.mod +++ b/services/logme/go.mod @@ -4,7 +4,7 @@ go 1.18 require ( github.com/google/go-cmp v0.6.0 - github.com/stackitcloud/stackit-sdk-go/core v0.6.0 + github.com/stackitcloud/stackit-sdk-go/core v0.4.0 ) require ( diff --git a/services/logme/go.sum b/services/logme/go.sum index 7a04e8a8..bd839d21 100644 --- a/services/logme/go.sum +++ b/services/logme/go.sum @@ -14,8 +14,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0 h1:riAtDyM2dwrAFdGA/GCojJR1zBci3x3EHTH7swuPTXQ= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0 h1:CiHaAph5x1yXCPpb4ctpl6qgsOv4EMBBPfs54hGRf5I= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= diff --git a/services/mariadb/api_default.go b/services/mariadb/api_default.go index 0303a9b0..9f9b2592 100644 --- a/services/mariadb/api_default.go +++ b/services/mariadb/api_default.go @@ -19,6 +19,7 @@ import ( "net/url" "strings" + "github.com/stackitcloud/stackit-sdk-go/core/config" "github.com/stackitcloud/stackit-sdk-go/core/oapierror" ) @@ -76,6 +77,10 @@ func (r ApiCreateCredentialsRequest) Execute() (*CredentialsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -210,6 +215,10 @@ func (r ApiCreateInstanceRequest) Execute() (*InstanceId, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -342,6 +351,10 @@ func (r ApiDeleteCredentialsRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } @@ -457,6 +470,10 @@ func (r ApiDeleteInstanceRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } @@ -583,6 +600,10 @@ func (r ApiGetCredentialsRequest) Execute() (*CredentialsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -709,6 +730,10 @@ func (r ApiGetCredentialsIdsRequest) Execute() (*CredentialsIdsResponse, error) } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -832,6 +857,10 @@ func (r ApiGetInstanceRequest) Execute() (*Instance, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -964,6 +993,10 @@ func (r ApiGetInstancesRequest) Execute() (*InstanceList, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1082,6 +1115,10 @@ func (r ApiGetOfferingsRequest) Execute() (*OfferingList, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1204,6 +1241,10 @@ func (r ApiUpdateInstanceRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } diff --git a/services/mariadb/go.mod b/services/mariadb/go.mod index 579542d2..b6bb9a8f 100644 --- a/services/mariadb/go.mod +++ b/services/mariadb/go.mod @@ -4,7 +4,7 @@ go 1.18 require ( github.com/google/go-cmp v0.6.0 - github.com/stackitcloud/stackit-sdk-go/core v0.6.0 + github.com/stackitcloud/stackit-sdk-go/core v0.4.0 ) require ( diff --git a/services/mariadb/go.sum b/services/mariadb/go.sum index 7a04e8a8..bd839d21 100644 --- a/services/mariadb/go.sum +++ b/services/mariadb/go.sum @@ -14,8 +14,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0 h1:riAtDyM2dwrAFdGA/GCojJR1zBci3x3EHTH7swuPTXQ= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0 h1:CiHaAph5x1yXCPpb4ctpl6qgsOv4EMBBPfs54hGRf5I= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= diff --git a/services/membership/api_default.go b/services/membership/api_default.go index ca5af1cb..949f6d45 100644 --- a/services/membership/api_default.go +++ b/services/membership/api_default.go @@ -19,6 +19,7 @@ import ( "net/url" "strings" + "github.com/stackitcloud/stackit-sdk-go/core/config" "github.com/stackitcloud/stackit-sdk-go/core/oapierror" ) @@ -85,6 +86,10 @@ func (r ApiDeleteMembersRequest) Execute() (*MembersResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -236,6 +241,10 @@ func (r ApiGetMembersRequest) Execute() (*GetMembersResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -406,6 +415,10 @@ func (r ApiGetMembershipsRequest) Execute() (*MembershipsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -553,6 +566,10 @@ func (r ApiGetPermissionsRequest) Execute() (*PermissionsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -692,6 +709,10 @@ func (r ApiGetRolesRequest) Execute() (*RolesResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -846,6 +867,10 @@ func (r ApiUpdateMembersRequest) Execute() (*MembersResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } diff --git a/services/membership/go.mod b/services/membership/go.mod index c17b3e9f..3f7f97e4 100644 --- a/services/membership/go.mod +++ b/services/membership/go.mod @@ -2,7 +2,7 @@ module github.com/stackitcloud/stackit-sdk-go/services/membership go 1.18 -require github.com/stackitcloud/stackit-sdk-go/core v0.6.0 +require github.com/stackitcloud/stackit-sdk-go/core v0.4.0 require ( github.com/MicahParks/keyfunc/v2 v2.1.0 // indirect diff --git a/services/membership/go.sum b/services/membership/go.sum index c0becf35..a69e972d 100644 --- a/services/membership/go.sum +++ b/services/membership/go.sum @@ -13,8 +13,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0 h1:riAtDyM2dwrAFdGA/GCojJR1zBci3x3EHTH7swuPTXQ= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0 h1:CiHaAph5x1yXCPpb4ctpl6qgsOv4EMBBPfs54hGRf5I= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= diff --git a/services/mongodbflex/api_default.go b/services/mongodbflex/api_default.go index 2f5e0b92..ccdfc0a8 100644 --- a/services/mongodbflex/api_default.go +++ b/services/mongodbflex/api_default.go @@ -19,6 +19,7 @@ import ( "net/url" "strings" + "github.com/stackitcloud/stackit-sdk-go/core/config" "github.com/stackitcloud/stackit-sdk-go/core/oapierror" ) @@ -89,6 +90,10 @@ func (r ApiCloneInstanceRequest) Execute() (*CloneInstanceResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -235,6 +240,10 @@ func (r ApiCreateInstanceRequest) Execute() (*CreateInstanceResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -390,6 +399,10 @@ func (r ApiCreateUserRequest) Execute() (*CreateUserResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -545,6 +558,10 @@ func (r ApiDeleteInstanceRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } @@ -677,6 +694,10 @@ func (r ApiDeleteProjectRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } @@ -799,6 +820,10 @@ func (r ApiDeleteUserRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } @@ -928,6 +953,10 @@ func (r ApiGetBackupRequest) Execute() (*GetBackupResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1065,6 +1094,10 @@ func (r ApiGetBackupsRequest) Execute() (*GetBackupsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1244,6 +1277,10 @@ func (r ApiGetCPUMetricsRequest) Execute() (*GetMetricsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1434,6 +1471,10 @@ func (r ApiGetDatabaseStorageMetricsRequest) Execute() (*GetMetricsResponse, err } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1624,6 +1665,10 @@ func (r ApiGetDiskIOPSMetricsRequest) Execute() (*GetMetricsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1814,6 +1859,10 @@ func (r ApiGetDiskUsageMetricsRequest) Execute() (*GetMetricsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -2004,6 +2053,10 @@ func (r ApiGetExecutionTimesMetricsRequest) Execute() (*GetMetricsResponse, erro } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -2147,6 +2200,10 @@ func (r ApiGetFlavorsRequest) Execute() (*GetFlavorsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -2278,6 +2335,10 @@ func (r ApiGetInstanceRequest) Execute() (*GetInstanceResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -2412,6 +2473,10 @@ func (r ApiGetInstanceRestoresRequest) Execute() (*GetInstanceRestoresResponse, } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -2556,6 +2621,10 @@ func (r ApiGetInstancesRequest) Execute() (*GetInstancesResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -2744,6 +2813,10 @@ func (r ApiGetMemoryMetricsRequest) Execute() (*GetMetricsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -2889,6 +2962,10 @@ func (r ApiGetStorageRequest) Execute() (*GetStorageResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -3025,6 +3102,10 @@ func (r ApiGetUserRequest) Execute() (*GetUserResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -3162,6 +3243,10 @@ func (r ApiGetUsersRequest) Execute() (*GetUsersResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -3294,6 +3379,10 @@ func (r ApiGetVersionsRequest) Execute() (*GetVersionsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -3427,6 +3516,10 @@ func (r ApiPartialUpdateInstanceRequest) Execute() (*UpdateInstanceResponse, err } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -3597,6 +3690,10 @@ func (r ApiPartialUpdateUserRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } @@ -3737,6 +3834,10 @@ func (r ApiResetUserRequest) Execute() (*InstanceUser, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -3887,6 +3988,10 @@ func (r ApiRestoreInstanceRequest) Execute() (*RestoreInstanceResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -4034,6 +4139,10 @@ func (r ApiUpdateBackupScheduleRequest) Execute() (*UpdateBackupSchedulePayload, } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -4181,6 +4290,10 @@ func (r ApiUpdateInstanceRequest) Execute() (*UpdateInstanceResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -4351,6 +4464,10 @@ func (r ApiUpdateUserRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } diff --git a/services/mongodbflex/go.mod b/services/mongodbflex/go.mod index d2e43483..a8e44947 100644 --- a/services/mongodbflex/go.mod +++ b/services/mongodbflex/go.mod @@ -4,7 +4,7 @@ go 1.18 require ( github.com/google/go-cmp v0.6.0 - github.com/stackitcloud/stackit-sdk-go/core v0.6.0 + github.com/stackitcloud/stackit-sdk-go/core v0.4.0 ) require ( diff --git a/services/mongodbflex/go.sum b/services/mongodbflex/go.sum index 7a04e8a8..bd839d21 100644 --- a/services/mongodbflex/go.sum +++ b/services/mongodbflex/go.sum @@ -14,8 +14,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0 h1:riAtDyM2dwrAFdGA/GCojJR1zBci3x3EHTH7swuPTXQ= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0 h1:CiHaAph5x1yXCPpb4ctpl6qgsOv4EMBBPfs54hGRf5I= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= diff --git a/services/objectstorage/api_default.go b/services/objectstorage/api_default.go index 68de5626..eac4e9d6 100644 --- a/services/objectstorage/api_default.go +++ b/services/objectstorage/api_default.go @@ -19,6 +19,7 @@ import ( "net/url" "strings" + "github.com/stackitcloud/stackit-sdk-go/core/config" "github.com/stackitcloud/stackit-sdk-go/core/oapierror" ) @@ -94,6 +95,10 @@ func (r ApiCreateAccessKeyRequest) Execute() (*CreateAccessKeyResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -253,6 +258,10 @@ func (r ApiCreateBucketRequest) Execute() (*CreateBucketResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -419,6 +428,10 @@ func (r ApiCreateCredentialsGroupRequest) Execute() (*CreateCredentialsGroupResp } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -579,6 +592,10 @@ func (r ApiCreateProjectRequest) Execute() (*GetProjectResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -742,6 +759,10 @@ func (r ApiDeleteAccessKeyRequest) Execute() (*DeleteAccessKeyResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -915,6 +936,10 @@ func (r ApiDeleteBucketRequest) Execute() (*DeleteBucketResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1060,6 +1085,10 @@ func (r ApiDeleteCredentialsGroupRequest) Execute() (*DeleteCredentialsGroupResp } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1204,6 +1233,10 @@ func (r ApiDeleteProjectRequest) Execute() (*GetProjectResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1375,6 +1408,10 @@ func (r ApiGetAccessKeysRequest) Execute() (*GetAccessKeysResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1534,6 +1571,10 @@ func (r ApiGetBucketRequest) Execute() (*GetBucketResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1688,6 +1729,10 @@ func (r ApiGetBucketsRequest) Execute() (*GetBucketsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1839,6 +1884,10 @@ func (r ApiGetCredentialsGroupsRequest) Execute() (*GetCredentialsGroupsResponse } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1979,6 +2028,10 @@ func (r ApiGetProjectRequest) Execute() (*GetProjectResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } diff --git a/services/objectstorage/go.mod b/services/objectstorage/go.mod index aff4fe2c..7c1003d6 100644 --- a/services/objectstorage/go.mod +++ b/services/objectstorage/go.mod @@ -4,7 +4,7 @@ go 1.18 require ( github.com/google/go-cmp v0.6.0 - github.com/stackitcloud/stackit-sdk-go/core v0.6.0 + github.com/stackitcloud/stackit-sdk-go/core v0.4.0 ) require ( diff --git a/services/objectstorage/go.sum b/services/objectstorage/go.sum index 7a04e8a8..bd839d21 100644 --- a/services/objectstorage/go.sum +++ b/services/objectstorage/go.sum @@ -14,8 +14,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0 h1:riAtDyM2dwrAFdGA/GCojJR1zBci3x3EHTH7swuPTXQ= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0 h1:CiHaAph5x1yXCPpb4ctpl6qgsOv4EMBBPfs54hGRf5I= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= diff --git a/services/opensearch/api_default.go b/services/opensearch/api_default.go index 0774ae57..35d35c8b 100644 --- a/services/opensearch/api_default.go +++ b/services/opensearch/api_default.go @@ -19,6 +19,7 @@ import ( "net/url" "strings" + "github.com/stackitcloud/stackit-sdk-go/core/config" "github.com/stackitcloud/stackit-sdk-go/core/oapierror" ) @@ -76,6 +77,10 @@ func (r ApiCreateCredentialsRequest) Execute() (*CredentialsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -210,6 +215,10 @@ func (r ApiCreateInstanceRequest) Execute() (*InstanceId, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -342,6 +351,10 @@ func (r ApiDeleteCredentialsRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } @@ -457,6 +470,10 @@ func (r ApiDeleteInstanceRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } @@ -583,6 +600,10 @@ func (r ApiGetCredentialsRequest) Execute() (*CredentialsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -709,6 +730,10 @@ func (r ApiGetCredentialsIdsRequest) Execute() (*CredentialsIdsResponse, error) } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -832,6 +857,10 @@ func (r ApiGetInstanceRequest) Execute() (*Instance, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -964,6 +993,10 @@ func (r ApiGetInstancesRequest) Execute() (*InstanceList, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1082,6 +1115,10 @@ func (r ApiGetOfferingsRequest) Execute() (*OfferingList, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1204,6 +1241,10 @@ func (r ApiUpdateInstanceRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } diff --git a/services/opensearch/go.mod b/services/opensearch/go.mod index aca997ef..7d58448e 100644 --- a/services/opensearch/go.mod +++ b/services/opensearch/go.mod @@ -4,7 +4,7 @@ go 1.18 require ( github.com/google/go-cmp v0.6.0 - github.com/stackitcloud/stackit-sdk-go/core v0.6.0 + github.com/stackitcloud/stackit-sdk-go/core v0.4.0 ) require ( diff --git a/services/opensearch/go.sum b/services/opensearch/go.sum index 7a04e8a8..bd839d21 100644 --- a/services/opensearch/go.sum +++ b/services/opensearch/go.sum @@ -14,8 +14,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0 h1:riAtDyM2dwrAFdGA/GCojJR1zBci3x3EHTH7swuPTXQ= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0 h1:CiHaAph5x1yXCPpb4ctpl6qgsOv4EMBBPfs54hGRf5I= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= diff --git a/services/postgresflex/api_default.go b/services/postgresflex/api_default.go index 4ebe6677..c67d35cf 100644 --- a/services/postgresflex/api_default.go +++ b/services/postgresflex/api_default.go @@ -19,6 +19,7 @@ import ( "net/url" "strings" + "github.com/stackitcloud/stackit-sdk-go/core/config" "github.com/stackitcloud/stackit-sdk-go/core/oapierror" ) @@ -87,6 +88,10 @@ func (r ApiCreateInstanceRequest) Execute() (*CreateInstanceResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -221,6 +226,10 @@ func (r ApiCreateUserRequest) Execute() (*CreateUserResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -344,6 +353,10 @@ func (r ApiDeleteInstanceRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } @@ -459,6 +472,10 @@ func (r ApiDeleteUserRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } @@ -578,6 +595,10 @@ func (r ApiGetBackupRequest) Execute() (*BackupResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -705,6 +726,10 @@ func (r ApiGetBackupsRequest) Execute() (*BackupsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -827,6 +852,10 @@ func (r ApiGetFlavorsRequest) Execute() (*FlavorsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -948,6 +977,10 @@ func (r ApiGetInstanceRequest) Execute() (*InstanceResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1070,6 +1103,10 @@ func (r ApiGetInstancesRequest) Execute() (*InstancesResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1191,6 +1228,10 @@ func (r ApiGetStoragesRequest) Execute() (*StoragesResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1317,6 +1358,10 @@ func (r ApiGetUserRequest) Execute() (*UserResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1444,6 +1489,10 @@ func (r ApiGetUsersRequest) Execute() (*UsersResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1577,6 +1626,10 @@ func (r ApiGetVersionsRequest) Execute() (*VersionsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1710,6 +1763,10 @@ func (r ApiUpdateBackupScheduleRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } @@ -1837,6 +1894,10 @@ func (r ApiUpdateInstanceRequest) Execute() (*UpdateInstanceResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } diff --git a/services/postgresflex/go.mod b/services/postgresflex/go.mod index ac493979..9eb7ae3a 100644 --- a/services/postgresflex/go.mod +++ b/services/postgresflex/go.mod @@ -4,7 +4,7 @@ go 1.18 require ( github.com/google/go-cmp v0.6.0 - github.com/stackitcloud/stackit-sdk-go/core v0.6.0 + github.com/stackitcloud/stackit-sdk-go/core v0.4.0 ) require ( diff --git a/services/postgresflex/go.sum b/services/postgresflex/go.sum index 7a04e8a8..bd839d21 100644 --- a/services/postgresflex/go.sum +++ b/services/postgresflex/go.sum @@ -14,8 +14,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0 h1:riAtDyM2dwrAFdGA/GCojJR1zBci3x3EHTH7swuPTXQ= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0 h1:CiHaAph5x1yXCPpb4ctpl6qgsOv4EMBBPfs54hGRf5I= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= diff --git a/services/postgresql/api_default.go b/services/postgresql/api_default.go index c70073c8..355b406c 100644 --- a/services/postgresql/api_default.go +++ b/services/postgresql/api_default.go @@ -19,6 +19,7 @@ import ( "net/url" "strings" + "github.com/stackitcloud/stackit-sdk-go/core/config" "github.com/stackitcloud/stackit-sdk-go/core/oapierror" ) @@ -76,6 +77,10 @@ func (r ApiCreateCredentialsRequest) Execute() (*CredentialsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -210,6 +215,10 @@ func (r ApiCreateInstanceRequest) Execute() (*InstanceId, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -342,6 +351,10 @@ func (r ApiDeleteCredentialsRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } @@ -457,6 +470,10 @@ func (r ApiDeleteInstanceRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } @@ -583,6 +600,10 @@ func (r ApiGetCredentialsRequest) Execute() (*CredentialsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -709,6 +730,10 @@ func (r ApiGetCredentialsIdsRequest) Execute() (*CredentialsIdsResponse, error) } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -832,6 +857,10 @@ func (r ApiGetInstanceRequest) Execute() (*Instance, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -964,6 +993,10 @@ func (r ApiGetInstancesRequest) Execute() (*InstanceList, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1082,6 +1115,10 @@ func (r ApiGetOfferingsRequest) Execute() (*OfferingList, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1204,6 +1241,10 @@ func (r ApiUpdateInstanceRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } diff --git a/services/postgresql/go.mod b/services/postgresql/go.mod index b1d3251a..d75a99c6 100644 --- a/services/postgresql/go.mod +++ b/services/postgresql/go.mod @@ -4,7 +4,7 @@ go 1.18 require ( github.com/google/go-cmp v0.6.0 - github.com/stackitcloud/stackit-sdk-go/core v0.6.0 + github.com/stackitcloud/stackit-sdk-go/core v0.4.0 ) require ( diff --git a/services/postgresql/go.sum b/services/postgresql/go.sum index 7a04e8a8..bd839d21 100644 --- a/services/postgresql/go.sum +++ b/services/postgresql/go.sum @@ -14,8 +14,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0 h1:riAtDyM2dwrAFdGA/GCojJR1zBci3x3EHTH7swuPTXQ= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0 h1:CiHaAph5x1yXCPpb4ctpl6qgsOv4EMBBPfs54hGRf5I= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= diff --git a/services/rabbitmq/api_default.go b/services/rabbitmq/api_default.go index 85b8c0c8..efbce4c4 100644 --- a/services/rabbitmq/api_default.go +++ b/services/rabbitmq/api_default.go @@ -19,6 +19,7 @@ import ( "net/url" "strings" + "github.com/stackitcloud/stackit-sdk-go/core/config" "github.com/stackitcloud/stackit-sdk-go/core/oapierror" ) @@ -76,6 +77,10 @@ func (r ApiCreateCredentialsRequest) Execute() (*CredentialsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -210,6 +215,10 @@ func (r ApiCreateInstanceRequest) Execute() (*InstanceId, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -342,6 +351,10 @@ func (r ApiDeleteCredentialsRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } @@ -457,6 +470,10 @@ func (r ApiDeleteInstanceRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } @@ -583,6 +600,10 @@ func (r ApiGetCredentialsRequest) Execute() (*CredentialsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -709,6 +730,10 @@ func (r ApiGetCredentialsIdsRequest) Execute() (*CredentialsIdsResponse, error) } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -832,6 +857,10 @@ func (r ApiGetInstanceRequest) Execute() (*Instance, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -964,6 +993,10 @@ func (r ApiGetInstancesRequest) Execute() (*InstanceList, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1082,6 +1115,10 @@ func (r ApiGetOfferingsRequest) Execute() (*OfferingList, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1204,6 +1241,10 @@ func (r ApiUpdateInstanceRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } diff --git a/services/rabbitmq/go.mod b/services/rabbitmq/go.mod index 8610b92e..30c667a6 100644 --- a/services/rabbitmq/go.mod +++ b/services/rabbitmq/go.mod @@ -4,7 +4,7 @@ go 1.18 require ( github.com/google/go-cmp v0.6.0 - github.com/stackitcloud/stackit-sdk-go/core v0.6.0 + github.com/stackitcloud/stackit-sdk-go/core v0.4.0 ) require ( diff --git a/services/rabbitmq/go.sum b/services/rabbitmq/go.sum index 7a04e8a8..bd839d21 100644 --- a/services/rabbitmq/go.sum +++ b/services/rabbitmq/go.sum @@ -14,8 +14,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0 h1:riAtDyM2dwrAFdGA/GCojJR1zBci3x3EHTH7swuPTXQ= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0 h1:CiHaAph5x1yXCPpb4ctpl6qgsOv4EMBBPfs54hGRf5I= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= diff --git a/services/redis/api_default.go b/services/redis/api_default.go index 24ca8386..74d1c877 100644 --- a/services/redis/api_default.go +++ b/services/redis/api_default.go @@ -19,6 +19,7 @@ import ( "net/url" "strings" + "github.com/stackitcloud/stackit-sdk-go/core/config" "github.com/stackitcloud/stackit-sdk-go/core/oapierror" ) @@ -76,6 +77,10 @@ func (r ApiCreateCredentialsRequest) Execute() (*CredentialsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -210,6 +215,10 @@ func (r ApiCreateInstanceRequest) Execute() (*InstanceId, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -342,6 +351,10 @@ func (r ApiDeleteCredentialsRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } @@ -457,6 +470,10 @@ func (r ApiDeleteInstanceRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } @@ -583,6 +600,10 @@ func (r ApiGetCredentialsRequest) Execute() (*CredentialsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -709,6 +730,10 @@ func (r ApiGetCredentialsIdsRequest) Execute() (*CredentialsIdsResponse, error) } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -832,6 +857,10 @@ func (r ApiGetInstanceRequest) Execute() (*Instance, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -964,6 +993,10 @@ func (r ApiGetInstancesRequest) Execute() (*InstanceList, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1082,6 +1115,10 @@ func (r ApiGetOfferingsRequest) Execute() (*OfferingList, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1204,6 +1241,10 @@ func (r ApiUpdateInstanceRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } diff --git a/services/redis/go.mod b/services/redis/go.mod index f63a0f2b..7483df19 100644 --- a/services/redis/go.mod +++ b/services/redis/go.mod @@ -4,7 +4,7 @@ go 1.18 require ( github.com/google/go-cmp v0.6.0 - github.com/stackitcloud/stackit-sdk-go/core v0.6.0 + github.com/stackitcloud/stackit-sdk-go/core v0.4.0 ) require ( diff --git a/services/redis/go.sum b/services/redis/go.sum index 7a04e8a8..bd839d21 100644 --- a/services/redis/go.sum +++ b/services/redis/go.sum @@ -14,8 +14,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0 h1:riAtDyM2dwrAFdGA/GCojJR1zBci3x3EHTH7swuPTXQ= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0 h1:CiHaAph5x1yXCPpb4ctpl6qgsOv4EMBBPfs54hGRf5I= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= diff --git a/services/resourcemanager/api_default.go b/services/resourcemanager/api_default.go index 1c4402a3..0dd063af 100644 --- a/services/resourcemanager/api_default.go +++ b/services/resourcemanager/api_default.go @@ -20,6 +20,7 @@ import ( "strings" "time" + "github.com/stackitcloud/stackit-sdk-go/core/config" "github.com/stackitcloud/stackit-sdk-go/core/oapierror" ) @@ -81,6 +82,10 @@ func (r ApiCreateProjectRequest) Execute() (*ProjectResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -219,6 +224,10 @@ func (r ApiDeleteProjectRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } @@ -338,6 +347,10 @@ func (r ApiGetProjectRequest) Execute() (*ProjectResponseWithParents, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -539,6 +552,10 @@ func (r ApiGetProjectsRequest) Execute() (*AllProjectsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -693,6 +710,10 @@ func (r ApiUpdateProjectRequest) Execute() (*ProjectResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } diff --git a/services/resourcemanager/go.mod b/services/resourcemanager/go.mod index 624ce657..fdec2741 100644 --- a/services/resourcemanager/go.mod +++ b/services/resourcemanager/go.mod @@ -4,7 +4,7 @@ go 1.18 require ( github.com/google/go-cmp v0.6.0 - github.com/stackitcloud/stackit-sdk-go/core v0.6.0 + github.com/stackitcloud/stackit-sdk-go/core v0.4.0 ) require ( diff --git a/services/resourcemanager/go.sum b/services/resourcemanager/go.sum index 7a04e8a8..bd839d21 100644 --- a/services/resourcemanager/go.sum +++ b/services/resourcemanager/go.sum @@ -14,8 +14,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0 h1:riAtDyM2dwrAFdGA/GCojJR1zBci3x3EHTH7swuPTXQ= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0 h1:CiHaAph5x1yXCPpb4ctpl6qgsOv4EMBBPfs54hGRf5I= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= diff --git a/services/secretsmanager/api_default.go b/services/secretsmanager/api_default.go index 511dd30f..0a0b08a8 100644 --- a/services/secretsmanager/api_default.go +++ b/services/secretsmanager/api_default.go @@ -19,6 +19,7 @@ import ( "net/url" "strings" + "github.com/stackitcloud/stackit-sdk-go/core/config" "github.com/stackitcloud/stackit-sdk-go/core/oapierror" ) @@ -87,6 +88,10 @@ func (r ApiCreateAclRequest) Execute() (*Acl, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -209,6 +214,10 @@ func (r ApiCreateInstanceRequest) Execute() (*Instance, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -330,6 +339,10 @@ func (r ApiCreateUserRequest) Execute() (*User, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -444,6 +457,10 @@ func (r ApiDeleteAclRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } @@ -549,6 +566,10 @@ func (r ApiDeleteInstanceRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } @@ -653,6 +674,10 @@ func (r ApiDeleteUserRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } @@ -761,6 +786,10 @@ func (r ApiGetAclRequest) Execute() (*Acl, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -877,6 +906,10 @@ func (r ApiGetAclsRequest) Execute() (*AclList, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -990,6 +1023,10 @@ func (r ApiGetInstanceRequest) Execute() (*Instance, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1101,6 +1138,10 @@ func (r ApiGetInstancesRequest) Execute() (*InstanceList, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1213,6 +1254,10 @@ func (r ApiGetUserRequest) Execute() (*User, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1329,6 +1374,10 @@ func (r ApiGetUsersRequest) Execute() (*UserList, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1454,6 +1503,10 @@ func (r ApiUpdateAclRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } @@ -1572,6 +1625,10 @@ func (r ApiUpdateUserRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } diff --git a/services/secretsmanager/go.mod b/services/secretsmanager/go.mod index 52a2a7c4..75a01593 100644 --- a/services/secretsmanager/go.mod +++ b/services/secretsmanager/go.mod @@ -2,7 +2,7 @@ module github.com/stackitcloud/stackit-sdk-go/services/secretsmanager go 1.18 -require github.com/stackitcloud/stackit-sdk-go/core v0.6.0 +require github.com/stackitcloud/stackit-sdk-go/core v0.4.0 require ( github.com/MicahParks/keyfunc/v2 v2.1.0 // indirect diff --git a/services/secretsmanager/go.sum b/services/secretsmanager/go.sum index c0becf35..a69e972d 100644 --- a/services/secretsmanager/go.sum +++ b/services/secretsmanager/go.sum @@ -13,8 +13,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0 h1:riAtDyM2dwrAFdGA/GCojJR1zBci3x3EHTH7swuPTXQ= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0 h1:CiHaAph5x1yXCPpb4ctpl6qgsOv4EMBBPfs54hGRf5I= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= diff --git a/services/serviceaccount/api_default.go b/services/serviceaccount/api_default.go index 52682236..1b722772 100644 --- a/services/serviceaccount/api_default.go +++ b/services/serviceaccount/api_default.go @@ -19,6 +19,7 @@ import ( "net/url" "strings" + "github.com/stackitcloud/stackit-sdk-go/core/config" "github.com/stackitcloud/stackit-sdk-go/core/oapierror" ) @@ -86,6 +87,10 @@ func (r ApiCreateAccessTokenRequest) Execute() (*AccessToken, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -250,6 +255,10 @@ func (r ApiCreateServiceAccountRequest) Execute() (*ServiceAccount, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -413,6 +422,10 @@ func (r ApiCreateServiceAccountKeyRequest) Execute() (*CreateServiceAccountKeyRe } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -599,6 +612,10 @@ func (r ApiCreateShortLivedAccessTokenRequest) Execute() (*CreateShortLivedAcces } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -708,6 +725,10 @@ func (r ApiDeleteAccessTokenRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } @@ -867,6 +888,10 @@ func (r ApiDeleteServiceAccountRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } @@ -1014,6 +1039,10 @@ func (r ApiDeleteServiceAccountKeyRequest) Execute() error { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return err } @@ -1152,6 +1181,10 @@ func (r ApiGetAccessTokensRequest) Execute() (*AccessTokensResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1306,6 +1339,10 @@ func (r ApiGetServiceAccountJWKSRequest) Execute() (*GetServiceAccountJWKS, erro } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1429,6 +1466,10 @@ func (r ApiGetServiceAccountKeyRequest) Execute() (*GetServiceAccountKeyResponse } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1577,6 +1618,10 @@ func (r ApiGetServiceAccountKeysRequest) Execute() (*GetServiceAccountsKeysRespo } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1720,6 +1765,10 @@ func (r ApiGetServiceAccountsRequest) Execute() (*GetServiceAccountsResponse, er } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1874,6 +1923,10 @@ func (r ApiUpdateServiceAccountKeyRequest) Execute() (*UpdateServiceAccountKeyRe } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } diff --git a/services/serviceaccount/go.mod b/services/serviceaccount/go.mod index d4fb75c1..7d6bf44b 100644 --- a/services/serviceaccount/go.mod +++ b/services/serviceaccount/go.mod @@ -2,7 +2,7 @@ module github.com/stackitcloud/stackit-sdk-go/services/serviceaccount go 1.18 -require github.com/stackitcloud/stackit-sdk-go/core v0.6.0 +require github.com/stackitcloud/stackit-sdk-go/core v0.4.0 require ( github.com/MicahParks/keyfunc/v2 v2.1.0 // indirect diff --git a/services/serviceaccount/go.sum b/services/serviceaccount/go.sum index c0becf35..a69e972d 100644 --- a/services/serviceaccount/go.sum +++ b/services/serviceaccount/go.sum @@ -13,8 +13,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0 h1:riAtDyM2dwrAFdGA/GCojJR1zBci3x3EHTH7swuPTXQ= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0 h1:CiHaAph5x1yXCPpb4ctpl6qgsOv4EMBBPfs54hGRf5I= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= diff --git a/services/ske/api_default.go b/services/ske/api_default.go index b78a6835..d8b296ea 100644 --- a/services/ske/api_default.go +++ b/services/ske/api_default.go @@ -19,6 +19,7 @@ import ( "net/url" "strings" + "github.com/stackitcloud/stackit-sdk-go/core/config" "github.com/stackitcloud/stackit-sdk-go/core/oapierror" ) @@ -87,6 +88,10 @@ func (r ApiCreateOrUpdateClusterRequest) Execute() (*ClusterResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -228,6 +233,10 @@ func (r ApiCreateProjectRequest) Execute() (*ProjectResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -357,6 +366,10 @@ func (r ApiDeleteClusterRequest) Execute() (map[string]interface{}, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -476,6 +489,10 @@ func (r ApiDeleteProjectRequest) Execute() (map[string]interface{}, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -605,6 +622,10 @@ func (r ApiGetClusterRequest) Execute() (*ClusterResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -724,6 +745,10 @@ func (r ApiGetClustersRequest) Execute() (*ClustersResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -864,6 +889,10 @@ func (r ApiGetCredentialsRequest) Execute() (*CredentialsResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1003,6 +1032,10 @@ func (r ApiGetOptionsRequest) Execute() (*ProviderOptions, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1116,6 +1149,10 @@ func (r ApiGetProjectRequest) Execute() (*ProjectResponse, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1245,6 +1282,10 @@ func (r ApiTriggerHibernateRequest) Execute() (map[string]interface{}, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1377,6 +1418,10 @@ func (r ApiTriggerMaintenanceRequest) Execute() (map[string]interface{}, error) } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1509,6 +1554,10 @@ func (r ApiTriggerReconcileRequest) Execute() (map[string]interface{}, error) { } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } @@ -1641,6 +1690,10 @@ func (r ApiTriggerRotateCredentialsRequest) Execute() (map[string]interface{}, e } localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } if err != nil || localVarHTTPResponse == nil { return localVarReturnValue, err } diff --git a/services/ske/go.mod b/services/ske/go.mod index ae09fda7..7a1a51e4 100644 --- a/services/ske/go.mod +++ b/services/ske/go.mod @@ -4,7 +4,7 @@ go 1.18 require ( github.com/google/go-cmp v0.6.0 - github.com/stackitcloud/stackit-sdk-go/core v0.6.0 + github.com/stackitcloud/stackit-sdk-go/core v0.4.0 ) require ( diff --git a/services/ske/go.sum b/services/ske/go.sum index 7a04e8a8..bd839d21 100644 --- a/services/ske/go.sum +++ b/services/ske/go.sum @@ -14,8 +14,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0 h1:riAtDyM2dwrAFdGA/GCojJR1zBci3x3EHTH7swuPTXQ= -github.com/stackitcloud/stackit-sdk-go/core v0.6.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0 h1:CiHaAph5x1yXCPpb4ctpl6qgsOv4EMBBPfs54hGRf5I= +github.com/stackitcloud/stackit-sdk-go/core v0.4.0/go.mod h1:FXoqSf7npgGS7vHuF3zr7OFscwhAxSZU43Wlj6L+TR4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM=