rulegroup

package
v0.0.0-...-192cafe Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 10 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 rulegroup API

func (*Client) CreateRuleGroup

func (a *Client) CreateRuleGroup(params *CreateRuleGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateRuleGroupCreated, error)

CreateRuleGroup Creates a rule group that will belong to the given cluster

func (*Client) DeleteRuleGroup

func (a *Client) DeleteRuleGroup(params *DeleteRuleGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteRuleGroupOK, error)

DeleteRuleGroup deletes the given rule group that belongs to the cluster

func (*Client) GetRuleGroup

func (a *Client) GetRuleGroup(params *GetRuleGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRuleGroupOK, error)

GetRuleGroup gets a specified rule group for the given cluster

func (*Client) ListRuleGroups

func (a *Client) ListRuleGroups(params *ListRuleGroupsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListRuleGroupsOK, error)

ListRuleGroups Lists rule groups that belong to the given cluster

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateRuleGroup

func (a *Client) UpdateRuleGroup(params *UpdateRuleGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateRuleGroupOK, error)

UpdateRuleGroup updates the specified rule group for the given cluster

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateRuleGroup(params *CreateRuleGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateRuleGroupCreated, error)

	DeleteRuleGroup(params *DeleteRuleGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteRuleGroupOK, error)

	GetRuleGroup(params *GetRuleGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRuleGroupOK, error)

	ListRuleGroups(params *ListRuleGroupsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListRuleGroupsOK, error)

	UpdateRuleGroup(params *UpdateRuleGroupParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateRuleGroupOK, 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 rulegroup API client.

type CreateRuleGroupCreated

type CreateRuleGroupCreated struct {
	Payload *models.RuleGroup
}
CreateRuleGroupCreated describes a response with status code 201, with default header values.

RuleGroup

func NewCreateRuleGroupCreated

func NewCreateRuleGroupCreated() *CreateRuleGroupCreated

NewCreateRuleGroupCreated creates a CreateRuleGroupCreated with default headers values

func (*CreateRuleGroupCreated) Error

func (o *CreateRuleGroupCreated) Error() string

func (*CreateRuleGroupCreated) GetPayload

func (o *CreateRuleGroupCreated) GetPayload() *models.RuleGroup

type CreateRuleGroupDefault

type CreateRuleGroupDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
CreateRuleGroupDefault describes a response with status code -1, with default header values.

errorResponse

func NewCreateRuleGroupDefault

func NewCreateRuleGroupDefault(code int) *CreateRuleGroupDefault

NewCreateRuleGroupDefault creates a CreateRuleGroupDefault with default headers values

func (*CreateRuleGroupDefault) Code

func (o *CreateRuleGroupDefault) Code() int

Code gets the status code for the create rule group default response

func (*CreateRuleGroupDefault) Error

func (o *CreateRuleGroupDefault) Error() string

func (*CreateRuleGroupDefault) GetPayload

func (o *CreateRuleGroupDefault) GetPayload() *models.ErrorResponse

type CreateRuleGroupForbidden

type CreateRuleGroupForbidden struct {
}
CreateRuleGroupForbidden describes a response with status code 403, with default header values.

EmptyResponse is a empty response

func NewCreateRuleGroupForbidden

func NewCreateRuleGroupForbidden() *CreateRuleGroupForbidden

NewCreateRuleGroupForbidden creates a CreateRuleGroupForbidden with default headers values

func (*CreateRuleGroupForbidden) Error

func (o *CreateRuleGroupForbidden) Error() string

type CreateRuleGroupParams

type CreateRuleGroupParams struct {

	// Body.
	Body *models.RuleGroup

	// ClusterID.
	ClusterID string

	// ProjectID.
	ProjectID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateRuleGroupParams contains all the parameters to send to the API endpoint

for the create rule group operation.

Typically these are written to a http.Request.

func NewCreateRuleGroupParams

func NewCreateRuleGroupParams() *CreateRuleGroupParams

NewCreateRuleGroupParams creates a new CreateRuleGroupParams 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 NewCreateRuleGroupParamsWithContext

func NewCreateRuleGroupParamsWithContext(ctx context.Context) *CreateRuleGroupParams

NewCreateRuleGroupParamsWithContext creates a new CreateRuleGroupParams object with the ability to set a context for a request.

func NewCreateRuleGroupParamsWithHTTPClient

func NewCreateRuleGroupParamsWithHTTPClient(client *http.Client) *CreateRuleGroupParams

NewCreateRuleGroupParamsWithHTTPClient creates a new CreateRuleGroupParams object with the ability to set a custom HTTPClient for a request.

func NewCreateRuleGroupParamsWithTimeout

func NewCreateRuleGroupParamsWithTimeout(timeout time.Duration) *CreateRuleGroupParams

NewCreateRuleGroupParamsWithTimeout creates a new CreateRuleGroupParams object with the ability to set a timeout on a request.

func (*CreateRuleGroupParams) SetBody

func (o *CreateRuleGroupParams) SetBody(body *models.RuleGroup)

SetBody adds the body to the create rule group params

func (*CreateRuleGroupParams) SetClusterID

func (o *CreateRuleGroupParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the create rule group params

func (*CreateRuleGroupParams) SetContext

func (o *CreateRuleGroupParams) SetContext(ctx context.Context)

SetContext adds the context to the create rule group params

func (*CreateRuleGroupParams) SetDefaults

func (o *CreateRuleGroupParams) SetDefaults()

SetDefaults hydrates default values in the create rule group params (not the query body).

All values with no default are reset to their zero value.

func (*CreateRuleGroupParams) SetHTTPClient

func (o *CreateRuleGroupParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create rule group params

func (*CreateRuleGroupParams) SetProjectID

func (o *CreateRuleGroupParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the create rule group params

func (*CreateRuleGroupParams) SetTimeout

func (o *CreateRuleGroupParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create rule group params

func (*CreateRuleGroupParams) WithBody

WithBody adds the body to the create rule group params

func (*CreateRuleGroupParams) WithClusterID

func (o *CreateRuleGroupParams) WithClusterID(clusterID string) *CreateRuleGroupParams

WithClusterID adds the clusterID to the create rule group params

func (*CreateRuleGroupParams) WithContext

WithContext adds the context to the create rule group params

func (*CreateRuleGroupParams) WithDefaults

func (o *CreateRuleGroupParams) WithDefaults() *CreateRuleGroupParams

WithDefaults hydrates default values in the create rule group params (not the query body).

All values with no default are reset to their zero value.

func (*CreateRuleGroupParams) WithHTTPClient

func (o *CreateRuleGroupParams) WithHTTPClient(client *http.Client) *CreateRuleGroupParams

WithHTTPClient adds the HTTPClient to the create rule group params

func (*CreateRuleGroupParams) WithProjectID

func (o *CreateRuleGroupParams) WithProjectID(projectID string) *CreateRuleGroupParams

WithProjectID adds the projectID to the create rule group params

func (*CreateRuleGroupParams) WithTimeout

func (o *CreateRuleGroupParams) WithTimeout(timeout time.Duration) *CreateRuleGroupParams

WithTimeout adds the timeout to the create rule group params

func (*CreateRuleGroupParams) WriteToRequest

func (o *CreateRuleGroupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateRuleGroupReader

type CreateRuleGroupReader struct {
	// contains filtered or unexported fields
}

CreateRuleGroupReader is a Reader for the CreateRuleGroup structure.

func (*CreateRuleGroupReader) ReadResponse

func (o *CreateRuleGroupReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type CreateRuleGroupUnauthorized

type CreateRuleGroupUnauthorized struct {
}
CreateRuleGroupUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewCreateRuleGroupUnauthorized

func NewCreateRuleGroupUnauthorized() *CreateRuleGroupUnauthorized

NewCreateRuleGroupUnauthorized creates a CreateRuleGroupUnauthorized with default headers values

func (*CreateRuleGroupUnauthorized) Error

type DeleteRuleGroupDefault

type DeleteRuleGroupDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
DeleteRuleGroupDefault describes a response with status code -1, with default header values.

errorResponse

func NewDeleteRuleGroupDefault

func NewDeleteRuleGroupDefault(code int) *DeleteRuleGroupDefault

NewDeleteRuleGroupDefault creates a DeleteRuleGroupDefault with default headers values

func (*DeleteRuleGroupDefault) Code

func (o *DeleteRuleGroupDefault) Code() int

Code gets the status code for the delete rule group default response

func (*DeleteRuleGroupDefault) Error

func (o *DeleteRuleGroupDefault) Error() string

func (*DeleteRuleGroupDefault) GetPayload

func (o *DeleteRuleGroupDefault) GetPayload() *models.ErrorResponse

type DeleteRuleGroupForbidden

type DeleteRuleGroupForbidden struct {
}
DeleteRuleGroupForbidden describes a response with status code 403, with default header values.

EmptyResponse is a empty response

func NewDeleteRuleGroupForbidden

func NewDeleteRuleGroupForbidden() *DeleteRuleGroupForbidden

NewDeleteRuleGroupForbidden creates a DeleteRuleGroupForbidden with default headers values

func (*DeleteRuleGroupForbidden) Error

func (o *DeleteRuleGroupForbidden) Error() string

type DeleteRuleGroupOK

type DeleteRuleGroupOK struct {
}
DeleteRuleGroupOK describes a response with status code 200, with default header values.

EmptyResponse is a empty response

func NewDeleteRuleGroupOK

func NewDeleteRuleGroupOK() *DeleteRuleGroupOK

NewDeleteRuleGroupOK creates a DeleteRuleGroupOK with default headers values

func (*DeleteRuleGroupOK) Error

func (o *DeleteRuleGroupOK) Error() string

type DeleteRuleGroupParams

type DeleteRuleGroupParams struct {

	// ClusterID.
	ClusterID string

	// ProjectID.
	ProjectID string

	// RulegroupID.
	RuleGroupID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteRuleGroupParams contains all the parameters to send to the API endpoint

for the delete rule group operation.

Typically these are written to a http.Request.

func NewDeleteRuleGroupParams

func NewDeleteRuleGroupParams() *DeleteRuleGroupParams

NewDeleteRuleGroupParams creates a new DeleteRuleGroupParams 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 NewDeleteRuleGroupParamsWithContext

func NewDeleteRuleGroupParamsWithContext(ctx context.Context) *DeleteRuleGroupParams

NewDeleteRuleGroupParamsWithContext creates a new DeleteRuleGroupParams object with the ability to set a context for a request.

func NewDeleteRuleGroupParamsWithHTTPClient

func NewDeleteRuleGroupParamsWithHTTPClient(client *http.Client) *DeleteRuleGroupParams

NewDeleteRuleGroupParamsWithHTTPClient creates a new DeleteRuleGroupParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteRuleGroupParamsWithTimeout

func NewDeleteRuleGroupParamsWithTimeout(timeout time.Duration) *DeleteRuleGroupParams

NewDeleteRuleGroupParamsWithTimeout creates a new DeleteRuleGroupParams object with the ability to set a timeout on a request.

func (*DeleteRuleGroupParams) SetClusterID

func (o *DeleteRuleGroupParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the delete rule group params

func (*DeleteRuleGroupParams) SetContext

func (o *DeleteRuleGroupParams) SetContext(ctx context.Context)

SetContext adds the context to the delete rule group params

func (*DeleteRuleGroupParams) SetDefaults

func (o *DeleteRuleGroupParams) SetDefaults()

SetDefaults hydrates default values in the delete rule group params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteRuleGroupParams) SetHTTPClient

func (o *DeleteRuleGroupParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete rule group params

func (*DeleteRuleGroupParams) SetProjectID

func (o *DeleteRuleGroupParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the delete rule group params

func (*DeleteRuleGroupParams) SetRuleGroupID

func (o *DeleteRuleGroupParams) SetRuleGroupID(rulegroupID string)

SetRuleGroupID adds the rulegroupId to the delete rule group params

func (*DeleteRuleGroupParams) SetTimeout

func (o *DeleteRuleGroupParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete rule group params

func (*DeleteRuleGroupParams) WithClusterID

func (o *DeleteRuleGroupParams) WithClusterID(clusterID string) *DeleteRuleGroupParams

WithClusterID adds the clusterID to the delete rule group params

func (*DeleteRuleGroupParams) WithContext

WithContext adds the context to the delete rule group params

func (*DeleteRuleGroupParams) WithDefaults

func (o *DeleteRuleGroupParams) WithDefaults() *DeleteRuleGroupParams

WithDefaults hydrates default values in the delete rule group params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteRuleGroupParams) WithHTTPClient

func (o *DeleteRuleGroupParams) WithHTTPClient(client *http.Client) *DeleteRuleGroupParams

WithHTTPClient adds the HTTPClient to the delete rule group params

func (*DeleteRuleGroupParams) WithProjectID

func (o *DeleteRuleGroupParams) WithProjectID(projectID string) *DeleteRuleGroupParams

WithProjectID adds the projectID to the delete rule group params

func (*DeleteRuleGroupParams) WithRuleGroupID

func (o *DeleteRuleGroupParams) WithRuleGroupID(rulegroupID string) *DeleteRuleGroupParams

WithRuleGroupID adds the rulegroupID to the delete rule group params

func (*DeleteRuleGroupParams) WithTimeout

func (o *DeleteRuleGroupParams) WithTimeout(timeout time.Duration) *DeleteRuleGroupParams

WithTimeout adds the timeout to the delete rule group params

func (*DeleteRuleGroupParams) WriteToRequest

func (o *DeleteRuleGroupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteRuleGroupReader

type DeleteRuleGroupReader struct {
	// contains filtered or unexported fields
}

DeleteRuleGroupReader is a Reader for the DeleteRuleGroup structure.

func (*DeleteRuleGroupReader) ReadResponse

func (o *DeleteRuleGroupReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteRuleGroupUnauthorized

type DeleteRuleGroupUnauthorized struct {
}
DeleteRuleGroupUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewDeleteRuleGroupUnauthorized

func NewDeleteRuleGroupUnauthorized() *DeleteRuleGroupUnauthorized

NewDeleteRuleGroupUnauthorized creates a DeleteRuleGroupUnauthorized with default headers values

func (*DeleteRuleGroupUnauthorized) Error

type GetRuleGroupDefault

type GetRuleGroupDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
GetRuleGroupDefault describes a response with status code -1, with default header values.

errorResponse

func NewGetRuleGroupDefault

func NewGetRuleGroupDefault(code int) *GetRuleGroupDefault

NewGetRuleGroupDefault creates a GetRuleGroupDefault with default headers values

func (*GetRuleGroupDefault) Code

func (o *GetRuleGroupDefault) Code() int

Code gets the status code for the get rule group default response

func (*GetRuleGroupDefault) Error

func (o *GetRuleGroupDefault) Error() string

func (*GetRuleGroupDefault) GetPayload

func (o *GetRuleGroupDefault) GetPayload() *models.ErrorResponse

type GetRuleGroupForbidden

type GetRuleGroupForbidden struct {
}
GetRuleGroupForbidden describes a response with status code 403, with default header values.

EmptyResponse is a empty response

func NewGetRuleGroupForbidden

func NewGetRuleGroupForbidden() *GetRuleGroupForbidden

NewGetRuleGroupForbidden creates a GetRuleGroupForbidden with default headers values

func (*GetRuleGroupForbidden) Error

func (o *GetRuleGroupForbidden) Error() string

type GetRuleGroupOK

type GetRuleGroupOK struct {
	Payload *models.RuleGroup
}
GetRuleGroupOK describes a response with status code 200, with default header values.

RuleGroup

func NewGetRuleGroupOK

func NewGetRuleGroupOK() *GetRuleGroupOK

NewGetRuleGroupOK creates a GetRuleGroupOK with default headers values

func (*GetRuleGroupOK) Error

func (o *GetRuleGroupOK) Error() string

func (*GetRuleGroupOK) GetPayload

func (o *GetRuleGroupOK) GetPayload() *models.RuleGroup

type GetRuleGroupParams

type GetRuleGroupParams struct {

	// ClusterID.
	ClusterID string

	// ProjectID.
	ProjectID string

	// RulegroupID.
	RuleGroupID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetRuleGroupParams contains all the parameters to send to the API endpoint

for the get rule group operation.

Typically these are written to a http.Request.

func NewGetRuleGroupParams

func NewGetRuleGroupParams() *GetRuleGroupParams

NewGetRuleGroupParams creates a new GetRuleGroupParams 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 NewGetRuleGroupParamsWithContext

func NewGetRuleGroupParamsWithContext(ctx context.Context) *GetRuleGroupParams

NewGetRuleGroupParamsWithContext creates a new GetRuleGroupParams object with the ability to set a context for a request.

func NewGetRuleGroupParamsWithHTTPClient

func NewGetRuleGroupParamsWithHTTPClient(client *http.Client) *GetRuleGroupParams

NewGetRuleGroupParamsWithHTTPClient creates a new GetRuleGroupParams object with the ability to set a custom HTTPClient for a request.

func NewGetRuleGroupParamsWithTimeout

func NewGetRuleGroupParamsWithTimeout(timeout time.Duration) *GetRuleGroupParams

NewGetRuleGroupParamsWithTimeout creates a new GetRuleGroupParams object with the ability to set a timeout on a request.

func (*GetRuleGroupParams) SetClusterID

func (o *GetRuleGroupParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the get rule group params

func (*GetRuleGroupParams) SetContext

func (o *GetRuleGroupParams) SetContext(ctx context.Context)

SetContext adds the context to the get rule group params

func (*GetRuleGroupParams) SetDefaults

func (o *GetRuleGroupParams) SetDefaults()

SetDefaults hydrates default values in the get rule group params (not the query body).

All values with no default are reset to their zero value.

func (*GetRuleGroupParams) SetHTTPClient

func (o *GetRuleGroupParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get rule group params

func (*GetRuleGroupParams) SetProjectID

func (o *GetRuleGroupParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the get rule group params

func (*GetRuleGroupParams) SetRuleGroupID

func (o *GetRuleGroupParams) SetRuleGroupID(rulegroupID string)

SetRuleGroupID adds the rulegroupId to the get rule group params

func (*GetRuleGroupParams) SetTimeout

func (o *GetRuleGroupParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get rule group params

func (*GetRuleGroupParams) WithClusterID

func (o *GetRuleGroupParams) WithClusterID(clusterID string) *GetRuleGroupParams

WithClusterID adds the clusterID to the get rule group params

func (*GetRuleGroupParams) WithContext

WithContext adds the context to the get rule group params

func (*GetRuleGroupParams) WithDefaults

func (o *GetRuleGroupParams) WithDefaults() *GetRuleGroupParams

WithDefaults hydrates default values in the get rule group params (not the query body).

All values with no default are reset to their zero value.

func (*GetRuleGroupParams) WithHTTPClient

func (o *GetRuleGroupParams) WithHTTPClient(client *http.Client) *GetRuleGroupParams

WithHTTPClient adds the HTTPClient to the get rule group params

func (*GetRuleGroupParams) WithProjectID

func (o *GetRuleGroupParams) WithProjectID(projectID string) *GetRuleGroupParams

WithProjectID adds the projectID to the get rule group params

func (*GetRuleGroupParams) WithRuleGroupID

func (o *GetRuleGroupParams) WithRuleGroupID(rulegroupID string) *GetRuleGroupParams

WithRuleGroupID adds the rulegroupID to the get rule group params

func (*GetRuleGroupParams) WithTimeout

func (o *GetRuleGroupParams) WithTimeout(timeout time.Duration) *GetRuleGroupParams

WithTimeout adds the timeout to the get rule group params

func (*GetRuleGroupParams) WriteToRequest

func (o *GetRuleGroupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetRuleGroupReader

type GetRuleGroupReader struct {
	// contains filtered or unexported fields
}

GetRuleGroupReader is a Reader for the GetRuleGroup structure.

func (*GetRuleGroupReader) ReadResponse

func (o *GetRuleGroupReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetRuleGroupUnauthorized

type GetRuleGroupUnauthorized struct {
}
GetRuleGroupUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewGetRuleGroupUnauthorized

func NewGetRuleGroupUnauthorized() *GetRuleGroupUnauthorized

NewGetRuleGroupUnauthorized creates a GetRuleGroupUnauthorized with default headers values

func (*GetRuleGroupUnauthorized) Error

func (o *GetRuleGroupUnauthorized) Error() string

type ListRuleGroupsDefault

type ListRuleGroupsDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
ListRuleGroupsDefault describes a response with status code -1, with default header values.

errorResponse

func NewListRuleGroupsDefault

func NewListRuleGroupsDefault(code int) *ListRuleGroupsDefault

NewListRuleGroupsDefault creates a ListRuleGroupsDefault with default headers values

func (*ListRuleGroupsDefault) Code

func (o *ListRuleGroupsDefault) Code() int

Code gets the status code for the list rule groups default response

func (*ListRuleGroupsDefault) Error

func (o *ListRuleGroupsDefault) Error() string

func (*ListRuleGroupsDefault) GetPayload

func (o *ListRuleGroupsDefault) GetPayload() *models.ErrorResponse

type ListRuleGroupsForbidden

type ListRuleGroupsForbidden struct {
}
ListRuleGroupsForbidden describes a response with status code 403, with default header values.

EmptyResponse is a empty response

func NewListRuleGroupsForbidden

func NewListRuleGroupsForbidden() *ListRuleGroupsForbidden

NewListRuleGroupsForbidden creates a ListRuleGroupsForbidden with default headers values

func (*ListRuleGroupsForbidden) Error

func (o *ListRuleGroupsForbidden) Error() string

type ListRuleGroupsOK

type ListRuleGroupsOK struct {
	Payload []*models.RuleGroup
}
ListRuleGroupsOK describes a response with status code 200, with default header values.

RuleGroup

func NewListRuleGroupsOK

func NewListRuleGroupsOK() *ListRuleGroupsOK

NewListRuleGroupsOK creates a ListRuleGroupsOK with default headers values

func (*ListRuleGroupsOK) Error

func (o *ListRuleGroupsOK) Error() string

func (*ListRuleGroupsOK) GetPayload

func (o *ListRuleGroupsOK) GetPayload() []*models.RuleGroup

type ListRuleGroupsParams

type ListRuleGroupsParams struct {

	// ClusterID.
	ClusterID string

	// ProjectID.
	ProjectID string

	// Type.
	Type *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListRuleGroupsParams contains all the parameters to send to the API endpoint

for the list rule groups operation.

Typically these are written to a http.Request.

func NewListRuleGroupsParams

func NewListRuleGroupsParams() *ListRuleGroupsParams

NewListRuleGroupsParams creates a new ListRuleGroupsParams 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 NewListRuleGroupsParamsWithContext

func NewListRuleGroupsParamsWithContext(ctx context.Context) *ListRuleGroupsParams

NewListRuleGroupsParamsWithContext creates a new ListRuleGroupsParams object with the ability to set a context for a request.

func NewListRuleGroupsParamsWithHTTPClient

func NewListRuleGroupsParamsWithHTTPClient(client *http.Client) *ListRuleGroupsParams

NewListRuleGroupsParamsWithHTTPClient creates a new ListRuleGroupsParams object with the ability to set a custom HTTPClient for a request.

func NewListRuleGroupsParamsWithTimeout

func NewListRuleGroupsParamsWithTimeout(timeout time.Duration) *ListRuleGroupsParams

NewListRuleGroupsParamsWithTimeout creates a new ListRuleGroupsParams object with the ability to set a timeout on a request.

func (*ListRuleGroupsParams) SetClusterID

func (o *ListRuleGroupsParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the list rule groups params

func (*ListRuleGroupsParams) SetContext

func (o *ListRuleGroupsParams) SetContext(ctx context.Context)

SetContext adds the context to the list rule groups params

func (*ListRuleGroupsParams) SetDefaults

func (o *ListRuleGroupsParams) SetDefaults()

SetDefaults hydrates default values in the list rule groups params (not the query body).

All values with no default are reset to their zero value.

func (*ListRuleGroupsParams) SetHTTPClient

func (o *ListRuleGroupsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list rule groups params

func (*ListRuleGroupsParams) SetProjectID

func (o *ListRuleGroupsParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the list rule groups params

func (*ListRuleGroupsParams) SetTimeout

func (o *ListRuleGroupsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list rule groups params

func (*ListRuleGroupsParams) SetType

func (o *ListRuleGroupsParams) SetType(typeVar *string)

SetType adds the type to the list rule groups params

func (*ListRuleGroupsParams) WithClusterID

func (o *ListRuleGroupsParams) WithClusterID(clusterID string) *ListRuleGroupsParams

WithClusterID adds the clusterID to the list rule groups params

func (*ListRuleGroupsParams) WithContext

WithContext adds the context to the list rule groups params

func (*ListRuleGroupsParams) WithDefaults

func (o *ListRuleGroupsParams) WithDefaults() *ListRuleGroupsParams

WithDefaults hydrates default values in the list rule groups params (not the query body).

All values with no default are reset to their zero value.

func (*ListRuleGroupsParams) WithHTTPClient

func (o *ListRuleGroupsParams) WithHTTPClient(client *http.Client) *ListRuleGroupsParams

WithHTTPClient adds the HTTPClient to the list rule groups params

func (*ListRuleGroupsParams) WithProjectID

func (o *ListRuleGroupsParams) WithProjectID(projectID string) *ListRuleGroupsParams

WithProjectID adds the projectID to the list rule groups params

func (*ListRuleGroupsParams) WithTimeout

func (o *ListRuleGroupsParams) WithTimeout(timeout time.Duration) *ListRuleGroupsParams

WithTimeout adds the timeout to the list rule groups params

func (*ListRuleGroupsParams) WithType

func (o *ListRuleGroupsParams) WithType(typeVar *string) *ListRuleGroupsParams

WithType adds the typeVar to the list rule groups params

func (*ListRuleGroupsParams) WriteToRequest

func (o *ListRuleGroupsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListRuleGroupsReader

type ListRuleGroupsReader struct {
	// contains filtered or unexported fields
}

ListRuleGroupsReader is a Reader for the ListRuleGroups structure.

func (*ListRuleGroupsReader) ReadResponse

func (o *ListRuleGroupsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ListRuleGroupsUnauthorized

type ListRuleGroupsUnauthorized struct {
}
ListRuleGroupsUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewListRuleGroupsUnauthorized

func NewListRuleGroupsUnauthorized() *ListRuleGroupsUnauthorized

NewListRuleGroupsUnauthorized creates a ListRuleGroupsUnauthorized with default headers values

func (*ListRuleGroupsUnauthorized) Error

type UpdateRuleGroupDefault

type UpdateRuleGroupDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}
UpdateRuleGroupDefault describes a response with status code -1, with default header values.

errorResponse

func NewUpdateRuleGroupDefault

func NewUpdateRuleGroupDefault(code int) *UpdateRuleGroupDefault

NewUpdateRuleGroupDefault creates a UpdateRuleGroupDefault with default headers values

func (*UpdateRuleGroupDefault) Code

func (o *UpdateRuleGroupDefault) Code() int

Code gets the status code for the update rule group default response

func (*UpdateRuleGroupDefault) Error

func (o *UpdateRuleGroupDefault) Error() string

func (*UpdateRuleGroupDefault) GetPayload

func (o *UpdateRuleGroupDefault) GetPayload() *models.ErrorResponse

type UpdateRuleGroupForbidden

type UpdateRuleGroupForbidden struct {
}
UpdateRuleGroupForbidden describes a response with status code 403, with default header values.

EmptyResponse is a empty response

func NewUpdateRuleGroupForbidden

func NewUpdateRuleGroupForbidden() *UpdateRuleGroupForbidden

NewUpdateRuleGroupForbidden creates a UpdateRuleGroupForbidden with default headers values

func (*UpdateRuleGroupForbidden) Error

func (o *UpdateRuleGroupForbidden) Error() string

type UpdateRuleGroupOK

type UpdateRuleGroupOK struct {
	Payload *models.RuleGroup
}
UpdateRuleGroupOK describes a response with status code 200, with default header values.

RuleGroup

func NewUpdateRuleGroupOK

func NewUpdateRuleGroupOK() *UpdateRuleGroupOK

NewUpdateRuleGroupOK creates a UpdateRuleGroupOK with default headers values

func (*UpdateRuleGroupOK) Error

func (o *UpdateRuleGroupOK) Error() string

func (*UpdateRuleGroupOK) GetPayload

func (o *UpdateRuleGroupOK) GetPayload() *models.RuleGroup

type UpdateRuleGroupParams

type UpdateRuleGroupParams struct {

	// Body.
	Body *models.RuleGroup

	// ClusterID.
	ClusterID string

	// ProjectID.
	ProjectID string

	// RulegroupID.
	RuleGroupID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateRuleGroupParams contains all the parameters to send to the API endpoint

for the update rule group operation.

Typically these are written to a http.Request.

func NewUpdateRuleGroupParams

func NewUpdateRuleGroupParams() *UpdateRuleGroupParams

NewUpdateRuleGroupParams creates a new UpdateRuleGroupParams 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 NewUpdateRuleGroupParamsWithContext

func NewUpdateRuleGroupParamsWithContext(ctx context.Context) *UpdateRuleGroupParams

NewUpdateRuleGroupParamsWithContext creates a new UpdateRuleGroupParams object with the ability to set a context for a request.

func NewUpdateRuleGroupParamsWithHTTPClient

func NewUpdateRuleGroupParamsWithHTTPClient(client *http.Client) *UpdateRuleGroupParams

NewUpdateRuleGroupParamsWithHTTPClient creates a new UpdateRuleGroupParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateRuleGroupParamsWithTimeout

func NewUpdateRuleGroupParamsWithTimeout(timeout time.Duration) *UpdateRuleGroupParams

NewUpdateRuleGroupParamsWithTimeout creates a new UpdateRuleGroupParams object with the ability to set a timeout on a request.

func (*UpdateRuleGroupParams) SetBody

func (o *UpdateRuleGroupParams) SetBody(body *models.RuleGroup)

SetBody adds the body to the update rule group params

func (*UpdateRuleGroupParams) SetClusterID

func (o *UpdateRuleGroupParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the update rule group params

func (*UpdateRuleGroupParams) SetContext

func (o *UpdateRuleGroupParams) SetContext(ctx context.Context)

SetContext adds the context to the update rule group params

func (*UpdateRuleGroupParams) SetDefaults

func (o *UpdateRuleGroupParams) SetDefaults()

SetDefaults hydrates default values in the update rule group params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateRuleGroupParams) SetHTTPClient

func (o *UpdateRuleGroupParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update rule group params

func (*UpdateRuleGroupParams) SetProjectID

func (o *UpdateRuleGroupParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the update rule group params

func (*UpdateRuleGroupParams) SetRuleGroupID

func (o *UpdateRuleGroupParams) SetRuleGroupID(rulegroupID string)

SetRuleGroupID adds the rulegroupId to the update rule group params

func (*UpdateRuleGroupParams) SetTimeout

func (o *UpdateRuleGroupParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update rule group params

func (*UpdateRuleGroupParams) WithBody

WithBody adds the body to the update rule group params

func (*UpdateRuleGroupParams) WithClusterID

func (o *UpdateRuleGroupParams) WithClusterID(clusterID string) *UpdateRuleGroupParams

WithClusterID adds the clusterID to the update rule group params

func (*UpdateRuleGroupParams) WithContext

WithContext adds the context to the update rule group params

func (*UpdateRuleGroupParams) WithDefaults

func (o *UpdateRuleGroupParams) WithDefaults() *UpdateRuleGroupParams

WithDefaults hydrates default values in the update rule group params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateRuleGroupParams) WithHTTPClient

func (o *UpdateRuleGroupParams) WithHTTPClient(client *http.Client) *UpdateRuleGroupParams

WithHTTPClient adds the HTTPClient to the update rule group params

func (*UpdateRuleGroupParams) WithProjectID

func (o *UpdateRuleGroupParams) WithProjectID(projectID string) *UpdateRuleGroupParams

WithProjectID adds the projectID to the update rule group params

func (*UpdateRuleGroupParams) WithRuleGroupID

func (o *UpdateRuleGroupParams) WithRuleGroupID(rulegroupID string) *UpdateRuleGroupParams

WithRuleGroupID adds the rulegroupID to the update rule group params

func (*UpdateRuleGroupParams) WithTimeout

func (o *UpdateRuleGroupParams) WithTimeout(timeout time.Duration) *UpdateRuleGroupParams

WithTimeout adds the timeout to the update rule group params

func (*UpdateRuleGroupParams) WriteToRequest

func (o *UpdateRuleGroupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdateRuleGroupReader

type UpdateRuleGroupReader struct {
	// contains filtered or unexported fields
}

UpdateRuleGroupReader is a Reader for the UpdateRuleGroup structure.

func (*UpdateRuleGroupReader) ReadResponse

func (o *UpdateRuleGroupReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateRuleGroupUnauthorized

type UpdateRuleGroupUnauthorized struct {
}
UpdateRuleGroupUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewUpdateRuleGroupUnauthorized

func NewUpdateRuleGroupUnauthorized() *UpdateRuleGroupUnauthorized

NewUpdateRuleGroupUnauthorized creates a UpdateRuleGroupUnauthorized with default headers values

func (*UpdateRuleGroupUnauthorized) Error

Jump to

Keyboard shortcuts

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