Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type PrometheusResourceGetGetOK
- func (o *PrometheusResourceGetGetOK) Code() int
- func (o *PrometheusResourceGetGetOK) Error() string
- func (o *PrometheusResourceGetGetOK) GetPayload() *models.Representation
- func (o *PrometheusResourceGetGetOK) IsClientError() bool
- func (o *PrometheusResourceGetGetOK) IsCode(code int) bool
- func (o *PrometheusResourceGetGetOK) IsRedirect() bool
- func (o *PrometheusResourceGetGetOK) IsServerError() bool
- func (o *PrometheusResourceGetGetOK) IsSuccess() bool
- func (o *PrometheusResourceGetGetOK) String() string
- type PrometheusResourceGetGetParams
- func NewPrometheusResourceGetGetParams() *PrometheusResourceGetGetParams
- func NewPrometheusResourceGetGetParamsWithContext(ctx context.Context) *PrometheusResourceGetGetParams
- func NewPrometheusResourceGetGetParamsWithHTTPClient(client *http.Client) *PrometheusResourceGetGetParams
- func NewPrometheusResourceGetGetParamsWithTimeout(timeout time.Duration) *PrometheusResourceGetGetParams
- func (o *PrometheusResourceGetGetParams) SetContext(ctx context.Context)
- func (o *PrometheusResourceGetGetParams) SetDefaults()
- func (o *PrometheusResourceGetGetParams) SetHTTPClient(client *http.Client)
- func (o *PrometheusResourceGetGetParams) SetTimeout(timeout time.Duration)
- func (o *PrometheusResourceGetGetParams) WithContext(ctx context.Context) *PrometheusResourceGetGetParams
- func (o *PrometheusResourceGetGetParams) WithDefaults() *PrometheusResourceGetGetParams
- func (o *PrometheusResourceGetGetParams) WithHTTPClient(client *http.Client) *PrometheusResourceGetGetParams
- func (o *PrometheusResourceGetGetParams) WithTimeout(timeout time.Duration) *PrometheusResourceGetGetParams
- func (o *PrometheusResourceGetGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PrometheusResourceGetGetReader
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 operations API
func (*Client) PrometheusResourceGetGet ¶
func (a *Client) PrometheusResourceGetGet(params *PrometheusResourceGetGetParams, opts ...ClientOption) (*PrometheusResourceGetGetOK, error)
PrometheusResourceGetGet prometheus resource get get API
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 { PrometheusResourceGetGet(params *PrometheusResourceGetGetParams, opts ...ClientOption) (*PrometheusResourceGetGetOK, 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 operations API client.
type PrometheusResourceGetGetOK ¶
type PrometheusResourceGetGetOK struct {
Payload *models.Representation
}
PrometheusResourceGetGetOK describes a response with status code 200, with default header values.
successful operation
func NewPrometheusResourceGetGetOK ¶
func NewPrometheusResourceGetGetOK() *PrometheusResourceGetGetOK
NewPrometheusResourceGetGetOK creates a PrometheusResourceGetGetOK with default headers values
func (*PrometheusResourceGetGetOK) Code ¶
func (o *PrometheusResourceGetGetOK) Code() int
Code gets the status code for the prometheus resource get get o k response
func (*PrometheusResourceGetGetOK) Error ¶
func (o *PrometheusResourceGetGetOK) Error() string
func (*PrometheusResourceGetGetOK) GetPayload ¶
func (o *PrometheusResourceGetGetOK) GetPayload() *models.Representation
func (*PrometheusResourceGetGetOK) IsClientError ¶
func (o *PrometheusResourceGetGetOK) IsClientError() bool
IsClientError returns true when this prometheus resource get get o k response has a 4xx status code
func (*PrometheusResourceGetGetOK) IsCode ¶
func (o *PrometheusResourceGetGetOK) IsCode(code int) bool
IsCode returns true when this prometheus resource get get o k response a status code equal to that given
func (*PrometheusResourceGetGetOK) IsRedirect ¶
func (o *PrometheusResourceGetGetOK) IsRedirect() bool
IsRedirect returns true when this prometheus resource get get o k response has a 3xx status code
func (*PrometheusResourceGetGetOK) IsServerError ¶
func (o *PrometheusResourceGetGetOK) IsServerError() bool
IsServerError returns true when this prometheus resource get get o k response has a 5xx status code
func (*PrometheusResourceGetGetOK) IsSuccess ¶
func (o *PrometheusResourceGetGetOK) IsSuccess() bool
IsSuccess returns true when this prometheus resource get get o k response has a 2xx status code
func (*PrometheusResourceGetGetOK) String ¶
func (o *PrometheusResourceGetGetOK) String() string
type PrometheusResourceGetGetParams ¶
type PrometheusResourceGetGetParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PrometheusResourceGetGetParams contains all the parameters to send to the API endpoint
for the prometheus resource get get operation. Typically these are written to a http.Request.
func NewPrometheusResourceGetGetParams ¶
func NewPrometheusResourceGetGetParams() *PrometheusResourceGetGetParams
NewPrometheusResourceGetGetParams creates a new PrometheusResourceGetGetParams 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 NewPrometheusResourceGetGetParamsWithContext ¶
func NewPrometheusResourceGetGetParamsWithContext(ctx context.Context) *PrometheusResourceGetGetParams
NewPrometheusResourceGetGetParamsWithContext creates a new PrometheusResourceGetGetParams object with the ability to set a context for a request.
func NewPrometheusResourceGetGetParamsWithHTTPClient ¶
func NewPrometheusResourceGetGetParamsWithHTTPClient(client *http.Client) *PrometheusResourceGetGetParams
NewPrometheusResourceGetGetParamsWithHTTPClient creates a new PrometheusResourceGetGetParams object with the ability to set a custom HTTPClient for a request.
func NewPrometheusResourceGetGetParamsWithTimeout ¶
func NewPrometheusResourceGetGetParamsWithTimeout(timeout time.Duration) *PrometheusResourceGetGetParams
NewPrometheusResourceGetGetParamsWithTimeout creates a new PrometheusResourceGetGetParams object with the ability to set a timeout on a request.
func (*PrometheusResourceGetGetParams) SetContext ¶
func (o *PrometheusResourceGetGetParams) SetContext(ctx context.Context)
SetContext adds the context to the prometheus resource get get params
func (*PrometheusResourceGetGetParams) SetDefaults ¶
func (o *PrometheusResourceGetGetParams) SetDefaults()
SetDefaults hydrates default values in the prometheus resource get get params (not the query body).
All values with no default are reset to their zero value.
func (*PrometheusResourceGetGetParams) SetHTTPClient ¶
func (o *PrometheusResourceGetGetParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the prometheus resource get get params
func (*PrometheusResourceGetGetParams) SetTimeout ¶
func (o *PrometheusResourceGetGetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the prometheus resource get get params
func (*PrometheusResourceGetGetParams) WithContext ¶
func (o *PrometheusResourceGetGetParams) WithContext(ctx context.Context) *PrometheusResourceGetGetParams
WithContext adds the context to the prometheus resource get get params
func (*PrometheusResourceGetGetParams) WithDefaults ¶
func (o *PrometheusResourceGetGetParams) WithDefaults() *PrometheusResourceGetGetParams
WithDefaults hydrates default values in the prometheus resource get get params (not the query body).
All values with no default are reset to their zero value.
func (*PrometheusResourceGetGetParams) WithHTTPClient ¶
func (o *PrometheusResourceGetGetParams) WithHTTPClient(client *http.Client) *PrometheusResourceGetGetParams
WithHTTPClient adds the HTTPClient to the prometheus resource get get params
func (*PrometheusResourceGetGetParams) WithTimeout ¶
func (o *PrometheusResourceGetGetParams) WithTimeout(timeout time.Duration) *PrometheusResourceGetGetParams
WithTimeout adds the timeout to the prometheus resource get get params
func (*PrometheusResourceGetGetParams) WriteToRequest ¶
func (o *PrometheusResourceGetGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PrometheusResourceGetGetReader ¶
type PrometheusResourceGetGetReader struct {
// contains filtered or unexported fields
}
PrometheusResourceGetGetReader is a Reader for the PrometheusResourceGetGet structure.
func (*PrometheusResourceGetGetReader) ReadResponse ¶
func (o *PrometheusResourceGetGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.