mirror of
https://github.com/openziti/zrok.git
synced 2025-01-18 20:08:21 +01:00
149 lines
4.2 KiB
Go
149 lines
4.2 KiB
Go
// Code generated by go-swagger; DO NOT EDIT.
|
|
|
|
package metadata
|
|
|
|
// This file was generated by the swagger tool.
|
|
// Editing this file might prove futile when you re-run the swagger generate command
|
|
|
|
import (
|
|
"context"
|
|
"net/http"
|
|
"time"
|
|
|
|
"github.com/go-openapi/errors"
|
|
"github.com/go-openapi/runtime"
|
|
cr "github.com/go-openapi/runtime/client"
|
|
"github.com/go-openapi/strfmt"
|
|
)
|
|
|
|
// NewListMembersParams creates a new ListMembersParams object,
|
|
// with the default timeout for this client.
|
|
//
|
|
// Default values are not hydrated, since defaults are normally applied by the API server side.
|
|
//
|
|
// To enforce default values in parameter, use SetDefaults or WithDefaults.
|
|
func NewListMembersParams() *ListMembersParams {
|
|
return &ListMembersParams{
|
|
timeout: cr.DefaultTimeout,
|
|
}
|
|
}
|
|
|
|
// NewListMembersParamsWithTimeout creates a new ListMembersParams object
|
|
// with the ability to set a timeout on a request.
|
|
func NewListMembersParamsWithTimeout(timeout time.Duration) *ListMembersParams {
|
|
return &ListMembersParams{
|
|
timeout: timeout,
|
|
}
|
|
}
|
|
|
|
// NewListMembersParamsWithContext creates a new ListMembersParams object
|
|
// with the ability to set a context for a request.
|
|
func NewListMembersParamsWithContext(ctx context.Context) *ListMembersParams {
|
|
return &ListMembersParams{
|
|
Context: ctx,
|
|
}
|
|
}
|
|
|
|
// NewListMembersParamsWithHTTPClient creates a new ListMembersParams object
|
|
// with the ability to set a custom HTTPClient for a request.
|
|
func NewListMembersParamsWithHTTPClient(client *http.Client) *ListMembersParams {
|
|
return &ListMembersParams{
|
|
HTTPClient: client,
|
|
}
|
|
}
|
|
|
|
/*
|
|
ListMembersParams contains all the parameters to send to the API endpoint
|
|
|
|
for the list members operation.
|
|
|
|
Typically these are written to a http.Request.
|
|
*/
|
|
type ListMembersParams struct {
|
|
|
|
// OrganizationToken.
|
|
OrganizationToken string
|
|
|
|
timeout time.Duration
|
|
Context context.Context
|
|
HTTPClient *http.Client
|
|
}
|
|
|
|
// WithDefaults hydrates default values in the list members params (not the query body).
|
|
//
|
|
// All values with no default are reset to their zero value.
|
|
func (o *ListMembersParams) WithDefaults() *ListMembersParams {
|
|
o.SetDefaults()
|
|
return o
|
|
}
|
|
|
|
// SetDefaults hydrates default values in the list members params (not the query body).
|
|
//
|
|
// All values with no default are reset to their zero value.
|
|
func (o *ListMembersParams) SetDefaults() {
|
|
// no default values defined for this parameter
|
|
}
|
|
|
|
// WithTimeout adds the timeout to the list members params
|
|
func (o *ListMembersParams) WithTimeout(timeout time.Duration) *ListMembersParams {
|
|
o.SetTimeout(timeout)
|
|
return o
|
|
}
|
|
|
|
// SetTimeout adds the timeout to the list members params
|
|
func (o *ListMembersParams) SetTimeout(timeout time.Duration) {
|
|
o.timeout = timeout
|
|
}
|
|
|
|
// WithContext adds the context to the list members params
|
|
func (o *ListMembersParams) WithContext(ctx context.Context) *ListMembersParams {
|
|
o.SetContext(ctx)
|
|
return o
|
|
}
|
|
|
|
// SetContext adds the context to the list members params
|
|
func (o *ListMembersParams) SetContext(ctx context.Context) {
|
|
o.Context = ctx
|
|
}
|
|
|
|
// WithHTTPClient adds the HTTPClient to the list members params
|
|
func (o *ListMembersParams) WithHTTPClient(client *http.Client) *ListMembersParams {
|
|
o.SetHTTPClient(client)
|
|
return o
|
|
}
|
|
|
|
// SetHTTPClient adds the HTTPClient to the list members params
|
|
func (o *ListMembersParams) SetHTTPClient(client *http.Client) {
|
|
o.HTTPClient = client
|
|
}
|
|
|
|
// WithOrganizationToken adds the organizationToken to the list members params
|
|
func (o *ListMembersParams) WithOrganizationToken(organizationToken string) *ListMembersParams {
|
|
o.SetOrganizationToken(organizationToken)
|
|
return o
|
|
}
|
|
|
|
// SetOrganizationToken adds the organizationToken to the list members params
|
|
func (o *ListMembersParams) SetOrganizationToken(organizationToken string) {
|
|
o.OrganizationToken = organizationToken
|
|
}
|
|
|
|
// WriteToRequest writes these params to a swagger request
|
|
func (o *ListMembersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
|
|
|
|
if err := r.SetTimeout(o.timeout); err != nil {
|
|
return err
|
|
}
|
|
var res []error
|
|
|
|
// path param organizationToken
|
|
if err := r.SetPathParam("organizationToken", o.OrganizationToken); err != nil {
|
|
return err
|
|
}
|
|
|
|
if len(res) > 0 {
|
|
return errors.CompositeValidationError(res...)
|
|
}
|
|
return nil
|
|
}
|