immutable

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	/*
	   CreateImmuRule adds an immutable tag rule to current project

	   This endpoint add an immutable tag rule to the project
	*/
	CreateImmuRule(ctx context.Context, params *CreateImmuRuleParams) (*CreateImmuRuleCreated, error)
	/*
	   DeleteImmuRule deletes the immutable tag rule*/
	DeleteImmuRule(ctx context.Context, params *DeleteImmuRuleParams) (*DeleteImmuRuleOK, error)
	/*
	   ListImmuRules lists all immutable tag rules of current project

	   This endpoint returns the immutable tag rules of a project
	*/
	ListImmuRules(ctx context.Context, params *ListImmuRulesParams) (*ListImmuRulesOK, error)
	/*
	   UpdateImmuRule updates the immutable tag rule or enable or disable the rule*/
	UpdateImmuRule(ctx context.Context, params *UpdateImmuRuleParams) (*UpdateImmuRuleOK, error)
}

API is the interface of the immutable client

type Client

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

Client for immutable API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client

New creates a new immutable API client.

func (*Client) CreateImmuRule

func (a *Client) CreateImmuRule(ctx context.Context, params *CreateImmuRuleParams) (*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(ctx context.Context, params *DeleteImmuRuleParams) (*DeleteImmuRuleOK, error)

DeleteImmuRule deletes the immutable tag rule

func (*Client) ListImmuRules

func (a *Client) ListImmuRules(ctx context.Context, params *ListImmuRulesParams) (*ListImmuRulesOK, error)

ListImmuRules lists all immutable tag rules of current project

This endpoint returns the immutable tag rules of a project

func (*Client) UpdateImmuRule

func (a *Client) UpdateImmuRule(ctx context.Context, params *UpdateImmuRuleParams) (*UpdateImmuRuleOK, error)

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

type CreateImmuRuleBadRequest

type CreateImmuRuleBadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

CreateImmuRuleBadRequest describes a response with status code 400, 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() *models.Errors

func (*CreateImmuRuleBadRequest) IsClientError

func (o *CreateImmuRuleBadRequest) IsClientError() bool

IsClientError returns true when this create immu rule bad request response has a 4xx status code

func (*CreateImmuRuleBadRequest) IsCode

func (o *CreateImmuRuleBadRequest) IsCode(code int) bool

IsCode returns true when this create immu rule bad request response a status code equal to that given

func (*CreateImmuRuleBadRequest) IsRedirect

func (o *CreateImmuRuleBadRequest) IsRedirect() bool

IsRedirect returns true when this create immu rule bad request response has a 3xx status code

func (*CreateImmuRuleBadRequest) IsServerError

func (o *CreateImmuRuleBadRequest) IsServerError() bool

IsServerError returns true when this create immu rule bad request response has a 5xx status code

func (*CreateImmuRuleBadRequest) IsSuccess

func (o *CreateImmuRuleBadRequest) IsSuccess() bool

IsSuccess returns true when this create immu rule bad request response has a 2xx status code

func (*CreateImmuRuleBadRequest) String

func (o *CreateImmuRuleBadRequest) String() string

type CreateImmuRuleCreated

type CreateImmuRuleCreated struct {

	/* The location of the resource
	 */
	Location string

	/* The ID of the corresponding request for the response
	 */
	XRequestID string
}

CreateImmuRuleCreated describes a response with status code 201, 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

func (*CreateImmuRuleCreated) IsClientError

func (o *CreateImmuRuleCreated) IsClientError() bool

IsClientError returns true when this create immu rule created response has a 4xx status code

func (*CreateImmuRuleCreated) IsCode

func (o *CreateImmuRuleCreated) IsCode(code int) bool

IsCode returns true when this create immu rule created response a status code equal to that given

func (*CreateImmuRuleCreated) IsRedirect

func (o *CreateImmuRuleCreated) IsRedirect() bool

IsRedirect returns true when this create immu rule created response has a 3xx status code

func (*CreateImmuRuleCreated) IsServerError

func (o *CreateImmuRuleCreated) IsServerError() bool

IsServerError returns true when this create immu rule created response has a 5xx status code

func (*CreateImmuRuleCreated) IsSuccess

func (o *CreateImmuRuleCreated) IsSuccess() bool

IsSuccess returns true when this create immu rule created response has a 2xx status code

func (*CreateImmuRuleCreated) String

func (o *CreateImmuRuleCreated) String() string

type CreateImmuRuleForbidden

type CreateImmuRuleForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

CreateImmuRuleForbidden describes a response with status code 403, 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() *models.Errors

func (*CreateImmuRuleForbidden) IsClientError

func (o *CreateImmuRuleForbidden) IsClientError() bool

IsClientError returns true when this create immu rule forbidden response has a 4xx status code

func (*CreateImmuRuleForbidden) IsCode

func (o *CreateImmuRuleForbidden) IsCode(code int) bool

IsCode returns true when this create immu rule forbidden response a status code equal to that given

func (*CreateImmuRuleForbidden) IsRedirect

func (o *CreateImmuRuleForbidden) IsRedirect() bool

IsRedirect returns true when this create immu rule forbidden response has a 3xx status code

func (*CreateImmuRuleForbidden) IsServerError

func (o *CreateImmuRuleForbidden) IsServerError() bool

IsServerError returns true when this create immu rule forbidden response has a 5xx status code

func (*CreateImmuRuleForbidden) IsSuccess

func (o *CreateImmuRuleForbidden) IsSuccess() bool

IsSuccess returns true when this create immu rule forbidden response has a 2xx status code

func (*CreateImmuRuleForbidden) String

func (o *CreateImmuRuleForbidden) String() string

type CreateImmuRuleInternalServerError

type CreateImmuRuleInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

CreateImmuRuleInternalServerError describes a response with status code 500, 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

func (*CreateImmuRuleInternalServerError) IsClientError

func (o *CreateImmuRuleInternalServerError) IsClientError() bool

IsClientError returns true when this create immu rule internal server error response has a 4xx status code

func (*CreateImmuRuleInternalServerError) IsCode

func (o *CreateImmuRuleInternalServerError) IsCode(code int) bool

IsCode returns true when this create immu rule internal server error response a status code equal to that given

func (*CreateImmuRuleInternalServerError) IsRedirect

func (o *CreateImmuRuleInternalServerError) IsRedirect() bool

IsRedirect returns true when this create immu rule internal server error response has a 3xx status code

func (*CreateImmuRuleInternalServerError) IsServerError

func (o *CreateImmuRuleInternalServerError) IsServerError() bool

IsServerError returns true when this create immu rule internal server error response has a 5xx status code

func (*CreateImmuRuleInternalServerError) IsSuccess

func (o *CreateImmuRuleInternalServerError) IsSuccess() bool

IsSuccess returns true when this create immu rule internal server error response has a 2xx status code

func (*CreateImmuRuleInternalServerError) String

type CreateImmuRuleNotFound

type CreateImmuRuleNotFound struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

CreateImmuRuleNotFound describes a response with status code 404, 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() *models.Errors

func (*CreateImmuRuleNotFound) IsClientError

func (o *CreateImmuRuleNotFound) IsClientError() bool

IsClientError returns true when this create immu rule not found response has a 4xx status code

func (*CreateImmuRuleNotFound) IsCode

func (o *CreateImmuRuleNotFound) IsCode(code int) bool

IsCode returns true when this create immu rule not found response a status code equal to that given

func (*CreateImmuRuleNotFound) IsRedirect

func (o *CreateImmuRuleNotFound) IsRedirect() bool

IsRedirect returns true when this create immu rule not found response has a 3xx status code

func (*CreateImmuRuleNotFound) IsServerError

func (o *CreateImmuRuleNotFound) IsServerError() bool

IsServerError returns true when this create immu rule not found response has a 5xx status code

func (*CreateImmuRuleNotFound) IsSuccess

func (o *CreateImmuRuleNotFound) IsSuccess() bool

IsSuccess returns true when this create immu rule not found response has a 2xx status code

func (*CreateImmuRuleNotFound) String

func (o *CreateImmuRuleNotFound) String() string

type CreateImmuRuleParams

type CreateImmuRuleParams struct {

	// ImmutableRule.
	ImmutableRule *models.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 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 NewCreateImmuRuleParamsWithContext

func NewCreateImmuRuleParamsWithContext(ctx context.Context) *CreateImmuRuleParams

NewCreateImmuRuleParamsWithContext creates a new CreateImmuRuleParams object with 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 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 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) SetDefaults

func (o *CreateImmuRuleParams) SetDefaults()

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

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

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 *models.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) WithDefaults

