mirror of
https://github.com/openziti/zrok.git
synced 2024-12-12 01:40:50 +01:00
149 lines
4.3 KiB
Go
149 lines
4.3 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"
|
|
)
|
|
|
|
// NewGetServiceDetailParams creates a new GetServiceDetailParams 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 NewGetServiceDetailParams() *GetServiceDetailParams {
|
|
return &GetServiceDetailParams{
|
|
timeout: cr.DefaultTimeout,
|
|
}
|
|
}
|
|
|
|
// NewGetServiceDetailParamsWithTimeout creates a new GetServiceDetailParams object
|
|
// with the ability to set a timeout on a request.
|
|
func NewGetServiceDetailParamsWithTimeout(timeout time.Duration) *GetServiceDetailParams {
|
|
return &GetServiceDetailParams{
|
|
timeout: timeout,
|
|
}
|
|
}
|
|
|
|
// NewGetServiceDetailParamsWithContext creates a new GetServiceDetailParams object
|
|
// with the ability to set a context for a request.
|
|
func NewGetServiceDetailParamsWithContext(ctx context.Context) *GetServiceDetailParams {
|
|
return &GetServiceDetailParams{
|
|
Context: ctx,
|
|
}
|
|
}
|
|
|
|
// NewGetServiceDetailParamsWithHTTPClient creates a new GetServiceDetailParams object
|
|
// with the ability to set a custom HTTPClient for a request.
|
|
func NewGetServiceDetailParamsWithHTTPClient(client *http.Client) *GetServiceDetailParams {
|
|
return &GetServiceDetailParams{
|
|
HTTPClient: client,
|
|
}
|
|
}
|
|
|
|
/*
|
|
GetServiceDetailParams contains all the parameters to send to the API endpoint
|
|
|
|
for the get service detail operation.
|
|
|
|
Typically these are written to a http.Request.
|
|
*/
|
|
type GetServiceDetailParams struct {
|
|
|
|
// SvcToken.
|
|
SvcToken string
|
|
|
|
timeout time.Duration
|
|
Context context.Context
|
|
HTTPClient *http.Client
|
|
}
|
|
|
|
// WithDefaults hydrates default values in the get service detail params (not the query body).
|
|
//
|
|
// All values with no default are reset to their zero value.
|
|
func (o *GetServiceDetailParams) WithDefaults() *GetServiceDetailParams {
|
|
o.SetDefaults()
|
|
return o
|
|
}
|
|
|
|
// SetDefaults hydrates default values in the get service detail params (not the query body).
|
|
//
|
|
// All values with no default are reset to their zero value.
|
|
func (o *GetServiceDetailParams) SetDefaults() {
|
|
// no default values defined for this parameter
|
|
}
|
|
|
|
// WithTimeout adds the timeout to the get service detail params
|
|
func (o *GetServiceDetailParams) WithTimeout(timeout time.Duration) *GetServiceDetailParams {
|
|
o.SetTimeout(timeout)
|
|
return o
|
|
}
|
|
|
|
// SetTimeout adds the timeout to the get service detail params
|
|
func (o *GetServiceDetailParams) SetTimeout(timeout time.Duration) {
|
|
o.timeout = timeout
|
|
}
|
|
|
|
// WithContext adds the context to the get service detail params
|
|
func (o *GetServiceDetailParams) WithContext(ctx context.Context) *GetServiceDetailParams {
|
|
o.SetContext(ctx)
|
|
return o
|
|
}
|
|
|
|
// SetContext adds the context to the get service detail params
|
|
func (o *GetServiceDetailParams) SetContext(ctx context.Context) {
|
|
o.Context = ctx
|
|
}
|
|
|
|
// WithHTTPClient adds the HTTPClient to the get service detail params
|
|
func (o *GetServiceDetailParams) WithHTTPClient(client *http.Client) *GetServiceDetailParams {
|
|
o.SetHTTPClient(client)
|
|
return o
|
|
}
|
|
|
|
// SetHTTPClient adds the HTTPClient to the get service detail params
|
|
func (o *GetServiceDetailParams) SetHTTPClient(client *http.Client) {
|
|
o.HTTPClient = client
|
|
}
|
|
|
|
// WithSvcToken adds the svcToken to the get service detail params
|
|
func (o *GetServiceDetailParams) WithSvcToken(svcToken string) *GetServiceDetailParams {
|
|
o.SetSvcToken(svcToken)
|
|
return o
|
|
}
|
|
|
|
// SetSvcToken adds the svcToken to the get service detail params
|
|
func (o *GetServiceDetailParams) SetSvcToken(svcToken string) {
|
|
o.SvcToken = svcToken
|
|
}
|
|
|
|
// WriteToRequest writes these params to a swagger request
|
|
func (o *GetServiceDetailParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
|
|
|
|
if err := r.SetTimeout(o.timeout); err != nil {
|
|
return err
|
|
}
|
|
var res []error
|
|
|
|
// path param svcToken
|
|
if err := r.SetPathParam("svcToken", o.SvcToken); err != nil {
|
|
return err
|
|
}
|
|
|
|
if len(res) > 0 {
|
|
return errors.CompositeValidationError(res...)
|
|
}
|
|
return nil
|
|
}
|