Documentation ¶
Index ¶
- type Client
- func (a *Client) ServerCreate(params *ServerCreateParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ServerCreateCreated, error)
- func (a *Client) ServerDelete(params *ServerDeleteParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ServerDeleteNoContent, error)
- func (a *Client) ServerList(params *ServerListParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ServerListOK, error)
- func (a *Client) ServerRead(params *ServerReadParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ServerReadOK, error)
- func (a *Client) ServerUpdate(params *ServerUpdateParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ServerUpdateCreated, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type ServerCreateCreated
- type ServerCreateParams
- func (o *ServerCreateParams) SetBody(body *models.ConfigServer)
- func (o *ServerCreateParams) SetContext(ctx context.Context)
- func (o *ServerCreateParams) SetDefaults()
- func (o *ServerCreateParams) SetHTTPClient(client *http.Client)
- func (o *ServerCreateParams) SetTimeout(timeout time.Duration)
- func (o *ServerCreateParams) WithBody(body *models.ConfigServer) *ServerCreateParams
- func (o *ServerCreateParams) WithContext(ctx context.Context) *ServerCreateParams
- func (o *ServerCreateParams) WithDefaults() *ServerCreateParams
- func (o *ServerCreateParams) WithHTTPClient(client *http.Client) *ServerCreateParams
- func (o *ServerCreateParams) WithTimeout(timeout time.Duration) *ServerCreateParams
- func (o *ServerCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ServerCreateReader
- type ServerDeleteNoContent
- type ServerDeleteParams
- func (o *ServerDeleteParams) SetContext(ctx context.Context)
- func (o *ServerDeleteParams) SetDefaults()
- func (o *ServerDeleteParams) SetHTTPClient(client *http.Client)
- func (o *ServerDeleteParams) SetID(id string)
- func (o *ServerDeleteParams) SetTimeout(timeout time.Duration)
- func (o *ServerDeleteParams) WithContext(ctx context.Context) *ServerDeleteParams
- func (o *ServerDeleteParams) WithDefaults() *ServerDeleteParams
- func (o *ServerDeleteParams) WithHTTPClient(client *http.Client) *ServerDeleteParams
- func (o *ServerDeleteParams) WithID(id string) *ServerDeleteParams
- func (o *ServerDeleteParams) WithTimeout(timeout time.Duration) *ServerDeleteParams
- func (o *ServerDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ServerDeleteReader
- type ServerListOK
- type ServerListParams
- func (o *ServerListParams) SetContext(ctx context.Context)
- func (o *ServerListParams) SetDefaults()
- func (o *ServerListParams) SetFields(fields *string)
- func (o *ServerListParams) SetFilter(filter *string)
- func (o *ServerListParams) SetHTTPClient(client *http.Client)
- func (o *ServerListParams) SetLimit(limit *int64)
- func (o *ServerListParams) SetOffset(offset *int64)
- func (o *ServerListParams) SetOrderBy(orderBy *string)
- func (o *ServerListParams) SetPageToken(pageToken *string)
- func (o *ServerListParams) SetTfilter(tfilter *string)
- func (o *ServerListParams) SetTimeout(timeout time.Duration)
- func (o *ServerListParams) SetTorderBy(torderBy *string)
- func (o *ServerListParams) WithContext(ctx context.Context) *ServerListParams
- func (o *ServerListParams) WithDefaults() *ServerListParams
- func (o *ServerListParams) WithFields(fields *string) *ServerListParams
- func (o *ServerListParams) WithFilter(filter *string) *ServerListParams
- func (o *ServerListParams) WithHTTPClient(client *http.Client) *ServerListParams
- func (o *ServerListParams) WithLimit(limit *int64) *ServerListParams
- func (o *ServerListParams) WithOffset(offset *int64) *ServerListParams
- func (o *ServerListParams) WithOrderBy(orderBy *string) *ServerListParams
- func (o *ServerListParams) WithPageToken(pageToken *string) *ServerListParams
- func (o *ServerListParams) WithTfilter(tfilter *string) *ServerListParams
- func (o *ServerListParams) WithTimeout(timeout time.Duration) *ServerListParams
- func (o *ServerListParams) WithTorderBy(torderBy *string) *ServerListParams
- func (o *ServerListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ServerListReader
- type ServerReadOK
- type ServerReadParams
- func (o *ServerReadParams) SetContext(ctx context.Context)
- func (o *ServerReadParams) SetDefaults()
- func (o *ServerReadParams) SetFields(fields *string)
- func (o *ServerReadParams) SetHTTPClient(client *http.Client)
- func (o *ServerReadParams) SetID(id string)
- func (o *ServerReadParams) SetTimeout(timeout time.Duration)
- func (o *ServerReadParams) WithContext(ctx context.Context) *ServerReadParams
- func (o *ServerReadParams) WithDefaults() *ServerReadParams
- func (o *ServerReadParams) WithFields(fields *string) *ServerReadParams
- func (o *ServerReadParams) WithHTTPClient(client *http.Client) *ServerReadParams
- func (o *ServerReadParams) WithID(id string) *ServerReadParams
- func (o *ServerReadParams) WithTimeout(timeout time.Duration) *ServerReadParams
- func (o *ServerReadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ServerReadReader
- type ServerUpdateCreated
- type ServerUpdateParams
- func (o *ServerUpdateParams) SetBody(body *models.ConfigServer)
- func (o *ServerUpdateParams) SetContext(ctx context.Context)
- func (o *ServerUpdateParams) SetDefaults()
- func (o *ServerUpdateParams) SetHTTPClient(client *http.Client)
- func (o *ServerUpdateParams) SetID(id string)
- func (o *ServerUpdateParams) SetTimeout(timeout time.Duration)
- func (o *ServerUpdateParams) WithBody(body *models.ConfigServer) *ServerUpdateParams
- func (o *ServerUpdateParams) WithContext(ctx context.Context) *ServerUpdateParams
- func (o *ServerUpdateParams) WithDefaults() *ServerUpdateParams
- func (o *ServerUpdateParams) WithHTTPClient(client *http.Client) *ServerUpdateParams
- func (o *ServerUpdateParams) WithID(id string) *ServerUpdateParams
- func (o *ServerUpdateParams) WithTimeout(timeout time.Duration) *ServerUpdateParams
- func (o *ServerUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ServerUpdateReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for server API
func (*Client) ServerCreate ¶
func (a *Client) ServerCreate(params *ServerCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServerCreateCreated, error)
ServerCreate creates the server object Use this method to create a Server object.
A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts.
func (*Client) ServerDelete ¶
func (a *Client) ServerDelete(params *ServerDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServerDeleteNoContent, error)
ServerDelete moves the server object to recyclebin Use this method to move a Server object to Recyclebin.
A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts.
func (*Client) ServerList ¶
func (a *Client) ServerList(params *ServerListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServerListOK, error)
ServerList lists server objects Use this method to list Server objects.
A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts.
func (*Client) ServerRead ¶
func (a *Client) ServerRead(params *ServerReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServerReadOK, error)
ServerRead reads the server object Use this method to read a Server object.
A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts.
func (*Client) ServerUpdate ¶
func (a *Client) ServerUpdate(params *ServerUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServerUpdateCreated, error)
ServerUpdate updates the server object Use this method to update a Server object.
A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { ServerCreate(params *ServerCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServerCreateCreated, error) ServerDelete(params *ServerDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServerDeleteNoContent, error) ServerList(params *ServerListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServerListOK, error) ServerRead(params *ServerReadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServerReadOK, error) ServerUpdate(params *ServerUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ServerUpdateCreated, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new server API client.
type ServerCreateCreated ¶
type ServerCreateCreated struct {
Payload *models.ConfigCreateServerResponse
}
ServerCreateCreated describes a response with status code 201, with default header values.
POST operation response
func NewServerCreateCreated ¶
func NewServerCreateCreated() *ServerCreateCreated
NewServerCreateCreated creates a ServerCreateCreated with default headers values
func (*ServerCreateCreated) Error ¶
func (o *ServerCreateCreated) Error() string
func (*ServerCreateCreated) GetPayload ¶
func (o *ServerCreateCreated) GetPayload() *models.ConfigCreateServerResponse
type ServerCreateParams ¶
type ServerCreateParams struct { // Body. Body *models.ConfigServer Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ServerCreateParams contains all the parameters to send to the API endpoint
for the server create operation. Typically these are written to a http.Request.
func NewServerCreateParams ¶
func NewServerCreateParams() *ServerCreateParams
NewServerCreateParams creates a new ServerCreateParams 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 NewServerCreateParamsWithContext ¶
func NewServerCreateParamsWithContext(ctx context.Context) *ServerCreateParams
NewServerCreateParamsWithContext creates a new ServerCreateParams object with the ability to set a context for a request.
func NewServerCreateParamsWithHTTPClient ¶
func NewServerCreateParamsWithHTTPClient(client *http.Client) *ServerCreateParams
NewServerCreateParamsWithHTTPClient creates a new ServerCreateParams object with the ability to set a custom HTTPClient for a request.
func NewServerCreateParamsWithTimeout ¶
func NewServerCreateParamsWithTimeout(timeout time.Duration) *ServerCreateParams
NewServerCreateParamsWithTimeout creates a new ServerCreateParams object with the ability to set a timeout on a request.
func (*ServerCreateParams) SetBody ¶
func (o *ServerCreateParams) SetBody(body *models.ConfigServer)
SetBody adds the body to the server create params
func (*ServerCreateParams) SetContext ¶
func (o *ServerCreateParams) SetContext(ctx context.Context)
SetContext adds the context to the server create params
func (*ServerCreateParams) SetDefaults ¶
func (o *ServerCreateParams) SetDefaults()
SetDefaults hydrates default values in the server create params (not the query body).
All values with no default are reset to their zero value.
func (*ServerCreateParams) SetHTTPClient ¶
func (o *ServerCreateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the server create params
func (*ServerCreateParams) SetTimeout ¶
func (o *ServerCreateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the server create params
func (*ServerCreateParams) WithBody ¶
func (o *ServerCreateParams) WithBody(body *models.ConfigServer) *ServerCreateParams
WithBody adds the body to the server create params
func (*ServerCreateParams) WithContext ¶
func (o *ServerCreateParams) WithContext(ctx context.Context) *ServerCreateParams
WithContext adds the context to the server create params
func (*ServerCreateParams) WithDefaults ¶
func (o *ServerCreateParams) WithDefaults() *ServerCreateParams
WithDefaults hydrates default values in the server create params (not the query body).
All values with no default are reset to their zero value.
func (*ServerCreateParams) WithHTTPClient ¶
func (o *ServerCreateParams) WithHTTPClient(client *http.Client) *ServerCreateParams
WithHTTPClient adds the HTTPClient to the server create params
func (*ServerCreateParams) WithTimeout ¶
func (o *ServerCreateParams) WithTimeout(timeout time.Duration) *ServerCreateParams
WithTimeout adds the timeout to the server create params
func (*ServerCreateParams) WriteToRequest ¶
func (o *ServerCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ServerCreateReader ¶
type ServerCreateReader struct {
// contains filtered or unexported fields
}
ServerCreateReader is a Reader for the ServerCreate structure.
func (*ServerCreateReader) ReadResponse ¶
func (o *ServerCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ServerDeleteNoContent ¶
type ServerDeleteNoContent struct { }
ServerDeleteNoContent describes a response with status code 204, with default header values.
No Content
func NewServerDeleteNoContent ¶
func NewServerDeleteNoContent() *ServerDeleteNoContent
NewServerDeleteNoContent creates a ServerDeleteNoContent with default headers values
func (*ServerDeleteNoContent) Error ¶
func (o *ServerDeleteNoContent) Error() string
type ServerDeleteParams ¶
type ServerDeleteParams struct { /* ID. An application specific resource identity of a resource */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ServerDeleteParams contains all the parameters to send to the API endpoint
for the server delete operation. Typically these are written to a http.Request.
func NewServerDeleteParams ¶
func NewServerDeleteParams() *ServerDeleteParams
NewServerDeleteParams creates a new ServerDeleteParams 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 NewServerDeleteParamsWithContext ¶
func NewServerDeleteParamsWithContext(ctx context.Context) *ServerDeleteParams
NewServerDeleteParamsWithContext creates a new ServerDeleteParams object with the ability to set a context for a request.
func NewServerDeleteParamsWithHTTPClient ¶
func NewServerDeleteParamsWithHTTPClient(client *http.Client) *ServerDeleteParams
NewServerDeleteParamsWithHTTPClient creates a new ServerDeleteParams object with the ability to set a custom HTTPClient for a request.
func NewServerDeleteParamsWithTimeout ¶
func NewServerDeleteParamsWithTimeout(timeout time.Duration) *ServerDeleteParams
NewServerDeleteParamsWithTimeout creates a new ServerDeleteParams object with the ability to set a timeout on a request.
func (*ServerDeleteParams) SetContext ¶
func (o *ServerDeleteParams) SetContext(ctx context.Context)
SetContext adds the context to the server delete params
func (*ServerDeleteParams) SetDefaults ¶
func (o *ServerDeleteParams) SetDefaults()
SetDefaults hydrates default values in the server delete params (not the query body).
All values with no default are reset to their zero value.
func (*ServerDeleteParams) SetHTTPClient ¶
func (o *ServerDeleteParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the server delete params
func (*ServerDeleteParams) SetID ¶
func (o *ServerDeleteParams) SetID(id string)
SetID adds the id to the server delete params
func (*ServerDeleteParams) SetTimeout ¶
func (o *ServerDeleteParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the server delete params
func (*ServerDeleteParams) WithContext ¶
func (o *ServerDeleteParams) WithContext(ctx context.Context) *ServerDeleteParams
WithContext adds the context to the server delete params
func (*ServerDeleteParams) WithDefaults ¶
func (o *ServerDeleteParams) WithDefaults() *ServerDeleteParams
WithDefaults hydrates default values in the server delete params (not the query body).
All values with no default are reset to their zero value.
func (*ServerDeleteParams) WithHTTPClient ¶
func (o *ServerDeleteParams) WithHTTPClient(client *http.Client) *ServerDeleteParams
WithHTTPClient adds the HTTPClient to the server delete params
func (*ServerDeleteParams) WithID ¶
func (o *ServerDeleteParams) WithID(id string) *ServerDeleteParams
WithID adds the id to the server delete params
func (*ServerDeleteParams) WithTimeout ¶
func (o *ServerDeleteParams) WithTimeout(timeout time.Duration) *ServerDeleteParams
WithTimeout adds the timeout to the server delete params
func (*ServerDeleteParams) WriteToRequest ¶
func (o *ServerDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ServerDeleteReader ¶
type ServerDeleteReader struct {
// contains filtered or unexported fields
}
ServerDeleteReader is a Reader for the ServerDelete structure.
func (*ServerDeleteReader) ReadResponse ¶
func (o *ServerDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ServerListOK ¶
type ServerListOK struct {
Payload *models.ConfigListServerResponse
}
ServerListOK describes a response with status code 200, with default header values.
GET operation response
func NewServerListOK ¶
func NewServerListOK() *ServerListOK
NewServerListOK creates a ServerListOK with default headers values
func (*ServerListOK) Error ¶
func (o *ServerListOK) Error() string
func (*ServerListOK) GetPayload ¶
func (o *ServerListOK) GetPayload() *models.ConfigListServerResponse
type ServerListParams ¶
type ServerListParams struct { /* Fields. A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. */ Fields *string /* Filter. A collection of response resources can be filtered by a logical expression string that includes JSON tag references to values in each resource, literal values, and logical operators. If a resource does not have the specified tag, its value is assumed to be null. Literal values include numbers (integer and floating-point), and quoted (both single- or double-quoted) literal strings, and 'null'. The following operators are commonly used in filter expressions: | Op | Description | | -- | ----------- | | == | Equal | | != | Not Equal | | > | Greater Than | | >= | Greater Than or Equal To | | < | Less Than | | <= | Less Than or Equal To | | and | Logical AND | | ~ | Matches Regex | | !~ | Does Not Match Regex | | or | Logical OR | | not | Logical NOT | | () | Groupping Operators | */ Filter *string /* Limit. The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. */ Limit *int64 /* Offset. The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. */ Offset *int64 /* OrderBy. A collection of response resources can be sorted by their JSON tags. For a 'flat' resource, the tag name is straightforward. If sorting is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, its value is assumed to be null.) Specify this parameter as a comma-separated list of JSON tag names. The sort direction can be specified by a suffix separated by whitespace before the tag name. The suffix 'asc' sorts the data in ascending order. The suffix 'desc' sorts the data in descending order. If no suffix is specified the data is sorted in ascending order. */ OrderBy *string /* PageToken. The service-defined string used to identify a page of resources. A null value indicates the first page. */ PageToken *string /* Tfilter. This parameter is used for filtering by tags. */ Tfilter *string /* TorderBy. This parameter is used for sorting by tags. */ TorderBy *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ServerListParams contains all the parameters to send to the API endpoint
for the server list operation. Typically these are written to a http.Request.
func NewServerListParams ¶
func NewServerListParams() *ServerListParams
NewServerListParams creates a new ServerListParams 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 NewServerListParamsWithContext ¶
func NewServerListParamsWithContext(ctx context.Context) *ServerListParams
NewServerListParamsWithContext creates a new ServerListParams object with the ability to set a context for a request.
func NewServerListParamsWithHTTPClient ¶
func NewServerListParamsWithHTTPClient(client *http.Client) *ServerListParams
NewServerListParamsWithHTTPClient creates a new ServerListParams object with the ability to set a custom HTTPClient for a request.
func NewServerListParamsWithTimeout ¶
func NewServerListParamsWithTimeout(timeout time.Duration) *ServerListParams
NewServerListParamsWithTimeout creates a new ServerListParams object with the ability to set a timeout on a request.
func (*ServerListParams) SetContext ¶
func (o *ServerListParams) SetContext(ctx context.Context)
SetContext adds the context to the server list params
func (*ServerListParams) SetDefaults ¶
func (o *ServerListParams) SetDefaults()
SetDefaults hydrates default values in the server list params (not the query body).
All values with no default are reset to their zero value.
func (*ServerListParams) SetFields ¶
func (o *ServerListParams) SetFields(fields *string)
SetFields adds the fields to the server list params
func (*ServerListParams) SetFilter ¶
func (o *ServerListParams) SetFilter(filter *string)
SetFilter adds the filter to the server list params
func (*ServerListParams) SetHTTPClient ¶
func (o *ServerListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the server list params
func (*ServerListParams) SetLimit ¶
func (o *ServerListParams) SetLimit(limit *int64)
SetLimit adds the limit to the server list params
func (*ServerListParams) SetOffset ¶
func (o *ServerListParams) SetOffset(offset *int64)
SetOffset adds the offset to the server list params
func (*ServerListParams) SetOrderBy ¶
func (o *ServerListParams) SetOrderBy(orderBy *string)
SetOrderBy adds the orderBy to the server list params
func (*ServerListParams) SetPageToken ¶
func (o *ServerListParams) SetPageToken(pageToken *string)
SetPageToken adds the pageToken to the server list params
func (*ServerListParams) SetTfilter ¶
func (o *ServerListParams) SetTfilter(tfilter *string)
SetTfilter adds the tfilter to the server list params
func (*ServerListParams) SetTimeout ¶
func (o *ServerListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the server list params
func (*ServerListParams) SetTorderBy ¶
func (o *ServerListParams) SetTorderBy(torderBy *string)
SetTorderBy adds the torderBy to the server list params
func (*ServerListParams) WithContext ¶
func (o *ServerListParams) WithContext(ctx context.Context) *ServerListParams
WithContext adds the context to the server list params
func (*ServerListParams) WithDefaults ¶
func (o *ServerListParams) WithDefaults() *ServerListParams
WithDefaults hydrates default values in the server list params (not the query body).
All values with no default are reset to their zero value.
func (*ServerListParams) WithFields ¶
func (o *ServerListParams) WithFields(fields *string) *ServerListParams
WithFields adds the fields to the server list params
func (*ServerListParams) WithFilter ¶
func (o *ServerListParams) WithFilter(filter *string) *ServerListParams
WithFilter adds the filter to the server list params
func (*ServerListParams) WithHTTPClient ¶
func (o *ServerListParams) WithHTTPClient(client *http.Client) *ServerListParams
WithHTTPClient adds the HTTPClient to the server list params
func (*ServerListParams) WithLimit ¶
func (o *ServerListParams) WithLimit(limit *int64) *ServerListParams
WithLimit adds the limit to the server list params
func (*ServerListParams) WithOffset ¶
func (o *ServerListParams) WithOffset(offset *int64) *ServerListParams
WithOffset adds the offset to the server list params
func (*ServerListParams) WithOrderBy ¶
func (o *ServerListParams) WithOrderBy(orderBy *string) *ServerListParams
WithOrderBy adds the orderBy to the server list params
func (*ServerListParams) WithPageToken ¶
func (o *ServerListParams) WithPageToken(pageToken *string) *ServerListParams
WithPageToken adds the pageToken to the server list params
func (*ServerListParams) WithTfilter ¶
func (o *ServerListParams) WithTfilter(tfilter *string) *ServerListParams
WithTfilter adds the tfilter to the server list params
func (*ServerListParams) WithTimeout ¶
func (o *ServerListParams) WithTimeout(timeout time.Duration) *ServerListParams
WithTimeout adds the timeout to the server list params
func (*ServerListParams) WithTorderBy ¶
func (o *ServerListParams) WithTorderBy(torderBy *string) *ServerListParams
WithTorderBy adds the torderBy to the server list params
func (*ServerListParams) WriteToRequest ¶
func (o *ServerListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ServerListReader ¶
type ServerListReader struct {
// contains filtered or unexported fields
}
ServerListReader is a Reader for the ServerList structure.
func (*ServerListReader) ReadResponse ¶
func (o *ServerListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ServerReadOK ¶
type ServerReadOK struct {
Payload *models.ConfigReadServerResponse
}
ServerReadOK describes a response with status code 200, with default header values.
GET operation response
func NewServerReadOK ¶
func NewServerReadOK() *ServerReadOK
NewServerReadOK creates a ServerReadOK with default headers values
func (*ServerReadOK) Error ¶
func (o *ServerReadOK) Error() string
func (*ServerReadOK) GetPayload ¶
func (o *ServerReadOK) GetPayload() *models.ConfigReadServerResponse
type ServerReadParams ¶
type ServerReadParams struct { /* Fields. A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. */ Fields *string /* ID. An application specific resource identity of a resource */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ServerReadParams contains all the parameters to send to the API endpoint
for the server read operation. Typically these are written to a http.Request.
func NewServerReadParams ¶
func NewServerReadParams() *ServerReadParams
NewServerReadParams creates a new ServerReadParams 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 NewServerReadParamsWithContext ¶
func NewServerReadParamsWithContext(ctx context.Context) *ServerReadParams
NewServerReadParamsWithContext creates a new ServerReadParams object with the ability to set a context for a request.
func NewServerReadParamsWithHTTPClient ¶
func NewServerReadParamsWithHTTPClient(client *http.Client) *ServerReadParams
NewServerReadParamsWithHTTPClient creates a new ServerReadParams object with the ability to set a custom HTTPClient for a request.
func NewServerReadParamsWithTimeout ¶
func NewServerReadParamsWithTimeout(timeout time.Duration) *ServerReadParams
NewServerReadParamsWithTimeout creates a new ServerReadParams object with the ability to set a timeout on a request.
func (*ServerReadParams) SetContext ¶
func (o *ServerReadParams) SetContext(ctx context.Context)
SetContext adds the context to the server read params
func (*ServerReadParams) SetDefaults ¶
func (o *ServerReadParams) SetDefaults()
SetDefaults hydrates default values in the server read params (not the query body).
All values with no default are reset to their zero value.
func (*ServerReadParams) SetFields ¶
func (o *ServerReadParams) SetFields(fields *string)
SetFields adds the fields to the server read params
func (*ServerReadParams) SetHTTPClient ¶
func (o *ServerReadParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the server read params
func (*ServerReadParams) SetID ¶
func (o *ServerReadParams) SetID(id string)
SetID adds the id to the server read params
func (*ServerReadParams) SetTimeout ¶
func (o *ServerReadParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the server read params
func (*ServerReadParams) WithContext ¶
func (o *ServerReadParams) WithContext(ctx context.Context) *ServerReadParams
WithContext adds the context to the server read params
func (*ServerReadParams) WithDefaults ¶
func (o *ServerReadParams) WithDefaults() *ServerReadParams
WithDefaults hydrates default values in the server read params (not the query body).
All values with no default are reset to their zero value.
func (*ServerReadParams) WithFields ¶
func (o *ServerReadParams) WithFields(fields *string) *ServerReadParams
WithFields adds the fields to the server read params
func (*ServerReadParams) WithHTTPClient ¶
func (o *ServerReadParams) WithHTTPClient(client *http.Client) *ServerReadParams
WithHTTPClient adds the HTTPClient to the server read params
func (*ServerReadParams) WithID ¶
func (o *ServerReadParams) WithID(id string) *ServerReadParams
WithID adds the id to the server read params
func (*ServerReadParams) WithTimeout ¶
func (o *ServerReadParams) WithTimeout(timeout time.Duration) *ServerReadParams
WithTimeout adds the timeout to the server read params
func (*ServerReadParams) WriteToRequest ¶
func (o *ServerReadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ServerReadReader ¶
type ServerReadReader struct {
// contains filtered or unexported fields
}
ServerReadReader is a Reader for the ServerRead structure.
func (*ServerReadReader) ReadResponse ¶
func (o *ServerReadReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ServerUpdateCreated ¶
type ServerUpdateCreated struct {
Payload *models.ConfigUpdateServerResponse
}
ServerUpdateCreated describes a response with status code 201, with default header values.
PATCH operation response
func NewServerUpdateCreated ¶
func NewServerUpdateCreated() *ServerUpdateCreated
NewServerUpdateCreated creates a ServerUpdateCreated with default headers values
func (*ServerUpdateCreated) Error ¶
func (o *ServerUpdateCreated) Error() string
func (*ServerUpdateCreated) GetPayload ¶
func (o *ServerUpdateCreated) GetPayload() *models.ConfigUpdateServerResponse
type ServerUpdateParams ¶
type ServerUpdateParams struct { // Body. Body *models.ConfigServer /* ID. An application specific resource identity of a resource */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ServerUpdateParams contains all the parameters to send to the API endpoint
for the server update operation. Typically these are written to a http.Request.
func NewServerUpdateParams ¶
func NewServerUpdateParams() *ServerUpdateParams
NewServerUpdateParams creates a new ServerUpdateParams 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 NewServerUpdateParamsWithContext ¶
func NewServerUpdateParamsWithContext(ctx context.Context) *ServerUpdateParams
NewServerUpdateParamsWithContext creates a new ServerUpdateParams object with the ability to set a context for a request.
func NewServerUpdateParamsWithHTTPClient ¶
func NewServerUpdateParamsWithHTTPClient(client *http.Client) *ServerUpdateParams
NewServerUpdateParamsWithHTTPClient creates a new ServerUpdateParams object with the ability to set a custom HTTPClient for a request.
func NewServerUpdateParamsWithTimeout ¶
func NewServerUpdateParamsWithTimeout(timeout time.Duration) *ServerUpdateParams
NewServerUpdateParamsWithTimeout creates a new ServerUpdateParams object with the ability to set a timeout on a request.
func (*ServerUpdateParams) SetBody ¶
func (o *ServerUpdateParams) SetBody(body *models.ConfigServer)
SetBody adds the body to the server update params
func (*ServerUpdateParams) SetContext ¶
func (o *ServerUpdateParams) SetContext(ctx context.Context)
SetContext adds the context to the server update params
func (*ServerUpdateParams) SetDefaults ¶
func (o *ServerUpdateParams) SetDefaults()
SetDefaults hydrates default values in the server update params (not the query body).
All values with no default are reset to their zero value.
func (*ServerUpdateParams) SetHTTPClient ¶
func (o *ServerUpdateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the server update params
func (*ServerUpdateParams) SetID ¶
func (o *ServerUpdateParams) SetID(id string)
SetID adds the id to the server update params
func (*ServerUpdateParams) SetTimeout ¶
func (o *ServerUpdateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the server update params
func (*ServerUpdateParams) WithBody ¶
func (o *ServerUpdateParams) WithBody(body *models.ConfigServer) *ServerUpdateParams
WithBody adds the body to the server update params
func (*ServerUpdateParams) WithContext ¶
func (o *ServerUpdateParams) WithContext(ctx context.Context) *ServerUpdateParams
WithContext adds the context to the server update params
func (*ServerUpdateParams) WithDefaults ¶
func (o *ServerUpdateParams) WithDefaults() *ServerUpdateParams
WithDefaults hydrates default values in the server update params (not the query body).
All values with no default are reset to their zero value.
func (*ServerUpdateParams) WithHTTPClient ¶
func (o *ServerUpdateParams) WithHTTPClient(client *http.Client) *ServerUpdateParams
WithHTTPClient adds the HTTPClient to the server update params
func (*ServerUpdateParams) WithID ¶
func (o *ServerUpdateParams) WithID(id string) *ServerUpdateParams
WithID adds the id to the server update params
func (*ServerUpdateParams) WithTimeout ¶
func (o *ServerUpdateParams) WithTimeout(timeout time.Duration) *ServerUpdateParams
WithTimeout adds the timeout to the server update params
func (*ServerUpdateParams) WriteToRequest ¶
func (o *ServerUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ServerUpdateReader ¶
type ServerUpdateReader struct {
// contains filtered or unexported fields
}
ServerUpdateReader is a Reader for the ServerUpdate structure.
func (*ServerUpdateReader) ReadResponse ¶
func (o *ServerUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.