func (o *CreateImmuRuleParams) WithDefaults() *CreateImmuRuleParams

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

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

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 *models.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 *models.Errors
}

CreateImmuRuleUnauthorized describes a response with status code 401, 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() *models.Errors

func (*CreateImmuRuleUnauthorized) IsClientError

func (o *CreateImmuRuleUnauthorized) IsClientError() bool

IsClientError returns true when this create immu rule unauthorized response has a 4xx status code

func (*CreateImmuRuleUnauthorized) IsCode

func (o *CreateImmuRuleUnauthorized) IsCode(code int) bool

IsCode returns true when this create immu rule unauthorized response a status code equal to that given

func (*CreateImmuRuleUnauthorized) IsRedirect

func (o *CreateImmuRuleUnauthorized) IsRedirect() bool

IsRedirect returns true when this create immu rule unauthorized response has a 3xx status code

func (*CreateImmuRuleUnauthorized) IsServerError

func (o *CreateImmuRuleUnauthorized) IsServerError() bool

IsServerError returns true when this create immu rule unauthorized response has a 5xx status code

func (*CreateImmuRuleUnauthorized) IsSuccess

func (o *CreateImmuRuleUnauthorized) IsSuccess() bool

IsSuccess returns true when this create immu rule unauthorized response has a 2xx status code

