github.com/digitalocean/go-netbox@v0.0.2/netbox/client/extras/extras_journal_entries_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 extras
    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  // NewExtrasJournalEntriesListParams creates a new ExtrasJournalEntriesListParams 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 NewExtrasJournalEntriesListParams() *ExtrasJournalEntriesListParams {
    42  	return &ExtrasJournalEntriesListParams{
    43  		timeout: cr.DefaultTimeout,
    44  	}
    45  }
    46  
    47  // NewExtrasJournalEntriesListParamsWithTimeout creates a new ExtrasJournalEntriesListParams object
    48  // with the ability to set a timeout on a request.
    49  func NewExtrasJournalEntriesListParamsWithTimeout(timeout time.Duration) *ExtrasJournalEntriesListParams {
    50  	return &ExtrasJournalEntriesListParams{
    51  		timeout: timeout,
    52  	}
    53  }
    54  
    55  // NewExtrasJournalEntriesListParamsWithContext creates a new ExtrasJournalEntriesListParams object
    56  // with the ability to set a context for a request.
    57  func NewExtrasJournalEntriesListParamsWithContext(ctx context.Context) *ExtrasJournalEntriesListParams {
    58  	return &ExtrasJournalEntriesListParams{
    59  		Context: ctx,
    60  	}
    61  }
    62  
    63  // NewExtrasJournalEntriesListParamsWithHTTPClient creates a new ExtrasJournalEntriesListParams object
    64  // with the ability to set a custom HTTPClient for a request.
    65  func NewExtrasJournalEntriesListParamsWithHTTPClient(client *http.Client) *ExtrasJournalEntriesListParams {
    66  	return &ExtrasJournalEntriesListParams{
    67  		HTTPClient: client,
    68  	}
    69  }
    70  
    71  /* ExtrasJournalEntriesListParams contains all the parameters to send to the API endpoint
    72     for the extras journal entries list operation.
    73  
    74     Typically these are written to a http.Request.
    75  */
    76  type ExtrasJournalEntriesListParams struct {
    77  
    78  	// AssignedObjectID.
    79  	AssignedObjectID *string
    80  
    81  	// AssignedObjectIDGt.
    82  	AssignedObjectIDGt *string
    83  
    84  	// AssignedObjectIDGte.
    85  	AssignedObjectIDGte *string
    86  
    87  	// AssignedObjectIDLt.
    88  	AssignedObjectIDLt *string
    89  
    90  	// AssignedObjectIDLte.
    91  	AssignedObjectIDLte *string
    92  
    93  	// AssignedObjectIDn.
    94  	AssignedObjectIDn *string
    95  
    96  	// AssignedObjectType.
    97  	AssignedObjectType *string
    98  
    99  	// AssignedObjectTypen.
   100  	AssignedObjectTypen *string
   101  
   102  	// AssignedObjectTypeID.
   103  	AssignedObjectTypeID *string
   104  
   105  	// AssignedObjectTypeIDn.
   106  	AssignedObjectTypeIDn *string
   107  
   108  	// Created.
   109  	Created *string
   110  
   111  	// CreatedGte.
   112  	CreatedGte *string
   113  
   114  	// CreatedLte.
   115  	CreatedLte *string
   116  
   117  	// CreatedBy.
   118  	CreatedBy *string
   119  
   120  	// CreatedByn.
   121  	CreatedByn *string
   122  
   123  	// CreatedByID.
   124  	CreatedByID *string
   125  
   126  	// CreatedByIDn.
   127  	CreatedByIDn *string
   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  	// Kind.
   148  	Kind *string
   149  
   150  	// Kindn.
   151  	Kindn *string
   152  
   153  	// LastUpdated.
   154  	LastUpdated *string
   155  
   156  	// LastUpdatedGte.
   157  	LastUpdatedGte *string
   158  
   159  	// LastUpdatedLte.
   160  	LastUpdatedLte *string
   161  
   162  	/* Limit.
   163  
   164  	   Number of results to return per page.
   165  	*/
   166  	Limit *int64
   167  
   168  	/* Offset.
   169  
   170  	   The initial index from which to return the results.
   171  	*/
   172  	Offset *int64
   173  
   174  	// Q.
   175  	Q *string
   176  
   177  	timeout    time.Duration
   178  	Context    context.Context
   179  	HTTPClient *http.Client
   180  }
   181  
   182  // WithDefaults hydrates default values in the extras journal entries list params (not the query body).
   183  //
   184  // All values with no default are reset to their zero value.
   185  func (o *ExtrasJournalEntriesListParams) WithDefaults() *ExtrasJournalEntriesListParams {
   186  	o.SetDefaults()
   187  	return o
   188  }
   189  
   190  // SetDefaults hydrates default values in the extras journal entries list params (not the query body).
   191  //
   192  // All values with no default are reset to their zero value.
   193  func (o *ExtrasJournalEntriesListParams) SetDefaults() {
   194  	// no default values defined for this parameter
   195  }
   196  
   197  // WithTimeout adds the timeout to the extras journal entries list params
   198  func (o *ExtrasJournalEntriesListParams) WithTimeout(timeout time.Duration) *ExtrasJournalEntriesListParams {
   199  	o.SetTimeout(timeout)
   200  	return o
   201  }
   202  
   203  // SetTimeout adds the timeout to the extras journal entries list params
   204  func (o *ExtrasJournalEntriesListParams) SetTimeout(timeout time.Duration) {
   205  	o.timeout = timeout
   206  }
   207  
   208  // WithContext adds the context to the extras journal entries list params
   209  func (o *ExtrasJournalEntriesListParams) WithContext(ctx context.Context) *ExtrasJournalEntriesListParams {
   210  	o.SetContext(ctx)
   211  	return o
   212  }
   213  
   214  // SetContext adds the context to the extras journal entries list params
   215  func (o *ExtrasJournalEntriesListParams) SetContext(ctx context.Context) {
   216  	o.Context = ctx
   217  }
   218  
   219  // WithHTTPClient adds the HTTPClient to the extras journal entries list params
   220  func (o *ExtrasJournalEntriesListParams) WithHTTPClient(client *http.Client) *ExtrasJournalEntriesListParams {
   221  	o.SetHTTPClient(client)
   222  	return o
   223  }
   224  
   225  // SetHTTPClient adds the HTTPClient to the extras journal entries list params
   226  func (o *ExtrasJournalEntriesListParams) SetHTTPClient(client *http.Client) {
   227  	o.HTTPClient = client
   228  }
   229  
   230  // WithAssignedObjectID adds the assignedObjectID to the extras journal entries list params
   231  func (o *ExtrasJournalEntriesListParams) WithAssignedObjectID(assignedObjectID *string) *ExtrasJournalEntriesListParams {
   232  	o.SetAssignedObjectID(assignedObjectID)
   233  	return o
   234  }
   235  
   236  // SetAssignedObjectID adds the assignedObjectId to the extras journal entries list params
   237  func (o *ExtrasJournalEntriesListParams) SetAssignedObjectID(assignedObjectID *string) {
   238  	o.AssignedObjectID = assignedObjectID
   239  }
   240  
   241  // WithAssignedObjectIDGt adds the assignedObjectIDGt to the extras journal entries list params
   242  func (o *ExtrasJournalEntriesListParams) WithAssignedObjectIDGt(assignedObjectIDGt *string) *ExtrasJournalEntriesListParams {
   243  	o.SetAssignedObjectIDGt(assignedObjectIDGt)
   244  	return o
   245  }
   246  
   247  // SetAssignedObjectIDGt adds the assignedObjectIdGt to the extras journal entries list params
   248  func (o *ExtrasJournalEntriesListParams) SetAssignedObjectIDGt(assignedObjectIDGt *string) {
   249  	o.AssignedObjectIDGt = assignedObjectIDGt
   250  }
   251  
   252  // WithAssignedObjectIDGte adds the assignedObjectIDGte to the extras journal entries list params
   253  func (o *ExtrasJournalEntriesListParams) WithAssignedObjectIDGte(assignedObjectIDGte *string) *ExtrasJournalEntriesListParams {
   254  	o.SetAssignedObjectIDGte(assignedObjectIDGte)
   255  	return o
   256  }
   257  
   258  // SetAssignedObjectIDGte adds the assignedObjectIdGte to the extras journal entries list params
   259  func (o *ExtrasJournalEntriesListParams) SetAssignedObjectIDGte(assignedObjectIDGte *string) {
   260  	o.AssignedObjectIDGte = assignedObjectIDGte
   261  }
   262  
   263  // WithAssignedObjectIDLt adds the assignedObjectIDLt to the extras journal entries list params
   264  func (o *ExtrasJournalEntriesListParams) WithAssignedObjectIDLt(assignedObjectIDLt *string) *ExtrasJournalEntriesListParams {
   265  	o.SetAssignedObjectIDLt(assignedObjectIDLt)
   266  	return o
   267  }
   268  
   269  // SetAssignedObjectIDLt adds the assignedObjectIdLt to the extras journal entries list params
   270  func (o *ExtrasJournalEntriesListParams) SetAssignedObjectIDLt(assignedObjectIDLt *string) {
   271  	o.AssignedObjectIDLt = assignedObjectIDLt
   272  }
   273  
   274  // WithAssignedObjectIDLte adds the assignedObjectIDLte to the extras journal entries list params
   275  func (o *ExtrasJournalEntriesListParams) WithAssignedObjectIDLte(assignedObjectIDLte *string) *ExtrasJournalEntriesListParams {
   276  	o.SetAssignedObjectIDLte(assignedObjectIDLte)
   277  	return o
   278  }
   279  
   280  // SetAssignedObjectIDLte adds the assignedObjectIdLte to the extras journal entries list params
   281  func (o *ExtrasJournalEntriesListParams) SetAssignedObjectIDLte(assignedObjectIDLte *string) {
   282  	o.AssignedObjectIDLte = assignedObjectIDLte
   283  }
   284  
   285  // WithAssignedObjectIDn adds the assignedObjectIDn to the extras journal entries list params
   286  func (o *ExtrasJournalEntriesListParams) WithAssignedObjectIDn(assignedObjectIDn *string) *ExtrasJournalEntriesListParams {
   287  	o.SetAssignedObjectIDn(assignedObjectIDn)
   288  	return o
   289  }
   290  
   291  // SetAssignedObjectIDn adds the assignedObjectIdN to the extras journal entries list params
   292  func (o *ExtrasJournalEntriesListParams) SetAssignedObjectIDn(assignedObjectIDn *string) {
   293  	o.AssignedObjectIDn = assignedObjectIDn
   294  }
   295  
   296  // WithAssignedObjectType adds the assignedObjectType to the extras journal entries list params
   297  func (o *ExtrasJournalEntriesListParams) WithAssignedObjectType(assignedObjectType *string) *ExtrasJournalEntriesListParams {
   298  	o.SetAssignedObjectType(assignedObjectType)
   299  	return o
   300  }
   301  
   302  // SetAssignedObjectType adds the assignedObjectType to the extras journal entries list params
   303  func (o *ExtrasJournalEntriesListParams) SetAssignedObjectType(assignedObjectType *string) {
   304  	o.AssignedObjectType = assignedObjectType
   305  }
   306  
   307  // WithAssignedObjectTypen adds the assignedObjectTypen to the extras journal entries list params
   308  func (o *ExtrasJournalEntriesListParams) WithAssignedObjectTypen(assignedObjectTypen *string) *ExtrasJournalEntriesListParams {
   309  	o.SetAssignedObjectTypen(assignedObjectTypen)
   310  	return o
   311  }
   312  
   313  // SetAssignedObjectTypen adds the assignedObjectTypeN to the extras journal entries list params
   314  func (o *ExtrasJournalEntriesListParams) SetAssignedObjectTypen(assignedObjectTypen *string) {
   315  	o.AssignedObjectTypen = assignedObjectTypen
   316  }
   317  
   318  // WithAssignedObjectTypeID adds the assignedObjectTypeID to the extras journal entries list params
   319  func (o *ExtrasJournalEntriesListParams) WithAssignedObjectTypeID(assignedObjectTypeID *string) *ExtrasJournalEntriesListParams {
   320  	o.SetAssignedObjectTypeID(assignedObjectTypeID)
   321  	return o
   322  }
   323  
   324  // SetAssignedObjectTypeID adds the assignedObjectTypeId to the extras journal entries list params
   325  func (o *ExtrasJournalEntriesListParams) SetAssignedObjectTypeID(assignedObjectTypeID *string) {
   326  	o.AssignedObjectTypeID = assignedObjectTypeID
   327  }
   328  
   329  // WithAssignedObjectTypeIDn adds the assignedObjectTypeIDn to the extras journal entries list params
   330  func (o *ExtrasJournalEntriesListParams) WithAssignedObjectTypeIDn(assignedObjectTypeIDn *string) *ExtrasJournalEntriesListParams {
   331  	o.SetAssignedObjectTypeIDn(assignedObjectTypeIDn)
   332  	return o
   333  }
   334  
   335  // SetAssignedObjectTypeIDn adds the assignedObjectTypeIdN to the extras journal entries list params
   336  func (o *ExtrasJournalEntriesListParams) SetAssignedObjectTypeIDn(assignedObjectTypeIDn *string) {
   337  	o.AssignedObjectTypeIDn = assignedObjectTypeIDn
   338  }
   339  
   340  // WithCreated adds the created to the extras journal entries list params
   341  func (o *ExtrasJournalEntriesListParams) WithCreated(created *string) *ExtrasJournalEntriesListParams {
   342  	o.SetCreated(created)
   343  	return o
   344  }
   345  
   346  // SetCreated adds the created to the extras journal entries list params
   347  func (o *ExtrasJournalEntriesListParams) SetCreated(created *string) {
   348  	o.Created = created
   349  }
   350  
   351  // WithCreatedGte adds the createdGte to the extras journal entries list params
   352  func (o *ExtrasJournalEntriesListParams) WithCreatedGte(createdGte *string) *ExtrasJournalEntriesListParams {
   353  	o.SetCreatedGte(createdGte)
   354  	return o
   355  }
   356  
   357  // SetCreatedGte adds the createdGte to the extras journal entries list params
   358  func (o *ExtrasJournalEntriesListParams) SetCreatedGte(createdGte *string) {
   359  	o.CreatedGte = createdGte
   360  }
   361  
   362  // WithCreatedLte adds the createdLte to the extras journal entries list params
   363  func (o *ExtrasJournalEntriesListParams) WithCreatedLte(createdLte *string) *ExtrasJournalEntriesListParams {
   364  	o.SetCreatedLte(createdLte)
   365  	return o
   366  }
   367  
   368  // SetCreatedLte adds the createdLte to the extras journal entries list params
   369  func (o *ExtrasJournalEntriesListParams) SetCreatedLte(createdLte *string) {
   370  	o.CreatedLte = createdLte
   371  }
   372  
   373  // WithCreatedBy adds the createdBy to the extras journal entries list params
   374  func (o *ExtrasJournalEntriesListParams) WithCreatedBy(createdBy *string) *ExtrasJournalEntriesListParams {
   375  	o.SetCreatedBy(createdBy)
   376  	return o
   377  }
   378  
   379  // SetCreatedBy adds the createdBy to the extras journal entries list params
   380  func (o *ExtrasJournalEntriesListParams) SetCreatedBy(createdBy *string) {
   381  	o.CreatedBy = createdBy
   382  }
   383  
   384  // WithCreatedByn adds the createdByn to the extras journal entries list params
   385  func (o *ExtrasJournalEntriesListParams) WithCreatedByn(createdByn *string) *ExtrasJournalEntriesListParams {
   386  	o.SetCreatedByn(createdByn)
   387  	return o
   388  }
   389  
   390  // SetCreatedByn adds the createdByN to the extras journal entries list params
   391  func (o *ExtrasJournalEntriesListParams) SetCreatedByn(createdByn *string) {
   392  	o.CreatedByn = createdByn
   393  }
   394  
   395  // WithCreatedByID adds the createdByID to the extras journal entries list params
   396  func (o *ExtrasJournalEntriesListParams) WithCreatedByID(createdByID *string) *ExtrasJournalEntriesListParams {
   397  	o.SetCreatedByID(createdByID)
   398  	return o
   399  }
   400  
   401  // SetCreatedByID adds the createdById to the extras journal entries list params
   402  func (o *ExtrasJournalEntriesListParams) SetCreatedByID(createdByID *string) {
   403  	o.CreatedByID = createdByID
   404  }
   405  
   406  // WithCreatedByIDn adds the createdByIDn to the extras journal entries list params
   407  func (o *ExtrasJournalEntriesListParams) WithCreatedByIDn(createdByIDn *string) *ExtrasJournalEntriesListParams {
   408  	o.SetCreatedByIDn(createdByIDn)
   409  	return o
   410  }
   411  
   412  // SetCreatedByIDn adds the createdByIdN to the extras journal entries list params
   413  func (o *ExtrasJournalEntriesListParams) SetCreatedByIDn(createdByIDn *string) {
   414  	o.CreatedByIDn = createdByIDn
   415  }
   416  
   417  // WithID adds the id to the extras journal entries list params
   418  func (o *ExtrasJournalEntriesListParams) WithID(id *string) *ExtrasJournalEntriesListParams {
   419  	o.SetID(id)
   420  	return o
   421  }
   422  
   423  // SetID adds the id to the extras journal entries list params
   424  func (o *ExtrasJournalEntriesListParams) SetID(id *string) {
   425  	o.ID = id
   426  }
   427  
   428  // WithIDGt adds the iDGt to the extras journal entries list params
   429  func (o *ExtrasJournalEntriesListParams) WithIDGt(iDGt *string) *ExtrasJournalEntriesListParams {
   430  	o.SetIDGt(iDGt)
   431  	return o
   432  }
   433  
   434  // SetIDGt adds the idGt to the extras journal entries list params
   435  func (o *ExtrasJournalEntriesListParams) SetIDGt(iDGt *string) {
   436  	o.IDGt = iDGt
   437  }
   438  
   439  // WithIDGte adds the iDGte to the extras journal entries list params
   440  func (o *ExtrasJournalEntriesListParams) WithIDGte(iDGte *string) *ExtrasJournalEntriesListParams {
   441  	o.SetIDGte(iDGte)
   442  	return o
   443  }
   444  
   445  // SetIDGte adds the idGte to the extras journal entries list params
   446  func (o *ExtrasJournalEntriesListParams) SetIDGte(iDGte *string) {
   447  	o.IDGte = iDGte
   448  }
   449  
   450  // WithIDLt adds the iDLt to the extras journal entries list params
   451  func (o *ExtrasJournalEntriesListParams) WithIDLt(iDLt *string) *ExtrasJournalEntriesListParams {
   452  	o.SetIDLt(iDLt)
   453  	return o
   454  }
   455  
   456  // SetIDLt adds the idLt to the extras journal entries list params
   457  func (o *ExtrasJournalEntriesListParams) SetIDLt(iDLt *string) {
   458  	o.IDLt = iDLt
   459  }
   460  
   461  // WithIDLte adds the iDLte to the extras journal entries list params
   462  func (o *ExtrasJournalEntriesListParams) WithIDLte(iDLte *string) *ExtrasJournalEntriesListParams {
   463  	o.SetIDLte(iDLte)
   464  	return o
   465  }
   466  
   467  // SetIDLte adds the idLte to the extras journal entries list params
   468  func (o *ExtrasJournalEntriesListParams) SetIDLte(iDLte *string) {
   469  	o.IDLte = iDLte
   470  }
   471  
   472  // WithIDn adds the iDn to the extras journal entries list params
   473  func (o *ExtrasJournalEntriesListParams) WithIDn(iDn *string) *ExtrasJournalEntriesListParams {
   474  	o.SetIDn(iDn)
   475  	return o
   476  }
   477  
   478  // SetIDn adds the idN to the extras journal entries list params
   479  func (o *ExtrasJournalEntriesListParams) SetIDn(iDn *string) {
   480  	o.IDn = iDn
   481  }
   482  
   483  // WithKind adds the kind to the extras journal entries list params
   484  func (o *ExtrasJournalEntriesListParams) WithKind(kind *string) *ExtrasJournalEntriesListParams {
   485  	o.SetKind(kind)
   486  	return o
   487  }
   488  
   489  // SetKind adds the kind to the extras journal entries list params
   490  func (o *ExtrasJournalEntriesListParams) SetKind(kind *string) {
   491  	o.Kind = kind
   492  }
   493  
   494  // WithKindn adds the kindn to the extras journal entries list params
   495  func (o *ExtrasJournalEntriesListParams) WithKindn(kindn *string) *ExtrasJournalEntriesListParams {
   496  	o.SetKindn(kindn)
   497  	return o
   498  }
   499  
   500  // SetKindn adds the kindN to the extras journal entries list params
   501  func (o *ExtrasJournalEntriesListParams) SetKindn(kindn *string) {
   502  	o.Kindn = kindn
   503  }
   504  
   505  // WithLastUpdated adds the lastUpdated to the extras journal entries list params
   506  func (o *ExtrasJournalEntriesListParams) WithLastUpdated(lastUpdated *string) *ExtrasJournalEntriesListParams {
   507  	o.SetLastUpdated(lastUpdated)
   508  	return o
   509  }
   510  
   511  // SetLastUpdated adds the lastUpdated to the extras journal entries list params
   512  func (o *ExtrasJournalEntriesListParams) SetLastUpdated(lastUpdated *string) {
   513  	o.LastUpdated = lastUpdated
   514  }
   515  
   516  // WithLastUpdatedGte adds the lastUpdatedGte to the extras journal entries list params
   517  func (o *ExtrasJournalEntriesListParams) WithLastUpdatedGte(lastUpdatedGte *string) *ExtrasJournalEntriesListParams {
   518  	o.SetLastUpdatedGte(lastUpdatedGte)
   519  	return o
   520  }
   521  
   522  // SetLastUpdatedGte adds the lastUpdatedGte to the extras journal entries list params
   523  func (o *ExtrasJournalEntriesListParams) SetLastUpdatedGte(lastUpdatedGte *string) {
   524  	o.LastUpdatedGte = lastUpdatedGte
   525  }
   526  
   527  // WithLastUpdatedLte adds the lastUpdatedLte to the extras journal entries list params
   528  func (o *ExtrasJournalEntriesListParams) WithLastUpdatedLte(lastUpdatedLte *string) *ExtrasJournalEntriesListParams {
   529  	o.SetLastUpdatedLte(lastUpdatedLte)
   530  	return o
   531  }
   532  
   533  // SetLastUpdatedLte adds the lastUpdatedLte to the extras journal entries list params
   534  func (o *ExtrasJournalEntriesListParams) SetLastUpdatedLte(lastUpdatedLte *string) {
   535  	o.LastUpdatedLte = lastUpdatedLte
   536  }
   537  
   538  // WithLimit adds the limit to the extras journal entries list params
   539  func (o *ExtrasJournalEntriesListParams) WithLimit(limit *int64) *ExtrasJournalEntriesListParams {
   540  	o.SetLimit(limit)
   541  	return o
   542  }
   543  
   544  // SetLimit adds the limit to the extras journal entries list params
   545  func (o *ExtrasJournalEntriesListParams) SetLimit(limit *int64) {
   546  	o.Limit = limit
   547  }
   548  
   549  // WithOffset adds the offset to the extras journal entries list params
   550  func (o *ExtrasJournalEntriesListParams) WithOffset(offset *int64) *ExtrasJournalEntriesListParams {
   551  	o.SetOffset(offset)
   552  	return o
   553  }
   554  
   555  // SetOffset adds the offset to the extras journal entries list params
   556  func (o *ExtrasJournalEntriesListParams) SetOffset(offset *int64) {
   557  	o.Offset = offset
   558  }
   559  
   560  // WithQ adds the q to the extras journal entries list params
   561  func (o *ExtrasJournalEntriesListParams) WithQ(q *string) *ExtrasJournalEntriesListParams {
   562  	o.SetQ(q)
   563  	return o
   564  }
   565  
   566  // SetQ adds the q to the extras journal entries list params
   567  func (o *ExtrasJournalEntriesListParams) SetQ(q *string) {
   568  	o.Q = q
   569  }
   570  
   571  // WriteToRequest writes these params to a swagger request
   572  func (o *ExtrasJournalEntriesListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
   573  
   574  	if err := r.SetTimeout(o.timeout); err != nil {
   575  		return err
   576  	}
   577  	var res []error
   578  
   579  	if o.AssignedObjectID != nil {
   580  
   581  		// query param assigned_object_id
   582  		var qrAssignedObjectID string
   583  
   584  		if o.AssignedObjectID != nil {
   585  			qrAssignedObjectID = *o.AssignedObjectID
   586  		}
   587  		qAssignedObjectID := qrAssignedObjectID
   588  		if qAssignedObjectID != "" {
   589  
   590  			if err := r.SetQueryParam("assigned_object_id", qAssignedObjectID); err != nil {
   591  				return err
   592  			}
   593  		}
   594  	}
   595  
   596  	if o.AssignedObjectIDGt != nil {
   597  
   598  		// query param assigned_object_id__gt
   599  		var qrAssignedObjectIDGt string
   600  
   601  		if o.AssignedObjectIDGt != nil {
   602  			qrAssignedObjectIDGt = *o.AssignedObjectIDGt
   603  		}
   604  		qAssignedObjectIDGt := qrAssignedObjectIDGt
   605  		if qAssignedObjectIDGt != "" {
   606  
   607  			if err := r.SetQueryParam("assigned_object_id__gt", qAssignedObjectIDGt); err != nil {
   608  				return err
   609  			}
   610  		}
   611  	}
   612  
   613  	if o.AssignedObjectIDGte != nil {
   614  
   615  		// query param assigned_object_id__gte
   616  		var qrAssignedObjectIDGte string
   617  
   618  		if o.AssignedObjectIDGte != nil {
   619  			qrAssignedObjectIDGte = *o.AssignedObjectIDGte
   620  		}
   621  		qAssignedObjectIDGte := qrAssignedObjectIDGte
   622  		if qAssignedObjectIDGte != "" {
   623  
   624  			if err := r.SetQueryParam("assigned_object_id__gte", qAssignedObjectIDGte); err != nil {
   625  				return err
   626  			}
   627  		}
   628  	}
   629  
   630  	if o.AssignedObjectIDLt != nil {
   631  
   632  		// query param assigned_object_id__lt
   633  		var qrAssignedObjectIDLt string
   634  
   635  		if o.AssignedObjectIDLt != nil {
   636  			qrAssignedObjectIDLt = *o.AssignedObjectIDLt
   637  		}
   638  		qAssignedObjectIDLt := qrAssignedObjectIDLt
   639  		if qAssignedObjectIDLt != "" {
   640  
   641  			if err := r.SetQueryParam("assigned_object_id__lt", qAssignedObjectIDLt); err != nil {
   642  				return err
   643  			}
   644  		}
   645  	}
   646  
   647  	if o.AssignedObjectIDLte != nil {
   648  
   649  		// query param assigned_object_id__lte
   650  		var qrAssignedObjectIDLte string
   651  
   652  		if o.AssignedObjectIDLte != nil {
   653  			qrAssignedObjectIDLte = *o.AssignedObjectIDLte
   654  		}
   655  		qAssignedObjectIDLte := qrAssignedObjectIDLte
   656  		if qAssignedObjectIDLte != "" {
   657  
   658  			if err := r.SetQueryParam("assigned_object_id__lte", qAssignedObjectIDLte); err != nil {
   659  				return err
   660  			}
   661  		}
   662  	}
   663  
   664  	if o.AssignedObjectIDn != nil {
   665  
   666  		// query param assigned_object_id__n
   667  		var qrAssignedObjectIDn string
   668  
   669  		if o.AssignedObjectIDn != nil {
   670  			qrAssignedObjectIDn = *o.AssignedObjectIDn
   671  		}
   672  		qAssignedObjectIDn := qrAssignedObjectIDn
   673  		if qAssignedObjectIDn != "" {
   674  
   675  			if err := r.SetQueryParam("assigned_object_id__n", qAssignedObjectIDn); err != nil {
   676  				return err
   677  			}
   678  		}
   679  	}
   680  
   681  	if o.AssignedObjectType != nil {
   682  
   683  		// query param assigned_object_type
   684  		var qrAssignedObjectType string
   685  
   686  		if o.AssignedObjectType != nil {
   687  			qrAssignedObjectType = *o.AssignedObjectType
   688  		}
   689  		qAssignedObjectType := qrAssignedObjectType
   690  		if qAssignedObjectType != "" {
   691  
   692  			if err := r.SetQueryParam("assigned_object_type", qAssignedObjectType); err != nil {
   693  				return err
   694  			}
   695  		}
   696  	}
   697  
   698  	if o.AssignedObjectTypen != nil {
   699  
   700  		// query param assigned_object_type__n
   701  		var qrAssignedObjectTypen string
   702  
   703  		if o.AssignedObjectTypen != nil {
   704  			qrAssignedObjectTypen = *o.AssignedObjectTypen
   705  		}
   706  		qAssignedObjectTypen := qrAssignedObjectTypen
   707  		if qAssignedObjectTypen != "" {
   708  
   709  			if err := r.SetQueryParam("assigned_object_type__n", qAssignedObjectTypen); err != nil {
   710  				return err
   711  			}
   712  		}
   713  	}
   714  
   715  	if o.AssignedObjectTypeID != nil {
   716  
   717  		// query param assigned_object_type_id
   718  		var qrAssignedObjectTypeID string
   719  
   720  		if o.AssignedObjectTypeID != nil {
   721  			qrAssignedObjectTypeID = *o.AssignedObjectTypeID
   722  		}
   723  		qAssignedObjectTypeID := qrAssignedObjectTypeID
   724  		if qAssignedObjectTypeID != "" {
   725  
   726  			if err := r.SetQueryParam("assigned_object_type_id", qAssignedObjectTypeID); err != nil {
   727  				return err
   728  			}
   729  		}
   730  	}
   731  
   732  	if o.AssignedObjectTypeIDn != nil {
   733  
   734  		// query param assigned_object_type_id__n
   735  		var qrAssignedObjectTypeIDn string
   736  
   737  		if o.AssignedObjectTypeIDn != nil {
   738  			qrAssignedObjectTypeIDn = *o.AssignedObjectTypeIDn
   739  		}
   740  		qAssignedObjectTypeIDn := qrAssignedObjectTypeIDn
   741  		if qAssignedObjectTypeIDn != "" {
   742  
   743  			if err := r.SetQueryParam("assigned_object_type_id__n", qAssignedObjectTypeIDn); err != nil {
   744  				return err
   745  			}
   746  		}
   747  	}
   748  
   749  	if o.Created != nil {
   750  
   751  		// query param created
   752  		var qrCreated string
   753  
   754  		if o.Created != nil {
   755  			qrCreated = *o.Created
   756  		}
   757  		qCreated := qrCreated
   758  		if qCreated != "" {
   759  
   760  			if err := r.SetQueryParam("created", qCreated); err != nil {
   761  				return err
   762  			}
   763  		}
   764  	}
   765  
   766  	if o.CreatedGte != nil {
   767  
   768  		// query param created__gte
   769  		var qrCreatedGte string
   770  
   771  		if o.CreatedGte != nil {
   772  			qrCreatedGte = *o.CreatedGte
   773  		}
   774  		qCreatedGte := qrCreatedGte
   775  		if qCreatedGte != "" {
   776  
   777  			if err := r.SetQueryParam("created__gte", qCreatedGte); err != nil {
   778  				return err
   779  			}
   780  		}
   781  	}
   782  
   783  	if o.CreatedLte != nil {
   784  
   785  		// query param created__lte
   786  		var qrCreatedLte string
   787  
   788  		if o.CreatedLte != nil {
   789  			qrCreatedLte = *o.CreatedLte
   790  		}
   791  		qCreatedLte := qrCreatedLte
   792  		if qCreatedLte != "" {
   793  
   794  			if err := r.SetQueryParam("created__lte", qCreatedLte); err != nil {
   795  				return err
   796  			}
   797  		}
   798  	}
   799  
   800  	if o.CreatedBy != nil {
   801  
   802  		// query param created_by
   803  		var qrCreatedBy string
   804  
   805  		if o.CreatedBy != nil {
   806  			qrCreatedBy = *o.CreatedBy
   807  		}
   808  		qCreatedBy := qrCreatedBy
   809  		if qCreatedBy != "" {
   810  
   811  			if err := r.SetQueryParam("created_by", qCreatedBy); err != nil {
   812  				return err
   813  			}
   814  		}
   815  	}
   816  
   817  	if o.CreatedByn != nil {
   818  
   819  		// query param created_by__n
   820  		var qrCreatedByn string
   821  
   822  		if o.CreatedByn != nil {
   823  			qrCreatedByn = *o.CreatedByn
   824  		}
   825  		qCreatedByn := qrCreatedByn
   826  		if qCreatedByn != "" {
   827  
   828  			if err := r.SetQueryParam("created_by__n", qCreatedByn); err != nil {
   829  				return err
   830  			}
   831  		}
   832  	}
   833  
   834  	if o.CreatedByID != nil {
   835  
   836  		// query param created_by_id
   837  		var qrCreatedByID string
   838  
   839  		if o.CreatedByID != nil {
   840  			qrCreatedByID = *o.CreatedByID
   841  		}
   842  		qCreatedByID := qrCreatedByID
   843  		if qCreatedByID != "" {
   844  
   845  			if err := r.SetQueryParam("created_by_id", qCreatedByID); err != nil {
   846  				return err
   847  			}
   848  		}
   849  	}
   850  
   851  	if o.CreatedByIDn != nil {
   852  
   853  		// query param created_by_id__n
   854  		var qrCreatedByIDn string
   855  
   856  		if o.CreatedByIDn != nil {
   857  			qrCreatedByIDn = *o.CreatedByIDn
   858  		}
   859  		qCreatedByIDn := qrCreatedByIDn
   860  		if qCreatedByIDn != "" {
   861  
   862  			if err := r.SetQueryParam("created_by_id__n", qCreatedByIDn); err != nil {
   863  				return err
   864  			}
   865  		}
   866  	}
   867  
   868  	if o.ID != nil {
   869  
   870  		// query param id
   871  		var qrID string
   872  
   873  		if o.ID != nil {
   874  			qrID = *o.ID
   875  		}
   876  		qID := qrID
   877  		if qID != "" {
   878  
   879  			if err := r.SetQueryParam("id", qID); err != nil {
   880  				return err
   881  			}
   882  		}
   883  	}
   884  
   885  	if o.IDGt != nil {
   886  
   887  		// query param id__gt
   888  		var qrIDGt string
   889  
   890  		if o.IDGt != nil {
   891  			qrIDGt = *o.IDGt
   892  		}
   893  		qIDGt := qrIDGt
   894  		if qIDGt != "" {
   895  
   896  			if err := r.SetQueryParam("id__gt", qIDGt); err != nil {
   897  				return err
   898  			}
   899  		}
   900  	}
   901  
   902  	if o.IDGte != nil {
   903  
   904  		// query param id__gte
   905  		var qrIDGte string
   906  
   907  		if o.IDGte != nil {
   908  			qrIDGte = *o.IDGte
   909  		}
   910  		qIDGte := qrIDGte
   911  		if qIDGte != "" {
   912  
   913  			if err := r.SetQueryParam("id__gte", qIDGte); err != nil {
   914  				return err
   915  			}
   916  		}
   917  	}
   918  
   919  	if o.IDLt != nil {
   920  
   921  		// query param id__lt
   922  		var qrIDLt string
   923  
   924  		if o.IDLt != nil {
   925  			qrIDLt = *o.IDLt
   926  		}
   927  		qIDLt := qrIDLt
   928  		if qIDLt != "" {
   929  
   930  			if err := r.SetQueryParam("id__lt", qIDLt); err != nil {
   931  				return err
   932  			}
   933  		}
   934  	}
   935  
   936  	if o.IDLte != nil {
   937  
   938  		// query param id__lte
   939  		var qrIDLte string
   940  
   941  		if o.IDLte != nil {
   942  			qrIDLte = *o.IDLte
   943  		}
   944  		qIDLte := qrIDLte
   945  		if qIDLte != "" {
   946  
   947  			if err := r.SetQueryParam("id__lte", qIDLte); err != nil {
   948  				return err
   949  			}
   950  		}
   951  	}
   952  
   953  	if o.IDn != nil {
   954  
   955  		// query param id__n
   956  		var qrIDn string
   957  
   958  		if o.IDn != nil {
   959  			qrIDn = *o.IDn
   960  		}
   961  		qIDn := qrIDn
   962  		if qIDn != "" {
   963  
   964  			if err := r.SetQueryParam("id__n", qIDn); err != nil {
   965  				return err
   966  			}
   967  		}
   968  	}
   969  
   970  	if o.Kind != nil {
   971  
   972  		// query param kind
   973  		var qrKind string
   974  
   975  		if o.Kind != nil {
   976  			qrKind = *o.Kind
   977  		}
   978  		qKind := qrKind
   979  		if qKind != "" {
   980  
   981  			if err := r.SetQueryParam("kind", qKind); err != nil {
   982  				return err
   983  			}
   984  		}
   985  	}
   986  
   987  	if o.Kindn != nil {
   988  
   989  		// query param kind__n
   990  		var qrKindn string
   991  
   992  		if o.Kindn != nil {
   993  			qrKindn = *o.Kindn
   994  		}
   995  		qKindn := qrKindn
   996  		if qKindn != "" {
   997  
   998  			if err := r.SetQueryParam("kind__n", qKindn); err != nil {
   999  				return err
  1000  			}
  1001  		}
  1002  	}
  1003  
  1004  	if o.LastUpdated != nil {
  1005  
  1006  		// query param last_updated
  1007  		var qrLastUpdated string
  1008  
  1009  		if o.LastUpdated != nil {
  1010  			qrLastUpdated = *o.LastUpdated
  1011  		}
  1012  		qLastUpdated := qrLastUpdated
  1013  		if qLastUpdated != "" {
  1014  
  1015  			if err := r.SetQueryParam("last_updated", qLastUpdated); err != nil {
  1016  				return err
  1017  			}
  1018  		}
  1019  	}
  1020  
  1021  	if o.LastUpdatedGte != nil {
  1022  
  1023  		// query param last_updated__gte
  1024  		var qrLastUpdatedGte string
  1025  
  1026  		if o.LastUpdatedGte != nil {
  1027  			qrLastUpdatedGte = *o.LastUpdatedGte
  1028  		}
  1029  		qLastUpdatedGte := qrLastUpdatedGte
  1030  		if qLastUpdatedGte != "" {
  1031  
  1032  			if err := r.SetQueryParam("last_updated__gte", qLastUpdatedGte); err != nil {
  1033  				return err
  1034  			}
  1035  		}
  1036  	}
  1037  
  1038  	if o.LastUpdatedLte != nil {
  1039  
  1040  		// query param last_updated__lte
  1041  		var qrLastUpdatedLte string
  1042  
  1043  		if o.LastUpdatedLte != nil {
  1044  			qrLastUpdatedLte = *o.LastUpdatedLte
  1045  		}
  1046  		qLastUpdatedLte := qrLastUpdatedLte
  1047  		if qLastUpdatedLte != "" {
  1048  
  1049  			if err := r.SetQueryParam("last_updated__lte", qLastUpdatedLte); err != nil {
  1050  				return err
  1051  			}
  1052  		}
  1053  	}
  1054  
  1055  	if o.Limit != nil {
  1056  
  1057  		// query param limit
  1058  		var qrLimit int64
  1059  
  1060  		if o.Limit != nil {
  1061  			qrLimit = *o.Limit
  1062  		}
  1063  		qLimit := swag.FormatInt64(qrLimit)
  1064  		if qLimit != "" {
  1065  
  1066  			if err := r.SetQueryParam("limit", qLimit); err != nil {
  1067  				return err
  1068  			}
  1069  		}
  1070  	}
  1071  
  1072  	if o.Offset != nil {
  1073  
  1074  		// query param offset
  1075  		var qrOffset int64
  1076  
  1077  		if o.Offset != nil {
  1078  			qrOffset = *o.Offset
  1079  		}
  1080  		qOffset := swag.FormatInt64(qrOffset)
  1081  		if qOffset != "" {
  1082  
  1083  			if err := r.SetQueryParam("offset", qOffset); err != nil {
  1084  				return err
  1085  			}
  1086  		}
  1087  	}
  1088  
  1089  	if o.Q != nil {
  1090  
  1091  		// query param q
  1092  		var qrQ string
  1093  
  1094  		if o.Q != nil {
  1095  			qrQ = *o.Q
  1096  		}
  1097  		qQ := qrQ
  1098  		if qQ != "" {
  1099  
  1100  			if err := r.SetQueryParam("q", qQ); err != nil {
  1101  				return err
  1102  			}
  1103  		}
  1104  	}
  1105  
  1106  	if len(res) > 0 {
  1107  		return errors.CompositeValidationError(res...)
  1108  	}
  1109  	return nil
  1110  }