func NewListEnvironmentsParamsWithHTTPClient(client *http.Client) *ListEnvironmentsParams {
	var (
		maxItemsDefault       = int64(100)
		offsetDefault         = int64(0)
		orderByDefault        = string("created_at")
		orderDirectionDefault = string("desc")
	)
	return &ListEnvironmentsParams{
		MaxItems:       &maxItemsDefault,
		Offset:         &offsetDefault,
		OrderBy:        &orderByDefault,
		OrderDirection: &orderDirectionDefault,
		HTTPClient:     client,
	}
}
NewListEnvironmentsParamsWithHTTPClient creates a new ListEnvironmentsParams object
with the default values initialized, and the ability to set a custom HTTPClient for a request
package environments
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"
	"github.com/go-openapi/swag"
)
func NewListEnvironmentsParams() *ListEnvironmentsParams {
	var (
		maxItemsDefault       = int64(100)
		offsetDefault         = int64(0)
		orderByDefault        = string("created_at")
		orderDirectionDefault = string("desc")
	)
	return &ListEnvironmentsParams{
		MaxItems:       &maxItemsDefault,
		Offset:         &offsetDefault,
		OrderBy:        &orderByDefault,
		OrderDirection: &orderDirectionDefault,
		timeout: cr.DefaultTimeout,
	}
}
func NewListEnvironmentsParamsWithTimeout(timeout time.Duration) *ListEnvironmentsParams {
	var (
		maxItemsDefault       = int64(100)
		offsetDefault         = int64(0)
		orderByDefault        = string("created_at")
		orderDirectionDefault = string("desc")
	)
	return &ListEnvironmentsParams{
		MaxItems:       &maxItemsDefault,
		Offset:         &offsetDefault,
		OrderBy:        &orderByDefault,
		OrderDirection: &orderDirectionDefault,
		timeout: timeout,
	}
}
func NewListEnvironmentsParamsWithContext(ctx context.Context) *ListEnvironmentsParams {
	var (
		maxItemsDefault       = int64(100)
		offsetDefault         = int64(0)
		orderByDefault        = string("created_at")
		orderDirectionDefault = string("desc")
	)
	return &ListEnvironmentsParams{
		MaxItems:       &maxItemsDefault,
		Offset:         &offsetDefault,
		OrderBy:        &orderByDefault,
		OrderDirection: &orderDirectionDefault,
		Context: ctx,
	}
}