func (*CreateImmuRuleUnauthorized) String

func (o *CreateImmuRuleUnauthorized) String() string

type DeleteImmuRuleBadRequest

type DeleteImmuRuleBadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

DeleteImmuRuleBadRequest describes a response with status code 400, 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() *models.Errors

func (*DeleteImmuRuleBadRequest) IsClientError

func (o *DeleteImmuRuleBadRequest) IsClientError() bool

IsClientError returns true when this delete immu rule bad request response has a 4xx status code

func (*DeleteImmuRuleBadRequest) IsCode

func (o *DeleteImmuRuleBadRequest) IsCode(code int) bool

IsCode returns true when this delete immu rule bad request response a status code equal to that given

func (*DeleteImmuRuleBadRequest) IsRedirect

func (o *DeleteImmuRuleBadRequest) IsRedirect() bool

IsRedirect returns true when this delete immu rule bad request response has a 3xx status code

func (*DeleteImmuRuleBadRequest) IsServerError

func (o *DeleteImmuRuleBadRequest) IsServerError() bool

IsServerError returns true when this delete immu rule bad request response has a 5xx status code

func (*DeleteImmuRuleBadRequest) IsSuccess

func (o *DeleteImmuRuleBadRequest) IsSuccess() bool

IsSuccess returns true when this delete immu rule bad request response has a 2xx status code

func (*DeleteImmuRuleBadRequest) String

func (o *DeleteImmuRuleBadRequest) String() string

type DeleteImmuRuleForbidden

type DeleteImmuRuleForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

DeleteImmuRuleForbidden describes a response with status code 403, 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() *models.Errors

func (*DeleteImmuRuleForbidden) IsClientError

