diff --git a/client/scim/get_v1_scim_v2_groups_parameters.go b/client/scim/get_v1_scim_v2_groups_parameters.go index a21069b..4af4c68 100644 --- a/client/scim/get_v1_scim_v2_groups_parameters.go +++ b/client/scim/get_v1_scim_v2_groups_parameters.go @@ -67,6 +67,14 @@ type GetV1ScimV2GroupsParams struct { // Format: int32 Count *int32 + /* Filter. + + This is a string used to query groups by displayName. + Proper example syntax for this would be `?filter=displayName eq "My Team Name"`. + Currently we only support the `eq` operator + */ + Filter *string + // StartIndex. // // Format: int32 @@ -136,6 +144,17 @@ func (o *GetV1ScimV2GroupsParams) SetCount(count *int32) { o.Count = count } +// WithFilter adds the filter to the get v1 scim v2 groups params +func (o *GetV1ScimV2GroupsParams) WithFilter(filter *string) *GetV1ScimV2GroupsParams { + o.SetFilter(filter) + return o +} + +// SetFilter adds the filter to the get v1 scim v2 groups params +func (o *GetV1ScimV2GroupsParams) SetFilter(filter *string) { + o.Filter = filter +} + // WithStartIndex adds the startIndex to the get v1 scim v2 groups params func (o *GetV1ScimV2GroupsParams) WithStartIndex(startIndex *int32) *GetV1ScimV2GroupsParams { o.SetStartIndex(startIndex) @@ -172,6 +191,23 @@ func (o *GetV1ScimV2GroupsParams) WriteToRequest(r runtime.ClientRequest, reg st } } + if o.Filter != nil { + + // query param filter + var qrFilter string + + if o.Filter != nil { + qrFilter = *o.Filter + } + qFilter := qrFilter + if qFilter != "" { + + if err := r.SetQueryParam("filter", qFilter); err != nil { + return err + } + } + } + if o.StartIndex != nil { // query param startIndex