diff --git a/CHANGELOG.md b/CHANGELOG.md index 91e750596..deb620631 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ - **Feature:** Add `CreatedAt` and `UpdatedAt` fields to several data models - `core`: [v0.14.0](core/CHANGELOG.md#v0140-2024-10-10) - **Feature:**: Added `IntermediateStateReached` to `AsyncActionHandler` that can be used to check for an intermediate state when executing the wait function of a wait handler +- `iaas`: [v0.11.0](services/iaas/CHANGELOG.md#v0110-2024-10-11) + - **Feature:** Filter networks by labels using the new `LabelSelector` method on `ApiListNetworksRequest` ## Release (2024-09-19) diff --git a/services/iaas/CHANGELOG.md b/services/iaas/CHANGELOG.md index eef3436a0..eeaf9935e 100644 --- a/services/iaas/CHANGELOG.md +++ b/services/iaas/CHANGELOG.md @@ -1,3 +1,7 @@ +## v0.11.0 (2024-10-11) + +- **Feature:** Filter networks by labels using the new `LabelSelector` method on `ApiListNetworksRequest` + ## v0.10.0 (2024-10-01) - **Feature:** Add `CreatedAt` and `UpdatedAt` fields to several data models 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{}