func (o *DeleteImmuRuleForbidden) IsClientError() bool

IsClientError returns true when this delete immu rule forbidden response has a 4xx status code

func (*DeleteImmuRuleForbidden) IsCode

func (o *DeleteImmuRuleForbidden) IsCode(code int) bool

IsCode returns true when this delete immu rule forbidden response a status code equal to that given

func (*DeleteImmuRuleForbidden) IsRedirect

func (o *DeleteImmuRuleForbidden) IsRedirect() bool

IsRedirect returns true when this delete immu rule forbidden response has a 3xx status code

func (*DeleteImmuRuleForbidden) IsServerError

func (o *DeleteImmuRuleForbidden) IsServerError() bool

IsServerError returns true when this delete immu rule forbidden response has a 5xx status code

func (*DeleteImmuRuleForbidden) IsSuccess

func (o *DeleteImmuRuleForbidden) IsSuccess() bool

IsSuccess returns true when this delete immu rule forbidden response has a 2xx status code

func (*DeleteImmuRuleForbidden) String

func (o *DeleteImmuRuleForbidden) String() string

type DeleteImmuRuleInternalServerError

type DeleteImmuRuleInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

DeleteImmuRuleInternalServerError describes a response with status code 500, 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

func (*DeleteImmuRuleInternalServerError) IsClientError

func (o *DeleteImmuRuleInternalServerError) IsClientError() bool

IsClientError returns true when this delete immu rule internal server error response has a 4xx status code

func (*DeleteImmuRuleInternalServerError) IsCode

func (o *DeleteImmuRuleInternalServerError) IsCode(code int) bool

IsCode returns true when this delete immu rule internal server error response a status code equal to that given

func (*DeleteImmuRuleInternalServerError) IsRedirect

func (o *DeleteImmuRuleInternalServerError) IsRedirect() bool

IsRedirect returns true when this delete immu rule internal server error response has a 3xx status code

func (*DeleteImmuRuleInternalServerError) IsServerError

func (o *DeleteImmuRuleInternalServerError) IsServerError() bool

IsServerError returns true when this delete immu rule internal server error response has a 5xx status code

func (*DeleteImmuRuleInternalServerError) IsSuccess

func (o *DeleteImmuRuleInternalServerError) IsSuccess() bool

IsSuccess returns true when this delete immu rule internal server error response has a 2xx status code

func (*DeleteImmuRuleInternalServerError) String

type DeleteImmuRuleOK

type DeleteImmuRuleOK struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string
}

DeleteImmuRuleOK describes a response with status code 200, 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

func (*DeleteImmuRuleOK) IsClientError

func (o *DeleteImmuRuleOK) IsClientError() bool

IsClientError returns true when this delete immu rule o k response has a 4xx status code

func (*DeleteImmuRuleOK) IsCode

func (o *DeleteImmuRuleOK) IsCode(code int) bool

IsCode returns true when this delete immu rule o k response a status code equal to that given

func (*DeleteImmuRuleOK) IsRedirect

func (o *DeleteImmuRuleOK) IsRedirect() bool

IsRedirect returns true when this delete immu rule o k response has a 3xx status code

func (*DeleteImmuRuleOK) IsServerError

func (o *DeleteImmuRuleOK) IsServerError() bool

IsServerError returns true when this delete immu rule o k response has a 5xx status code

func (*DeleteImmuRuleOK) IsSuccess

func (o *DeleteImmuRuleOK) IsSuccess() bool

IsSuccess returns true when this delete immu rule o k response has a 2xx status code

func (*DeleteImmuRuleOK) String

func (o *DeleteImmuRuleOK) String() 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

	   Format: int64
	*/
	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 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 NewDeleteImmuRuleParamsWithContext

func NewDeleteImmuRuleParamsWithContext(ctx context.Context) *DeleteImmuRuleParams

NewDeleteImmuRuleParamsWithContext creates a new DeleteImmuRuleParams object with 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 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 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) SetDefaults

