github.com/digitalocean/go-netbox@v0.0.2/netbox/client/ipam/ipam_prefixes_list_parameters.go (about)

     1  // Code generated by go-swagger; DO NOT EDIT.
     2  
     3  // Copyright 2020 The go-netbox Authors.
     4  //
     5  // Licensed under the Apache License, Version 2.0 (the "License");
     6  // you may not use this file except in compliance with the License.
     7  // You may obtain a copy of the License at
     8  //
     9  //   http://www.apache.org/licenses/LICENSE-2.0
    10  //
    11  // Unless required by applicable law or agreed to in writing, software
    12  // distributed under the License is distributed on an "AS IS" BASIS,
    13  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14  // See the License for the specific language governing permissions and
    15  // limitations under the License.
    16  //
    17  
    18  package ipam
    19  
    20  // This file was generated by the swagger tool.
    21  // Editing this file might prove futile when you re-run the swagger generate command
    22  
    23  import (
    24  	"context"
    25  	"net/http"
    26  	"time"
    27  
    28  	"github.com/go-openapi/errors"
    29  	"github.com/go-openapi/runtime"
    30  	cr "github.com/go-openapi/runtime/client"
    31  	"github.com/go-openapi/strfmt"
    32  	"github.com/go-openapi/swag"
    33  )
    34  
    35  // NewIpamPrefixesListParams creates a new IpamPrefixesListParams object,
    36  // with the default timeout for this client.
    37  //
    38  // Default values are not hydrated, since defaults are normally applied by the API server side.
    39  //
    40  // To enforce default values in parameter, use SetDefaults or WithDefaults.
    41  func NewIpamPrefixesListParams() *IpamPrefixesListParams {
    42  	return &IpamPrefixesListParams{
    43  		timeout: cr.DefaultTimeout,
    44  	}
    45  }
    46  
    47  // NewIpamPrefixesListParamsWithTimeout creates a new IpamPrefixesListParams object
    48  // with the ability to set a timeout on a request.
    49  func NewIpamPrefixesListParamsWithTimeout(timeout time.Duration) *IpamPrefixesListParams {
    50  	return &IpamPrefixesListParams{
    51  		timeout: timeout,
    52  	}
    53  }
    54  
    55  // NewIpamPrefixesListParamsWithContext creates a new IpamPrefixesListParams object
    56  // with the ability to set a context for a request.
    57  func NewIpamPrefixesListParamsWithContext(ctx context.Context) *IpamPrefixesListParams {
    58  	return &IpamPrefixesListParams{
    59  		Context: ctx,
    60  	}
    61  }
    62  
    63  // NewIpamPrefixesListParamsWithHTTPClient creates a new IpamPrefixesListParams object
    64  // with the ability to set a custom HTTPClient for a request.
    65  func NewIpamPrefixesListParamsWithHTTPClient(client *http.Client) *IpamPrefixesListParams {
    66  	return &IpamPrefixesListParams{
    67  		HTTPClient: client,
    68  	}
    69  }
    70  
    71  /* IpamPrefixesListParams contains all the parameters to send to the API endpoint
    72     for the ipam prefixes list operation.
    73  
    74     Typically these are written to a http.Request.
    75  */
    76  type IpamPrefixesListParams struct {
    77  
    78  	// Children.
    79  	Children *string
    80  
    81  	// ChildrenGt.
    82  	ChildrenGt *string
    83  
    84  	// ChildrenGte.
    85  	ChildrenGte *string
    86  
    87  	// ChildrenLt.
    88  	ChildrenLt *string
    89  
    90  	// ChildrenLte.
    91  	ChildrenLte *string
    92  
    93  	// Childrenn.
    94  	Childrenn *string
    95  
    96  	// Contains.
    97  	Contains *string
    98  
    99  	// Created.
   100  	Created *string
   101  
   102  	// CreatedGte.
   103  	CreatedGte *string
   104  
   105  	// CreatedLte.
   106  	CreatedLte *string
   107  
   108  	// Depth.
   109  	Depth *string
   110  
   111  	// DepthGt.
   112  	DepthGt *string
   113  
   114  	// DepthGte.
   115  	DepthGte *string
   116  
   117  	// DepthLt.
   118  	DepthLt *string
   119  
   120  	// DepthLte.
   121  	DepthLte *string
   122  
   123  	// Depthn.
   124  	Depthn *string
   125  
   126  	// Family.
   127  	Family *float64
   128  
   129  	// ID.
   130  	ID *string
   131  
   132  	// IDGt.
   133  	IDGt *string
   134  
   135  	// IDGte.
   136  	IDGte *string
   137  
   138  	// IDLt.
   139  	IDLt *string
   140  
   141  	// IDLte.
   142  	IDLte *string
   143  
   144  	// IDn.
   145  	IDn *string
   146  
   147  	// IsPool.
   148  	IsPool *string
   149  
   150  	// LastUpdated.
   151  	LastUpdated *string
   152  
   153  	// LastUpdatedGte.
   154  	LastUpdatedGte *string
   155  
   156  	// LastUpdatedLte.
   157  	LastUpdatedLte *string
   158  
   159  	/* Limit.
   160  
   161  	   Number of results to return per page.
   162  	*/
   163  	Limit *int64
   164  
   165  	// MaskLength.
   166  	MaskLength *float64
   167  
   168  	// MaskLengthGte.
   169  	MaskLengthGte *float64
   170  
   171  	// MaskLengthLte.
   172  	MaskLengthLte *float64
   173  
   174  	/* Offset.
   175  
   176  	   The initial index from which to return the results.
   177  	*/
   178  	Offset *int64
   179  
   180  	// Prefix.
   181  	Prefix *string
   182  
   183  	// PresentInVrf.
   184  	PresentInVrf *string
   185  
   186  	// PresentInVrfID.
   187  	PresentInVrfID *string
   188  
   189  	// Q.
   190  	Q *string
   191  
   192  	// Region.
   193  	Region *string
   194  
   195  	// Regionn.
   196  	Regionn *string
   197  
   198  	// RegionID.
   199  	RegionID *string
   200  
   201  	// RegionIDn.
   202  	RegionIDn *string
   203  
   204  	// Role.
   205  	Role *string
   206  
   207  	// Rolen.
   208  	Rolen *string
   209  
   210  	// RoleID.
   211  	RoleID *string
   212  
   213  	// RoleIDn.
   214  	RoleIDn *string
   215  
   216  	// Site.
   217  	Site *string
   218  
   219  	// Siten.
   220  	Siten *string
   221  
   222  	// SiteGroup.
   223  	SiteGroup *string
   224  
   225  	// SiteGroupn.
   226  	SiteGroupn *string
   227  
   228  	// SiteGroupID.
   229  	SiteGroupID *string
   230  
   231  	// SiteGroupIDn.
   232  	SiteGroupIDn *string
   233  
   234  	// SiteID.
   235  	SiteID *string
   236  
   237  	// SiteIDn.
   238  	SiteIDn *string
   239  
   240  	// Status.
   241  	Status *string
   242  
   243  	// Statusn.
   244  	Statusn *string
   245  
   246  	// Tag.
   247  	Tag *string
   248  
   249  	// Tagn.
   250  	Tagn *string
   251  
   252  	// Tenant.
   253  	Tenant *string
   254  
   255  	// Tenantn.
   256  	Tenantn *string
   257  
   258  	// TenantGroup.
   259  	TenantGroup *string
   260  
   261  	// TenantGroupn.
   262  	TenantGroupn *string
   263  
   264  	// TenantGroupID.
   265  	TenantGroupID *string
   266  
   267  	// TenantGroupIDn.
   268  	TenantGroupIDn *string
   269  
   270  	// TenantID.
   271  	TenantID *string
   272  
   273  	// TenantIDn.
   274  	TenantIDn *string
   275  
   276  	// VlanID.
   277  	VlanID *string
   278  
   279  	// VlanIDn.
   280  	VlanIDn *string
   281  
   282  	// VlanVid.
   283  	VlanVid *float64
   284  
   285  	// Vrf.
   286  	Vrf *string
   287  
   288  	// Vrfn.
   289  	Vrfn *string
   290  
   291  	// VrfID.
   292  	VrfID *string
   293  
   294  	// VrfIDn.
   295  	VrfIDn *string
   296  
   297  	// Within.
   298  	Within *string
   299  
   300  	// WithinInclude.
   301  	WithinInclude *string
   302  
   303  	timeout    time.Duration
   304  	Context    context.Context
   305  	HTTPClient *http.Client
   306  }
   307  
   308  // WithDefaults hydrates default values in the ipam prefixes list params (not the query body).
   309  //
   310  // All values with no default are reset to their zero value.
   311  func (o *IpamPrefixesListParams) WithDefaults() *IpamPrefixesListParams {
   312  	o.SetDefaults()
   313  	return o
   314  }
   315  
   316  // SetDefaults hydrates default values in the ipam prefixes list params (not the query body).
   317  //
   318  // All values with no default are reset to their zero value.
   319  func (o *IpamPrefixesListParams) SetDefaults() {
   320  	// no default values defined for this parameter
   321  }
   322  
   323  // WithTimeout adds the timeout to the ipam prefixes list params
   324  func (o *IpamPrefixesListParams) WithTimeout(timeout time.Duration) *IpamPrefixesListParams {
   325  	o.SetTimeout(timeout)
   326  	return o
   327  }
   328  
   329  // SetTimeout adds the timeout to the ipam prefixes list params
   330  func (o *IpamPrefixesListParams) SetTimeout(timeout time.Duration) {
   331  	o.timeout = timeout
   332  }
   333  
   334  // WithContext adds the context to the ipam prefixes list params
   335  func (o *IpamPrefixesListParams) WithContext(ctx context.Context) *IpamPrefixesListParams {
   336  	o.SetContext(ctx)
   337  	return o
   338  }
   339  
   340  // SetContext adds the context to the ipam prefixes list params
   341  func (o *IpamPrefixesListParams) SetContext(ctx context.Context) {
   342  	o.Context = ctx
   343  }
   344  
   345  // WithHTTPClient adds the HTTPClient to the ipam prefixes list params
   346  func (o *IpamPrefixesListParams) WithHTTPClient(client *http.Client) *IpamPrefixesListParams {
   347  	o.SetHTTPClient(client)
   348  	return o
   349  }
   350  
   351  // SetHTTPClient adds the HTTPClient to the ipam prefixes list params
   352  func (o *IpamPrefixesListParams) SetHTTPClient(client *http.Client) {
   353  	o.HTTPClient = client
   354  }
   355  
   356  // WithChildren adds the children to the ipam prefixes list params
   357  func (o *IpamPrefixesListParams) WithChildren(children *string) *IpamPrefixesListParams {
   358  	o.SetChildren(children)
   359  	return o
   360  }
   361  
   362  // SetChildren adds the children to the ipam prefixes list params
   363  func (o *IpamPrefixesListParams) SetChildren(children *string) {
   364  	o.Children = children
   365  }
   366  
   367  // WithChildrenGt adds the childrenGt to the ipam prefixes list params
   368  func (o *IpamPrefixesListParams) WithChildrenGt(childrenGt *string) *IpamPrefixesListParams {
   369  	o.SetChildrenGt(childrenGt)
   370  	return o
   371  }
   372  
   373  // SetChildrenGt adds the childrenGt to the ipam prefixes list params
   374  func (o *IpamPrefixesListParams) SetChildrenGt(childrenGt *string) {
   375  	o.ChildrenGt = childrenGt
   376  }
   377  
   378  // WithChildrenGte adds the childrenGte to the ipam prefixes list params
   379  func (o *IpamPrefixesListParams) WithChildrenGte(childrenGte *string) *IpamPrefixesListParams {
   380  	o.SetChildrenGte(childrenGte)
   381  	return o
   382  }
   383  
   384  // SetChildrenGte adds the childrenGte to the ipam prefixes list params
   385  func (o *IpamPrefixesListParams) SetChildrenGte(childrenGte *string) {
   386  	o.ChildrenGte = childrenGte
   387  }
   388  
   389  // WithChildrenLt adds the childrenLt to the ipam prefixes list params
   390  func (o *IpamPrefixesListParams) WithChildrenLt(childrenLt *string) *IpamPrefixesListParams {
   391  	o.SetChildrenLt(childrenLt)
   392  	return o
   393  }
   394  
   395  // SetChildrenLt adds the childrenLt to the ipam prefixes list params
   396  func (o *IpamPrefixesListParams) SetChildrenLt(childrenLt *string) {
   397  	o.ChildrenLt = childrenLt
   398  }
   399  
   400  // WithChildrenLte adds the childrenLte to the ipam prefixes list params
   401  func (o *IpamPrefixesListParams) WithChildrenLte(childrenLte *string) *IpamPrefixesListParams {
   402  	o.SetChildrenLte(childrenLte)
   403  	return o
   404  }
   405  
   406  // SetChildrenLte adds the childrenLte to the ipam prefixes list params
   407  func (o *IpamPrefixesListParams) SetChildrenLte(childrenLte *string) {
   408  	o.ChildrenLte = childrenLte
   409  }
   410  
   411  // WithChildrenn adds the childrenn to the ipam prefixes list params
   412  func (o *IpamPrefixesListParams) WithChildrenn(childrenn *string) *IpamPrefixesListParams {
   413  	o.SetChildrenn(childrenn)
   414  	return o
   415  }
   416  
   417  // SetChildrenn adds the childrenN to the ipam prefixes list params
   418  func (o *IpamPrefixesListParams) SetChildrenn(childrenn *string) {
   419  	o.Childrenn = childrenn
   420  }
   421  
   422  // WithContains adds the contains to the ipam prefixes list params
   423  func (o *IpamPrefixesListParams) WithContains(contains *string) *IpamPrefixesListParams {
   424  	o.SetContains(contains)
   425  	return o
   426  }
   427  
   428  // SetContains adds the contains to the ipam prefixes list params
   429  func (o *IpamPrefixesListParams) SetContains(contains *string) {
   430  	o.Contains = contains
   431  }
   432  
   433  // WithCreated adds the created to the ipam prefixes list params
   434  func (o *IpamPrefixesListParams) WithCreated(created *string) *IpamPrefixesListParams {
   435  	o.SetCreated(created)
   436  	return o
   437  }
   438  
   439  // SetCreated adds the created to the ipam prefixes list params
   440  func (o *IpamPrefixesListParams) SetCreated(created *string) {
   441  	o.Created = created
   442  }
   443  
   444  // WithCreatedGte adds the createdGte to the ipam prefixes list params
   445  func (o *IpamPrefixesListParams) WithCreatedGte(createdGte *string) *IpamPrefixesListParams {
   446  	o.SetCreatedGte(createdGte)
   447  	return o
   448  }
   449  
   450  // SetCreatedGte adds the createdGte to the ipam prefixes list params
   451  func (o *IpamPrefixesListParams) SetCreatedGte(createdGte *string) {
   452  	o.CreatedGte = createdGte
   453  }
   454  
   455  // WithCreatedLte adds the createdLte to the ipam prefixes list params
   456  func (o *IpamPrefixesListParams) WithCreatedLte(createdLte *string) *IpamPrefixesListParams {
   457  	o.SetCreatedLte(createdLte)
   458  	return o
   459  }
   460  
   461  // SetCreatedLte adds the createdLte to the ipam prefixes list params
   462  func (o *IpamPrefixesListParams) SetCreatedLte(createdLte *string) {
   463  	o.CreatedLte = createdLte
   464  }
   465  
   466  // WithDepth adds the depth to the ipam prefixes list params
   467  func (o *IpamPrefixesListParams) WithDepth(depth *string) *IpamPrefixesListParams {
   468  	o.SetDepth(depth)
   469  	return o
   470  }
   471  
   472  // SetDepth adds the depth to the ipam prefixes list params
   473  func (o *IpamPrefixesListParams) SetDepth(depth *string) {
   474  	o.Depth = depth
   475  }
   476  
   477  // WithDepthGt adds the depthGt to the ipam prefixes list params
   478  func (o *IpamPrefixesListParams) WithDepthGt(depthGt *string) *IpamPrefixesListParams {
   479  	o.SetDepthGt(depthGt)
   480  	return o
   481  }
   482  
   483  // SetDepthGt adds the depthGt to the ipam prefixes list params
   484  func (o *IpamPrefixesListParams) SetDepthGt(depthGt *string) {
   485  	o.DepthGt = depthGt
   486  }
   487  
   488  // WithDepthGte adds the depthGte to the ipam prefixes list params
   489  func (o *IpamPrefixesListParams) WithDepthGte(depthGte *string) *IpamPrefixesListParams {
   490  	o.SetDepthGte(depthGte)
   491  	return o
   492  }
   493  
   494  // SetDepthGte adds the depthGte to the ipam prefixes list params
   495  func (o *IpamPrefixesListParams) SetDepthGte(depthGte *string) {
   496  	o.DepthGte = depthGte
   497  }
   498  
   499  // WithDepthLt adds the depthLt to the ipam prefixes list params
   500  func (o *IpamPrefixesListParams) WithDepthLt(depthLt *string) *IpamPrefixesListParams {
   501  	o.SetDepthLt(depthLt)
   502  	return o
   503  }
   504  
   505  // SetDepthLt adds the depthLt to the ipam prefixes list params
   506  func (o *IpamPrefixesListParams) SetDepthLt(depthLt *string) {
   507  	o.DepthLt = depthLt
   508  }
   509  
   510  // WithDepthLte adds the depthLte to the ipam prefixes list params
   511  func (o *IpamPrefixesListParams) WithDepthLte(depthLte *string) *IpamPrefixesListParams {
   512  	o.SetDepthLte(depthLte)
   513  	return o
   514  }
   515  
   516  // SetDepthLte adds the depthLte to the ipam prefixes list params
   517  func (o *IpamPrefixesListParams) SetDepthLte(depthLte *string) {
   518  	o.DepthLte = depthLte
   519  }
   520  
   521  // WithDepthn adds the depthn to the ipam prefixes list params
   522  func (o *IpamPrefixesListParams) WithDepthn(depthn *string) *IpamPrefixesListParams {
   523  	o.SetDepthn(depthn)
   524  	return o
   525  }
   526  
   527  // SetDepthn adds the depthN to the ipam prefixes list params
   528  func (o *IpamPrefixesListParams) SetDepthn(depthn *string) {
   529  	o.Depthn = depthn
   530  }
   531  
   532  // WithFamily adds the family to the ipam prefixes list params
   533  func (o *IpamPrefixesListParams) WithFamily(family *float64) *IpamPrefixesListParams {
   534  	o.SetFamily(family)
   535  	return o
   536  }
   537  
   538  // SetFamily adds the family to the ipam prefixes list params
   539  func (o *IpamPrefixesListParams) SetFamily(family *float64) {
   540  	o.Family = family
   541  }
   542  
   543  // WithID adds the id to the ipam prefixes list params
   544  func (o *IpamPrefixesListParams) WithID(id *string) *IpamPrefixesListParams {
   545  	o.SetID(id)
   546  	return o
   547  }
   548  
   549  // SetID adds the id to the ipam prefixes list params
   550  func (o *IpamPrefixesListParams) SetID(id *string) {
   551  	o.ID = id
   552  }
   553  
   554  // WithIDGt adds the iDGt to the ipam prefixes list params
   555  func (o *IpamPrefixesListParams) WithIDGt(iDGt *string) *IpamPrefixesListParams {
   556  	o.SetIDGt(iDGt)
   557  	return o
   558  }
   559  
   560  // SetIDGt adds the idGt to the ipam prefixes list params
   561  func (o *IpamPrefixesListParams) SetIDGt(iDGt *string) {
   562  	o.IDGt = iDGt
   563  }
   564  
   565  // WithIDGte adds the iDGte to the ipam prefixes list params
   566  func (o *IpamPrefixesListParams) WithIDGte(iDGte *string) *IpamPrefixesListParams {
   567  	o.SetIDGte(iDGte)
   568  	return o
   569  }
   570  
   571  // SetIDGte adds the idGte to the ipam prefixes list params
   572  func (o *IpamPrefixesListParams) SetIDGte(iDGte *string) {
   573  	o.IDGte = iDGte
   574  }
   575  
   576  // WithIDLt adds the iDLt to the ipam prefixes list params
   577  func (o *IpamPrefixesListParams) WithIDLt(iDLt *string) *IpamPrefixesListParams {
   578  	o.SetIDLt(iDLt)
   579  	return o
   580  }
   581  
   582  // SetIDLt adds the idLt to the ipam prefixes list params
   583  func (o *IpamPrefixesListParams) SetIDLt(iDLt *string) {
   584  	o.IDLt = iDLt
   585  }
   586  
   587  // WithIDLte adds the iDLte to the ipam prefixes list params
   588  func (o *IpamPrefixesListParams) WithIDLte(iDLte *string) *IpamPrefixesListParams {
   589  	o.SetIDLte(iDLte)
   590  	return o
   591  }
   592  
   593  // SetIDLte adds the idLte to the ipam prefixes list params
   594  func (o *IpamPrefixesListParams) SetIDLte(iDLte *string) {
   595  	o.IDLte = iDLte
   596  }
   597  
   598  // WithIDn adds the iDn to the ipam prefixes list params
   599  func (o *IpamPrefixesListParams) WithIDn(iDn *string) *IpamPrefixesListParams {
   600  	o.SetIDn(iDn)
   601  	return o
   602  }
   603  
   604  // SetIDn adds the idN to the ipam prefixes list params
   605  func (o *IpamPrefixesListParams) SetIDn(iDn *string) {
   606  	o.IDn = iDn
   607  }
   608  
   609  // WithIsPool adds the isPool to the ipam prefixes list params
   610  func (o *IpamPrefixesListParams) WithIsPool(isPool *string) *IpamPrefixesListParams {
   611  	o.SetIsPool(isPool)
   612  	return o
   613  }
   614  
   615  // SetIsPool adds the isPool to the ipam prefixes list params
   616  func (o *IpamPrefixesListParams) SetIsPool(isPool *string) {
   617  	o.IsPool = isPool
   618  }
   619  
   620  // WithLastUpdated adds the lastUpdated to the ipam prefixes list params
   621  func (o *IpamPrefixesListParams) WithLastUpdated(lastUpdated *string) *IpamPrefixesListParams {
   622  	o.SetLastUpdated(lastUpdated)
   623  	return o
   624  }
   625  
   626  // SetLastUpdated adds the lastUpdated to the ipam prefixes list params
   627  func (o *IpamPrefixesListParams) SetLastUpdated(lastUpdated *string) {
   628  	o.LastUpdated = lastUpdated
   629  }
   630  
   631  // WithLastUpdatedGte adds the lastUpdatedGte to the ipam prefixes list params
   632  func (o *IpamPrefixesListParams) WithLastUpdatedGte(lastUpdatedGte *string) *IpamPrefixesListParams {
   633  	o.SetLastUpdatedGte(lastUpdatedGte)
   634  	return o
   635  }
   636  
   637  // SetLastUpdatedGte adds the lastUpdatedGte to the ipam prefixes list params
   638  func (o *IpamPrefixesListParams) SetLastUpdatedGte(lastUpdatedGte *string) {
   639  	o.LastUpdatedGte = lastUpdatedGte
   640  }
   641  
   642  // WithLastUpdatedLte adds the lastUpdatedLte to the ipam prefixes list params
   643  func (o *IpamPrefixesListParams) WithLastUpdatedLte(lastUpdatedLte *string) *IpamPrefixesListParams {
   644  	o.SetLastUpdatedLte(lastUpdatedLte)
   645  	return o
   646  }
   647  
   648  // SetLastUpdatedLte adds the lastUpdatedLte to the ipam prefixes list params
   649  func (o *IpamPrefixesListParams) SetLastUpdatedLte(lastUpdatedLte *string) {
   650  	o.LastUpdatedLte = lastUpdatedLte
   651  }
   652  
   653  // WithLimit adds the limit to the ipam prefixes list params
   654  func (o *IpamPrefixesListParams) WithLimit(limit *int64) *IpamPrefixesListParams {
   655  	o.SetLimit(limit)
   656  	return o
   657  }
   658  
   659  // SetLimit adds the limit to the ipam prefixes list params
   660  func (o *IpamPrefixesListParams) SetLimit(limit *int64) {
   661  	o.Limit = limit
   662  }
   663  
   664  // WithMaskLength adds the maskLength to the ipam prefixes list params
   665  func (o *IpamPrefixesListParams) WithMaskLength(maskLength *float64) *IpamPrefixesListParams {
   666  	o.SetMaskLength(maskLength)
   667  	return o
   668  }
   669  
   670  // SetMaskLength adds the maskLength to the ipam prefixes list params
   671  func (o *IpamPrefixesListParams) SetMaskLength(maskLength *float64) {
   672  	o.MaskLength = maskLength
   673  }
   674  
   675  // WithMaskLengthGte adds the maskLengthGte to the ipam prefixes list params
   676  func (o *IpamPrefixesListParams) WithMaskLengthGte(maskLengthGte *float64) *IpamPrefixesListParams {
   677  	o.SetMaskLengthGte(maskLengthGte)
   678  	return o
   679  }
   680  
   681  // SetMaskLengthGte adds the maskLengthGte to the ipam prefixes list params
   682  func (o *IpamPrefixesListParams) SetMaskLengthGte(maskLengthGte *float64) {
   683  	o.MaskLengthGte = maskLengthGte
   684  }
   685  
   686  // WithMaskLengthLte adds the maskLengthLte to the ipam prefixes list params
   687  func (o *IpamPrefixesListParams) WithMaskLengthLte(maskLengthLte *float64) *IpamPrefixesListParams {
   688  	o.SetMaskLengthLte(maskLengthLte)
   689  	return o
   690  }
   691  
   692  // SetMaskLengthLte adds the maskLengthLte to the ipam prefixes list params
   693  func (o *IpamPrefixesListParams) SetMaskLengthLte(maskLengthLte *float64) {
   694  	o.MaskLengthLte = maskLengthLte
   695  }
   696  
   697  // WithOffset adds the offset to the ipam prefixes list params
   698  func (o *IpamPrefixesListParams) WithOffset(offset *int64) *IpamPrefixesListParams {
   699  	o.SetOffset(offset)
   700  	return o
   701  }
   702  
   703  // SetOffset adds the offset to the ipam prefixes list params
   704  func (o *IpamPrefixesListParams) SetOffset(offset *int64) {
   705  	o.Offset = offset
   706  }
   707  
   708  // WithPrefix adds the prefix to the ipam prefixes list params
   709  func (o *IpamPrefixesListParams) WithPrefix(prefix *string) *IpamPrefixesListParams {
   710  	o.SetPrefix(prefix)
   711  	return o
   712  }
   713  
   714  // SetPrefix adds the prefix to the ipam prefixes list params
   715  func (o *IpamPrefixesListParams) SetPrefix(prefix *string) {
   716  	o.Prefix = prefix
   717  }
   718  
   719  // WithPresentInVrf adds the presentInVrf to the ipam prefixes list params
   720  func (o *IpamPrefixesListParams) WithPresentInVrf(presentInVrf *string) *IpamPrefixesListParams {
   721  	o.SetPresentInVrf(presentInVrf)
   722  	return o
   723  }
   724  
   725  // SetPresentInVrf adds the presentInVrf to the ipam prefixes list params
   726  func (o *IpamPrefixesListParams) SetPresentInVrf(presentInVrf *string) {
   727  	o.PresentInVrf = presentInVrf
   728  }
   729  
   730  // WithPresentInVrfID adds the presentInVrfID to the ipam prefixes list params
   731  func (o *IpamPrefixesListParams) WithPresentInVrfID(presentInVrfID *string) *IpamPrefixesListParams {
   732  	o.SetPresentInVrfID(presentInVrfID)
   733  	return o
   734  }
   735  
   736  // SetPresentInVrfID adds the presentInVrfId to the ipam prefixes list params
   737  func (o *IpamPrefixesListParams) SetPresentInVrfID(presentInVrfID *string) {
   738  	o.PresentInVrfID = presentInVrfID
   739  }
   740  
   741  // WithQ adds the q to the ipam prefixes list params
   742  func (o *IpamPrefixesListParams) WithQ(q *string) *IpamPrefixesListParams {
   743  	o.SetQ(q)
   744  	return o
   745  }
   746  
   747  // SetQ adds the q to the ipam prefixes list params
   748  func (o *IpamPrefixesListParams) SetQ(q *string) {
   749  	o.Q = q
   750  }
   751  
   752  // WithRegion adds the region to the ipam prefixes list params
   753  func (o *IpamPrefixesListParams) WithRegion(region *string) *IpamPrefixesListParams {
   754  	o.SetRegion(region)
   755  	return o
   756  }
   757  
   758  // SetRegion adds the region to the ipam prefixes list params
   759  func (o *IpamPrefixesListParams) SetRegion(region *string) {
   760  	o.Region = region
   761  }
   762  
   763  // WithRegionn adds the regionn to the ipam prefixes list params
   764  func (o *IpamPrefixesListParams) WithRegionn(regionn *string) *IpamPrefixesListParams {
   765  	o.SetRegionn(regionn)
   766  	return o
   767  }
   768  
   769  // SetRegionn adds the regionN to the ipam prefixes list params
   770  func (o *IpamPrefixesListParams) SetRegionn(regionn *string) {
   771  	o.Regionn = regionn
   772  }
   773  
   774  // WithRegionID adds the regionID to the ipam prefixes list params
   775  func (o *IpamPrefixesListParams) WithRegionID(regionID *string) *IpamPrefixesListParams {
   776  	o.SetRegionID(regionID)
   777  	return o
   778  }
   779  
   780  // SetRegionID adds the regionId to the ipam prefixes list params
   781  func (o *IpamPrefixesListParams) SetRegionID(regionID *string) {
   782  	o.RegionID = regionID
   783  }
   784  
   785  // WithRegionIDn adds the regionIDn to the ipam prefixes list params
   786  func (o *IpamPrefixesListParams) WithRegionIDn(regionIDn *string) *IpamPrefixesListParams {
   787  	o.SetRegionIDn(regionIDn)
   788  	return o
   789  }
   790  
   791  // SetRegionIDn adds the regionIdN to the ipam prefixes list params
   792  func (o *IpamPrefixesListParams) SetRegionIDn(regionIDn *string) {
   793  	o.RegionIDn = regionIDn
   794  }
   795  
   796  // WithRole adds the role to the ipam prefixes list params
   797  func (o *IpamPrefixesListParams) WithRole(role *string) *IpamPrefixesListParams {
   798  	o.SetRole(role)
   799  	return o
   800  }
   801  
   802  // SetRole adds the role to the ipam prefixes list params
   803  func (o *IpamPrefixesListParams) SetRole(role *string) {
   804  	o.Role = role
   805  }
   806  
   807  // WithRolen adds the rolen to the ipam prefixes list params
   808  func (o *IpamPrefixesListParams) WithRolen(rolen *string) *IpamPrefixesListParams {
   809  	o.SetRolen(rolen)
   810  	return o
   811  }
   812  
   813  // SetRolen adds the roleN to the ipam prefixes list params
   814  func (o *IpamPrefixesListParams) SetRolen(rolen *string) {
   815  	o.Rolen = rolen
   816  }
   817  
   818  // WithRoleID adds the roleID to the ipam prefixes list params
   819  func (o *IpamPrefixesListParams) WithRoleID(roleID *string) *IpamPrefixesListParams {
   820  	o.SetRoleID(roleID)
   821  	return o
   822  }
   823  
   824  // SetRoleID adds the roleId to the ipam prefixes list params
   825  func (o *IpamPrefixesListParams) SetRoleID(roleID *string) {
   826  	o.RoleID = roleID
   827  }
   828  
   829  // WithRoleIDn adds the roleIDn to the ipam prefixes list params
   830  func (o *IpamPrefixesListParams) WithRoleIDn(roleIDn *string) *IpamPrefixesListParams {
   831  	o.SetRoleIDn(roleIDn)
   832  	return o
   833  }
   834  
   835  // SetRoleIDn adds the roleIdN to the ipam prefixes list params
   836  func (o *IpamPrefixesListParams) SetRoleIDn(roleIDn *string) {
   837  	o.RoleIDn = roleIDn
   838  }
   839  
   840  // WithSite adds the site to the ipam prefixes list params
   841  func (o *IpamPrefixesListParams) WithSite(site *string) *IpamPrefixesListParams {
   842  	o.SetSite(site)
   843  	return o
   844  }
   845  
   846  // SetSite adds the site to the ipam prefixes list params
   847  func (o *IpamPrefixesListParams) SetSite(site *string) {
   848  	o.Site = site
   849  }
   850  
   851  // WithSiten adds the siten to the ipam prefixes list params
   852  func (o *IpamPrefixesListParams) WithSiten(siten *string) *IpamPrefixesListParams {
   853  	o.SetSiten(siten)
   854  	return o
   855  }
   856  
   857  // SetSiten adds the siteN to the ipam prefixes list params
   858  func (o *IpamPrefixesListParams) SetSiten(siten *string) {
   859  	o.Siten = siten
   860  }
   861  
   862  // WithSiteGroup adds the siteGroup to the ipam prefixes list params
   863  func (o *IpamPrefixesListParams) WithSiteGroup(siteGroup *string) *IpamPrefixesListParams {
   864  	o.SetSiteGroup(siteGroup)
   865  	return o
   866  }
   867  
   868  // SetSiteGroup adds the siteGroup to the ipam prefixes list params
   869  func (o *IpamPrefixesListParams) SetSiteGroup(siteGroup *string) {
   870  	o.SiteGroup = siteGroup
   871  }
   872  
   873  // WithSiteGroupn adds the siteGroupn to the ipam prefixes list params
   874  func (o *IpamPrefixesListParams) WithSiteGroupn(siteGroupn *string) *IpamPrefixesListParams {
   875  	o.SetSiteGroupn(siteGroupn)
   876  	return o
   877  }
   878  
   879  // SetSiteGroupn adds the siteGroupN to the ipam prefixes list params
   880  func (o *IpamPrefixesListParams) SetSiteGroupn(siteGroupn *string) {
   881  	o.SiteGroupn = siteGroupn
   882  }
   883  
   884  // WithSiteGroupID adds the siteGroupID to the ipam prefixes list params
   885  func (o *IpamPrefixesListParams) WithSiteGroupID(siteGroupID *string) *IpamPrefixesListParams {
   886  	o.SetSiteGroupID(siteGroupID)
   887  	return o
   888  }
   889  
   890  // SetSiteGroupID adds the siteGroupId to the ipam prefixes list params
   891  func (o *IpamPrefixesListParams) SetSiteGroupID(siteGroupID *string) {
   892  	o.SiteGroupID = siteGroupID
   893  }
   894  
   895  // WithSiteGroupIDn adds the siteGroupIDn to the ipam prefixes list params
   896  func (o *IpamPrefixesListParams) WithSiteGroupIDn(siteGroupIDn *string) *IpamPrefixesListParams {
   897  	o.SetSiteGroupIDn(siteGroupIDn)
   898  	return o
   899  }
   900  
   901  // SetSiteGroupIDn adds the siteGroupIdN to the ipam prefixes list params
   902  func (o *IpamPrefixesListParams) SetSiteGroupIDn(siteGroupIDn *string) {
   903  	o.SiteGroupIDn = siteGroupIDn
   904  }
   905  
   906  // WithSiteID adds the siteID to the ipam prefixes list params
   907  func (o *IpamPrefixesListParams) WithSiteID(siteID *string) *IpamPrefixesListParams {
   908  	o.SetSiteID(siteID)
   909  	return o
   910  }
   911  
   912  // SetSiteID adds the siteId to the ipam prefixes list params
   913  func (o *IpamPrefixesListParams) SetSiteID(siteID *string) {
   914  	o.SiteID = siteID
   915  }
   916  
   917  // WithSiteIDn adds the siteIDn to the ipam prefixes list params
   918  func (o *IpamPrefixesListParams) WithSiteIDn(siteIDn *string) *IpamPrefixesListParams {
   919  	o.SetSiteIDn(siteIDn)
   920  	return o
   921  }
   922  
   923  // SetSiteIDn adds the siteIdN to the ipam prefixes list params
   924  func (o *IpamPrefixesListParams) SetSiteIDn(siteIDn *string) {
   925  	o.SiteIDn = siteIDn
   926  }
   927  
   928  // WithStatus adds the status to the ipam prefixes list params
   929  func (o *IpamPrefixesListParams) WithStatus(status *string) *IpamPrefixesListParams {
   930  	o.SetStatus(status)
   931  	return o
   932  }
   933  
   934  // SetStatus adds the status to the ipam prefixes list params
   935  func (o *IpamPrefixesListParams) SetStatus(status *string) {
   936  	o.Status = status
   937  }
   938  
   939  // WithStatusn adds the statusn to the ipam prefixes list params
   940  func (o *IpamPrefixesListParams) WithStatusn(statusn *string) *IpamPrefixesListParams {
   941  	o.SetStatusn(statusn)
   942  	return o
   943  }
   944  
   945  // SetStatusn adds the statusN to the ipam prefixes list params
   946  func (o *IpamPrefixesListParams) SetStatusn(statusn *string) {
   947  	o.Statusn = statusn
   948  }
   949  
   950  // WithTag adds the tag to the ipam prefixes list params
   951  func (o *IpamPrefixesListParams) WithTag(tag *string) *IpamPrefixesListParams {
   952  	o.SetTag(tag)
   953  	return o
   954  }
   955  
   956  // SetTag adds the tag to the ipam prefixes list params
   957  func (o *IpamPrefixesListParams) SetTag(tag *string) {
   958  	o.Tag = tag
   959  }
   960  
   961  // WithTagn adds the tagn to the ipam prefixes list params
   962  func (o *IpamPrefixesListParams) WithTagn(tagn *string) *IpamPrefixesListParams {
   963  	o.SetTagn(tagn)
   964  	return o
   965  }
   966  
   967  // SetTagn adds the tagN to the ipam prefixes list params
   968  func (o *IpamPrefixesListParams) SetTagn(tagn *string) {
   969  	o.Tagn = tagn
   970  }
   971  
   972  // WithTenant adds the tenant to the ipam prefixes list params
   973  func (o *IpamPrefixesListParams) WithTenant(tenant *string) *IpamPrefixesListParams {
   974  	o.SetTenant(tenant)
   975  	return o
   976  }
   977  
   978  // SetTenant adds the tenant to the ipam prefixes list params
   979  func (o *IpamPrefixesListParams) SetTenant(tenant *string) {
   980  	o.Tenant = tenant
   981  }
   982  
   983  // WithTenantn adds the tenantn to the ipam prefixes list params
   984  func (o *IpamPrefixesListParams) WithTenantn(tenantn *string) *IpamPrefixesListParams {
   985  	o.SetTenantn(tenantn)
   986  	return o
   987  }
   988  
   989  // SetTenantn adds the tenantN to the ipam prefixes list params
   990  func (o *IpamPrefixesListParams) SetTenantn(tenantn *string) {
   991  	o.Tenantn = tenantn
   992  }
   993  
   994  // WithTenantGroup adds the tenantGroup to the ipam prefixes list params
   995  func (o *IpamPrefixesListParams) WithTenantGroup(tenantGroup *string) *IpamPrefixesListParams {
   996  	o.SetTenantGroup(tenantGroup)
   997  	return o
   998  }
   999  
  1000  // SetTenantGroup adds the tenantGroup to the ipam prefixes list params
  1001  func (o *IpamPrefixesListParams) SetTenantGroup(tenantGroup *string) {
  1002  	o.TenantGroup = tenantGroup
  1003  }
  1004  
  1005  // WithTenantGroupn adds the tenantGroupn to the ipam prefixes list params
  1006  func (o *IpamPrefixesListParams) WithTenantGroupn(tenantGroupn *string) *IpamPrefixesListParams {
  1007  	o.SetTenantGroupn(tenantGroupn)
  1008  	return o
  1009  }
  1010  
  1011  // SetTenantGroupn adds the tenantGroupN to the ipam prefixes list params
  1012  func (o *IpamPrefixesListParams) SetTenantGroupn(tenantGroupn *string) {
  1013  	o.TenantGroupn = tenantGroupn
  1014  }
  1015  
  1016  // WithTenantGroupID adds the tenantGroupID to the ipam prefixes list params
  1017  func (o *IpamPrefixesListParams) WithTenantGroupID(tenantGroupID *string) *IpamPrefixesListParams {
  1018  	o.SetTenantGroupID(tenantGroupID)
  1019  	return o
  1020  }
  1021  
  1022  // SetTenantGroupID adds the tenantGroupId to the ipam prefixes list params
  1023  func (o *IpamPrefixesListParams) SetTenantGroupID(tenantGroupID *string) {
  1024  	o.TenantGroupID = tenantGroupID
  1025  }
  1026  
  1027  // WithTenantGroupIDn adds the tenantGroupIDn to the ipam prefixes list params
  1028  func (o *IpamPrefixesListParams) WithTenantGroupIDn(tenantGroupIDn *string) *IpamPrefixesListParams {
  1029  	o.SetTenantGroupIDn(tenantGroupIDn)
  1030  	return o
  1031  }
  1032  
  1033  // SetTenantGroupIDn adds the tenantGroupIdN to the ipam prefixes list params
  1034  func (o *IpamPrefixesListParams) SetTenantGroupIDn(tenantGroupIDn *string) {
  1035  	o.TenantGroupIDn = tenantGroupIDn
  1036  }
  1037  
  1038  // WithTenantID adds the tenantID to the ipam prefixes list params
  1039  func (o *IpamPrefixesListParams) WithTenantID(tenantID *string) *IpamPrefixesListParams {
  1040  	o.SetTenantID(tenantID)
  1041  	return o
  1042  }
  1043  
  1044  // SetTenantID adds the tenantId to the ipam prefixes list params
  1045  func (o *IpamPrefixesListParams) SetTenantID(tenantID *string) {
  1046  	o.TenantID = tenantID
  1047  }
  1048  
  1049  // WithTenantIDn adds the tenantIDn to the ipam prefixes list params
  1050  func (o *IpamPrefixesListParams) WithTenantIDn(tenantIDn *string) *IpamPrefixesListParams {
  1051  	o.SetTenantIDn(tenantIDn)
  1052  	return o
  1053  }
  1054  
  1055  // SetTenantIDn adds the tenantIdN to the ipam prefixes list params
  1056  func (o *IpamPrefixesListParams) SetTenantIDn(tenantIDn *string) {
  1057  	o.TenantIDn = tenantIDn
  1058  }
  1059  
  1060  // WithVlanID adds the vlanID to the ipam prefixes list params
  1061  func (o *IpamPrefixesListParams) WithVlanID(vlanID *string) *IpamPrefixesListParams {
  1062  	o.SetVlanID(vlanID)
  1063  	return o
  1064  }
  1065  
  1066  // SetVlanID adds the vlanId to the ipam prefixes list params
  1067  func (o *IpamPrefixesListParams) SetVlanID(vlanID *string) {
  1068  	o.VlanID = vlanID
  1069  }
  1070  
  1071  // WithVlanIDn adds the vlanIDn to the ipam prefixes list params
  1072  func (o *IpamPrefixesListParams) WithVlanIDn(vlanIDn *string) *IpamPrefixesListParams {
  1073  	o.SetVlanIDn(vlanIDn)
  1074  	return o
  1075  }
  1076  
  1077  // SetVlanIDn adds the vlanIdN to the ipam prefixes list params
  1078  func (o *IpamPrefixesListParams) SetVlanIDn(vlanIDn *string) {
  1079  	o.VlanIDn = vlanIDn
  1080  }
  1081  
  1082  // WithVlanVid adds the vlanVid to the ipam prefixes list params
  1083  func (o *IpamPrefixesListParams) WithVlanVid(vlanVid *float64) *IpamPrefixesListParams {
  1084  	o.SetVlanVid(vlanVid)
  1085  	return o
  1086  }
  1087  
  1088  // SetVlanVid adds the vlanVid to the ipam prefixes list params
  1089  func (o *IpamPrefixesListParams) SetVlanVid(vlanVid *float64) {
  1090  	o.VlanVid = vlanVid
  1091  }
  1092  
  1093  // WithVrf adds the vrf to the ipam prefixes list params
  1094  func (o *IpamPrefixesListParams) WithVrf(vrf *string) *IpamPrefixesListParams {
  1095  	o.SetVrf(vrf)
  1096  	return o
  1097  }
  1098  
  1099  // SetVrf adds the vrf to the ipam prefixes list params
  1100  func (o *IpamPrefixesListParams) SetVrf(vrf *string) {
  1101  	o.Vrf = vrf
  1102  }
  1103  
  1104  // WithVrfn adds the vrfn to the ipam prefixes list params
  1105  func (o *IpamPrefixesListParams) WithVrfn(vrfn *string) *IpamPrefixesListParams {
  1106  	o.SetVrfn(vrfn)
  1107  	return o
  1108  }
  1109  
  1110  // SetVrfn adds the vrfN to the ipam prefixes list params
  1111  func (o *IpamPrefixesListParams) SetVrfn(vrfn *string) {
  1112  	o.Vrfn = vrfn
  1113  }
  1114  
  1115  // WithVrfID adds the vrfID to the ipam prefixes list params
  1116  func (o *IpamPrefixesListParams) WithVrfID(vrfID *string) *IpamPrefixesListParams {
  1117  	o.SetVrfID(vrfID)
  1118  	return o
  1119  }
  1120  
  1121  // SetVrfID adds the vrfId to the ipam prefixes list params
  1122  func (o *IpamPrefixesListParams) SetVrfID(vrfID *string) {
  1123  	o.VrfID = vrfID
  1124  }
  1125  
  1126  // WithVrfIDn adds the vrfIDn to the ipam prefixes list params
  1127  func (o *IpamPrefixesListParams) WithVrfIDn(vrfIDn *string) *IpamPrefixesListParams {
  1128  	o.SetVrfIDn(vrfIDn)
  1129  	return o
  1130  }
  1131  
  1132  // SetVrfIDn adds the vrfIdN to the ipam prefixes list params
  1133  func (o *IpamPrefixesListParams) SetVrfIDn(vrfIDn *string) {
  1134  	o.VrfIDn = vrfIDn
  1135  }
  1136  
  1137  // WithWithin adds the within to the ipam prefixes list params
  1138  func (o *IpamPrefixesListParams) WithWithin(within *string) *IpamPrefixesListParams {
  1139  	o.SetWithin(within)
  1140  	return o
  1141  }
  1142  
  1143  // SetWithin adds the within to the ipam prefixes list params
  1144  func (o *IpamPrefixesListParams) SetWithin(within *string) {
  1145  	o.Within = within
  1146  }
  1147  
  1148  // WithWithinInclude adds the withinInclude to the ipam prefixes list params
  1149  func (o *IpamPrefixesListParams) WithWithinInclude(withinInclude *string) *IpamPrefixesListParams {
  1150  	o.SetWithinInclude(withinInclude)
  1151  	return o
  1152  }
  1153  
  1154  // SetWithinInclude adds the withinInclude to the ipam prefixes list params
  1155  func (o *IpamPrefixesListParams) SetWithinInclude(withinInclude *string) {
  1156  	o.WithinInclude = withinInclude
  1157  }
  1158  
  1159  // WriteToRequest writes these params to a swagger request
  1160  func (o *IpamPrefixesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
  1161  
  1162  	if err := r.SetTimeout(o.timeout); err != nil {
  1163  		return err
  1164  	}
  1165  	var res []error
  1166  
  1167  	if o.Children != nil {
  1168  
  1169  		// query param children
  1170  		var qrChildren string
  1171  
  1172  		if o.Children != nil {
  1173  			qrChildren = *o.Children
  1174  		}
  1175  		qChildren := qrChildren
  1176  		if qChildren != "" {
  1177  
  1178  			if err := r.SetQueryParam("children", qChildren); err != nil {
  1179  				return err
  1180  			}
  1181  		}
  1182  	}
  1183  
  1184  	if o.ChildrenGt != nil {
  1185  
  1186  		// query param children__gt
  1187  		var qrChildrenGt string
  1188  
  1189  		if o.ChildrenGt != nil {
  1190  			qrChildrenGt = *o.ChildrenGt
  1191  		}
  1192  		qChildrenGt := qrChildrenGt
  1193  		if qChildrenGt != "" {
  1194  
  1195  			if err := r.SetQueryParam("children__gt", qChildrenGt); err != nil {
  1196  				return err
  1197  			}
  1198  		}
  1199  	}
  1200  
  1201  	if o.ChildrenGte != nil {
  1202  
  1203  		// query param children__gte
  1204  		var qrChildrenGte string
  1205  
  1206  		if o.ChildrenGte != nil {
  1207  			qrChildrenGte = *o.ChildrenGte
  1208  		}
  1209  		qChildrenGte := qrChildrenGte
  1210  		if qChildrenGte != "" {
  1211  
  1212  			if err := r.SetQueryParam("children__gte", qChildrenGte); err != nil {
  1213  				return err
  1214  			}
  1215  		}
  1216  	}
  1217  
  1218  	if o.ChildrenLt != nil {
  1219  
  1220  		// query param children__lt
  1221  		var qrChildrenLt string
  1222  
  1223  		if o.ChildrenLt != nil {
  1224  			qrChildrenLt = *o.ChildrenLt
  1225  		}
  1226  		qChildrenLt := qrChildrenLt
  1227  		if qChildrenLt != "" {
  1228  
  1229  			if err := r.SetQueryParam("children__lt", qChildrenLt); err != nil {
  1230  				return err
  1231  			}
  1232  		}
  1233  	}
  1234  
  1235  	if o.ChildrenLte != nil {
  1236  
  1237  		// query param children__lte
  1238  		var qrChildrenLte string
  1239  
  1240  		if o.ChildrenLte != nil {
  1241  			qrChildrenLte = *o.ChildrenLte
  1242  		}
  1243  		qChildrenLte := qrChildrenLte
  1244  		if qChildrenLte != "" {
  1245  
  1246  			if err := r.SetQueryParam("children__lte", qChildrenLte); err != nil {
  1247  				return err
  1248  			}
  1249  		}
  1250  	}
  1251  
  1252  	if o.Childrenn != nil {
  1253  
  1254  		// query param children__n
  1255  		var qrChildrenn string
  1256  
  1257  		if o.Childrenn != nil {
  1258  			qrChildrenn = *o.Childrenn
  1259  		}
  1260  		qChildrenn := qrChildrenn
  1261  		if qChildrenn != "" {
  1262  
  1263  			if err := r.SetQueryParam("children__n", qChildrenn); err != nil {
  1264  				return err
  1265  			}
  1266  		}
  1267  	}
  1268  
  1269  	if o.Contains != nil {
  1270  
  1271  		// query param contains
  1272  		var qrContains string
  1273  
  1274  		if o.Contains != nil {
  1275  			qrContains = *o.Contains
  1276  		}
  1277  		qContains := qrContains
  1278  		if qContains != "" {
  1279  
  1280  			if err := r.SetQueryParam("contains", qContains); err != nil {
  1281  				return err
  1282  			}
  1283  		}
  1284  	}
  1285  
  1286  	if o.Created != nil {
  1287  
  1288  		// query param created
  1289  		var qrCreated string
  1290  
  1291  		if o.Created != nil {
  1292  			qrCreated = *o.Created
  1293  		}
  1294  		qCreated := qrCreated
  1295  		if qCreated != "" {
  1296  
  1297  			if err := r.SetQueryParam("created", qCreated); err != nil {
  1298  				return err
  1299  			}
  1300  		}
  1301  	}
  1302  
  1303  	if o.CreatedGte != nil {
  1304  
  1305  		// query param created__gte
  1306  		var qrCreatedGte string
  1307  
  1308  		if o.CreatedGte != nil {
  1309  			qrCreatedGte = *o.CreatedGte
  1310  		}
  1311  		qCreatedGte := qrCreatedGte
  1312  		if qCreatedGte != "" {
  1313  
  1314  			if err := r.SetQueryParam("created__gte", qCreatedGte); err != nil {
  1315  				return err
  1316  			}
  1317  		}
  1318  	}
  1319  
  1320  	if o.CreatedLte != nil {
  1321  
  1322  		// query param created__lte
  1323  		var qrCreatedLte string
  1324  
  1325  		if o.CreatedLte != nil {
  1326  			qrCreatedLte = *o.CreatedLte
  1327  		}
  1328  		qCreatedLte := qrCreatedLte
  1329  		if qCreatedLte != "" {
  1330  
  1331  			if err := r.SetQueryParam("created__lte", qCreatedLte); err != nil {
  1332  				return err
  1333  			}
  1334  		}
  1335  	}
  1336  
  1337  	if o.Depth != nil {
  1338  
  1339  		// query param depth
  1340  		var qrDepth string
  1341  
  1342  		if o.Depth != nil {
  1343  			qrDepth = *o.Depth
  1344  		}
  1345  		qDepth := qrDepth
  1346  		if qDepth != "" {
  1347  
  1348  			if err := r.SetQueryParam("depth", qDepth); err != nil {
  1349  				return err
  1350  			}
  1351  		}
  1352  	}
  1353  
  1354  	if o.DepthGt != nil {
  1355  
  1356  		// query param depth__gt
  1357  		var qrDepthGt string
  1358  
  1359  		if o.DepthGt != nil {
  1360  			qrDepthGt = *o.DepthGt
  1361  		}
  1362  		qDepthGt := qrDepthGt
  1363  		if qDepthGt != "" {
  1364  
  1365  			if err := r.SetQueryParam("depth__gt", qDepthGt); err != nil {
  1366  				return err
  1367  			}
  1368  		}
  1369  	}
  1370  
  1371  	if o.DepthGte != nil {
  1372  
  1373  		// query param depth__gte
  1374  		var qrDepthGte string
  1375  
  1376  		if o.DepthGte != nil {
  1377  			qrDepthGte = *o.DepthGte
  1378  		}
  1379  		qDepthGte := qrDepthGte
  1380  		if qDepthGte != "" {
  1381  
  1382  			if err := r.SetQueryParam("depth__gte", qDepthGte); err != nil {
  1383  				return err
  1384  			}
  1385  		}
  1386  	}
  1387  
  1388  	if o.DepthLt != nil {
  1389  
  1390  		// query param depth__lt
  1391  		var qrDepthLt string
  1392  
  1393  		if o.DepthLt != nil {
  1394  			qrDepthLt = *o.DepthLt
  1395  		}
  1396  		qDepthLt := qrDepthLt
  1397  		if qDepthLt != "" {
  1398  
  1399  			if err := r.SetQueryParam("depth__lt", qDepthLt); err != nil {
  1400  				return err
  1401  			}
  1402  		}
  1403  	}
  1404  
  1405  	if o.DepthLte != nil {
  1406  
  1407  		// query param depth__lte
  1408  		var qrDepthLte string
  1409  
  1410  		if o.DepthLte != nil {
  1411  			qrDepthLte = *o.DepthLte
  1412  		}
  1413  		qDepthLte := qrDepthLte
  1414  		if qDepthLte != "" {
  1415  
  1416  			if err := r.SetQueryParam("depth__lte", qDepthLte); err != nil {
  1417  				return err
  1418  			}
  1419  		}
  1420  	}
  1421  
  1422  	if o.Depthn != nil {
  1423  
  1424  		// query param depth__n
  1425  		var qrDepthn string
  1426  
  1427  		if o.Depthn != nil {
  1428  			qrDepthn = *o.Depthn
  1429  		}
  1430  		qDepthn := qrDepthn
  1431  		if qDepthn != "" {
  1432  
  1433  			if err := r.SetQueryParam("depth__n", qDepthn); err != nil {
  1434  				return err
  1435  			}
  1436  		}
  1437  	}
  1438  
  1439  	if o.Family != nil {
  1440  
  1441  		// query param family
  1442  		var qrFamily float64
  1443  
  1444  		if o.Family != nil {
  1445  			qrFamily = *o.Family
  1446  		}
  1447  		qFamily := swag.FormatFloat64(qrFamily)
  1448  		if qFamily != "" {
  1449  
  1450  			if err := r.SetQueryParam("family", qFamily); err != nil {
  1451  				return err
  1452  			}
  1453  		}
  1454  	}
  1455  
  1456  	if o.ID != nil {
  1457  
  1458  		// query param id
  1459  		var qrID string
  1460  
  1461  		if o.ID != nil {
  1462  			qrID = *o.ID
  1463  		}
  1464  		qID := qrID
  1465  		if qID != "" {
  1466  
  1467  			if err := r.SetQueryParam("id", qID); err != nil {
  1468  				return err
  1469  			}
  1470  		}
  1471  	}
  1472  
  1473  	if o.IDGt != nil {
  1474  
  1475  		// query param id__gt
  1476  		var qrIDGt string
  1477  
  1478  		if o.IDGt != nil {
  1479  			qrIDGt = *o.IDGt
  1480  		}
  1481  		qIDGt := qrIDGt
  1482  		if qIDGt != "" {
  1483  
  1484  			if err := r.SetQueryParam("id__gt", qIDGt); err != nil {
  1485  				return err
  1486  			}
  1487  		}
  1488  	}
  1489  
  1490  	if o.IDGte != nil {
  1491  
  1492  		// query param id__gte
  1493  		var qrIDGte string
  1494  
  1495  		if o.IDGte != nil {
  1496  			qrIDGte = *o.IDGte
  1497  		}
  1498  		qIDGte := qrIDGte
  1499  		if qIDGte != "" {
  1500  
  1501  			if err := r.SetQueryParam("id__gte", qIDGte); err != nil {
  1502  				return err
  1503  			}
  1504  		}
  1505  	}
  1506  
  1507  	if o.IDLt != nil {
  1508  
  1509  		// query param id__lt
  1510  		var qrIDLt string
  1511  
  1512  		if o.IDLt != nil {
  1513  			qrIDLt = *o.IDLt
  1514  		}
  1515  		qIDLt := qrIDLt
  1516  		if qIDLt != "" {
  1517  
  1518  			if err := r.SetQueryParam("id__lt", qIDLt); err != nil {
  1519  				return err
  1520  			}
  1521  		}
  1522  	}
  1523  
  1524  	if o.IDLte != nil {
  1525  
  1526  		// query param id__lte
  1527  		var qrIDLte string
  1528  
  1529  		if o.IDLte != nil {
  1530  			qrIDLte = *o.IDLte
  1531  		}
  1532  		qIDLte := qrIDLte
  1533  		if qIDLte != "" {
  1534  
  1535  			if err := r.SetQueryParam("id__lte", qIDLte); err != nil {
  1536  				return err
  1537  			}
  1538  		}
  1539  	}
  1540  
  1541  	if o.IDn != nil {
  1542  
  1543  		// query param id__n
  1544  		var qrIDn string
  1545  
  1546  		if o.IDn != nil {
  1547  			qrIDn = *o.IDn
  1548  		}
  1549  		qIDn := qrIDn
  1550  		if qIDn != "" {
  1551  
  1552  			if err := r.SetQueryParam("id__n", qIDn); err != nil {
  1553  				return err
  1554  			}
  1555  		}
  1556  	}
  1557  
  1558  	if o.IsPool != nil {
  1559  
  1560  		// query param is_pool
  1561  		var qrIsPool string
  1562  
  1563  		if o.IsPool != nil {
  1564  			qrIsPool = *o.IsPool
  1565  		}
  1566  		qIsPool := qrIsPool
  1567  		if qIsPool != "" {
  1568  
  1569  			if err := r.SetQueryParam("is_pool", qIsPool); err != nil {
  1570  				return err
  1571  			}
  1572  		}
  1573  	}
  1574  
  1575  	if o.LastUpdated != nil {
  1576  
  1577  		// query param last_updated
  1578  		var qrLastUpdated string
  1579  
  1580  		if o.LastUpdated != nil {
  1581  			qrLastUpdated = *o.LastUpdated
  1582  		}
  1583  		qLastUpdated := qrLastUpdated
  1584  		if qLastUpdated != "" {
  1585  
  1586  			if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil {
  1587  				return err
  1588  			}
  1589  		}
  1590  	}
  1591  
  1592  	if o.LastUpdatedGte != nil {
  1593  
  1594  		// query param last_updated__gte
  1595  		var qrLastUpdatedGte string
  1596  
  1597  		if o.LastUpdatedGte != nil {
  1598  			qrLastUpdatedGte = *o.LastUpdatedGte
  1599  		}
  1600  		qLastUpdatedGte := qrLastUpdatedGte
  1601  		if qLastUpdatedGte != "" {
  1602  
  1603  			if err := r.SetQueryParam("last_updated__gte", qLastUpdatedGte); err != nil {
  1604  				return err
  1605  			}
  1606  		}
  1607  	}
  1608  
  1609  	if o.LastUpdatedLte != nil {
  1610  
  1611  		// query param last_updated__lte
  1612  		var qrLastUpdatedLte string
  1613  
  1614  		if o.LastUpdatedLte != nil {
  1615  			qrLastUpdatedLte = *o.LastUpdatedLte
  1616  		}
  1617  		qLastUpdatedLte := qrLastUpdatedLte
  1618  		if qLastUpdatedLte != "" {
  1619  
  1620  			if err := r.SetQueryParam("last_updated__lte", qLastUpdatedLte); err != nil {
  1621  				return err
  1622  			}
  1623  		}
  1624  	}
  1625  
  1626  	if o.Limit != nil {
  1627  
  1628  		// query param limit
  1629  		var qrLimit int64
  1630  
  1631  		if o.Limit != nil {
  1632  			qrLimit = *o.Limit
  1633  		}
  1634  		qLimit := swag.FormatInt64(qrLimit)
  1635  		if qLimit != "" {
  1636  
  1637  			if err := r.SetQueryParam("limit", qLimit); err != nil {
  1638  				return err
  1639  			}
  1640  		}
  1641  	}
  1642  
  1643  	if o.MaskLength != nil {
  1644  
  1645  		// query param mask_length
  1646  		var qrMaskLength float64
  1647  
  1648  		if o.MaskLength != nil {
  1649  			qrMaskLength = *o.MaskLength
  1650  		}
  1651  		qMaskLength := swag.FormatFloat64(qrMaskLength)
  1652  		if qMaskLength != "" {
  1653  
  1654  			if err := r.SetQueryParam("mask_length", qMaskLength); err != nil {
  1655  				return err
  1656  			}
  1657  		}
  1658  	}
  1659  
  1660  	if o.MaskLengthGte != nil {
  1661  
  1662  		// query param mask_length__gte
  1663  		var qrMaskLengthGte float64
  1664  
  1665  		if o.MaskLengthGte != nil {
  1666  			qrMaskLengthGte = *o.MaskLengthGte
  1667  		}
  1668  		qMaskLengthGte := swag.FormatFloat64(qrMaskLengthGte)
  1669  		if qMaskLengthGte != "" {
  1670  
  1671  			if err := r.SetQueryParam("mask_length__gte", qMaskLengthGte); err != nil {
  1672  				return err
  1673  			}
  1674  		}
  1675  	}
  1676  
  1677  	if o.MaskLengthLte != nil {
  1678  
  1679  		// query param mask_length__lte
  1680  		var qrMaskLengthLte float64
  1681  
  1682  		if o.MaskLengthLte != nil {
  1683  			qrMaskLengthLte = *o.MaskLengthLte
  1684  		}
  1685  		qMaskLengthLte := swag.FormatFloat64(qrMaskLengthLte)
  1686  		if qMaskLengthLte != "" {
  1687  
  1688  			if err := r.SetQueryParam("mask_length__lte", qMaskLengthLte); err != nil {
  1689  				return err
  1690  			}
  1691  		}
  1692  	}
  1693  
  1694  	if o.Offset != nil {
  1695  
  1696  		// query param offset
  1697  		var qrOffset int64
  1698  
  1699  		if o.Offset != nil {
  1700  			qrOffset = *o.Offset
  1701  		}
  1702  		qOffset := swag.FormatInt64(qrOffset)
  1703  		if qOffset != "" {
  1704  
  1705  			if err := r.SetQueryParam("offset", qOffset); err != nil {
  1706  				return err
  1707  			}
  1708  		}
  1709  	}
  1710  
  1711  	if o.Prefix != nil {
  1712  
  1713  		// query param prefix
  1714  		var qrPrefix string
  1715  
  1716  		if o.Prefix != nil {
  1717  			qrPrefix = *o.Prefix
  1718  		}
  1719  		qPrefix := qrPrefix
  1720  		if qPrefix != "" {
  1721  
  1722  			if err := r.SetQueryParam("prefix", qPrefix); err != nil {
  1723  				return err
  1724  			}
  1725  		}
  1726  	}
  1727  
  1728  	if o.PresentInVrf != nil {
  1729  
  1730  		// query param present_in_vrf
  1731  		var qrPresentInVrf string
  1732  
  1733  		if o.PresentInVrf != nil {
  1734  			qrPresentInVrf = *o.PresentInVrf
  1735  		}
  1736  		qPresentInVrf := qrPresentInVrf
  1737  		if qPresentInVrf != "" {
  1738  
  1739  			if err := r.SetQueryParam("present_in_vrf", qPresentInVrf); err != nil {
  1740  				return err
  1741  			}
  1742  		}
  1743  	}
  1744  
  1745  	if o.PresentInVrfID != nil {
  1746  
  1747  		// query param present_in_vrf_id
  1748  		var qrPresentInVrfID string
  1749  
  1750  		if o.PresentInVrfID != nil {
  1751  			qrPresentInVrfID = *o.PresentInVrfID
  1752  		}
  1753  		qPresentInVrfID := qrPresentInVrfID
  1754  		if qPresentInVrfID != "" {
  1755  
  1756  			if err := r.SetQueryParam("present_in_vrf_id", qPresentInVrfID); err != nil {
  1757  				return err
  1758  			}
  1759  		}
  1760  	}
  1761  
  1762  	if o.Q != nil {
  1763  
  1764  		// query param q
  1765  		var qrQ string
  1766  
  1767  		if o.Q != nil {
  1768  			qrQ = *o.Q
  1769  		}
  1770  		qQ := qrQ
  1771  		if qQ != "" {
  1772  
  1773  			if err := r.SetQueryParam("q", qQ); err != nil {
  1774  				return err
  1775  			}
  1776  		}
  1777  	}
  1778  
  1779  	if o.Region != nil {
  1780  
  1781  		// query param region
  1782  		var qrRegion string
  1783  
  1784  		if o.Region != nil {
  1785  			qrRegion = *o.Region
  1786  		}
  1787  		qRegion := qrRegion
  1788  		if qRegion != "" {
  1789  
  1790  			if err := r.SetQueryParam("region", qRegion); err != nil {
  1791  				return err
  1792  			}
  1793  		}
  1794  	}
  1795  
  1796  	if o.Regionn != nil {
  1797  
  1798  		// query param region__n
  1799  		var qrRegionn string
  1800  
  1801  		if o.Regionn != nil {
  1802  			qrRegionn = *o.Regionn
  1803  		}
  1804  		qRegionn := qrRegionn
  1805  		if qRegionn != "" {
  1806  
  1807  			if err := r.SetQueryParam("region__n", qRegionn); err != nil {
  1808  				return err
  1809  			}
  1810  		}
  1811  	}
  1812  
  1813  	if o.RegionID != nil {
  1814  
  1815  		// query param region_id
  1816  		var qrRegionID string
  1817  
  1818  		if o.RegionID != nil {
  1819  			qrRegionID = *o.RegionID
  1820  		}
  1821  		qRegionID := qrRegionID
  1822  		if qRegionID != "" {
  1823  
  1824  			if err := r.SetQueryParam("region_id", qRegionID); err != nil {
  1825  				return err
  1826  			}
  1827  		}
  1828  	}
  1829  
  1830  	if o.RegionIDn != nil {
  1831  
  1832  		// query param region_id__n
  1833  		var qrRegionIDn string
  1834  
  1835  		if o.RegionIDn != nil {
  1836  			qrRegionIDn = *o.RegionIDn
  1837  		}
  1838  		qRegionIDn := qrRegionIDn
  1839  		if qRegionIDn != "" {
  1840  
  1841  			if err := r.SetQueryParam("region_id__n", qRegionIDn); err != nil {
  1842  				return err
  1843  			}
  1844  		}
  1845  	}
  1846  
  1847  	if o.Role != nil {
  1848  
  1849  		// query param role
  1850  		var qrRole string
  1851  
  1852  		if o.Role != nil {
  1853  			qrRole = *o.Role
  1854  		}
  1855  		qRole := qrRole
  1856  		if qRole != "" {
  1857  
  1858  			if err := r.SetQueryParam("role", qRole); err != nil {
  1859  				return err
  1860  			}
  1861  		}
  1862  	}
  1863  
  1864  	if o.Rolen != nil {
  1865  
  1866  		// query param role__n
  1867  		var qrRolen string
  1868  
  1869  		if o.Rolen != nil {
  1870  			qrRolen = *o.Rolen
  1871  		}
  1872  		qRolen := qrRolen
  1873  		if qRolen != "" {
  1874  
  1875  			if err := r.SetQueryParam("role__n", qRolen); err != nil {
  1876  				return err
  1877  			}
  1878  		}
  1879  	}
  1880  
  1881  	if o.RoleID != nil {
  1882  
  1883  		// query param role_id
  1884  		var qrRoleID string
  1885  
  1886  		if o.RoleID != nil {
  1887  			qrRoleID = *o.RoleID
  1888  		}
  1889  		qRoleID := qrRoleID
  1890  		if qRoleID != "" {
  1891  
  1892  			if err := r.SetQueryParam("role_id", qRoleID); err != nil {
  1893  				return err
  1894  			}
  1895  		}
  1896  	}
  1897  
  1898  	if o.RoleIDn != nil {
  1899  
  1900  		// query param role_id__n
  1901  		var qrRoleIDn string
  1902  
  1903  		if o.RoleIDn != nil {
  1904  			qrRoleIDn = *o.RoleIDn
  1905  		}
  1906  		qRoleIDn := qrRoleIDn
  1907  		if qRoleIDn != "" {
  1908  
  1909  			if err := r.SetQueryParam("role_id__n", qRoleIDn); err != nil {
  1910  				return err
  1911  			}
  1912  		}
  1913  	}
  1914  
  1915  	if o.Site != nil {
  1916  
  1917  		// query param site
  1918  		var qrSite string
  1919  
  1920  		if o.Site != nil {
  1921  			qrSite = *o.Site
  1922  		}
  1923  		qSite := qrSite
  1924  		if qSite != "" {
  1925  
  1926  			if err := r.SetQueryParam("site", qSite); err != nil {
  1927  				return err
  1928  			}
  1929  		}
  1930  	}
  1931  
  1932  	if o.Siten != nil {
  1933  
  1934  		// query param site__n
  1935  		var qrSiten string
  1936  
  1937  		if o.Siten != nil {
  1938  			qrSiten = *o.Siten
  1939  		}
  1940  		qSiten := qrSiten
  1941  		if qSiten != "" {
  1942  
  1943  			if err := r.SetQueryParam("site__n", qSiten); err != nil {
  1944  				return err
  1945  			}
  1946  		}
  1947  	}
  1948  
  1949  	if o.SiteGroup != nil {
  1950  
  1951  		// query param site_group
  1952  		var qrSiteGroup string
  1953  
  1954  		if o.SiteGroup != nil {
  1955  			qrSiteGroup = *o.SiteGroup
  1956  		}
  1957  		qSiteGroup := qrSiteGroup
  1958  		if qSiteGroup != "" {
  1959  
  1960  			if err := r.SetQueryParam("site_group", qSiteGroup); err != nil {
  1961  				return err
  1962  			}
  1963  		}
  1964  	}
  1965  
  1966  	if o.SiteGroupn != nil {
  1967  
  1968  		// query param site_group__n
  1969  		var qrSiteGroupn string
  1970  
  1971  		if o.SiteGroupn != nil {
  1972  			qrSiteGroupn = *o.SiteGroupn
  1973  		}
  1974  		qSiteGroupn := qrSiteGroupn
  1975  		if qSiteGroupn != "" {
  1976  
  1977  			if err := r.SetQueryParam("site_group__n", qSiteGroupn); err != nil {
  1978  				return err
  1979  			}
  1980  		}
  1981  	}
  1982  
  1983  	if o.SiteGroupID != nil {
  1984  
  1985  		// query param site_group_id
  1986  		var qrSiteGroupID string
  1987  
  1988  		if o.SiteGroupID != nil {
  1989  			qrSiteGroupID = *o.SiteGroupID
  1990  		}
  1991  		qSiteGroupID := qrSiteGroupID
  1992  		if qSiteGroupID != "" {
  1993  
  1994  			if err := r.SetQueryParam("site_group_id", qSiteGroupID); err != nil {
  1995  				return err
  1996  			}
  1997  		}
  1998  	}
  1999  
  2000  	if o.SiteGroupIDn != nil {
  2001  
  2002  		// query param site_group_id__n
  2003  		var qrSiteGroupIDn string
  2004  
  2005  		if o.SiteGroupIDn != nil {
  2006  			qrSiteGroupIDn = *o.SiteGroupIDn
  2007  		}
  2008  		qSiteGroupIDn := qrSiteGroupIDn
  2009  		if qSiteGroupIDn != "" {
  2010  
  2011  			if err := r.SetQueryParam("site_group_id__n", qSiteGroupIDn); err != nil {
  2012  				return err
  2013  			}
  2014  		}
  2015  	}
  2016  
  2017  	if o.SiteID != nil {
  2018  
  2019  		// query param site_id
  2020  		var qrSiteID string
  2021  
  2022  		if o.SiteID != nil {
  2023  			qrSiteID = *o.SiteID
  2024  		}
  2025  		qSiteID := qrSiteID
  2026  		if qSiteID != "" {
  2027  
  2028  			if err := r.SetQueryParam("site_id", qSiteID); err != nil {
  2029  				return err
  2030  			}
  2031  		}
  2032  	}
  2033  
  2034  	if o.SiteIDn != nil {
  2035  
  2036  		// query param site_id__n
  2037  		var qrSiteIDn string
  2038  
  2039  		if o.SiteIDn != nil {
  2040  			qrSiteIDn = *o.SiteIDn
  2041  		}
  2042  		qSiteIDn := qrSiteIDn
  2043  		if qSiteIDn != "" {
  2044  
  2045  			if err := r.SetQueryParam("site_id__n", qSiteIDn); err != nil {
  2046  				return err
  2047  			}
  2048  		}
  2049  	}
  2050  
  2051  	if o.Status != nil {
  2052  
  2053  		// query param status
  2054  		var qrStatus string
  2055  
  2056  		if o.Status != nil {
  2057  			qrStatus = *o.Status
  2058  		}
  2059  		qStatus := qrStatus
  2060  		if qStatus != "" {
  2061  
  2062  			if err := r.SetQueryParam("status", qStatus); err != nil {
  2063  				return err
  2064  			}
  2065  		}
  2066  	}
  2067  
  2068  	if o.Statusn != nil {
  2069  
  2070  		// query param status__n
  2071  		var qrStatusn string
  2072  
  2073  		if o.Statusn != nil {
  2074  			qrStatusn = *o.Statusn
  2075  		}
  2076  		qStatusn := qrStatusn
  2077  		if qStatusn != "" {
  2078  
  2079  			if err := r.SetQueryParam("status__n", qStatusn); err != nil {
  2080  				return err
  2081  			}
  2082  		}
  2083  	}
  2084  
  2085  	if o.Tag != nil {
  2086  
  2087  		// query param tag
  2088  		var qrTag string
  2089  
  2090  		if o.Tag != nil {
  2091  			qrTag = *o.Tag
  2092  		}
  2093  		qTag := qrTag
  2094  		if qTag != "" {
  2095  
  2096  			if err := r.SetQueryParam("tag", qTag); err != nil {
  2097  				return err
  2098  			}
  2099  		}
  2100  	}
  2101  
  2102  	if o.Tagn != nil {
  2103  
  2104  		// query param tag__n
  2105  		var qrTagn string
  2106  
  2107  		if o.Tagn != nil {
  2108  			qrTagn = *o.Tagn
  2109  		}
  2110  		qTagn := qrTagn
  2111  		if qTagn != "" {
  2112  
  2113  			if err := r.SetQueryParam("tag__n", qTagn); err != nil {
  2114  				return err
  2115  			}
  2116  		}
  2117  	}
  2118  
  2119  	if o.Tenant != nil {
  2120  
  2121  		// query param tenant
  2122  		var qrTenant string
  2123  
  2124  		if o.Tenant != nil {
  2125  			qrTenant = *o.Tenant
  2126  		}
  2127  		qTenant := qrTenant
  2128  		if qTenant != "" {
  2129  
  2130  			if err := r.SetQueryParam("tenant", qTenant); err != nil {
  2131  				return err
  2132  			}
  2133  		}
  2134  	}
  2135  
  2136  	if o.Tenantn != nil {
  2137  
  2138  		// query param tenant__n
  2139  		var qrTenantn string
  2140  
  2141  		if o.Tenantn != nil {
  2142  			qrTenantn = *o.Tenantn
  2143  		}
  2144  		qTenantn := qrTenantn
  2145  		if qTenantn != "" {
  2146  
  2147  			if err := r.SetQueryParam("tenant__n", qTenantn); err != nil {
  2148  				return err
  2149  			}
  2150  		}
  2151  	}
  2152  
  2153  	if o.TenantGroup != nil {
  2154  
  2155  		// query param tenant_group
  2156  		var qrTenantGroup string
  2157  
  2158  		if o.TenantGroup != nil {
  2159  			qrTenantGroup = *o.TenantGroup
  2160  		}
  2161  		qTenantGroup := qrTenantGroup
  2162  		if qTenantGroup != "" {
  2163  
  2164  			if err := r.SetQueryParam("tenant_group", qTenantGroup); err != nil {
  2165  				return err
  2166  			}
  2167  		}
  2168  	}
  2169  
  2170  	if o.TenantGroupn != nil {
  2171  
  2172  		// query param tenant_group__n
  2173  		var qrTenantGroupn string
  2174  
  2175  		if o.TenantGroupn != nil {
  2176  			qrTenantGroupn = *o.TenantGroupn
  2177  		}
  2178  		qTenantGroupn := qrTenantGroupn
  2179  		if qTenantGroupn != "" {
  2180  
  2181  			if err := r.SetQueryParam("tenant_group__n", qTenantGroupn); err != nil {
  2182  				return err
  2183  			}
  2184  		}
  2185  	}
  2186  
  2187  	if o.TenantGroupID != nil {
  2188  
  2189  		// query param tenant_group_id
  2190  		var qrTenantGroupID string
  2191  
  2192  		if o.TenantGroupID != nil {
  2193  			qrTenantGroupID = *o.TenantGroupID
  2194  		}
  2195  		qTenantGroupID := qrTenantGroupID
  2196  		if qTenantGroupID != "" {
  2197  
  2198  			if err := r.SetQueryParam("tenant_group_id", qTenantGroupID); err != nil {
  2199  				return err
  2200  			}
  2201  		}
  2202  	}
  2203  
  2204  	if o.TenantGroupIDn != nil {
  2205  
  2206  		// query param tenant_group_id__n
  2207  		var qrTenantGroupIDn string
  2208  
  2209  		if o.TenantGroupIDn != nil {
  2210  			qrTenantGroupIDn = *o.TenantGroupIDn
  2211  		}
  2212  		qTenantGroupIDn := qrTenantGroupIDn
  2213  		if qTenantGroupIDn != "" {
  2214  
  2215  			if err := r.SetQueryParam("tenant_group_id__n", qTenantGroupIDn); err != nil {
  2216  				return err
  2217  			}
  2218  		}
  2219  	}
  2220  
  2221  	if o.TenantID != nil {
  2222  
  2223  		// query param tenant_id
  2224  		var qrTenantID string
  2225  
  2226  		if o.TenantID != nil {
  2227  			qrTenantID = *o.TenantID
  2228  		}
  2229  		qTenantID := qrTenantID
  2230  		if qTenantID != "" {
  2231  
  2232  			if err := r.SetQueryParam("tenant_id", qTenantID); err != nil {
  2233  				return err
  2234  			}
  2235  		}
  2236  	}
  2237  
  2238  	if o.TenantIDn != nil {
  2239  
  2240  		// query param tenant_id__n
  2241  		var qrTenantIDn string
  2242  
  2243  		if o.TenantIDn != nil {
  2244  			qrTenantIDn = *o.TenantIDn
  2245  		}
  2246  		qTenantIDn := qrTenantIDn
  2247  		if qTenantIDn != "" {
  2248  
  2249  			if err := r.SetQueryParam("tenant_id__n", qTenantIDn); err != nil {
  2250  				return err
  2251  			}
  2252  		}
  2253  	}
  2254  
  2255  	if o.VlanID != nil {
  2256  
  2257  		// query param vlan_id
  2258  		var qrVlanID string
  2259  
  2260  		if o.VlanID != nil {
  2261  			qrVlanID = *o.VlanID
  2262  		}
  2263  		qVlanID := qrVlanID
  2264  		if qVlanID != "" {
  2265  
  2266  			if err := r.SetQueryParam("vlan_id", qVlanID); err != nil {
  2267  				return err
  2268  			}
  2269  		}
  2270  	}
  2271  
  2272  	if o.VlanIDn != nil {
  2273  
  2274  		// query param vlan_id__n
  2275  		var qrVlanIDn string
  2276  
  2277  		if o.VlanIDn != nil {
  2278  			qrVlanIDn = *o.VlanIDn
  2279  		}
  2280  		qVlanIDn := qrVlanIDn
  2281  		if qVlanIDn != "" {
  2282  
  2283  			if err := r.SetQueryParam("vlan_id__n", qVlanIDn); err != nil {
  2284  				return err
  2285  			}
  2286  		}
  2287  	}
  2288  
  2289  	if o.VlanVid != nil {
  2290  
  2291  		// query param vlan_vid
  2292  		var qrVlanVid float64
  2293  
  2294  		if o.VlanVid != nil {
  2295  			qrVlanVid = *o.VlanVid
  2296  		}
  2297  		qVlanVid := swag.FormatFloat64(qrVlanVid)
  2298  		if qVlanVid != "" {
  2299  
  2300  			if err := r.SetQueryParam("vlan_vid", qVlanVid); err != nil {
  2301  				return err
  2302  			}
  2303  		}
  2304  	}
  2305  
  2306  	if o.Vrf != nil {
  2307  
  2308  		// query param vrf
  2309  		var qrVrf string
  2310  
  2311  		if o.Vrf != nil {
  2312  			qrVrf = *o.Vrf
  2313  		}
  2314  		qVrf := qrVrf
  2315  		if qVrf != "" {
  2316  
  2317  			if err := r.SetQueryParam("vrf", qVrf); err != nil {
  2318  				return err
  2319  			}
  2320  		}
  2321  	}
  2322  
  2323  	if o.Vrfn != nil {
  2324  
  2325  		// query param vrf__n
  2326  		var qrVrfn string
  2327  
  2328  		if o.Vrfn != nil {
  2329  			qrVrfn = *o.Vrfn
  2330  		}
  2331  		qVrfn := qrVrfn
  2332  		if qVrfn != "" {
  2333  
  2334  			if err := r.SetQueryParam("vrf__n", qVrfn); err != nil {
  2335  				return err
  2336  			}
  2337  		}
  2338  	}
  2339  
  2340  	if o.VrfID != nil {
  2341  
  2342  		// query param vrf_id
  2343  		var qrVrfID string
  2344  
  2345  		if o.VrfID != nil {
  2346  			qrVrfID = *o.VrfID
  2347  		}
  2348  		qVrfID := qrVrfID
  2349  		if qVrfID != "" {
  2350  
  2351  			if err := r.SetQueryParam("vrf_id", qVrfID); err != nil {
  2352  				return err
  2353  			}
  2354  		}
  2355  	}
  2356  
  2357  	if o.VrfIDn != nil {
  2358  
  2359  		// query param vrf_id__n
  2360  		var qrVrfIDn string
  2361  
  2362  		if o.VrfIDn != nil {
  2363  			qrVrfIDn = *o.VrfIDn
  2364  		}
  2365  		qVrfIDn := qrVrfIDn
  2366  		if qVrfIDn != "" {
  2367  
  2368  			if err := r.SetQueryParam("vrf_id__n", qVrfIDn); err != nil {
  2369  				return err
  2370  			}
  2371  		}
  2372  	}
  2373  
  2374  	if o.Within != nil {
  2375  
  2376  		// query param within
  2377  		var qrWithin string
  2378  
  2379  		if o.Within != nil {
  2380  			qrWithin = *o.Within
  2381  		}
  2382  		qWithin := qrWithin
  2383  		if qWithin != "" {
  2384  
  2385  			if err := r.SetQueryParam("within", qWithin); err != nil {
  2386  				return err
  2387  			}
  2388  		}
  2389  	}
  2390  
  2391  	if o.WithinInclude != nil {
  2392  
  2393  		// query param within_include
  2394  		var qrWithinInclude string
  2395  
  2396  		if o.WithinInclude != nil {
  2397  			qrWithinInclude = *o.WithinInclude
  2398  		}
  2399  		qWithinInclude := qrWithinInclude
  2400  		if qWithinInclude != "" {
  2401  
  2402  			if err := r.SetQueryParam("within_include", qWithinInclude); err != nil {
  2403  				return err
  2404  			}
  2405  		}
  2406  	}
  2407  
  2408  	if len(res) > 0 {
  2409  		return errors.CompositeValidationError(res...)
  2410  	}
  2411  	return nil
  2412  }