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