func (o *DeleteImmuRuleParams) SetDefaults()

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

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

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) WithDefaults

func (o *DeleteImmuRuleParams) WithDefaults() *DeleteImmuRuleParams

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

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

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 *models.Errors
}

DeleteImmuRuleUnauthorized describes a response with status code 401, 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() *models.Errors

func (*DeleteImmuRuleUnauthorized) IsClientError

func (o *DeleteImmuRuleUnauthorized) IsClientError() bool

IsClientError returns true when this delete immu rule unauthorized response has a 4xx status code

func (*DeleteImmuRuleUnauthorized) IsCode

func (o *DeleteImmuRuleUnauthorized) IsCode(code int) bool

IsCode returns true when this delete immu rule unauthorized response a status code equal to that given

func (*DeleteImmuRuleUnauthorized) IsRedirect

func (o *DeleteImmuRuleUnauthorized) IsRedirect() bool

IsRedirect returns true when this delete immu rule unauthorized response has a 3xx status code

func (*DeleteImmuRuleUnauthorized) IsServerError

func (o *DeleteImmuRuleUnauthorized) IsServerError() bool

IsServerError returns true when this delete immu rule unauthorized response has a 5xx status code

func (*DeleteImmuRuleUnauthorized) IsSuccess

func (o *DeleteImmuRuleUnauthorized) IsSuccess() bool

IsSuccess returns true when this delete immu rule unauthorized response has a 2xx status code

func (*DeleteImmuRuleUnauthorized) String

func (o *DeleteImmuRuleUnauthorized) String() string

type ListImmuRulesBadRequest

type ListImmuRulesBadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

ListImmuRulesBadRequest describes a response with status code 400, 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() *models.Errors

func (*ListImmuRulesBadRequest) IsClientError

func (o *ListImmuRulesBadRequest) IsClientError() bool

IsClientError returns true when this list immu rules bad request response has a 4xx status code

func (*ListImmuRulesBadRequest) IsCode

func (o *ListImmuRulesBadRequest) IsCode(code int) bool

IsCode returns true when this list immu rules bad request response a status code equal to that given

func (*ListImmuRulesBadRequest) IsRedirect

func (o *ListImmuRulesBadRequest) IsRedirect() bool

IsRedirect returns true when this list immu rules bad request response has a 3xx status code

func (*ListImmuRulesBadRequest) IsServerError

func (o *ListImmuRulesBadRequest) IsServerError() bool

IsServerError returns true when this list immu rules bad request response has a 5xx status code

func (*ListImmuRulesBadRequest) IsSuccess

func (o *ListImmuRulesBadRequest) IsSuccess() bool

IsSuccess returns true when this list immu rules bad request response has a 2xx status code

func (*ListImmuRulesBadRequest) String

func (o *ListImmuRulesBadRequest) String() string

type ListImmuRulesForbidden

type ListImmuRulesForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

ListImmuRulesForbidden describes a response with status code 403, 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() *models.Errors

func (*ListImmuRulesForbidden) IsClientError

func (o *ListImmuRulesForbidden) IsClientError() bool

IsClientError returns true when this list immu rules forbidden response has a 4xx status code

func (*ListImmuRulesForbidden) IsCode

func (o *ListImmuRulesForbidden) IsCode(code int) bool

IsCode returns true when this list immu rules forbidden response a status code equal to that given

func (*ListImmuRulesForbidden) IsRedirect

func (o *ListImmuRulesForbidden) IsRedirect() bool

IsRedirect returns true when this list immu rules forbidden response has a 3xx status code

func (*ListImmuRulesForbidden) IsServerError

func (o *ListImmuRulesForbidden) IsServerError() bool

IsServerError returns true when this list immu rules forbidden response has a 5xx status code

func (*ListImmuRulesForbidden) IsSuccess

func (o *ListImmuRulesForbidden) IsSuccess() bool

