github.com/digitalocean/go-netbox@v0.0.2/netbox/client/ipam/ipam_roles_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  // NewIpamRolesListParams creates a new IpamRolesListParams 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 NewIpamRolesListParams() *IpamRolesListParams {
    42  	return &IpamRolesListParams{
    43  		timeout: cr.DefaultTimeout,
    44  	}
    45  }
    46  
    47  // NewIpamRolesListParamsWithTimeout creates a new IpamRolesListParams object
    48  // with the ability to set a timeout on a request.
    49  func NewIpamRolesListParamsWithTimeout(timeout time.Duration) *IpamRolesListParams {
    50  	return &IpamRolesListParams{
    51  		timeout: timeout,
    52  	}
    53  }
    54  
    55  // NewIpamRolesListParamsWithContext creates a new IpamRolesListParams object
    56  // with the ability to set a context for a request.
    57  func NewIpamRolesListParamsWithContext(ctx context.Context) *IpamRolesListParams {
    58  	return &IpamRolesListParams{
    59  		Context: ctx,
    60  	}
    61  }
    62  
    63  // NewIpamRolesListParamsWithHTTPClient creates a new IpamRolesListParams object
    64  // with the ability to set a custom HTTPClient for a request.
    65  func NewIpamRolesListParamsWithHTTPClient(client *http.Client) *IpamRolesListParams {
    66  	return &IpamRolesListParams{
    67  		HTTPClient: client,
    68  	}
    69  }
    70  
    71  /* IpamRolesListParams contains all the parameters to send to the API endpoint
    72     for the ipam roles list operation.
    73  
    74     Typically these are written to a http.Request.
    75  */
    76  type IpamRolesListParams struct {
    77  
    78  	// Created.
    79  	Created *string
    80  
    81  	// CreatedGte.
    82  	CreatedGte *string
    83  
    84  	// CreatedLte.
    85  	CreatedLte *string
    86  
    87  	// ID.
    88  	ID *string
    89  
    90  	// IDGt.
    91  	IDGt *string
    92  
    93  	// IDGte.
    94  	IDGte *string
    95  
    96  	// IDLt.
    97  	IDLt *string
    98  
    99  	// IDLte.
   100  	IDLte *string
   101  
   102  	// IDn.
   103  	IDn *string
   104  
   105  	// LastUpdated.
   106  	LastUpdated *string
   107  
   108  	// LastUpdatedGte.
   109  	LastUpdatedGte *string
   110  
   111  	// LastUpdatedLte.
   112  	LastUpdatedLte *string
   113  
   114  	/* Limit.
   115  
   116  	   Number of results to return per page.
   117  	*/
   118  	Limit *int64
   119  
   120  	// Name.
   121  	Name *string
   122  
   123  	// NameEmpty.
   124  	NameEmpty *string
   125  
   126  	// NameIc.
   127  	NameIc *string
   128  
   129  	// NameIe.
   130  	NameIe *string
   131  
   132  	// NameIew.
   133  	NameIew *string
   134  
   135  	// NameIsw.
   136  	NameIsw *string
   137  
   138  	// Namen.
   139  	Namen *string
   140  
   141  	// NameNic.
   142  	NameNic *string
   143  
   144  	// NameNie.
   145  	NameNie *string
   146  
   147  	// NameNiew.
   148  	NameNiew *string
   149  
   150  	// NameNisw.
   151  	NameNisw *string
   152  
   153  	/* Offset.
   154  
   155  	   The initial index from which to return the results.
   156  	*/
   157  	Offset *int64
   158  
   159  	// Q.
   160  	Q *string
   161  
   162  	// Slug.
   163  	Slug *string
   164  
   165  	// SlugEmpty.
   166  	SlugEmpty *string
   167  
   168  	// SlugIc.
   169  	SlugIc *string
   170  
   171  	// SlugIe.
   172  	SlugIe *string
   173  
   174  	// SlugIew.
   175  	SlugIew *string
   176  
   177  	// SlugIsw.
   178  	SlugIsw *string
   179  
   180  	// Slugn.
   181  	Slugn *string
   182  
   183  	// SlugNic.
   184  	SlugNic *string
   185  
   186  	// SlugNie.
   187  	SlugNie *string
   188  
   189  	// SlugNiew.
   190  	SlugNiew *string
   191  
   192  	// SlugNisw.
   193  	SlugNisw *string
   194  
   195  	timeout    time.Duration
   196  	Context    context.Context
   197  	HTTPClient *http.Client
   198  }
   199  
   200  // WithDefaults hydrates default values in the ipam roles list params (not the query body).
   201  //
   202  // All values with no default are reset to their zero value.
   203  func (o *IpamRolesListParams) WithDefaults() *IpamRolesListParams {
   204  	o.SetDefaults()
   205  	return o
   206  }
   207  
   208  // SetDefaults hydrates default values in the ipam roles list params (not the query body).
   209  //
   210  // All values with no default are reset to their zero value.
   211  func (o *IpamRolesListParams) SetDefaults() {
   212  	// no default values defined for this parameter
   213  }
   214  
   215  // WithTimeout adds the timeout to the ipam roles list params
   216  func (o *IpamRolesListParams) WithTimeout(timeout time.Duration) *IpamRolesListParams {
   217  	o.SetTimeout(timeout)
   218  	return o
   219  }
   220  
   221  // SetTimeout adds the timeout to the ipam roles list params
   222  func (o *IpamRolesListParams) SetTimeout(timeout time.Duration) {
   223  	o.timeout = timeout
   224  }
   225  
   226  // WithContext adds the context to the ipam roles list params
   227  func (o *IpamRolesListParams) WithContext(ctx context.Context) *IpamRolesListParams {
   228  	o.SetContext(ctx)
   229  	return o
   230  }
   231  
   232  // SetContext adds the context to the ipam roles list params
   233  func (o *IpamRolesListParams) SetContext(ctx context.Context) {
   234  	o.Context = ctx
   235  }
   236  
   237  // WithHTTPClient adds the HTTPClient to the ipam roles list params
   238  func (o *IpamRolesListParams) WithHTTPClient(client *http.Client) *IpamRolesListParams {
   239  	o.SetHTTPClient(client)
   240  	return o
   241  }
   242  
   243  // SetHTTPClient adds the HTTPClient to the ipam roles list params
   244  func (o *IpamRolesListParams) SetHTTPClient(client *http.Client) {
   245  	o.HTTPClient = client
   246  }
   247  
   248  // WithCreated adds the created to the ipam roles list params
   249  func (o *IpamRolesListParams) WithCreated(created *string) *IpamRolesListParams {
   250  	o.SetCreated(created)
   251  	return o
   252  }
   253  
   254  // SetCreated adds the created to the ipam roles list params
   255  func (o *IpamRolesListParams) SetCreated(created *string) {
   256  	o.Created = created
   257  }
   258  
   259  // WithCreatedGte adds the createdGte to the ipam roles list params
   260  func (o *IpamRolesListParams) WithCreatedGte(createdGte *string) *IpamRolesListParams {
   261  	o.SetCreatedGte(createdGte)
   262  	return o
   263  }
   264  
   265  // SetCreatedGte adds the createdGte to the ipam roles list params
   266  func (o *IpamRolesListParams) SetCreatedGte(createdGte *string) {
   267  	o.CreatedGte = createdGte
   268  }
   269  
   270  // WithCreatedLte adds the createdLte to the ipam roles list params
   271  func (o *IpamRolesListParams) WithCreatedLte(createdLte *string) *IpamRolesListParams {
   272  	o.SetCreatedLte(createdLte)
   273  	return o
   274  }
   275  
   276  // SetCreatedLte adds the createdLte to the ipam roles list params
   277  func (o *IpamRolesListParams) SetCreatedLte(createdLte *string) {
   278  	o.CreatedLte = createdLte
   279  }
   280  
   281  // WithID adds the id to the ipam roles list params
   282  func (o *IpamRolesListParams) WithID(id *string) *IpamRolesListParams {
   283  	o.SetID(id)
   284  	return o
   285  }
   286  
   287  // SetID adds the id to the ipam roles list params
   288  func (o *IpamRolesListParams) SetID(id *string) {
   289  	o.ID = id
   290  }
   291  
   292  // WithIDGt adds the iDGt to the ipam roles list params
   293  func (o *IpamRolesListParams) WithIDGt(iDGt *string) *IpamRolesListParams {
   294  	o.SetIDGt(iDGt)
   295  	return o
   296  }
   297  
   298  // SetIDGt adds the idGt to the ipam roles list params
   299  func (o *IpamRolesListParams) SetIDGt(iDGt *string) {
   300  	o.IDGt = iDGt
   301  }
   302  
   303  // WithIDGte adds the iDGte to the ipam roles list params
   304  func (o *IpamRolesListParams) WithIDGte(iDGte *string) *IpamRolesListParams {
   305  	o.SetIDGte(iDGte)
   306  	return o
   307  }
   308  
   309  // SetIDGte adds the idGte to the ipam roles list params
   310  func (o *IpamRolesListParams) SetIDGte(iDGte *string) {
   311  	o.IDGte = iDGte
   312  }
   313  
   314  // WithIDLt adds the iDLt to the ipam roles list params
   315  func (o *IpamRolesListParams) WithIDLt(iDLt *string) *IpamRolesListParams {
   316  	o.SetIDLt(iDLt)
   317  	return o
   318  }
   319  
   320  // SetIDLt adds the idLt to the ipam roles list params
   321  func (o *IpamRolesListParams) SetIDLt(iDLt *string) {
   322  	o.IDLt = iDLt
   323  }
   324  
   325  // WithIDLte adds the iDLte to the ipam roles list params
   326  func (o *IpamRolesListParams) WithIDLte(iDLte *string) *IpamRolesListParams {
   327  	o.SetIDLte(iDLte)
   328  	return o
   329  }
   330  
   331  // SetIDLte adds the idLte to the ipam roles list params
   332  func (o *IpamRolesListParams) SetIDLte(iDLte *string) {
   333  	o.IDLte = iDLte
   334  }
   335  
   336  // WithIDn adds the iDn to the ipam roles list params
   337  func (o *IpamRolesListParams) WithIDn(iDn *string) *IpamRolesListParams {
   338  	o.SetIDn(iDn)
   339  	return o
   340  }
   341  
   342  // SetIDn adds the idN to the ipam roles list params
   343  func (o *IpamRolesListParams) SetIDn(iDn *string) {
   344  	o.IDn = iDn
   345  }
   346  
   347  // WithLastUpdated adds the lastUpdated to the ipam roles list params
   348  func (o *IpamRolesListParams) WithLastUpdated(lastUpdated *string) *IpamRolesListParams {
   349  	o.SetLastUpdated(lastUpdated)
   350  	return o
   351  }
   352  
   353  // SetLastUpdated adds the lastUpdated to the ipam roles list params
   354  func (o *IpamRolesListParams) SetLastUpdated(lastUpdated *string) {
   355  	o.LastUpdated = lastUpdated
   356  }
   357  
   358  // WithLastUpdatedGte adds the lastUpdatedGte to the ipam roles list params
   359  func (o *IpamRolesListParams) WithLastUpdatedGte(lastUpdatedGte *string) *IpamRolesListParams {
   360  	o.SetLastUpdatedGte(lastUpdatedGte)
   361  	return o
   362  }
   363  
   364  // SetLastUpdatedGte adds the lastUpdatedGte to the ipam roles list params
   365  func (o *IpamRolesListParams) SetLastUpdatedGte(lastUpdatedGte *string) {
   366  	o.LastUpdatedGte = lastUpdatedGte
   367  }
   368  
   369  // WithLastUpdatedLte adds the lastUpdatedLte to the ipam roles list params
   370  func (o *IpamRolesListParams) WithLastUpdatedLte(lastUpdatedLte *string) *IpamRolesListParams {
   371  	o.SetLastUpdatedLte(lastUpdatedLte)
   372  	return o
   373  }
   374  
   375  // SetLastUpdatedLte adds the lastUpdatedLte to the ipam roles list params
   376  func (o *IpamRolesListParams) SetLastUpdatedLte(lastUpdatedLte *string) {
   377  	o.LastUpdatedLte = lastUpdatedLte
   378  }
   379  
   380  // WithLimit adds the limit to the ipam roles list params
   381  func (o *IpamRolesListParams) WithLimit(limit *int64) *IpamRolesListParams {
   382  	o.SetLimit(limit)
   383  	return o
   384  }
   385  
   386  // SetLimit adds the limit to the ipam roles list params
   387  func (o *IpamRolesListParams) SetLimit(limit *int64) {
   388  	o.Limit = limit
   389  }
   390  
   391  // WithName adds the name to the ipam roles list params
   392  func (o *IpamRolesListParams) WithName(name *string) *IpamRolesListParams {
   393  	o.SetName(name)
   394  	return o
   395  }
   396  
   397  // SetName adds the name to the ipam roles list params
   398  func (o *IpamRolesListParams) SetName(name *string) {
   399  	o.Name = name
   400  }
   401  
   402  // WithNameEmpty adds the nameEmpty to the ipam roles list params
   403  func (o *IpamRolesListParams) WithNameEmpty(nameEmpty *string) *IpamRolesListParams {
   404  	o.SetNameEmpty(nameEmpty)
   405  	return o
   406  }
   407  
   408  // SetNameEmpty adds the nameEmpty to the ipam roles list params
   409  func (o *IpamRolesListParams) SetNameEmpty(nameEmpty *string) {
   410  	o.NameEmpty = nameEmpty
   411  }
   412  
   413  // WithNameIc adds the nameIc to the ipam roles list params
   414  func (o *IpamRolesListParams) WithNameIc(nameIc *string) *IpamRolesListParams {
   415  	o.SetNameIc(nameIc)
   416  	return o
   417  }
   418  
   419  // SetNameIc adds the nameIc to the ipam roles list params
   420  func (o *IpamRolesListParams) SetNameIc(nameIc *string) {
   421  	o.NameIc = nameIc
   422  }
   423  
   424  // WithNameIe adds the nameIe to the ipam roles list params
   425  func (o *IpamRolesListParams) WithNameIe(nameIe *string) *IpamRolesListParams {
   426  	o.SetNameIe(nameIe)
   427  	return o
   428  }
   429  
   430  // SetNameIe adds the nameIe to the ipam roles list params
   431  func (o *IpamRolesListParams) SetNameIe(nameIe *string) {
   432  	o.NameIe = nameIe
   433  }
   434  
   435  // WithNameIew adds the nameIew to the ipam roles list params
   436  func (o *IpamRolesListParams) WithNameIew(nameIew *string) *IpamRolesListParams {
   437  	o.SetNameIew(nameIew)
   438  	return o
   439  }
   440  
   441  // SetNameIew adds the nameIew to the ipam roles list params
   442  func (o *IpamRolesListParams) SetNameIew(nameIew *string) {
   443  	o.NameIew = nameIew
   444  }
   445  
   446  // WithNameIsw adds the nameIsw to the ipam roles list params
   447  func (o *IpamRolesListParams) WithNameIsw(nameIsw *string) *IpamRolesListParams {
   448  	o.SetNameIsw(nameIsw)
   449  	return o
   450  }
   451  
   452  // SetNameIsw adds the nameIsw to the ipam roles list params
   453  func (o *IpamRolesListParams) SetNameIsw(nameIsw *string) {
   454  	o.NameIsw = nameIsw
   455  }
   456  
   457  // WithNamen adds the namen to the ipam roles list params
   458  func (o *IpamRolesListParams) WithNamen(namen *string) *IpamRolesListParams {
   459  	o.SetNamen(namen)
   460  	return o
   461  }
   462  
   463  // SetNamen adds the nameN to the ipam roles list params
   464  func (o *IpamRolesListParams) SetNamen(namen *string) {
   465  	o.Namen = namen
   466  }
   467  
   468  // WithNameNic adds the nameNic to the ipam roles list params
   469  func (o *IpamRolesListParams) WithNameNic(nameNic *string) *IpamRolesListParams {
   470  	o.SetNameNic(nameNic)
   471  	return o
   472  }
   473  
   474  // SetNameNic adds the nameNic to the ipam roles list params
   475  func (o *IpamRolesListParams) SetNameNic(nameNic *string) {
   476  	o.NameNic = nameNic
   477  }
   478  
   479  // WithNameNie adds the nameNie to the ipam roles list params
   480  func (o *IpamRolesListParams) WithNameNie(nameNie *string) *IpamRolesListParams {
   481  	o.SetNameNie(nameNie)
   482  	return o
   483  }
   484  
   485  // SetNameNie adds the nameNie to the ipam roles list params
   486  func (o *IpamRolesListParams) SetNameNie(nameNie *string) {
   487  	o.NameNie = nameNie
   488  }
   489  
   490  // WithNameNiew adds the nameNiew to the ipam roles list params
   491  func (o *IpamRolesListParams) WithNameNiew(nameNiew *string) *IpamRolesListParams {
   492  	o.SetNameNiew(nameNiew)
   493  	return o
   494  }
   495  
   496  // SetNameNiew adds the nameNiew to the ipam roles list params
   497  func (o *IpamRolesListParams) SetNameNiew(nameNiew *string) {
   498  	o.NameNiew = nameNiew
   499  }
   500  
   501  // WithNameNisw adds the nameNisw to the ipam roles list params
   502  func (o *IpamRolesListParams) WithNameNisw(nameNisw *string) *IpamRolesListParams {
   503  	o.SetNameNisw(nameNisw)
   504  	return o
   505  }
   506  
   507  // SetNameNisw adds the nameNisw to the ipam roles list params
   508  func (o *IpamRolesListParams) SetNameNisw(nameNisw *string) {
   509  	o.NameNisw = nameNisw
   510  }
   511  
   512  // WithOffset adds the offset to the ipam roles list params
   513  func (o *IpamRolesListParams) WithOffset(offset *int64) *IpamRolesListParams {
   514  	o.SetOffset(offset)
   515  	return o
   516  }
   517  
   518  // SetOffset adds the offset to the ipam roles list params
   519  func (o *IpamRolesListParams) SetOffset(offset *int64) {
   520  	o.Offset = offset
   521  }
   522  
   523  // WithQ adds the q to the ipam roles list params
   524  func (o *IpamRolesListParams) WithQ(q *string) *IpamRolesListParams {
   525  	o.SetQ(q)
   526  	return o
   527  }
   528  
   529  // SetQ adds the q to the ipam roles list params
   530  func (o *IpamRolesListParams) SetQ(q *string) {
   531  	o.Q = q
   532  }
   533  
   534  // WithSlug adds the slug to the ipam roles list params
   535  func (o *IpamRolesListParams) WithSlug(slug *string) *IpamRolesListParams {
   536  	o.SetSlug(slug)
   537  	return o
   538  }
   539  
   540  // SetSlug adds the slug to the ipam roles list params
   541  func (o *IpamRolesListParams) SetSlug(slug *string) {
   542  	o.Slug = slug
   543  }
   544  
   545  // WithSlugEmpty adds the slugEmpty to the ipam roles list params
   546  func (o *IpamRolesListParams) WithSlugEmpty(slugEmpty *string) *IpamRolesListParams {
   547  	o.SetSlugEmpty(slugEmpty)
   548  	return o
   549  }
   550  
   551  // SetSlugEmpty adds the slugEmpty to the ipam roles list params
   552  func (o *IpamRolesListParams) SetSlugEmpty(slugEmpty *string) {
   553  	o.SlugEmpty = slugEmpty
   554  }
   555  
   556  // WithSlugIc adds the slugIc to the ipam roles list params
   557  func (o *IpamRolesListParams) WithSlugIc(slugIc *string) *IpamRolesListParams {
   558  	o.SetSlugIc(slugIc)
   559  	return o
   560  }
   561  
   562  // SetSlugIc adds the slugIc to the ipam roles list params
   563  func (o *IpamRolesListParams) SetSlugIc(slugIc *string) {
   564  	o.SlugIc = slugIc
   565  }
   566  
   567  // WithSlugIe adds the slugIe to the ipam roles list params
   568  func (o *IpamRolesListParams) WithSlugIe(slugIe *string) *IpamRolesListParams {
   569  	o.SetSlugIe(slugIe)
   570  	return o
   571  }
   572  
   573  // SetSlugIe adds the slugIe to the ipam roles list params
   574  func (o *IpamRolesListParams) SetSlugIe(slugIe *string) {
   575  	o.SlugIe = slugIe
   576  }
   577  
   578  // WithSlugIew adds the slugIew to the ipam roles list params
   579  func (o *IpamRolesListParams) WithSlugIew(slugIew *string) *IpamRolesListParams {
   580  	o.SetSlugIew(slugIew)
   581  	return o
   582  }
   583  
   584  // SetSlugIew adds the slugIew to the ipam roles list params
   585  func (o *IpamRolesListParams) SetSlugIew(slugIew *string) {
   586  	o.SlugIew = slugIew
   587  }
   588  
   589  // WithSlugIsw adds the slugIsw to the ipam roles list params
   590  func (o *IpamRolesListParams) WithSlugIsw(slugIsw *string) *IpamRolesListParams {
   591  	o.SetSlugIsw(slugIsw)
   592  	return o
   593  }
   594  
   595  // SetSlugIsw adds the slugIsw to the ipam roles list params
   596  func (o *IpamRolesListParams) SetSlugIsw(slugIsw *string) {
   597  	o.SlugIsw = slugIsw
   598  }
   599  
   600  // WithSlugn adds the slugn to the ipam roles list params
   601  func (o *IpamRolesListParams) WithSlugn(slugn *string) *IpamRolesListParams {
   602  	o.SetSlugn(slugn)
   603  	return o
   604  }
   605  
   606  // SetSlugn adds the slugN to the ipam roles list params
   607  func (o *IpamRolesListParams) SetSlugn(slugn *string) {
   608  	o.Slugn = slugn
   609  }
   610  
   611  // WithSlugNic adds the slugNic to the ipam roles list params
   612  func (o *IpamRolesListParams) WithSlugNic(slugNic *string) *IpamRolesListParams {
   613  	o.SetSlugNic(slugNic)
   614  	return o
   615  }
   616  
   617  // SetSlugNic adds the slugNic to the ipam roles list params
   618  func (o *IpamRolesListParams) SetSlugNic(slugNic *string) {
   619  	o.SlugNic = slugNic
   620  }
   621  
   622  // WithSlugNie adds the slugNie to the ipam roles list params
   623  func (o *IpamRolesListParams) WithSlugNie(slugNie *string) *IpamRolesListParams {
   624  	o.SetSlugNie(slugNie)
   625  	return o
   626  }
   627  
   628  // SetSlugNie adds the slugNie to the ipam roles list params
   629  func (o *IpamRolesListParams) SetSlugNie(slugNie *string) {
   630  	o.SlugNie = slugNie
   631  }
   632  
   633  // WithSlugNiew adds the slugNiew to the ipam roles list params
   634  func (o *IpamRolesListParams) WithSlugNiew(slugNiew *string) *IpamRolesListParams {
   635  	o.SetSlugNiew(slugNiew)
   636  	return o
   637  }
   638  
   639  // SetSlugNiew adds the slugNiew to the ipam roles list params
   640  func (o *IpamRolesListParams) SetSlugNiew(slugNiew *string) {
   641  	o.SlugNiew = slugNiew
   642  }
   643  
   644  // WithSlugNisw adds the slugNisw to the ipam roles list params
   645  func (o *IpamRolesListParams) WithSlugNisw(slugNisw *string) *IpamRolesListParams {
   646  	o.SetSlugNisw(slugNisw)
   647  	return o
   648  }
   649  
   650  // SetSlugNisw adds the slugNisw to the ipam roles list params
   651  func (o *IpamRolesListParams) SetSlugNisw(slugNisw *string) {
   652  	o.SlugNisw = slugNisw
   653  }
   654  
   655  // WriteToRequest writes these params to a swagger request
   656  func (o *IpamRolesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
   657  
   658  	if err := r.SetTimeout(o.timeout); err != nil {
   659  		return err
   660  	}
   661  	var res []error
   662  
   663  	if o.Created != nil {
   664  
   665  		// query param created
   666  		var qrCreated string
   667  
   668  		if o.Created != nil {
   669  			qrCreated = *o.Created
   670  		}
   671  		qCreated := qrCreated
   672  		if qCreated != "" {
   673  
   674  			if err := r.SetQueryParam("created", qCreated); err != nil {
   675  				return err
   676  			}
   677  		}
   678  	}
   679  
   680  	if o.CreatedGte != nil {
   681  
   682  		// query param created__gte
   683  		var qrCreatedGte string
   684  
   685  		if o.CreatedGte != nil {
   686  			qrCreatedGte = *o.CreatedGte
   687  		}
   688  		qCreatedGte := qrCreatedGte
   689  		if qCreatedGte != "" {
   690  
   691  			if err := r.SetQueryParam("created__gte", qCreatedGte); err != nil {
   692  				return err
   693  			}
   694  		}
   695  	}
   696  
   697  	if o.CreatedLte != nil {
   698  
   699  		// query param created__lte
   700  		var qrCreatedLte string
   701  
   702  		if o.CreatedLte != nil {
   703  			qrCreatedLte = *o.CreatedLte
   704  		}
   705  		qCreatedLte := qrCreatedLte
   706  		if qCreatedLte != "" {
   707  
   708  			if err := r.SetQueryParam("created__lte", qCreatedLte); err != nil {
   709  				return err
   710  			}
   711  		}
   712  	}
   713  
   714  	if o.ID != nil {
   715  
   716  		// query param id
   717  		var qrID string
   718  
   719  		if o.ID != nil {
   720  			qrID = *o.ID
   721  		}
   722  		qID := qrID
   723  		if qID != "" {
   724  
   725  			if err := r.SetQueryParam("id", qID); err != nil {
   726  				return err
   727  			}
   728  		}
   729  	}
   730  
   731  	if o.IDGt != nil {
   732  
   733  		// query param id__gt
   734  		var qrIDGt string
   735  
   736  		if o.IDGt != nil {
   737  			qrIDGt = *o.IDGt
   738  		}
   739  		qIDGt := qrIDGt
   740  		if qIDGt != "" {
   741  
   742  			if err := r.SetQueryParam("id__gt", qIDGt); err != nil {
   743  				return err
   744  			}
   745  		}
   746  	}
   747  
   748  	if o.IDGte != nil {
   749  
   750  		// query param id__gte
   751  		var qrIDGte string
   752  
   753  		if o.IDGte != nil {
   754  			qrIDGte = *o.IDGte
   755  		}
   756  		qIDGte := qrIDGte
   757  		if qIDGte != "" {
   758  
   759  			if err := r.SetQueryParam("id__gte", qIDGte); err != nil {
   760  				return err
   761  			}
   762  		}
   763  	}
   764  
   765  	if o.IDLt != nil {
   766  
   767  		// query param id__lt
   768  		var qrIDLt string
   769  
   770  		if o.IDLt != nil {
   771  			qrIDLt = *o.IDLt
   772  		}
   773  		qIDLt := qrIDLt
   774  		if qIDLt != "" {
   775  
   776  			if err := r.SetQueryParam("id__lt", qIDLt); err != nil {
   777  				return err
   778  			}
   779  		}
   780  	}
   781  
   782  	if o.IDLte != nil {
   783  
   784  		// query param id__lte
   785  		var qrIDLte string
   786  
   787  		if o.IDLte != nil {
   788  			qrIDLte = *o.IDLte
   789  		}
   790  		qIDLte := qrIDLte
   791  		if qIDLte != "" {
   792  
   793  			if err := r.SetQueryParam("id__lte", qIDLte); err != nil {
   794  				return err
   795  			}
   796  		}
   797  	}
   798  
   799  	if o.IDn != nil {
   800  
   801  		// query param id__n
   802  		var qrIDn string
   803  
   804  		if o.IDn != nil {
   805  			qrIDn = *o.IDn
   806  		}
   807  		qIDn := qrIDn
   808  		if qIDn != "" {
   809  
   810  			if err := r.SetQueryParam("id__n", qIDn); err != nil {
   811  				return err
   812  			}
   813  		}
   814  	}
   815  
   816  	if o.LastUpdated != nil {
   817  
   818  		// query param last_updated
   819  		var qrLastUpdated string
   820  
   821  		if o.LastUpdated != nil {
   822  			qrLastUpdated = *o.LastUpdated
   823  		}
   824  		qLastUpdated := qrLastUpdated
   825  		if qLastUpdated != "" {
   826  
   827  			if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil {
   828  				return err
   829  			}
   830  		}
   831  	}
   832  
   833  	if o.LastUpdatedGte != nil {
   834  
   835  		// query param last_updated__gte
   836  		var qrLastUpdatedGte string
   837  
   838  		if o.LastUpdatedGte != nil {
   839  			qrLastUpdatedGte = *o.LastUpdatedGte
   840  		}
   841  		qLastUpdatedGte := qrLastUpdatedGte
   842  		if qLastUpdatedGte != "" {
   843  
   844  			if err := r.SetQueryParam("last_updated__gte", qLastUpdatedGte); err != nil {
   845  				return err
   846  			}
   847  		}
   848  	}
   849  
   850  	if o.LastUpdatedLte != nil {
   851  
   852  		// query param last_updated__lte
   853  		var qrLastUpdatedLte string
   854  
   855  		if o.LastUpdatedLte != nil {
   856  			qrLastUpdatedLte = *o.LastUpdatedLte
   857  		}
   858  		qLastUpdatedLte := qrLastUpdatedLte
   859  		if qLastUpdatedLte != "" {
   860  
   861  			if err := r.SetQueryParam("last_updated__lte", qLastUpdatedLte); err != nil {
   862  				return err
   863  			}
   864  		}
   865  	}
   866  
   867  	if o.Limit != nil {
   868  
   869  		// query param limit
   870  		var qrLimit int64
   871  
   872  		if o.Limit != nil {
   873  			qrLimit = *o.Limit
   874  		}
   875  		qLimit := swag.FormatInt64(qrLimit)
   876  		if qLimit != "" {
   877  
   878  			if err := r.SetQueryParam("limit", qLimit); err != nil {
   879  				return err
   880  			}
   881  		}
   882  	}
   883  
   884  	if o.Name != nil {
   885  
   886  		// query param name
   887  		var qrName string
   888  
   889  		if o.Name != nil {
   890  			qrName = *o.Name
   891  		}
   892  		qName := qrName
   893  		if qName != "" {
   894  
   895  			if err := r.SetQueryParam("name", qName); err != nil {
   896  				return err
   897  			}
   898  		}
   899  	}
   900  
   901  	if o.NameEmpty != nil {
   902  
   903  		// query param name__empty
   904  		var qrNameEmpty string
   905  
   906  		if o.NameEmpty != nil {
   907  			qrNameEmpty = *o.NameEmpty
   908  		}
   909  		qNameEmpty := qrNameEmpty
   910  		if qNameEmpty != "" {
   911  
   912  			if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil {
   913  				return err
   914  			}
   915  		}
   916  	}
   917  
   918  	if o.NameIc != nil {
   919  
   920  		// query param name__ic
   921  		var qrNameIc string
   922  
   923  		if o.NameIc != nil {
   924  			qrNameIc = *o.NameIc
   925  		}
   926  		qNameIc := qrNameIc
   927  		if qNameIc != "" {
   928  
   929  			if err := r.SetQueryParam("name__ic", qNameIc); err != nil {
   930  				return err
   931  			}
   932  		}
   933  	}
   934  
   935  	if o.NameIe != nil {
   936  
   937  		// query param name__ie
   938  		var qrNameIe string
   939  
   940  		if o.NameIe != nil {
   941  			qrNameIe = *o.NameIe
   942  		}
   943  		qNameIe := qrNameIe
   944  		if qNameIe != "" {
   945  
   946  			if err := r.SetQueryParam("name__ie", qNameIe); err != nil {
   947  				return err
   948  			}
   949  		}
   950  	}
   951  
   952  	if o.NameIew != nil {
   953  
   954  		// query param name__iew
   955  		var qrNameIew string
   956  
   957  		if o.NameIew != nil {
   958  			qrNameIew = *o.NameIew
   959  		}
   960  		qNameIew := qrNameIew
   961  		if qNameIew != "" {
   962  
   963  			if err := r.SetQueryParam("name__iew", qNameIew); err != nil {
   964  				return err
   965  			}
   966  		}
   967  	}
   968  
   969  	if o.NameIsw != nil {
   970  
   971  		// query param name__isw
   972  		var qrNameIsw string
   973  
   974  		if o.NameIsw != nil {
   975  			qrNameIsw = *o.NameIsw
   976  		}
   977  		qNameIsw := qrNameIsw
   978  		if qNameIsw != "" {
   979  
   980  			if err := r.SetQueryParam("name__isw", qNameIsw); err != nil {
   981  				return err
   982  			}
   983  		}
   984  	}
   985  
   986  	if o.Namen != nil {
   987  
   988  		// query param name__n
   989  		var qrNamen string
   990  
   991  		if o.Namen != nil {
   992  			qrNamen = *o.Namen
   993  		}
   994  		qNamen := qrNamen
   995  		if qNamen != "" {
   996  
   997  			if err := r.SetQueryParam("name__n", qNamen); err != nil {
   998  				return err
   999  			}
  1000  		}
  1001  	}
  1002  
  1003  	if o.NameNic != nil {
  1004  
  1005  		// query param name__nic
  1006  		var qrNameNic string
  1007  
  1008  		if o.NameNic != nil {
  1009  			qrNameNic = *o.NameNic
  1010  		}
  1011  		qNameNic := qrNameNic
  1012  		if qNameNic != "" {
  1013  
  1014  			if err := r.SetQueryParam("name__nic", qNameNic); err != nil {
  1015  				return err
  1016  			}
  1017  		}
  1018  	}
  1019  
  1020  	if o.NameNie != nil {
  1021  
  1022  		// query param name__nie
  1023  		var qrNameNie string
  1024  
  1025  		if o.NameNie != nil {
  1026  			qrNameNie = *o.NameNie
  1027  		}
  1028  		qNameNie := qrNameNie
  1029  		if qNameNie != "" {
  1030  
  1031  			if err := r.SetQueryParam("name__nie", qNameNie); err != nil {
  1032  				return err
  1033  			}
  1034  		}
  1035  	}
  1036  
  1037  	if o.NameNiew != nil {
  1038  
  1039  		// query param name__niew
  1040  		var qrNameNiew string
  1041  
  1042  		if o.NameNiew != nil {
  1043  			qrNameNiew = *o.NameNiew
  1044  		}
  1045  		qNameNiew := qrNameNiew
  1046  		if qNameNiew != "" {
  1047  
  1048  			if err := r.SetQueryParam("name__niew", qNameNiew); err != nil {
  1049  				return err
  1050  			}
  1051  		}
  1052  	}
  1053  
  1054  	if o.NameNisw != nil {
  1055  
  1056  		// query param name__nisw
  1057  		var qrNameNisw string
  1058  
  1059  		if o.NameNisw != nil {
  1060  			qrNameNisw = *o.NameNisw
  1061  		}
  1062  		qNameNisw := qrNameNisw
  1063  		if qNameNisw != "" {
  1064  
  1065  			if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil {
  1066  				return err
  1067  			}
  1068  		}
  1069  	}
  1070  
  1071  	if o.Offset != nil {
  1072  
  1073  		// query param offset
  1074  		var qrOffset int64
  1075  
  1076  		if o.Offset != nil {
  1077  			qrOffset = *o.Offset
  1078  		}
  1079  		qOffset := swag.FormatInt64(qrOffset)
  1080  		if qOffset != "" {
  1081  
  1082  			if err := r.SetQueryParam("offset", qOffset); err != nil {
  1083  				return err
  1084  			}
  1085  		}
  1086  	}
  1087  
  1088  	if o.Q != nil {
  1089  
  1090  		// query param q
  1091  		var qrQ string
  1092  
  1093  		if o.Q != nil {
  1094  			qrQ = *o.Q
  1095  		}
  1096  		qQ := qrQ
  1097  		if qQ != "" {
  1098  
  1099  			if err := r.SetQueryParam("q", qQ); err != nil {
  1100  				return err
  1101  			}
  1102  		}
  1103  	}
  1104  
  1105  	if o.Slug != nil {
  1106  
  1107  		// query param slug
  1108  		var qrSlug string
  1109  
  1110  		if o.Slug != nil {
  1111  			qrSlug = *o.Slug
  1112  		}
  1113  		qSlug := qrSlug
  1114  		if qSlug != "" {
  1115  
  1116  			if err := r.SetQueryParam("slug", qSlug); err != nil {
  1117  				return err
  1118  			}
  1119  		}
  1120  	}
  1121  
  1122  	if o.SlugEmpty != nil {
  1123  
  1124  		// query param slug__empty
  1125  		var qrSlugEmpty string
  1126  
  1127  		if o.SlugEmpty != nil {
  1128  			qrSlugEmpty = *o.SlugEmpty
  1129  		}
  1130  		qSlugEmpty := qrSlugEmpty
  1131  		if qSlugEmpty != "" {
  1132  
  1133  			if err := r.SetQueryParam("slug__empty", qSlugEmpty); err != nil {
  1134  				return err
  1135  			}
  1136  		}
  1137  	}
  1138  
  1139  	if o.SlugIc != nil {
  1140  
  1141  		// query param slug__ic
  1142  		var qrSlugIc string
  1143  
  1144  		if o.SlugIc != nil {
  1145  			qrSlugIc = *o.SlugIc
  1146  		}
  1147  		qSlugIc := qrSlugIc
  1148  		if qSlugIc != "" {
  1149  
  1150  			if err := r.SetQueryParam("slug__ic", qSlugIc); err != nil {
  1151  				return err
  1152  			}
  1153  		}
  1154  	}
  1155  
  1156  	if o.SlugIe != nil {
  1157  
  1158  		// query param slug__ie
  1159  		var qrSlugIe string
  1160  
  1161  		if o.SlugIe != nil {
  1162  			qrSlugIe = *o.SlugIe
  1163  		}
  1164  		qSlugIe := qrSlugIe
  1165  		if qSlugIe != "" {
  1166  
  1167  			if err := r.SetQueryParam("slug__ie", qSlugIe); err != nil {
  1168  				return err
  1169  			}
  1170  		}
  1171  	}
  1172  
  1173  	if o.SlugIew != nil {
  1174  
  1175  		// query param slug__iew
  1176  		var qrSlugIew string
  1177  
  1178  		if o.SlugIew != nil {
  1179  			qrSlugIew = *o.SlugIew
  1180  		}
  1181  		qSlugIew := qrSlugIew
  1182  		if qSlugIew != "" {
  1183  
  1184  			if err := r.SetQueryParam("slug__iew", qSlugIew); err != nil {
  1185  				return err
  1186  			}
  1187  		}
  1188  	}
  1189  
  1190  	if o.SlugIsw != nil {
  1191  
  1192  		// query param slug__isw
  1193  		var qrSlugIsw string
  1194  
  1195  		if o.SlugIsw != nil {
  1196  			qrSlugIsw = *o.SlugIsw
  1197  		}
  1198  		qSlugIsw := qrSlugIsw
  1199  		if qSlugIsw != "" {
  1200  
  1201  			if err := r.SetQueryParam("slug__isw", qSlugIsw); err != nil {
  1202  				return err
  1203  			}
  1204  		}
  1205  	}
  1206  
  1207  	if o.Slugn != nil {
  1208  
  1209  		// query param slug__n
  1210  		var qrSlugn string
  1211  
  1212  		if o.Slugn != nil {
  1213  			qrSlugn = *o.Slugn
  1214  		}
  1215  		qSlugn := qrSlugn
  1216  		if qSlugn != "" {
  1217  
  1218  			if err := r.SetQueryParam("slug__n", qSlugn); err != nil {
  1219  				return err
  1220  			}
  1221  		}
  1222  	}
  1223  
  1224  	if o.SlugNic != nil {
  1225  
  1226  		// query param slug__nic
  1227  		var qrSlugNic string
  1228  
  1229  		if o.SlugNic != nil {
  1230  			qrSlugNic = *o.SlugNic
  1231  		}
  1232  		qSlugNic := qrSlugNic
  1233  		if qSlugNic != "" {
  1234  
  1235  			if err := r.SetQueryParam("slug__nic", qSlugNic); err != nil {
  1236  				return err
  1237  			}
  1238  		}
  1239  	}
  1240  
  1241  	if o.SlugNie != nil {
  1242  
  1243  		// query param slug__nie
  1244  		var qrSlugNie string
  1245  
  1246  		if o.SlugNie != nil {
  1247  			qrSlugNie = *o.SlugNie
  1248  		}
  1249  		qSlugNie := qrSlugNie
  1250  		if qSlugNie != "" {
  1251  
  1252  			if err := r.SetQueryParam("slug__nie", qSlugNie); err != nil {
  1253  				return err
  1254  			}
  1255  		}
  1256  	}
  1257  
  1258  	if o.SlugNiew != nil {
  1259  
  1260  		// query param slug__niew
  1261  		var qrSlugNiew string
  1262  
  1263  		if o.SlugNiew != nil {
  1264  			qrSlugNiew = *o.SlugNiew
  1265  		}
  1266  		qSlugNiew := qrSlugNiew
  1267  		if qSlugNiew != "" {
  1268  
  1269  			if err := r.SetQueryParam("slug__niew", qSlugNiew); err != nil {
  1270  				return err
  1271  			}
  1272  		}
  1273  	}
  1274  
  1275  	if o.SlugNisw != nil {
  1276  
  1277  		// query param slug__nisw
  1278  		var qrSlugNisw string
  1279  
  1280  		if o.SlugNisw != nil {
  1281  			qrSlugNisw = *o.SlugNisw
  1282  		}
  1283  		qSlugNisw := qrSlugNisw
  1284  		if qSlugNisw != "" {
  1285  
  1286  			if err := r.SetQueryParam("slug__nisw", qSlugNisw); err != nil {
  1287  				return err
  1288  			}
  1289  		}
  1290  	}
  1291  
  1292  	if len(res) > 0 {
  1293  		return errors.CompositeValidationError(res...)
  1294  	}
  1295  	return nil
  1296  }