From 2b9b6d012865356d5428b1836ef556a96fc8e33f Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Fri, 11 Oct 2024 10:24:24 +0000 Subject: [PATCH] Generate iaas --- services/iaas/api_default.go | 17 ++++++++++++++--- services/iaas/go.mod | 2 +- services/iaas/go.sum | 4 ++-- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/services/iaas/api_default.go b/services/iaas/api_default.go index c35cf1ea9..7e3f02555 100644 --- a/services/iaas/api_default.go +++ b/services/iaas/api_default.go @@ -3496,9 +3496,17 @@ func (a *APIClient) ListNetworkAreasExecute(ctx context.Context, organizationId } type ApiListNetworksRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string + ctx context.Context + apiService *DefaultApiService + projectId string + labelSelector *string +} + +// Filter resources by labels. + +func (r ApiListNetworksRequest) LabelSelector(labelSelector string) ApiListNetworksRequest { + r.labelSelector = &labelSelector + return r } func (r ApiListNetworksRequest) Execute() (*NetworkListResponse, error) { @@ -3527,6 +3535,9 @@ func (r ApiListNetworksRequest) Execute() (*NetworkListResponse, error) { return localVarReturnValue, fmt.Errorf("projectId must have less than 36 elements") } + if r.labelSelector != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "label_selector", r.labelSelector, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/services/iaas/go.mod b/services/iaas/go.mod index ec20fa1b5..972472980 100644 --- a/services/iaas/go.mod +++ b/services/iaas/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.14.0 + github.com/stackitcloud/stackit-sdk-go/core v0.13.0 ) require ( diff --git a/services/iaas/go.sum b/services/iaas/go.sum index 32bda1722..62f3cf6f4 100644 --- a/services/iaas/go.sum +++ b/services/iaas/go.sum @@ -4,5 +4,5 @@ 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.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.14.0 h1:oBwwzrEHDTlZpRoQwmMQpNA8bWciTrtGkiN29nx14Z0= -github.com/stackitcloud/stackit-sdk-go/core v0.14.0/go.mod h1:mDX1mSTsB3mP+tNBGcFNx6gH1mGBN4T+dVt+lcw7nlw= +github.com/stackitcloud/stackit-sdk-go/core v0.13.0 h1:BtJT2WXqZdexPPQi/HPUIr8g4JUPOCheh6J9dxiCQ4Q= +github.com/stackitcloud/stackit-sdk-go/core v0.13.0/go.mod h1:mDX1mSTsB3mP+tNBGcFNx6gH1mGBN4T+dVt+lcw7nlw=