IsSuccess returns true when this list immu rules forbidden response has a 2xx status code

func (*ListImmuRulesForbidden) String

func (o *ListImmuRulesForbidden) String() string

type ListImmuRulesInternalServerError

type ListImmuRulesInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

ListImmuRulesInternalServerError describes a response with status code 500, 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

func (*ListImmuRulesInternalServerError) IsClientError

func (o *ListImmuRulesInternalServerError) IsClientError() bool

IsClientError returns true when this list immu rules internal server error response has a 4xx status code

func (*ListImmuRulesInternalServerError) IsCode

func (o *ListImmuRulesInternalServerError) IsCode(code int) bool

IsCode returns true when this list immu rules internal server error response a status code equal to that given

func (*ListImmuRulesInternalServerError) IsRedirect

func (o *ListImmuRulesInternalServerError) IsRedirect() bool

IsRedirect returns true when this list immu rules internal server error response has a 3xx status code

func (*ListImmuRulesInternalServerError) IsServerError

func (o *ListImmuRulesInternalServerError) IsServerError() bool

IsServerError returns true when this list immu rules internal server error response has a 5xx status code

func (*ListImmuRulesInternalServerError) IsSuccess

func (o *ListImmuRulesInternalServerError) IsSuccess() bool

IsSuccess returns true when this list immu rules internal server error response has a 2xx status code

func (*ListImmuRulesInternalServerError) String

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 []*models.ImmutableRule
}

ListImmuRulesOK describes a response with status code 200, 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() []*models.ImmutableRule

func (*ListImmuRulesOK) IsClientError

func (o *ListImmuRulesOK) IsClientError() bool

IsClientError returns true when this list immu rules o k response has a 4xx status code

func (*ListImmuRulesOK) IsCode

func (o *ListImmuRulesOK) IsCode(code int) bool

IsCode returns true when this list immu rules o k response a status code equal to that given

func (*ListImmuRulesOK) IsRedirect

func (o *ListImmuRulesOK) IsRedirect() bool

IsRedirect returns true when this list immu rules o k response has a 3xx status code

func (*ListImmuRulesOK) IsServerError

func (o *ListImmuRulesOK) IsServerError() bool

IsServerError returns true when this list immu rules o k response has a 5xx status code

func (*ListImmuRulesOK) IsSuccess

func (o *ListImmuRulesOK) IsSuccess() bool

IsSuccess returns true when this list immu rules o k response has a 2xx status code

func (*ListImmuRulesOK) String

func (o *ListImmuRulesOK) String() string

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

	   Format: int64
	   Default: 1
	*/
	Page *int64

	/* PageSize.

	   The size of per page

	   Format: int64
	   Default: 10
	*/
	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 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 NewListImmuRulesParamsWithContext

func NewListImmuRulesParamsWithContext(ctx context.Context) *ListImmuRulesParams

NewListImmuRulesParamsWithContext creates a new ListImmuRulesParams object with 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 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 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) SetDefaults

func (o *ListImmuRulesParams) SetDefaults()

SetDefaults hydrates default values in the list immu rules params (not the query body).

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

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) WithDefaults

func (o *ListImmuRulesParams) WithDefaults() *ListImmuRulesParams

WithDefaults hydrates default values in the list immu rules params (not the query body).

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

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 *models.Errors
}

ListImmuRulesUnauthorized describes a response with status code 401, 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() *models.Errors

func (*ListImmuRulesUnauthorized) IsClientError

func (o *ListImmuRulesUnauthorized) IsClientError() bool

IsClientError returns true when this list immu rules unauthorized response has a 4xx status code

func (*ListImmuRulesUnauthorized) IsCode

func (o *ListImmuRulesUnauthorized) IsCode(code int) bool

IsCode returns true when this list immu rules unauthorized response a status code equal to that given

func (*ListImmuRulesUnauthorized) IsRedirect

func (o *ListImmuRulesUnauthorized) IsRedirect() bool

