infrastructures

package
v0.0.0-...-d3fc958 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 (*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

WithContext adds the context to the get v1 infrastructures params

func (*GetV1InfrastructuresParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the get v1 infrastructures params

func (*GetV1InfrastructuresParams) WithOmitFor

WithOmitFor adds the omitFor to the get v1 infrastructures params

func (*GetV1InfrastructuresParams) WithPage

WithPage adds the page to the get v1 infrastructures params

func (*GetV1InfrastructuresParams) WithPerPage

WithPerPage adds the perPage to the get v1 infrastructures params

func (*GetV1InfrastructuresParams) WithQuery

WithQuery adds the query to the get v1 infrastructures params

func (*GetV1InfrastructuresParams) WithTimeout

WithTimeout adds the timeout to the get v1 infrastructures params

func (*GetV1InfrastructuresParams) WithType

WithType adds the typeVar to the get v1 infrastructures params

func (*GetV1InfrastructuresParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL