immutable

package
v5.3.3 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 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 immutable API

func (*Client) CreateImmuRule

func (a *Client) CreateImmuRule(params *CreateImmuRuleParams, authInfo runtime.ClientAuthInfoWriter) (*CreateImmuRuleCreated, error)

CreateImmuRule adds an immutable tag rule to current project

This endpoint add an immutable tag rule to the project

func (*Client) DeleteImmuRule

func (a *Client) DeleteImmuRule(params *DeleteImmuRuleParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteImmuRuleOK, error)

DeleteImmuRule deletes the immutable tag rule

func (*Client) ListImmuRules

func (a *Client) ListImmuRules(params *ListImmuRulesParams, authInfo runtime.ClientAuthInfoWriter) (*ListImmuRulesOK, error)

ListImmuRules lists all immutable tag rules of current project

This endpoint returns the immutable tag rules of a project

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateImmuRule

func (a *Client) UpdateImmuRule(params *UpdateImmuRuleParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateImmuRuleOK, error)

UpdateImmuRule updates the immutable tag rule or enable or disable the rule

type ClientService

type ClientService interface {
	CreateImmuRule(params *CreateImmuRuleParams, authInfo runtime.ClientAuthInfoWriter) (*CreateImmuRuleCreated, error)

	DeleteImmuRule(params *DeleteImmuRuleParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteImmuRuleOK, error)

	ListImmuRules(params *ListImmuRulesParams, authInfo runtime.ClientAuthInfoWriter) (*ListImmuRulesOK, error)

	UpdateImmuRule(params *UpdateImmuRuleParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateImmuRuleOK, 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 immutable API client.

type CreateImmuRuleBadRequest

type CreateImmuRuleBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateImmuRuleBadRequest handles this case with default header values.

Bad request

func NewCreateImmuRuleBadRequest

func NewCreateImmuRuleBadRequest() *CreateImmuRuleBadRequest

NewCreateImmuRuleBadRequest creates a CreateImmuRuleBadRequest with default headers values

func (*CreateImmuRuleBadRequest) Error

func (o *CreateImmuRuleBadRequest) Error() string

func (*CreateImmuRuleBadRequest) GetPayload

func (o *CreateImmuRuleBadRequest) GetPayload() *model.Errors

type CreateImmuRuleCreated

type CreateImmuRuleCreated struct {
	/*The location of the resource
	 */
	Location string
	/*The ID of the corresponding request for the response
	 */
	XRequestID string
}

CreateImmuRuleCreated handles this case with default header values.

Created

func NewCreateImmuRuleCreated

func NewCreateImmuRuleCreated() *CreateImmuRuleCreated

NewCreateImmuRuleCreated creates a CreateImmuRuleCreated with default headers values

func (*CreateImmuRuleCreated) Error

func (o *CreateImmuRuleCreated) Error() string

type CreateImmuRuleForbidden

type CreateImmuRuleForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateImmuRuleForbidden handles this case with default header values.

Forbidden

func NewCreateImmuRuleForbidden

func NewCreateImmuRuleForbidden() *CreateImmuRuleForbidden

NewCreateImmuRuleForbidden creates a CreateImmuRuleForbidden with default headers values

func (*CreateImmuRuleForbidden) Error

func (o *CreateImmuRuleForbidden) Error() string

func (*CreateImmuRuleForbidden) GetPayload

func (o *CreateImmuRuleForbidden) GetPayload() *model.Errors

type CreateImmuRuleInternalServerError

type CreateImmuRuleInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateImmuRuleInternalServerError handles this case with default header values.

Internal server error

func NewCreateImmuRuleInternalServerError

func NewCreateImmuRuleInternalServerError() *CreateImmuRuleInternalServerError

NewCreateImmuRuleInternalServerError creates a CreateImmuRuleInternalServerError with default headers values

func (*CreateImmuRuleInternalServerError) Error

func (*CreateImmuRuleInternalServerError) GetPayload

type CreateImmuRuleNotFound

type CreateImmuRuleNotFound struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateImmuRuleNotFound handles this case with default header values.

Not found

func NewCreateImmuRuleNotFound

func NewCreateImmuRuleNotFound() *CreateImmuRuleNotFound

NewCreateImmuRuleNotFound creates a CreateImmuRuleNotFound with default headers values

func (*CreateImmuRuleNotFound) Error

func (o *CreateImmuRuleNotFound) Error() string

func (*CreateImmuRuleNotFound) GetPayload

func (o *CreateImmuRuleNotFound) GetPayload() *model.Errors

type CreateImmuRuleParams

type CreateImmuRuleParams struct {

	/*ImmutableRule*/
	ImmutableRule *model.ImmutableRule
	/*XIsResourceName
	  The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name.

	*/
	XIsResourceName *bool
	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*ProjectNameOrID
	  The name or id of the project

	*/
	ProjectNameOrID string

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

CreateImmuRuleParams contains all the parameters to send to the API endpoint for the create immu rule operation typically these are written to a http.Request

func NewCreateImmuRuleParams

func NewCreateImmuRuleParams() *CreateImmuRuleParams

NewCreateImmuRuleParams creates a new CreateImmuRuleParams object with the default values initialized.

func NewCreateImmuRuleParamsWithContext

func NewCreateImmuRuleParamsWithContext(ctx context.Context) *CreateImmuRuleParams

NewCreateImmuRuleParamsWithContext creates a new CreateImmuRuleParams object with the default values initialized, and the ability to set a context for a request

func NewCreateImmuRuleParamsWithHTTPClient

func NewCreateImmuRuleParamsWithHTTPClient(client *http.Client) *CreateImmuRuleParams

NewCreateImmuRuleParamsWithHTTPClient creates a new CreateImmuRuleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateImmuRuleParamsWithTimeout

func NewCreateImmuRuleParamsWithTimeout(timeout time.Duration) *CreateImmuRuleParams

NewCreateImmuRuleParamsWithTimeout creates a new CreateImmuRuleParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateImmuRuleParams) SetContext

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

SetContext adds the context to the create immu rule params

func (*CreateImmuRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create immu rule params

func (*CreateImmuRuleParams) SetImmutableRule

func (o *CreateImmuRuleParams) SetImmutableRule(immutableRule *model.ImmutableRule)

SetImmutableRule adds the immutableRule to the create immu rule params

func (*CreateImmuRuleParams) SetProjectNameOrID

func (o *CreateImmuRuleParams) SetProjectNameOrID(projectNameOrID string)

SetProjectNameOrID adds the projectNameOrId to the create immu rule params

func (*CreateImmuRuleParams) SetTimeout

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

SetTimeout adds the timeout to the create immu rule params

func (*CreateImmuRuleParams) SetXIsResourceName

func (o *CreateImmuRuleParams) SetXIsResourceName(xIsResourceName *bool)

SetXIsResourceName adds the xIsResourceName to the create immu rule params

func (*CreateImmuRuleParams) SetXRequestID

func (o *CreateImmuRuleParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the create immu rule params

func (*CreateImmuRuleParams) WithContext

WithContext adds the context to the create immu rule params

func (*CreateImmuRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create immu rule params

func (*CreateImmuRuleParams) WithImmutableRule

func (o *CreateImmuRuleParams) WithImmutableRule(immutableRule *model.ImmutableRule) *CreateImmuRuleParams

WithImmutableRule adds the immutableRule to the create immu rule params

func (*CreateImmuRuleParams) WithProjectNameOrID

func (o *CreateImmuRuleParams) WithProjectNameOrID(projectNameOrID string) *CreateImmuRuleParams

WithProjectNameOrID adds the projectNameOrID to the create immu rule params

func (*CreateImmuRuleParams) WithTimeout

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

WithTimeout adds the timeout to the create immu rule params

func (*CreateImmuRuleParams) WithXIsResourceName

func (o *CreateImmuRuleParams) WithXIsResourceName(xIsResourceName *bool) *CreateImmuRuleParams

WithXIsResourceName adds the xIsResourceName to the create immu rule params

func (*CreateImmuRuleParams) WithXRequestID

func (o *CreateImmuRuleParams) WithXRequestID(xRequestID *string) *CreateImmuRuleParams

WithXRequestID adds the xRequestID to the create immu rule params

func (*CreateImmuRuleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateImmuRuleReader

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

CreateImmuRuleReader is a Reader for the CreateImmuRule structure.

func (*CreateImmuRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateImmuRuleUnauthorized

type CreateImmuRuleUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateImmuRuleUnauthorized handles this case with default header values.

Unauthorized

func NewCreateImmuRuleUnauthorized

func NewCreateImmuRuleUnauthorized() *CreateImmuRuleUnauthorized

NewCreateImmuRuleUnauthorized creates a CreateImmuRuleUnauthorized with default headers values

func (*CreateImmuRuleUnauthorized) Error

func (*CreateImmuRuleUnauthorized) GetPayload

func (o *CreateImmuRuleUnauthorized) GetPayload() *model.Errors

type DeleteImmuRuleBadRequest

type DeleteImmuRuleBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteImmuRuleBadRequest handles this case with default header values.

Bad request

func NewDeleteImmuRuleBadRequest

func NewDeleteImmuRuleBadRequest() *DeleteImmuRuleBadRequest

NewDeleteImmuRuleBadRequest creates a DeleteImmuRuleBadRequest with default headers values

func (*DeleteImmuRuleBadRequest) Error

func (o *DeleteImmuRuleBadRequest) Error() string

func (*DeleteImmuRuleBadRequest) GetPayload

func (o *DeleteImmuRuleBadRequest) GetPayload() *model.Errors

type DeleteImmuRuleForbidden

type DeleteImmuRuleForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteImmuRuleForbidden handles this case with default header values.

Forbidden

func NewDeleteImmuRuleForbidden

func NewDeleteImmuRuleForbidden() *DeleteImmuRuleForbidden

NewDeleteImmuRuleForbidden creates a DeleteImmuRuleForbidden with default headers values

func (*DeleteImmuRuleForbidden) Error

func (o *DeleteImmuRuleForbidden) Error() string

func (*DeleteImmuRuleForbidden) GetPayload

func (o *DeleteImmuRuleForbidden) GetPayload() *model.Errors

type DeleteImmuRuleInternalServerError

type DeleteImmuRuleInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteImmuRuleInternalServerError handles this case with default header values.

Internal server error

func NewDeleteImmuRuleInternalServerError

func NewDeleteImmuRuleInternalServerError() *DeleteImmuRuleInternalServerError

NewDeleteImmuRuleInternalServerError creates a DeleteImmuRuleInternalServerError with default headers values

func (*DeleteImmuRuleInternalServerError) Error

func (*DeleteImmuRuleInternalServerError) GetPayload

type DeleteImmuRuleOK

type DeleteImmuRuleOK struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string
}

DeleteImmuRuleOK handles this case with default header values.

Success

func NewDeleteImmuRuleOK

func NewDeleteImmuRuleOK() *DeleteImmuRuleOK

NewDeleteImmuRuleOK creates a DeleteImmuRuleOK with default headers values

func (*DeleteImmuRuleOK) Error

func (o *DeleteImmuRuleOK) Error() string

type DeleteImmuRuleParams

type DeleteImmuRuleParams struct {

	/*XIsResourceName
	  The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name.

	*/
	XIsResourceName *bool
	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*ImmutableRuleID
	  The ID of the immutable rule

	*/
	ImmutableRuleID int64
	/*ProjectNameOrID
	  The name or id of the project

	*/
	ProjectNameOrID string

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

DeleteImmuRuleParams contains all the parameters to send to the API endpoint for the delete immu rule operation typically these are written to a http.Request

func NewDeleteImmuRuleParams

func NewDeleteImmuRuleParams() *DeleteImmuRuleParams

NewDeleteImmuRuleParams creates a new DeleteImmuRuleParams object with the default values initialized.

func NewDeleteImmuRuleParamsWithContext

func NewDeleteImmuRuleParamsWithContext(ctx context.Context) *DeleteImmuRuleParams

NewDeleteImmuRuleParamsWithContext creates a new DeleteImmuRuleParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteImmuRuleParamsWithHTTPClient

func NewDeleteImmuRuleParamsWithHTTPClient(client *http.Client) *DeleteImmuRuleParams

NewDeleteImmuRuleParamsWithHTTPClient creates a new DeleteImmuRuleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteImmuRuleParamsWithTimeout

func NewDeleteImmuRuleParamsWithTimeout(timeout time.Duration) *DeleteImmuRuleParams

NewDeleteImmuRuleParamsWithTimeout creates a new DeleteImmuRuleParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteImmuRuleParams) SetContext

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

SetContext adds the context to the delete immu rule params

func (*DeleteImmuRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete immu rule params

func (*DeleteImmuRuleParams) SetImmutableRuleID

func (o *DeleteImmuRuleParams) SetImmutableRuleID(immutableRuleID int64)

SetImmutableRuleID adds the immutableRuleId to the delete immu rule params

func (*DeleteImmuRuleParams) SetProjectNameOrID

func (o *DeleteImmuRuleParams) SetProjectNameOrID(projectNameOrID string)

SetProjectNameOrID adds the projectNameOrId to the delete immu rule params

func (*DeleteImmuRuleParams) SetTimeout

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

SetTimeout adds the timeout to the delete immu rule params

func (*DeleteImmuRuleParams) SetXIsResourceName

func (o *DeleteImmuRuleParams) SetXIsResourceName(xIsResourceName *bool)

SetXIsResourceName adds the xIsResourceName to the delete immu rule params

func (*DeleteImmuRuleParams) SetXRequestID

func (o *DeleteImmuRuleParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the delete immu rule params

func (*DeleteImmuRuleParams) WithContext

WithContext adds the context to the delete immu rule params

func (*DeleteImmuRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete immu rule params

func (*DeleteImmuRuleParams) WithImmutableRuleID

func (o *DeleteImmuRuleParams) WithImmutableRuleID(immutableRuleID int64) *DeleteImmuRuleParams

WithImmutableRuleID adds the immutableRuleID to the delete immu rule params

func (*DeleteImmuRuleParams) WithProjectNameOrID

func (o *DeleteImmuRuleParams) WithProjectNameOrID(projectNameOrID string) *DeleteImmuRuleParams

WithProjectNameOrID adds the projectNameOrID to the delete immu rule params

func (*DeleteImmuRuleParams) WithTimeout

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

WithTimeout adds the timeout to the delete immu rule params

func (*DeleteImmuRuleParams) WithXIsResourceName

func (o *DeleteImmuRuleParams) WithXIsResourceName(xIsResourceName *bool) *DeleteImmuRuleParams

WithXIsResourceName adds the xIsResourceName to the delete immu rule params

func (*DeleteImmuRuleParams) WithXRequestID

func (o *DeleteImmuRuleParams) WithXRequestID(xRequestID *string) *DeleteImmuRuleParams

WithXRequestID adds the xRequestID to the delete immu rule params

func (*DeleteImmuRuleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteImmuRuleReader

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

DeleteImmuRuleReader is a Reader for the DeleteImmuRule structure.

func (*DeleteImmuRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteImmuRuleUnauthorized

type DeleteImmuRuleUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteImmuRuleUnauthorized handles this case with default header values.

Unauthorized

func NewDeleteImmuRuleUnauthorized

func NewDeleteImmuRuleUnauthorized() *DeleteImmuRuleUnauthorized

NewDeleteImmuRuleUnauthorized creates a DeleteImmuRuleUnauthorized with default headers values

func (*DeleteImmuRuleUnauthorized) Error

func (*DeleteImmuRuleUnauthorized) GetPayload

func (o *DeleteImmuRuleUnauthorized) GetPayload() *model.Errors

type ListImmuRulesBadRequest

type ListImmuRulesBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListImmuRulesBadRequest handles this case with default header values.

Bad request

func NewListImmuRulesBadRequest

func NewListImmuRulesBadRequest() *ListImmuRulesBadRequest

NewListImmuRulesBadRequest creates a ListImmuRulesBadRequest with default headers values

func (*ListImmuRulesBadRequest) Error

func (o *ListImmuRulesBadRequest) Error() string

func (*ListImmuRulesBadRequest) GetPayload

func (o *ListImmuRulesBadRequest) GetPayload() *model.Errors

type ListImmuRulesForbidden

type ListImmuRulesForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListImmuRulesForbidden handles this case with default header values.

Forbidden

func NewListImmuRulesForbidden

func NewListImmuRulesForbidden() *ListImmuRulesForbidden

NewListImmuRulesForbidden creates a ListImmuRulesForbidden with default headers values

func (*ListImmuRulesForbidden) Error

func (o *ListImmuRulesForbidden) Error() string

func (*ListImmuRulesForbidden) GetPayload

func (o *ListImmuRulesForbidden) GetPayload() *model.Errors

type ListImmuRulesInternalServerError

type ListImmuRulesInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListImmuRulesInternalServerError handles this case with default header values.

Internal server error

func NewListImmuRulesInternalServerError

func NewListImmuRulesInternalServerError() *ListImmuRulesInternalServerError

NewListImmuRulesInternalServerError creates a ListImmuRulesInternalServerError with default headers values

func (*ListImmuRulesInternalServerError) Error

func (*ListImmuRulesInternalServerError) GetPayload

type ListImmuRulesOK

type ListImmuRulesOK struct {
	/*Link refers to the previous page and next page
	 */
	Link string
	/*The total count of immutable tag
	 */
	XTotalCount int64

	Payload []*model.ImmutableRule
}

ListImmuRulesOK handles this case with default header values.

Success

func NewListImmuRulesOK

func NewListImmuRulesOK() *ListImmuRulesOK

NewListImmuRulesOK creates a ListImmuRulesOK with default headers values

func (*ListImmuRulesOK) Error

func (o *ListImmuRulesOK) Error() string

func (*ListImmuRulesOK) GetPayload

func (o *ListImmuRulesOK) GetPayload() []*model.ImmutableRule

type ListImmuRulesParams

type ListImmuRulesParams struct {

	/*XIsResourceName
	  The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name.

	*/
	XIsResourceName *bool
	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Page
	  The page number

	*/
	Page *int64
	/*PageSize
	  The size of per page

	*/
	PageSize *int64
	/*ProjectNameOrID
	  The name or id of the project

	*/
	ProjectNameOrID string
	/*Q
	  Query string to query resources. Supported query patterns are "exact match(k=v)", "fuzzy match(k=~v)", "range(k=[min~max])", "list with union releationship(k={v1 v2 v3})" and "list with intersetion relationship(k=(v1 v2 v3))". The value of range and list can be string(enclosed by " or '), integer or time(in format "2020-04-09 02:36:00"). All of these query patterns should be put in the query string "q=xxx" and splitted by ",". e.g. q=k1=v1,k2=~v2,k3=[min~max]

	*/
	Q *string
	/*Sort
	  Sort the resource list in ascending or descending order. e.g. sort by field1 in ascending orderr and field2 in descending order with "sort=field1,-field2"

	*/
	Sort *string

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

ListImmuRulesParams contains all the parameters to send to the API endpoint for the list immu rules operation typically these are written to a http.Request

func NewListImmuRulesParams

func NewListImmuRulesParams() *ListImmuRulesParams

NewListImmuRulesParams creates a new ListImmuRulesParams object with the default values initialized.

func NewListImmuRulesParamsWithContext

func NewListImmuRulesParamsWithContext(ctx context.Context) *ListImmuRulesParams

NewListImmuRulesParamsWithContext creates a new ListImmuRulesParams object with the default values initialized, and the ability to set a context for a request

func NewListImmuRulesParamsWithHTTPClient

func NewListImmuRulesParamsWithHTTPClient(client *http.Client) *ListImmuRulesParams

NewListImmuRulesParamsWithHTTPClient creates a new ListImmuRulesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListImmuRulesParamsWithTimeout

func NewListImmuRulesParamsWithTimeout(timeout time.Duration) *ListImmuRulesParams

NewListImmuRulesParamsWithTimeout creates a new ListImmuRulesParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListImmuRulesParams) SetContext

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

SetContext adds the context to the list immu rules params

func (*ListImmuRulesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list immu rules params

func (*ListImmuRulesParams) SetPage

func (o *ListImmuRulesParams) SetPage(page *int64)

SetPage adds the page to the list immu rules params

func (*ListImmuRulesParams) SetPageSize

func (o *ListImmuRulesParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the list immu rules params

func (*ListImmuRulesParams) SetProjectNameOrID

func (o *ListImmuRulesParams) SetProjectNameOrID(projectNameOrID string)

SetProjectNameOrID adds the projectNameOrId to the list immu rules params

func (*ListImmuRulesParams) SetQ

func (o *ListImmuRulesParams) SetQ(q *string)

SetQ adds the q to the list immu rules params

func (*ListImmuRulesParams) SetSort

func (o *ListImmuRulesParams) SetSort(sort *string)

SetSort adds the sort to the list immu rules params

func (*ListImmuRulesParams) SetTimeout

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

SetTimeout adds the timeout to the list immu rules params

func (*ListImmuRulesParams) SetXIsResourceName

func (o *ListImmuRulesParams) SetXIsResourceName(xIsResourceName *bool)

SetXIsResourceName adds the xIsResourceName to the list immu rules params

func (*ListImmuRulesParams) SetXRequestID

func (o *ListImmuRulesParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the list immu rules params

func (*ListImmuRulesParams) WithContext

WithContext adds the context to the list immu rules params

func (*ListImmuRulesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list immu rules params

func (*ListImmuRulesParams) WithPage

func (o *ListImmuRulesParams) WithPage(page *int64) *ListImmuRulesParams

WithPage adds the page to the list immu rules params

func (*ListImmuRulesParams) WithPageSize

func (o *ListImmuRulesParams) WithPageSize(pageSize *int64) *ListImmuRulesParams

WithPageSize adds the pageSize to the list immu rules params

func (*ListImmuRulesParams) WithProjectNameOrID

func (o *ListImmuRulesParams) WithProjectNameOrID(projectNameOrID string) *ListImmuRulesParams

WithProjectNameOrID adds the projectNameOrID to the list immu rules params

func (*ListImmuRulesParams) WithQ

WithQ adds the q to the list immu rules params

func (*ListImmuRulesParams) WithSort

func (o *ListImmuRulesParams) WithSort(sort *string) *ListImmuRulesParams

WithSort adds the sort to the list immu rules params

func (*ListImmuRulesParams) WithTimeout

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

WithTimeout adds the timeout to the list immu rules params

func (*ListImmuRulesParams) WithXIsResourceName

func (o *ListImmuRulesParams) WithXIsResourceName(xIsResourceName *bool) *ListImmuRulesParams

WithXIsResourceName adds the xIsResourceName to the list immu rules params

func (*ListImmuRulesParams) WithXRequestID

func (o *ListImmuRulesParams) WithXRequestID(xRequestID *string) *ListImmuRulesParams

WithXRequestID adds the xRequestID to the list immu rules params

func (*ListImmuRulesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListImmuRulesReader

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

ListImmuRulesReader is a Reader for the ListImmuRules structure.

func (*ListImmuRulesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListImmuRulesUnauthorized

type ListImmuRulesUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListImmuRulesUnauthorized handles this case with default header values.

Unauthorized

func NewListImmuRulesUnauthorized

func NewListImmuRulesUnauthorized() *ListImmuRulesUnauthorized

NewListImmuRulesUnauthorized creates a ListImmuRulesUnauthorized with default headers values

func (*ListImmuRulesUnauthorized) Error

func (o *ListImmuRulesUnauthorized) Error() string

func (*ListImmuRulesUnauthorized) GetPayload

func (o *ListImmuRulesUnauthorized) GetPayload() *model.Errors

type UpdateImmuRuleBadRequest

type UpdateImmuRuleBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateImmuRuleBadRequest handles this case with default header values.

Bad request

func NewUpdateImmuRuleBadRequest

func NewUpdateImmuRuleBadRequest() *UpdateImmuRuleBadRequest

NewUpdateImmuRuleBadRequest creates a UpdateImmuRuleBadRequest with default headers values

func (*UpdateImmuRuleBadRequest) Error

func (o *UpdateImmuRuleBadRequest) Error() string

func (*UpdateImmuRuleBadRequest) GetPayload

func (o *UpdateImmuRuleBadRequest) GetPayload() *model.Errors

type UpdateImmuRuleForbidden

type UpdateImmuRuleForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateImmuRuleForbidden handles this case with default header values.

Forbidden

func NewUpdateImmuRuleForbidden

func NewUpdateImmuRuleForbidden() *UpdateImmuRuleForbidden

NewUpdateImmuRuleForbidden creates a UpdateImmuRuleForbidden with default headers values

func (*UpdateImmuRuleForbidden) Error

func (o *UpdateImmuRuleForbidden) Error() string

func (*UpdateImmuRuleForbidden) GetPayload

func (o *UpdateImmuRuleForbidden) GetPayload() *model.Errors

type UpdateImmuRuleInternalServerError

type UpdateImmuRuleInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateImmuRuleInternalServerError handles this case with default header values.

Internal server error

func NewUpdateImmuRuleInternalServerError

func NewUpdateImmuRuleInternalServerError() *UpdateImmuRuleInternalServerError

NewUpdateImmuRuleInternalServerError creates a UpdateImmuRuleInternalServerError with default headers values

func (*UpdateImmuRuleInternalServerError) Error

func (*UpdateImmuRuleInternalServerError) GetPayload

type UpdateImmuRuleOK

type UpdateImmuRuleOK struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string
}

UpdateImmuRuleOK handles this case with default header values.

Success

func NewUpdateImmuRuleOK

func NewUpdateImmuRuleOK() *UpdateImmuRuleOK

NewUpdateImmuRuleOK creates a UpdateImmuRuleOK with default headers values

func (*UpdateImmuRuleOK) Error

func (o *UpdateImmuRuleOK) Error() string

type UpdateImmuRuleParams

type UpdateImmuRuleParams struct {

	/*ImmutableRule*/
	ImmutableRule *model.ImmutableRule
	/*XIsResourceName
	  The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name.

	*/
	XIsResourceName *bool
	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*ImmutableRuleID
	  The ID of the immutable rule

	*/
	ImmutableRuleID int64
	/*ProjectNameOrID
	  The name or id of the project

	*/
	ProjectNameOrID string

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

UpdateImmuRuleParams contains all the parameters to send to the API endpoint for the update immu rule operation typically these are written to a http.Request

func NewUpdateImmuRuleParams

func NewUpdateImmuRuleParams() *UpdateImmuRuleParams

NewUpdateImmuRuleParams creates a new UpdateImmuRuleParams object with the default values initialized.

func NewUpdateImmuRuleParamsWithContext

func NewUpdateImmuRuleParamsWithContext(ctx context.Context) *UpdateImmuRuleParams

NewUpdateImmuRuleParamsWithContext creates a new UpdateImmuRuleParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateImmuRuleParamsWithHTTPClient

func NewUpdateImmuRuleParamsWithHTTPClient(client *http.Client) *UpdateImmuRuleParams

NewUpdateImmuRuleParamsWithHTTPClient creates a new UpdateImmuRuleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateImmuRuleParamsWithTimeout

func NewUpdateImmuRuleParamsWithTimeout(timeout time.Duration) *UpdateImmuRuleParams

NewUpdateImmuRuleParamsWithTimeout creates a new UpdateImmuRuleParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateImmuRuleParams) SetContext

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

SetContext adds the context to the update immu rule params

func (*UpdateImmuRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update immu rule params

func (*UpdateImmuRuleParams) SetImmutableRule

func (o *UpdateImmuRuleParams) SetImmutableRule(immutableRule *model.ImmutableRule)

SetImmutableRule adds the immutableRule to the update immu rule params

func (*UpdateImmuRuleParams) SetImmutableRuleID

func (o *UpdateImmuRuleParams) SetImmutableRuleID(immutableRuleID int64)

SetImmutableRuleID adds the immutableRuleId to the update immu rule params

func (*UpdateImmuRuleParams) SetProjectNameOrID

func (o *UpdateImmuRuleParams) SetProjectNameOrID(projectNameOrID string)

SetProjectNameOrID adds the projectNameOrId to the update immu rule params

func (*UpdateImmuRuleParams) SetTimeout

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

SetTimeout adds the timeout to the update immu rule params

func (*UpdateImmuRuleParams) SetXIsResourceName

func (o *UpdateImmuRuleParams) SetXIsResourceName(xIsResourceName *bool)

SetXIsResourceName adds the xIsResourceName to the update immu rule params

func (*UpdateImmuRuleParams) SetXRequestID

func (o *UpdateImmuRuleParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the update immu rule params

func (*UpdateImmuRuleParams) WithContext

WithContext adds the context to the update immu rule params

func (*UpdateImmuRuleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update immu rule params

func (*UpdateImmuRuleParams) WithImmutableRule

func (o *UpdateImmuRuleParams) WithImmutableRule(immutableRule *model.ImmutableRule) *UpdateImmuRuleParams

WithImmutableRule adds the immutableRule to the update immu rule params

func (*UpdateImmuRuleParams) WithImmutableRuleID

func (o *UpdateImmuRuleParams) WithImmutableRuleID(immutableRuleID int64) *UpdateImmuRuleParams

WithImmutableRuleID adds the immutableRuleID to the update immu rule params

func (*UpdateImmuRuleParams) WithProjectNameOrID

func (o *UpdateImmuRuleParams) WithProjectNameOrID(projectNameOrID string) *UpdateImmuRuleParams

WithProjectNameOrID adds the projectNameOrID to the update immu rule params

func (*UpdateImmuRuleParams) WithTimeout

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

WithTimeout adds the timeout to the update immu rule params

func (*UpdateImmuRuleParams) WithXIsResourceName

func (o *UpdateImmuRuleParams) WithXIsResourceName(xIsResourceName *bool) *UpdateImmuRuleParams

WithXIsResourceName adds the xIsResourceName to the update immu rule params

func (*UpdateImmuRuleParams) WithXRequestID

func (o *UpdateImmuRuleParams) WithXRequestID(xRequestID *string) *UpdateImmuRuleParams

WithXRequestID adds the xRequestID to the update immu rule params

func (*UpdateImmuRuleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateImmuRuleReader

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

UpdateImmuRuleReader is a Reader for the UpdateImmuRule structure.

func (*UpdateImmuRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateImmuRuleUnauthorized

type UpdateImmuRuleUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateImmuRuleUnauthorized handles this case with default header values.

Unauthorized

func NewUpdateImmuRuleUnauthorized

func NewUpdateImmuRuleUnauthorized() *UpdateImmuRuleUnauthorized

NewUpdateImmuRuleUnauthorized creates a UpdateImmuRuleUnauthorized with default headers values

func (*UpdateImmuRuleUnauthorized) Error

func (*UpdateImmuRuleUnauthorized) GetPayload

func (o *UpdateImmuRuleUnauthorized) GetPayload() *model.Errors

Jump to

Keyboard shortcuts

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