IsRedirect returns true when this list immu rules unauthorized response has a 3xx status code

func (*ListImmuRulesUnauthorized) IsServerError

func (o *ListImmuRulesUnauthorized) IsServerError() bool

IsServerError returns true when this list immu rules unauthorized response has a 5xx status code

func (*ListImmuRulesUnauthorized) IsSuccess

func (o *ListImmuRulesUnauthorized) IsSuccess() bool

IsSuccess returns true when this list immu rules unauthorized response has a 2xx status code

func (*ListImmuRulesUnauthorized) String

func (o *ListImmuRulesUnauthorized) String() string

type UpdateImmuRuleBadRequest

type UpdateImmuRuleBadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

UpdateImmuRuleBadRequest describes a response with status code 400, 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() *models.Errors

func (*UpdateImmuRuleBadRequest) IsClientError

func (o *UpdateImmuRuleBadRequest) IsClientError() bool

IsClientError returns true when this update immu rule bad request response has a 4xx status code

func (*UpdateImmuRuleBadRequest) IsCode

func (o *UpdateImmuRuleBadRequest) IsCode(code int) bool

IsCode returns true when this update immu rule bad request response a status code equal to that given

func (*UpdateImmuRuleBadRequest) IsRedirect

func (o *UpdateImmuRuleBadRequest) IsRedirect() bool

IsRedirect returns true when this update immu rule bad request response has a 3xx status code

func (*UpdateImmuRuleBadRequest) IsServerError

func (o *UpdateImmuRuleBadRequest) IsServerError() bool

IsServerError returns true when this update immu rule bad request response has a 5xx status code

func (*UpdateImmuRuleBadRequest) IsSuccess

func (o *UpdateImmuRuleBadRequest) IsSuccess() bool

IsSuccess returns true when this update immu rule bad request response has a 2xx status code

func (*UpdateImmuRuleBadRequest) String

func (o *UpdateImmuRuleBadRequest) String() string

type UpdateImmuRuleForbidden

type UpdateImmuRuleForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

UpdateImmuRuleForbidden describes a response with status code 403, 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() *models.Errors

func (*UpdateImmuRuleForbidden) IsClientError

func (o *UpdateImmuRuleForbidden) IsClientError() bool

IsClientError returns true when this update immu rule forbidden response has a 4xx status code

func (*UpdateImmuRuleForbidden) IsCode

func (o *UpdateImmuRuleForbidden) IsCode(code int) bool

IsCode returns true when this update immu rule forbidden response a status code equal to that given

func (*UpdateImmuRuleForbidden) IsRedirect

func (o *UpdateImmuRuleForbidden) IsRedirect() bool

IsRedirect returns true when this update immu rule forbidden response has a 3xx status code

func (*UpdateImmuRuleForbidden) IsServerError

func (o *UpdateImmuRuleForbidden) IsServerError() bool

IsServerError returns true when this update immu rule forbidden response has a 5xx status code

func (*UpdateImmuRuleForbidden) IsSuccess

func (o *UpdateImmuRuleForbidden) IsSuccess() bool

IsSuccess returns true when this update immu rule forbidden response has a 2xx status code

func (*UpdateImmuRuleForbidden) String

func (o *UpdateImmuRuleForbidden) String() string

type UpdateImmuRuleInternalServerError

type UpdateImmuRuleInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

UpdateImmuRuleInternalServerError describes a response with status code 500, 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

func (*UpdateImmuRuleInternalServerError) IsClientError

func (o *UpdateImmuRuleInternalServerError) IsClientError() bool

IsClientError returns true when this update immu rule internal server error response has a 4xx status code

func (*UpdateImmuRuleInternalServerError) IsCode

func (o *UpdateImmuRuleInternalServerError) IsCode(code int) bool

IsCode returns true when this update immu rule internal server error response a status code equal to that given

func (*UpdateImmuRuleInternalServerError) IsRedirect

