Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetV1InfrastructuresOK
- func (o *GetV1InfrastructuresOK) Error() string
- func (o *GetV1InfrastructuresOK) GetPayload() *models.InfrastructureSearchEntity
- func (o *GetV1InfrastructuresOK) IsClientError() bool
- func (o *GetV1InfrastructuresOK) IsCode(code int) bool
- func (o *GetV1InfrastructuresOK) IsRedirect() bool
- func (o *GetV1InfrastructuresOK) IsServerError() bool
- func (o *GetV1InfrastructuresOK) IsSuccess() bool
- func (o *GetV1InfrastructuresOK) String() string
- type GetV1InfrastructuresParams
- func NewGetV1InfrastructuresParams() *GetV1InfrastructuresParams
- func NewGetV1InfrastructuresParamsWithContext(ctx context.Context) *GetV1InfrastructuresParams
- func NewGetV1InfrastructuresParamsWithHTTPClient(client *http.Client) *GetV1InfrastructuresParams
- func NewGetV1InfrastructuresParamsWithTimeout(timeout time.Duration) *GetV1InfrastructuresParams
- func (o *GetV1InfrastructuresParams) SetContext(ctx context.Context)
- func (o *GetV1InfrastructuresParams) SetDefaults()
- func (o *GetV1InfrastructuresParams) SetHTTPClient(client *http.Client)
- func (o *GetV1InfrastructuresParams) SetOmitFor(omitFor *string)
- func (o *GetV1InfrastructuresParams) SetPage(page *int32)
- func (o *GetV1InfrastructuresParams) SetPerPage(perPage *int32)
- func (o *GetV1InfrastructuresParams) SetQuery(query *string)
- func (o *GetV1InfrastructuresParams) SetTimeout(timeout time.Duration)
- func (o *GetV1InfrastructuresParams) SetType(typeVar *string)
- func (o *GetV1InfrastructuresParams) WithContext(ctx context.Context) *GetV1InfrastructuresParams
- func (o *GetV1InfrastructuresParams) WithDefaults() *GetV1InfrastructuresParams
- func (o *GetV1InfrastructuresParams) WithHTTPClient(client *http.Client) *GetV1InfrastructuresParams
- func (o *GetV1InfrastructuresParams) WithOmitFor(omitFor *string) *GetV1InfrastructuresParams
- func (o *GetV1InfrastructuresParams) WithPage(page *int32) *GetV1InfrastructuresParams
- func (o *GetV1InfrastructuresParams) WithPerPage(perPage *int32) *GetV1InfrastructuresParams
- func (o *GetV1InfrastructuresParams) WithQuery(query *string) *GetV1InfrastructuresParams
- func (o *GetV1InfrastructuresParams) WithTimeout(timeout time.Duration) *GetV1InfrastructuresParams
- func (o *GetV1InfrastructuresParams) WithType(typeVar *string) *GetV1InfrastructuresParams
- func (o *GetV1InfrastructuresParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetV1InfrastructuresReader
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 infrastructures API
func (*Client) GetV1Infrastructures ¶
func (a *Client) GetV1Infrastructures(params *GetV1InfrastructuresParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1InfrastructuresOK, error)
GetV1Infrastructures lists functionality service and environment objects
Lists functionality, service and environment objects
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 { GetV1Infrastructures(params *GetV1InfrastructuresParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1InfrastructuresOK, 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 infrastructures API client.
type GetV1InfrastructuresOK ¶
type GetV1InfrastructuresOK struct {
Payload *models.InfrastructureSearchEntity
}
GetV1InfrastructuresOK describes a response with status code 200, with default header values.
Lists functionality, service and environment objects
func NewGetV1InfrastructuresOK ¶
func NewGetV1InfrastructuresOK() *GetV1InfrastructuresOK
NewGetV1InfrastructuresOK creates a GetV1InfrastructuresOK with default headers values
func (*GetV1InfrastructuresOK) Error ¶
func (o *GetV1InfrastructuresOK) Error() string
func (*GetV1InfrastructuresOK) GetPayload ¶
func (o *GetV1InfrastructuresOK) GetPayload() *models.InfrastructureSearchEntity
func (*GetV1InfrastructuresOK) IsClientError ¶
func (o *GetV1InfrastructuresOK) IsClientError() bool
IsClientError returns true when this get v1 infrastructures o k response has a 4xx status code
func (*GetV1InfrastructuresOK) IsCode ¶
func (o *GetV1InfrastructuresOK) IsCode(code int) bool
IsCode returns true when this get v1 infrastructures o k response a status code equal to that given
func (*GetV1InfrastructuresOK) IsRedirect ¶
func (o *GetV1InfrastructuresOK) IsRedirect() bool
IsRedirect returns true when this get v1 infrastructures o k response has a 3xx status code
func (*GetV1InfrastructuresOK) IsServerError ¶
func (o *GetV1InfrastructuresOK) IsServerError() bool
IsServerError returns true when this get v1 infrastructures o k response has a 5xx status code
func (*GetV1InfrastructuresOK) IsSuccess ¶
func (o *GetV1InfrastructuresOK) IsSuccess() bool
IsSuccess returns true when this get v1 infrastructures o k response has a 2xx status code
func (*GetV1InfrastructuresOK) String ¶
func (o *GetV1InfrastructuresOK) String() string
type GetV1InfrastructuresParams ¶
type GetV1InfrastructuresParams struct { /* OmitFor. Omit for any infrastructure that is added to an incident using the format "incident/{incident_id}" */ OmitFor *string // Page. // // Format: int32 Page *int32 // PerPage. // // Format: int32 PerPage *int32 /* Query. A query to search infrastructures by their name */ Query *string /* Type. Restrict infrastructure search to given type. */ Type *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetV1InfrastructuresParams contains all the parameters to send to the API endpoint
for the get v1 infrastructures operation. Typically these are written to a http.Request.
func NewGetV1InfrastructuresParams ¶
func NewGetV1InfrastructuresParams() *GetV1InfrastructuresParams
NewGetV1InfrastructuresParams creates a new GetV1InfrastructuresParams 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 NewGetV1InfrastructuresParamsWithContext ¶
func NewGetV1InfrastructuresParamsWithContext(ctx context.Context) *GetV1InfrastructuresParams
NewGetV1InfrastructuresParamsWithContext creates a new GetV1InfrastructuresParams object with the ability to set a context for a request.
func NewGetV1InfrastructuresParamsWithHTTPClient ¶
func NewGetV1InfrastructuresParamsWithHTTPClient(client *http.Client) *GetV1InfrastructuresParams
NewGetV1InfrastructuresParamsWithHTTPClient creates a new GetV1InfrastructuresParams object with the ability to set a custom HTTPClient for a request.
func NewGetV1InfrastructuresParamsWithTimeout ¶
func NewGetV1InfrastructuresParamsWithTimeout(timeout time.Duration) *GetV1InfrastructuresParams
NewGetV1InfrastructuresParamsWithTimeout creates a new GetV1InfrastructuresParams object with the ability to set a timeout on a request.
func (*GetV1InfrastructuresParams) SetContext ¶
func (o *GetV1InfrastructuresParams) SetContext(ctx context.Context)
SetContext adds the context to the get v1 infrastructures params
func (*GetV1InfrastructuresParams) SetDefaults ¶
func (o *GetV1InfrastructuresParams) SetDefaults()
SetDefaults hydrates default values in the get v1 infrastructures params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1InfrastructuresParams) SetHTTPClient ¶
func (o *GetV1InfrastructuresParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get v1 infrastructures params
func (*GetV1InfrastructuresParams) SetOmitFor ¶
func (o *GetV1InfrastructuresParams) SetOmitFor(omitFor *string)
SetOmitFor adds the omitFor to the get v1 infrastructures params
func (*GetV1InfrastructuresParams) SetPage ¶
func (o *GetV1InfrastructuresParams) SetPage(page *int32)
SetPage adds the page to the get v1 infrastructures params
func (*GetV1InfrastructuresParams) SetPerPage ¶
func (o *GetV1InfrastructuresParams) SetPerPage(perPage *int32)
SetPerPage adds the perPage to the get v1 infrastructures params
func (*GetV1InfrastructuresParams) SetQuery ¶
func (o *GetV1InfrastructuresParams) SetQuery(query *string)
SetQuery adds the query to the get v1 infrastructures params
func (*GetV1InfrastructuresParams) SetTimeout ¶
func (o *GetV1InfrastructuresParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get v1 infrastructures params
func (*GetV1InfrastructuresParams) SetType ¶
func (o *GetV1InfrastructuresParams) SetType(typeVar *string)
SetType adds the type to the get v1 infrastructures params
func (*GetV1InfrastructuresParams) WithContext ¶
func (o *GetV1InfrastructuresParams) WithContext(ctx context.Context) *GetV1InfrastructuresParams
WithContext adds the context to the get v1 infrastructures params
func (*GetV1InfrastructuresParams) WithDefaults ¶
func (o *GetV1InfrastructuresParams) WithDefaults() *GetV1InfrastructuresParams
WithDefaults hydrates default values in the get v1 infrastructures params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1InfrastructuresParams) WithHTTPClient ¶
func (o *GetV1InfrastructuresParams) WithHTTPClient(client *http.Client) *GetV1InfrastructuresParams
WithHTTPClient adds the HTTPClient to the get v1 infrastructures params
func (*GetV1InfrastructuresParams) WithOmitFor ¶
func (o *GetV1InfrastructuresParams) WithOmitFor(omitFor *string) *GetV1InfrastructuresParams
WithOmitFor adds the omitFor to the get v1 infrastructures params
func (*GetV1InfrastructuresParams) WithPage ¶
func (o *GetV1InfrastructuresParams) WithPage(page *int32) *GetV1InfrastructuresParams
WithPage adds the page to the get v1 infrastructures params
func (*GetV1InfrastructuresParams) WithPerPage ¶
func (o *GetV1InfrastructuresParams) WithPerPage(perPage *int32) *GetV1InfrastructuresParams
WithPerPage adds the perPage to the get v1 infrastructures params
func (*GetV1InfrastructuresParams) WithQuery ¶
func (o *GetV1InfrastructuresParams) WithQuery(query *string) *GetV1InfrastructuresParams
WithQuery adds the query to the get v1 infrastructures params
func (*GetV1InfrastructuresParams) WithTimeout ¶
func (o *GetV1InfrastructuresParams) WithTimeout(timeout time.Duration) *GetV1InfrastructuresParams
WithTimeout adds the timeout to the get v1 infrastructures params
func (*GetV1InfrastructuresParams) WithType ¶
func (o *GetV1InfrastructuresParams) WithType(typeVar *string) *GetV1InfrastructuresParams
WithType adds the typeVar to the get v1 infrastructures params
func (*GetV1InfrastructuresParams) WriteToRequest ¶
func (o *GetV1InfrastructuresParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetV1InfrastructuresReader ¶
type GetV1InfrastructuresReader struct {
// contains filtered or unexported fields
}
GetV1InfrastructuresReader is a Reader for the GetV1Infrastructures structure.
func (*GetV1InfrastructuresReader) ReadResponse ¶
func (o *GetV1InfrastructuresReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.