github.com/digitalocean/go-netbox@v0.0.2/netbox/client/users/users_groups_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 users
    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  // NewUsersGroupsListParams creates a new UsersGroupsListParams 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 NewUsersGroupsListParams() *UsersGroupsListParams {
    42  	return &UsersGroupsListParams{
    43  		timeout: cr.DefaultTimeout,
    44  	}
    45  }
    46  
    47  // NewUsersGroupsListParamsWithTimeout creates a new UsersGroupsListParams object
    48  // with the ability to set a timeout on a request.
    49  func NewUsersGroupsListParamsWithTimeout(timeout time.Duration) *UsersGroupsListParams {
    50  	return &UsersGroupsListParams{
    51  		timeout: timeout,
    52  	}
    53  }
    54  
    55  // NewUsersGroupsListParamsWithContext creates a new UsersGroupsListParams object
    56  // with the ability to set a context for a request.
    57  func NewUsersGroupsListParamsWithContext(ctx context.Context) *UsersGroupsListParams {
    58  	return &UsersGroupsListParams{
    59  		Context: ctx,
    60  	}
    61  }
    62  
    63  // NewUsersGroupsListParamsWithHTTPClient creates a new UsersGroupsListParams object
    64  // with the ability to set a custom HTTPClient for a request.
    65  func NewUsersGroupsListParamsWithHTTPClient(client *http.Client) *UsersGroupsListParams {
    66  	return &UsersGroupsListParams{
    67  		HTTPClient: client,
    68  	}
    69  }
    70  
    71  /* UsersGroupsListParams contains all the parameters to send to the API endpoint
    72     for the users groups list operation.
    73  
    74     Typically these are written to a http.Request.
    75  */
    76  type UsersGroupsListParams struct {
    77  
    78  	// ID.
    79  	ID *string
    80  
    81  	// IDGt.
    82  	IDGt *string
    83  
    84  	// IDGte.
    85  	IDGte *string
    86  
    87  	// IDLt.
    88  	IDLt *string
    89  
    90  	// IDLte.
    91  	IDLte *string
    92  
    93  	// IDn.
    94  	IDn *string
    95  
    96  	/* Limit.
    97  
    98  	   Number of results to return per page.
    99  	*/
   100  	Limit *int64
   101  
   102  	// Name.
   103  	Name *string
   104  
   105  	// NameEmpty.
   106  	NameEmpty *string
   107  
   108  	// NameIc.
   109  	NameIc *string
   110  
   111  	// NameIe.
   112  	NameIe *string
   113  
   114  	// NameIew.
   115  	NameIew *string
   116  
   117  	// NameIsw.
   118  	NameIsw *string
   119  
   120  	// Namen.
   121  	Namen *string
   122  
   123  	// NameNic.
   124  	NameNic *string
   125  
   126  	// NameNie.
   127  	NameNie *string
   128  
   129  	// NameNiew.
   130  	NameNiew *string
   131  
   132  	// NameNisw.
   133  	NameNisw *string
   134  
   135  	/* Offset.
   136  
   137  	   The initial index from which to return the results.
   138  	*/
   139  	Offset *int64
   140  
   141  	// Q.
   142  	Q *string
   143  
   144  	timeout    time.Duration
   145  	Context    context.Context
   146  	HTTPClient *http.Client
   147  }
   148  
   149  // WithDefaults hydrates default values in the users groups list params (not the query body).
   150  //
   151  // All values with no default are reset to their zero value.
   152  func (o *UsersGroupsListParams) WithDefaults() *UsersGroupsListParams {
   153  	o.SetDefaults()
   154  	return o
   155  }
   156  
   157  // SetDefaults hydrates default values in the users groups list params (not the query body).
   158  //
   159  // All values with no default are reset to their zero value.
   160  func (o *UsersGroupsListParams) SetDefaults() {
   161  	// no default values defined for this parameter
   162  }
   163  
   164  // WithTimeout adds the timeout to the users groups list params
   165  func (o *UsersGroupsListParams) WithTimeout(timeout time.Duration) *UsersGroupsListParams {
   166  	o.SetTimeout(timeout)
   167  	return o
   168  }
   169  
   170  // SetTimeout adds the timeout to the users groups list params
   171  func (o *UsersGroupsListParams) SetTimeout(timeout time.Duration) {
   172  	o.timeout = timeout
   173  }
   174  
   175  // WithContext adds the context to the users groups list params
   176  func (o *UsersGroupsListParams) WithContext(ctx context.Context) *UsersGroupsListParams {
   177  	o.SetContext(ctx)
   178  	return o
   179  }
   180  
   181  // SetContext adds the context to the users groups list params
   182  func (o *UsersGroupsListParams) SetContext(ctx context.Context) {
   183  	o.Context = ctx
   184  }
   185  
   186  // WithHTTPClient adds the HTTPClient to the users groups list params
   187  func (o *UsersGroupsListParams) WithHTTPClient(client *http.Client) *UsersGroupsListParams {
   188  	o.SetHTTPClient(client)
   189  	return o
   190  }
   191  
   192  // SetHTTPClient adds the HTTPClient to the users groups list params
   193  func (o *UsersGroupsListParams) SetHTTPClient(client *http.Client) {
   194  	o.HTTPClient = client
   195  }
   196  
   197  // WithID adds the id to the users groups list params
   198  func (o *UsersGroupsListParams) WithID(id *string) *UsersGroupsListParams {
   199  	o.SetID(id)
   200  	return o
   201  }
   202  
   203  // SetID adds the id to the users groups list params
   204  func (o *UsersGroupsListParams) SetID(id *string) {
   205  	o.ID = id
   206  }
   207  
   208  // WithIDGt adds the iDGt to the users groups list params
   209  func (o *UsersGroupsListParams) WithIDGt(iDGt *string) *UsersGroupsListParams {
   210  	o.SetIDGt(iDGt)
   211  	return o
   212  }
   213  
   214  // SetIDGt adds the idGt to the users groups list params
   215  func (o *UsersGroupsListParams) SetIDGt(iDGt *string) {
   216  	o.IDGt = iDGt
   217  }
   218  
   219  // WithIDGte adds the iDGte to the users groups list params
   220  func (o *UsersGroupsListParams) WithIDGte(iDGte *string) *UsersGroupsListParams {
   221  	o.SetIDGte(iDGte)
   222  	return o
   223  }
   224  
   225  // SetIDGte adds the idGte to the users groups list params
   226  func (o *UsersGroupsListParams) SetIDGte(iDGte *string) {
   227  	o.IDGte = iDGte
   228  }
   229  
   230  // WithIDLt adds the iDLt to the users groups list params
   231  func (o *UsersGroupsListParams) WithIDLt(iDLt *string) *UsersGroupsListParams {
   232  	o.SetIDLt(iDLt)
   233  	return o
   234  }
   235  
   236  // SetIDLt adds the idLt to the users groups list params
   237  func (o *UsersGroupsListParams) SetIDLt(iDLt *string) {
   238  	o.IDLt = iDLt
   239  }
   240  
   241  // WithIDLte adds the iDLte to the users groups list params
   242  func (o *UsersGroupsListParams) WithIDLte(iDLte *string) *UsersGroupsListParams {
   243  	o.SetIDLte(iDLte)
   244  	return o
   245  }
   246  
   247  // SetIDLte adds the idLte to the users groups list params
   248  func (o *UsersGroupsListParams) SetIDLte(iDLte *string) {
   249  	o.IDLte = iDLte
   250  }
   251  
   252  // WithIDn adds the iDn to the users groups list params
   253  func (o *UsersGroupsListParams) WithIDn(iDn *string) *UsersGroupsListParams {
   254  	o.SetIDn(iDn)
   255  	return o
   256  }
   257  
   258  // SetIDn adds the idN to the users groups list params
   259  func (o *UsersGroupsListParams) SetIDn(iDn *string) {
   260  	o.IDn = iDn
   261  }
   262  
   263  // WithLimit adds the limit to the users groups list params
   264  func (o *UsersGroupsListParams) WithLimit(limit *int64) *UsersGroupsListParams {
   265  	o.SetLimit(limit)
   266  	return o
   267  }
   268  
   269  // SetLimit adds the limit to the users groups list params
   270  func (o *UsersGroupsListParams) SetLimit(limit *int64) {
   271  	o.Limit = limit
   272  }
   273  
   274  // WithName adds the name to the users groups list params
   275  func (o *UsersGroupsListParams) WithName(name *string) *UsersGroupsListParams {
   276  	o.SetName(name)
   277  	return o
   278  }
   279  
   280  // SetName adds the name to the users groups list params
   281  func (o *UsersGroupsListParams) SetName(name *string) {
   282  	o.Name = name
   283  }
   284  
   285  // WithNameEmpty adds the nameEmpty to the users groups list params
   286  func (o *UsersGroupsListParams) WithNameEmpty(nameEmpty *string) *UsersGroupsListParams {
   287  	o.SetNameEmpty(nameEmpty)
   288  	return o
   289  }
   290  
   291  // SetNameEmpty adds the nameEmpty to the users groups list params
   292  func (o *UsersGroupsListParams) SetNameEmpty(nameEmpty *string) {
   293  	o.NameEmpty = nameEmpty
   294  }
   295  
   296  // WithNameIc adds the nameIc to the users groups list params
   297  func (o *UsersGroupsListParams) WithNameIc(nameIc *string) *UsersGroupsListParams {
   298  	o.SetNameIc(nameIc)
   299  	return o
   300  }
   301  
   302  // SetNameIc adds the nameIc to the users groups list params
   303  func (o *UsersGroupsListParams) SetNameIc(nameIc *string) {
   304  	o.NameIc = nameIc
   305  }
   306  
   307  // WithNameIe adds the nameIe to the users groups list params
   308  func (o *UsersGroupsListParams) WithNameIe(nameIe *string) *UsersGroupsListParams {
   309  	o.SetNameIe(nameIe)
   310  	return o
   311  }
   312  
   313  // SetNameIe adds the nameIe to the users groups list params
   314  func (o *UsersGroupsListParams) SetNameIe(nameIe *string) {
   315  	o.NameIe = nameIe
   316  }
   317  
   318  // WithNameIew adds the nameIew to the users groups list params
   319  func (o *UsersGroupsListParams) WithNameIew(nameIew *string) *UsersGroupsListParams {
   320  	o.SetNameIew(nameIew)
   321  	return o
   322  }
   323  
   324  // SetNameIew adds the nameIew to the users groups list params
   325  func (o *UsersGroupsListParams) SetNameIew(nameIew *string) {
   326  	o.NameIew = nameIew
   327  }
   328  
   329  // WithNameIsw adds the nameIsw to the users groups list params
   330  func (o *UsersGroupsListParams) WithNameIsw(nameIsw *string) *UsersGroupsListParams {
   331  	o.SetNameIsw(nameIsw)
   332  	return o
   333  }
   334  
   335  // SetNameIsw adds the nameIsw to the users groups list params
   336  func (o *UsersGroupsListParams) SetNameIsw(nameIsw *string) {
   337  	o.NameIsw = nameIsw
   338  }
   339  
   340  // WithNamen adds the namen to the users groups list params
   341  func (o *UsersGroupsListParams) WithNamen(namen *string) *UsersGroupsListParams {
   342  	o.SetNamen(namen)
   343  	return o
   344  }
   345  
   346  // SetNamen adds the nameN to the users groups list params
   347  func (o *UsersGroupsListParams) SetNamen(namen *string) {
   348  	o.Namen = namen
   349  }
   350  
   351  // WithNameNic adds the nameNic to the users groups list params
   352  func (o *UsersGroupsListParams) WithNameNic(nameNic *string) *UsersGroupsListParams {
   353  	o.SetNameNic(nameNic)
   354  	return o
   355  }
   356  
   357  // SetNameNic adds the nameNic to the users groups list params
   358  func (o *UsersGroupsListParams) SetNameNic(nameNic *string) {
   359  	o.NameNic = nameNic
   360  }
   361  
   362  // WithNameNie adds the nameNie to the users groups list params
   363  func (o *UsersGroupsListParams) WithNameNie(nameNie *string) *UsersGroupsListParams {
   364  	o.SetNameNie(nameNie)
   365  	return o
   366  }
   367  
   368  // SetNameNie adds the nameNie to the users groups list params
   369  func (o *UsersGroupsListParams) SetNameNie(nameNie *string) {
   370  	o.NameNie = nameNie
   371  }
   372  
   373  // WithNameNiew adds the nameNiew to the users groups list params
   374  func (o *UsersGroupsListParams) WithNameNiew(nameNiew *string) *UsersGroupsListParams {
   375  	o.SetNameNiew(nameNiew)
   376  	return o
   377  }
   378  
   379  // SetNameNiew adds the nameNiew to the users groups list params
   380  func (o *UsersGroupsListParams) SetNameNiew(nameNiew *string) {
   381  	o.NameNiew = nameNiew
   382  }
   383  
   384  // WithNameNisw adds the nameNisw to the users groups list params
   385  func (o *UsersGroupsListParams) WithNameNisw(nameNisw *string) *UsersGroupsListParams {
   386  	o.SetNameNisw(nameNisw)
   387  	return o
   388  }
   389  
   390  // SetNameNisw adds the nameNisw to the users groups list params
   391  func (o *UsersGroupsListParams) SetNameNisw(nameNisw *string) {
   392  	o.NameNisw = nameNisw
   393  }
   394  
   395  // WithOffset adds the offset to the users groups list params
   396  func (o *UsersGroupsListParams) WithOffset(offset *int64) *UsersGroupsListParams {
   397  	o.SetOffset(offset)
   398  	return o
   399  }
   400  
   401  // SetOffset adds the offset to the users groups list params
   402  func (o *UsersGroupsListParams) SetOffset(offset *int64) {
   403  	o.Offset = offset
   404  }
   405  
   406  // WithQ adds the q to the users groups list params
   407  func (o *UsersGroupsListParams) WithQ(q *string) *UsersGroupsListParams {
   408  	o.SetQ(q)
   409  	return o
   410  }
   411  
   412  // SetQ adds the q to the users groups list params
   413  func (o *UsersGroupsListParams) SetQ(q *string) {
   414  	o.Q = q
   415  }
   416  
   417  // WriteToRequest writes these params to a swagger request
   418  func (o *UsersGroupsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
   419  
   420  	if err := r.SetTimeout(o.timeout); err != nil {
   421  		return err
   422  	}
   423  	var res []error
   424  
   425  	if o.ID != nil {
   426  
   427  		// query param id
   428  		var qrID string
   429  
   430  		if o.ID != nil {
   431  			qrID = *o.ID
   432  		}
   433  		qID := qrID
   434  		if qID != "" {
   435  
   436  			if err := r.SetQueryParam("id", qID); err != nil {
   437  				return err
   438  			}
   439  		}
   440  	}
   441  
   442  	if o.IDGt != nil {
   443  
   444  		// query param id__gt
   445  		var qrIDGt string
   446  
   447  		if o.IDGt != nil {
   448  			qrIDGt = *o.IDGt
   449  		}
   450  		qIDGt := qrIDGt
   451  		if qIDGt != "" {
   452  
   453  			if err := r.SetQueryParam("id__gt", qIDGt); err != nil {
   454  				return err
   455  			}
   456  		}
   457  	}
   458  
   459  	if o.IDGte != nil {
   460  
   461  		// query param id__gte
   462  		var qrIDGte string
   463  
   464  		if o.IDGte != nil {
   465  			qrIDGte = *o.IDGte
   466  		}
   467  		qIDGte := qrIDGte
   468  		if qIDGte != "" {
   469  
   470  			if err := r.SetQueryParam("id__gte", qIDGte); err != nil {
   471  				return err
   472  			}
   473  		}
   474  	}
   475  
   476  	if o.IDLt != nil {
   477  
   478  		// query param id__lt
   479  		var qrIDLt string
   480  
   481  		if o.IDLt != nil {
   482  			qrIDLt = *o.IDLt
   483  		}
   484  		qIDLt := qrIDLt
   485  		if qIDLt != "" {
   486  
   487  			if err := r.SetQueryParam("id__lt", qIDLt); err != nil {
   488  				return err
   489  			}
   490  		}
   491  	}
   492  
   493  	if o.IDLte != nil {
   494  
   495  		// query param id__lte
   496  		var qrIDLte string
   497  
   498  		if o.IDLte != nil {
   499  			qrIDLte = *o.IDLte
   500  		}
   501  		qIDLte := qrIDLte
   502  		if qIDLte != "" {
   503  
   504  			if err := r.SetQueryParam("id__lte", qIDLte); err != nil {
   505  				return err
   506  			}
   507  		}
   508  	}
   509  
   510  	if o.IDn != nil {
   511  
   512  		// query param id__n
   513  		var qrIDn string
   514  
   515  		if o.IDn != nil {
   516  			qrIDn = *o.IDn
   517  		}
   518  		qIDn := qrIDn
   519  		if qIDn != "" {
   520  
   521  			if err := r.SetQueryParam("id__n", qIDn); err != nil {
   522  				return err
   523  			}
   524  		}
   525  	}
   526  
   527  	if o.Limit != nil {
   528  
   529  		// query param limit
   530  		var qrLimit int64
   531  
   532  		if o.Limit != nil {
   533  			qrLimit = *o.Limit
   534  		}
   535  		qLimit := swag.FormatInt64(qrLimit)
   536  		if qLimit != "" {
   537  
   538  			if err := r.SetQueryParam("limit", qLimit); err != nil {
   539  				return err
   540  			}
   541  		}
   542  	}
   543  
   544  	if o.Name != nil {
   545  
   546  		// query param name
   547  		var qrName string
   548  
   549  		if o.Name != nil {
   550  			qrName = *o.Name
   551  		}
   552  		qName := qrName
   553  		if qName != "" {
   554  
   555  			if err := r.SetQueryParam("name", qName); err != nil {
   556  				return err
   557  			}
   558  		}
   559  	}
   560  
   561  	if o.NameEmpty != nil {
   562  
   563  		// query param name__empty
   564  		var qrNameEmpty string
   565  
   566  		if o.NameEmpty != nil {
   567  			qrNameEmpty = *o.NameEmpty
   568  		}
   569  		qNameEmpty := qrNameEmpty
   570  		if qNameEmpty != "" {
   571  
   572  			if err := r.SetQueryParam("name__empty", qNameEmpty); err != nil {
   573  				return err
   574  			}
   575  		}
   576  	}
   577  
   578  	if o.NameIc != nil {
   579  
   580  		// query param name__ic
   581  		var qrNameIc string
   582  
   583  		if o.NameIc != nil {
   584  			qrNameIc = *o.NameIc
   585  		}
   586  		qNameIc := qrNameIc
   587  		if qNameIc != "" {
   588  
   589  			if err := r.SetQueryParam("name__ic", qNameIc); err != nil {
   590  				return err
   591  			}
   592  		}
   593  	}
   594  
   595  	if o.NameIe != nil {
   596  
   597  		// query param name__ie
   598  		var qrNameIe string
   599  
   600  		if o.NameIe != nil {
   601  			qrNameIe = *o.NameIe
   602  		}
   603  		qNameIe := qrNameIe
   604  		if qNameIe != "" {
   605  
   606  			if err := r.SetQueryParam("name__ie", qNameIe); err != nil {
   607  				return err
   608  			}
   609  		}
   610  	}
   611  
   612  	if o.NameIew != nil {
   613  
   614  		// query param name__iew
   615  		var qrNameIew string
   616  
   617  		if o.NameIew != nil {
   618  			qrNameIew = *o.NameIew
   619  		}
   620  		qNameIew := qrNameIew
   621  		if qNameIew != "" {
   622  
   623  			if err := r.SetQueryParam("name__iew", qNameIew); err != nil {
   624  				return err
   625  			}
   626  		}
   627  	}
   628  
   629  	if o.NameIsw != nil {
   630  
   631  		// query param name__isw
   632  		var qrNameIsw string
   633  
   634  		if o.NameIsw != nil {
   635  			qrNameIsw = *o.NameIsw
   636  		}
   637  		qNameIsw := qrNameIsw
   638  		if qNameIsw != "" {
   639  
   640  			if err := r.SetQueryParam("name__isw", qNameIsw); err != nil {
   641  				return err
   642  			}
   643  		}
   644  	}
   645  
   646  	if o.Namen != nil {
   647  
   648  		// query param name__n
   649  		var qrNamen string
   650  
   651  		if o.Namen != nil {
   652  			qrNamen = *o.Namen
   653  		}
   654  		qNamen := qrNamen
   655  		if qNamen != "" {
   656  
   657  			if err := r.SetQueryParam("name__n", qNamen); err != nil {
   658  				return err
   659  			}
   660  		}
   661  	}
   662  
   663  	if o.NameNic != nil {
   664  
   665  		// query param name__nic
   666  		var qrNameNic string
   667  
   668  		if o.NameNic != nil {
   669  			qrNameNic = *o.NameNic
   670  		}
   671  		qNameNic := qrNameNic
   672  		if qNameNic != "" {
   673  
   674  			if err := r.SetQueryParam("name__nic", qNameNic); err != nil {
   675  				return err
   676  			}
   677  		}
   678  	}
   679  
   680  	if o.NameNie != nil {
   681  
   682  		// query param name__nie
   683  		var qrNameNie string
   684  
   685  		if o.NameNie != nil {
   686  			qrNameNie = *o.NameNie
   687  		}
   688  		qNameNie := qrNameNie
   689  		if qNameNie != "" {
   690  
   691  			if err := r.SetQueryParam("name__nie", qNameNie); err != nil {
   692  				return err
   693  			}
   694  		}
   695  	}
   696  
   697  	if o.NameNiew != nil {
   698  
   699  		// query param name__niew
   700  		var qrNameNiew string
   701  
   702  		if o.NameNiew != nil {
   703  			qrNameNiew = *o.NameNiew
   704  		}
   705  		qNameNiew := qrNameNiew
   706  		if qNameNiew != "" {
   707  
   708  			if err := r.SetQueryParam("name__niew", qNameNiew); err != nil {
   709  				return err
   710  			}
   711  		}
   712  	}
   713  
   714  	if o.NameNisw != nil {
   715  
   716  		// query param name__nisw
   717  		var qrNameNisw string
   718  
   719  		if o.NameNisw != nil {
   720  			qrNameNisw = *o.NameNisw
   721  		}
   722  		qNameNisw := qrNameNisw
   723  		if qNameNisw != "" {
   724  
   725  			if err := r.SetQueryParam("name__nisw", qNameNisw); err != nil {
   726  				return err
   727  			}
   728  		}
   729  	}
   730  
   731  	if o.Offset != nil {
   732  
   733  		// query param offset
   734  		var qrOffset int64
   735  
   736  		if o.Offset != nil {
   737  			qrOffset = *o.Offset
   738  		}
   739  		qOffset := swag.FormatInt64(qrOffset)
   740  		if qOffset != "" {
   741  
   742  			if err := r.SetQueryParam("offset", qOffset); err != nil {
   743  				return err
   744  			}
   745  		}
   746  	}
   747  
   748  	if o.Q != nil {
   749  
   750  		// query param q
   751  		var qrQ string
   752  
   753  		if o.Q != nil {
   754  			qrQ = *o.Q
   755  		}
   756  		qQ := qrQ
   757  		if qQ != "" {
   758  
   759  			if err := r.SetQueryParam("q", qQ); err != nil {
   760  				return err
   761  			}
   762  		}
   763  	}
   764  
   765  	if len(res) > 0 {
   766  		return errors.CompositeValidationError(res...)
   767  	}
   768  	return nil
   769  }