func (o *UpdateImmuRuleInternalServerError) IsRedirect() bool

IsRedirect returns true when this update immu rule internal server error response has a 3xx status code

func (*UpdateImmuRuleInternalServerError) IsServerError

func (o *UpdateImmuRuleInternalServerError) IsServerError() bool

IsServerError returns true when this update immu rule internal server error response has a 5xx status code

func (*UpdateImmuRuleInternalServerError) IsSuccess

func (o *UpdateImmuRuleInternalServerError) IsSuccess() bool

IsSuccess returns true when this update immu rule internal server error response has a 2xx status code

func (*UpdateImmuRuleInternalServerError) String

type UpdateImmuRuleOK

type UpdateImmuRuleOK struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string
}

UpdateImmuRuleOK describes a response with status code 200, 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

func (*UpdateImmuRuleOK) IsClientError

func (o *UpdateImmuRuleOK) IsClientError() bool

IsClientError returns true when this update immu rule o k response has a 4xx status code

func (*UpdateImmuRuleOK) IsCode

func (o *UpdateImmuRuleOK) IsCode(code int) bool

IsCode returns true when this update immu rule o k response a status code equal to that given

func (*UpdateImmuRuleOK) IsRedirect

func (o *UpdateImmuRuleOK) IsRedirect() bool

IsRedirect returns true when this update immu rule o k response has a 3xx status code

func (*UpdateImmuRuleOK) IsServerError

func (o *UpdateImmuRuleOK) IsServerError() bool

IsServerError returns true when this update immu rule o k response has a 5xx status code

func (*UpdateImmuRuleOK) IsSuccess

func (o *UpdateImmuRuleOK) IsSuccess() bool

IsSuccess returns true when this update immu rule o k response has a 2xx status code

func (*UpdateImmuRuleOK) String

func (o *UpdateImmuRuleOK) String() string

type UpdateImmuRuleParams

type UpdateImmuRuleParams struct {

	// ImmutableRule.
	ImmutableRule *models.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

	   Format: int64
	*/
	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 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 NewUpdateImmuRuleParamsWithContext

func NewUpdateImmuRuleParamsWithContext(ctx context.Context) *UpdateImmuRuleParams

NewUpdateImmuRuleParamsWithContext creates a new UpdateImmuRuleParams object with 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 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 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) SetDefaults

func (o *UpdateImmuRuleParams) SetDefaults()

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

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

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 *models.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) WithDefaults

func (o *UpdateImmuRuleParams) WithDefaults() *UpdateImmuRuleParams

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

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

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 *models.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 *models.Errors
}

UpdateImmuRuleUnauthorized describes a response with status code 401, 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() *models.Errors

func (*UpdateImmuRuleUnauthorized) IsClientError

func (o *UpdateImmuRuleUnauthorized) IsClientError() bool

IsClientError returns true when this update immu rule unauthorized response has a 4xx status code

func (*UpdateImmuRuleUnauthorized) IsCode

func (o *UpdateImmuRuleUnauthorized) IsCode(code int) bool

IsCode returns true when this update immu rule unauthorized response a status code equal to that given

func (*UpdateImmuRuleUnauthorized) IsRedirect

func (o *UpdateImmuRuleUnauthorized) IsRedirect() bool

IsRedirect returns true when this update immu rule unauthorized response has a 3xx status code

func (*UpdateImmuRuleUnauthorized) IsServerError

func (o *UpdateImmuRuleUnauthorized) IsServerError() bool

IsServerError returns true when this update immu rule unauthorized response has a 5xx status code

func (*UpdateImmuRuleUnauthorized) IsSuccess

func (o *UpdateImmuRuleUnauthorized) IsSuccess() bool

IsSuccess returns true when this update immu rule unauthorized response has a 2xx status code

func (*UpdateImmuRuleUnauthorized) String

func (o *UpdateImmuRuleUnauthorized) String() string

Jump to

Keyboard shortcuts

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