object_discovery_rule

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 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 Client

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

Client for object discovery rule API

func (*Client) CreateObjectDiscoveryRule

func (a *Client) CreateObjectDiscoveryRule(params *CreateObjectDiscoveryRuleParams, opts ...ClientOption) (*CreateObjectDiscoveryRuleOK, error)

CreateObjectDiscoveryRule create object discovery rule API

func (*Client) DeleteObjectDiscoveryRule

func (a *Client) DeleteObjectDiscoveryRule(params *DeleteObjectDiscoveryRuleParams, opts ...ClientOption) (*DeleteObjectDiscoveryRuleOK, error)

DeleteObjectDiscoveryRule delete object discovery rule API

func (*Client) ListObjectDiscoveryRule

func (a *Client) ListObjectDiscoveryRule(params *ListObjectDiscoveryRuleParams, opts ...ClientOption) (*ListObjectDiscoveryRuleOK, error)

ListObjectDiscoveryRule list object discovery rule API

func (*Client) ReadObjectDiscoveryRule

func (a *Client) ReadObjectDiscoveryRule(params *ReadObjectDiscoveryRuleParams, opts ...ClientOption) (*ReadObjectDiscoveryRuleOK, error)

ReadObjectDiscoveryRule read object discovery rule API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateObjectDiscoveryRule

func (a *Client) UpdateObjectDiscoveryRule(params *UpdateObjectDiscoveryRuleParams, opts ...ClientOption) (*UpdateObjectDiscoveryRuleOK, error)

UpdateObjectDiscoveryRule update object discovery rule API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateObjectDiscoveryRule(params *CreateObjectDiscoveryRuleParams, opts ...ClientOption) (*CreateObjectDiscoveryRuleOK, error)

	DeleteObjectDiscoveryRule(params *DeleteObjectDiscoveryRuleParams, opts ...ClientOption) (*DeleteObjectDiscoveryRuleOK, error)

	ListObjectDiscoveryRule(params *ListObjectDiscoveryRuleParams, opts ...ClientOption) (*ListObjectDiscoveryRuleOK, error)

	ReadObjectDiscoveryRule(params *ReadObjectDiscoveryRuleParams, opts ...ClientOption) (*ReadObjectDiscoveryRuleOK, error)

	UpdateObjectDiscoveryRule(params *UpdateObjectDiscoveryRuleParams, opts ...ClientOption) (*UpdateObjectDiscoveryRuleOK, 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 object discovery rule API client.

type CreateObjectDiscoveryRuleBadRequest

type CreateObjectDiscoveryRuleBadRequest struct {
	Payload *models.APIError
}

CreateObjectDiscoveryRuleBadRequest describes a response with status code 400, with default header values.

Cannot create the ObjectDiscoveryRule because the request is invalid.

func NewCreateObjectDiscoveryRuleBadRequest

func NewCreateObjectDiscoveryRuleBadRequest() *CreateObjectDiscoveryRuleBadRequest

NewCreateObjectDiscoveryRuleBadRequest creates a CreateObjectDiscoveryRuleBadRequest with default headers values

func (*CreateObjectDiscoveryRuleBadRequest) Code

Code gets the status code for the create object discovery rule bad request response

func (*CreateObjectDiscoveryRuleBadRequest) Error

func (*CreateObjectDiscoveryRuleBadRequest) GetPayload

func (*CreateObjectDiscoveryRuleBadRequest) IsClientError

func (o *CreateObjectDiscoveryRuleBadRequest) IsClientError() bool

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

func (*CreateObjectDiscoveryRuleBadRequest) IsCode

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

func (*CreateObjectDiscoveryRuleBadRequest) IsRedirect

func (o *CreateObjectDiscoveryRuleBadRequest) IsRedirect() bool

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

func (*CreateObjectDiscoveryRuleBadRequest) IsServerError

func (o *CreateObjectDiscoveryRuleBadRequest) IsServerError() bool

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

func (*CreateObjectDiscoveryRuleBadRequest) IsSuccess

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

func (*CreateObjectDiscoveryRuleBadRequest) String

type CreateObjectDiscoveryRuleConflict

type CreateObjectDiscoveryRuleConflict struct {
	Payload *models.APIError
}

CreateObjectDiscoveryRuleConflict describes a response with status code 409, with default header values.

Cannot create the ObjectDiscoveryRule because there is a conflict with an existing ObjectDiscoveryRule.

func NewCreateObjectDiscoveryRuleConflict

func NewCreateObjectDiscoveryRuleConflict() *CreateObjectDiscoveryRuleConflict

NewCreateObjectDiscoveryRuleConflict creates a CreateObjectDiscoveryRuleConflict with default headers values

func (*CreateObjectDiscoveryRuleConflict) Code

Code gets the status code for the create object discovery rule conflict response

func (*CreateObjectDiscoveryRuleConflict) Error

func (*CreateObjectDiscoveryRuleConflict) GetPayload

func (*CreateObjectDiscoveryRuleConflict) IsClientError

func (o *CreateObjectDiscoveryRuleConflict) IsClientError() bool

IsClientError returns true when this create object discovery rule conflict response has a 4xx status code

func (*CreateObjectDiscoveryRuleConflict) IsCode

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

IsCode returns true when this create object discovery rule conflict response a status code equal to that given

func (*CreateObjectDiscoveryRuleConflict) IsRedirect

func (o *CreateObjectDiscoveryRuleConflict) IsRedirect() bool

IsRedirect returns true when this create object discovery rule conflict response has a 3xx status code

func (*CreateObjectDiscoveryRuleConflict) IsServerError

func (o *CreateObjectDiscoveryRuleConflict) IsServerError() bool

IsServerError returns true when this create object discovery rule conflict response has a 5xx status code

func (*CreateObjectDiscoveryRuleConflict) IsSuccess

func (o *CreateObjectDiscoveryRuleConflict) IsSuccess() bool

IsSuccess returns true when this create object discovery rule conflict response has a 2xx status code

func (*CreateObjectDiscoveryRuleConflict) String

type CreateObjectDiscoveryRuleDefault

type CreateObjectDiscoveryRuleDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

CreateObjectDiscoveryRuleDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewCreateObjectDiscoveryRuleDefault

func NewCreateObjectDiscoveryRuleDefault(code int) *CreateObjectDiscoveryRuleDefault

NewCreateObjectDiscoveryRuleDefault creates a CreateObjectDiscoveryRuleDefault with default headers values

func (*CreateObjectDiscoveryRuleDefault) Code

Code gets the status code for the create object discovery rule default response

func (*CreateObjectDiscoveryRuleDefault) Error

func (*CreateObjectDiscoveryRuleDefault) GetPayload

func (*CreateObjectDiscoveryRuleDefault) IsClientError

func (o *CreateObjectDiscoveryRuleDefault) IsClientError() bool

IsClientError returns true when this create object discovery rule default response has a 4xx status code

func (*CreateObjectDiscoveryRuleDefault) IsCode

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

IsCode returns true when this create object discovery rule default response a status code equal to that given

func (*CreateObjectDiscoveryRuleDefault) IsRedirect

func (o *CreateObjectDiscoveryRuleDefault) IsRedirect() bool

IsRedirect returns true when this create object discovery rule default response has a 3xx status code

func (*CreateObjectDiscoveryRuleDefault) IsServerError

func (o *CreateObjectDiscoveryRuleDefault) IsServerError() bool

IsServerError returns true when this create object discovery rule default response has a 5xx status code

func (*CreateObjectDiscoveryRuleDefault) IsSuccess

func (o *CreateObjectDiscoveryRuleDefault) IsSuccess() bool

IsSuccess returns true when this create object discovery rule default response has a 2xx status code

func (*CreateObjectDiscoveryRuleDefault) String

type CreateObjectDiscoveryRuleInternalServerError

type CreateObjectDiscoveryRuleInternalServerError struct {
	Payload *models.APIError
}

CreateObjectDiscoveryRuleInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewCreateObjectDiscoveryRuleInternalServerError

func NewCreateObjectDiscoveryRuleInternalServerError() *CreateObjectDiscoveryRuleInternalServerError

NewCreateObjectDiscoveryRuleInternalServerError creates a CreateObjectDiscoveryRuleInternalServerError with default headers values

func (*CreateObjectDiscoveryRuleInternalServerError) Code

Code gets the status code for the create object discovery rule internal server error response

func (*CreateObjectDiscoveryRuleInternalServerError) Error

func (*CreateObjectDiscoveryRuleInternalServerError) GetPayload

func (*CreateObjectDiscoveryRuleInternalServerError) IsClientError

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

func (*CreateObjectDiscoveryRuleInternalServerError) IsCode

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

func (*CreateObjectDiscoveryRuleInternalServerError) IsRedirect

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

func (*CreateObjectDiscoveryRuleInternalServerError) IsServerError

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

func (*CreateObjectDiscoveryRuleInternalServerError) IsSuccess

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

func (*CreateObjectDiscoveryRuleInternalServerError) String

type CreateObjectDiscoveryRuleOK

type CreateObjectDiscoveryRuleOK struct {
	Payload *models.ConfigunstableCreateObjectDiscoveryRuleResponse
}

CreateObjectDiscoveryRuleOK describes a response with status code 200, with default header values.

A successful response containing the created ObjectDiscoveryRule.

func NewCreateObjectDiscoveryRuleOK

func NewCreateObjectDiscoveryRuleOK() *CreateObjectDiscoveryRuleOK

NewCreateObjectDiscoveryRuleOK creates a CreateObjectDiscoveryRuleOK with default headers values

func (*CreateObjectDiscoveryRuleOK) Code

func (o *CreateObjectDiscoveryRuleOK) Code() int

Code gets the status code for the create object discovery rule o k response

func (*CreateObjectDiscoveryRuleOK) Error

func (*CreateObjectDiscoveryRuleOK) GetPayload

func (*CreateObjectDiscoveryRuleOK) IsClientError

func (o *CreateObjectDiscoveryRuleOK) IsClientError() bool

IsClientError returns true when this create object discovery rule o k response has a 4xx status code

func (*CreateObjectDiscoveryRuleOK) IsCode

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

IsCode returns true when this create object discovery rule o k response a status code equal to that given

func (*CreateObjectDiscoveryRuleOK) IsRedirect

func (o *CreateObjectDiscoveryRuleOK) IsRedirect() bool

IsRedirect returns true when this create object discovery rule o k response has a 3xx status code

func (*CreateObjectDiscoveryRuleOK) IsServerError

func (o *CreateObjectDiscoveryRuleOK) IsServerError() bool

IsServerError returns true when this create object discovery rule o k response has a 5xx status code

func (*CreateObjectDiscoveryRuleOK) IsSuccess

func (o *CreateObjectDiscoveryRuleOK) IsSuccess() bool

IsSuccess returns true when this create object discovery rule o k response has a 2xx status code

func (*CreateObjectDiscoveryRuleOK) String

func (o *CreateObjectDiscoveryRuleOK) String() string

type CreateObjectDiscoveryRuleParams

type CreateObjectDiscoveryRuleParams struct {

	// Body.
	Body *models.ConfigunstableCreateObjectDiscoveryRuleRequest

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

CreateObjectDiscoveryRuleParams contains all the parameters to send to the API endpoint

for the create object discovery rule operation.

Typically these are written to a http.Request.

func NewCreateObjectDiscoveryRuleParams

func NewCreateObjectDiscoveryRuleParams() *CreateObjectDiscoveryRuleParams

NewCreateObjectDiscoveryRuleParams creates a new CreateObjectDiscoveryRuleParams 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 NewCreateObjectDiscoveryRuleParamsWithContext

func NewCreateObjectDiscoveryRuleParamsWithContext(ctx context.Context) *CreateObjectDiscoveryRuleParams

NewCreateObjectDiscoveryRuleParamsWithContext creates a new CreateObjectDiscoveryRuleParams object with the ability to set a context for a request.

func NewCreateObjectDiscoveryRuleParamsWithHTTPClient

func NewCreateObjectDiscoveryRuleParamsWithHTTPClient(client *http.Client) *CreateObjectDiscoveryRuleParams

NewCreateObjectDiscoveryRuleParamsWithHTTPClient creates a new CreateObjectDiscoveryRuleParams object with the ability to set a custom HTTPClient for a request.

func NewCreateObjectDiscoveryRuleParamsWithTimeout

func NewCreateObjectDiscoveryRuleParamsWithTimeout(timeout time.Duration) *CreateObjectDiscoveryRuleParams

NewCreateObjectDiscoveryRuleParamsWithTimeout creates a new CreateObjectDiscoveryRuleParams object with the ability to set a timeout on a request.

func (*CreateObjectDiscoveryRuleParams) SetBody

SetBody adds the body to the create object discovery rule params

func (*CreateObjectDiscoveryRuleParams) SetContext

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

SetContext adds the context to the create object discovery rule params

func (*CreateObjectDiscoveryRuleParams) SetDefaults

func (o *CreateObjectDiscoveryRuleParams) SetDefaults()

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

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

func (*CreateObjectDiscoveryRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create object discovery rule params

func (*CreateObjectDiscoveryRuleParams) SetTimeout

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

SetTimeout adds the timeout to the create object discovery rule params

func (*CreateObjectDiscoveryRuleParams) WithBody

WithBody adds the body to the create object discovery rule params

func (*CreateObjectDiscoveryRuleParams) WithContext

WithContext adds the context to the create object discovery rule params

func (*CreateObjectDiscoveryRuleParams) WithDefaults

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

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

func (*CreateObjectDiscoveryRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create object discovery rule params

func (*CreateObjectDiscoveryRuleParams) WithTimeout

WithTimeout adds the timeout to the create object discovery rule params

func (*CreateObjectDiscoveryRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateObjectDiscoveryRuleReader

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

CreateObjectDiscoveryRuleReader is a Reader for the CreateObjectDiscoveryRule structure.

func (*CreateObjectDiscoveryRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteObjectDiscoveryRuleBadRequest

type DeleteObjectDiscoveryRuleBadRequest struct {
	Payload *models.APIError
}

DeleteObjectDiscoveryRuleBadRequest describes a response with status code 400, with default header values.

Cannot delete the ObjectDiscoveryRule because it is in use.

func NewDeleteObjectDiscoveryRuleBadRequest

func NewDeleteObjectDiscoveryRuleBadRequest() *DeleteObjectDiscoveryRuleBadRequest

NewDeleteObjectDiscoveryRuleBadRequest creates a DeleteObjectDiscoveryRuleBadRequest with default headers values

func (*DeleteObjectDiscoveryRuleBadRequest) Code

Code gets the status code for the delete object discovery rule bad request response

func (*DeleteObjectDiscoveryRuleBadRequest) Error

func (*DeleteObjectDiscoveryRuleBadRequest) GetPayload

func (*DeleteObjectDiscoveryRuleBadRequest) IsClientError

func (o *DeleteObjectDiscoveryRuleBadRequest) IsClientError() bool

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

func (*DeleteObjectDiscoveryRuleBadRequest) IsCode

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

func (*DeleteObjectDiscoveryRuleBadRequest) IsRedirect

func (o *DeleteObjectDiscoveryRuleBadRequest) IsRedirect() bool

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

func (*DeleteObjectDiscoveryRuleBadRequest) IsServerError

func (o *DeleteObjectDiscoveryRuleBadRequest) IsServerError() bool

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

func (*DeleteObjectDiscoveryRuleBadRequest) IsSuccess

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

func (*DeleteObjectDiscoveryRuleBadRequest) String

type DeleteObjectDiscoveryRuleDefault

type DeleteObjectDiscoveryRuleDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

DeleteObjectDiscoveryRuleDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewDeleteObjectDiscoveryRuleDefault

func NewDeleteObjectDiscoveryRuleDefault(code int) *DeleteObjectDiscoveryRuleDefault

NewDeleteObjectDiscoveryRuleDefault creates a DeleteObjectDiscoveryRuleDefault with default headers values

func (*DeleteObjectDiscoveryRuleDefault) Code

Code gets the status code for the delete object discovery rule default response

func (*DeleteObjectDiscoveryRuleDefault) Error

func (*DeleteObjectDiscoveryRuleDefault) GetPayload

func (*DeleteObjectDiscoveryRuleDefault) IsClientError

func (o *DeleteObjectDiscoveryRuleDefault) IsClientError() bool

IsClientError returns true when this delete object discovery rule default response has a 4xx status code

func (*DeleteObjectDiscoveryRuleDefault) IsCode

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

IsCode returns true when this delete object discovery rule default response a status code equal to that given

func (*DeleteObjectDiscoveryRuleDefault) IsRedirect

func (o *DeleteObjectDiscoveryRuleDefault) IsRedirect() bool

IsRedirect returns true when this delete object discovery rule default response has a 3xx status code

func (*DeleteObjectDiscoveryRuleDefault) IsServerError

func (o *DeleteObjectDiscoveryRuleDefault) IsServerError() bool

IsServerError returns true when this delete object discovery rule default response has a 5xx status code

func (*DeleteObjectDiscoveryRuleDefault) IsSuccess

func (o *DeleteObjectDiscoveryRuleDefault) IsSuccess() bool

IsSuccess returns true when this delete object discovery rule default response has a 2xx status code

func (*DeleteObjectDiscoveryRuleDefault) String

type DeleteObjectDiscoveryRuleInternalServerError

type DeleteObjectDiscoveryRuleInternalServerError struct {
	Payload *models.APIError
}

DeleteObjectDiscoveryRuleInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewDeleteObjectDiscoveryRuleInternalServerError

func NewDeleteObjectDiscoveryRuleInternalServerError() *DeleteObjectDiscoveryRuleInternalServerError

NewDeleteObjectDiscoveryRuleInternalServerError creates a DeleteObjectDiscoveryRuleInternalServerError with default headers values

func (*DeleteObjectDiscoveryRuleInternalServerError) Code

Code gets the status code for the delete object discovery rule internal server error response

func (*DeleteObjectDiscoveryRuleInternalServerError) Error

func (*DeleteObjectDiscoveryRuleInternalServerError) GetPayload

func (*DeleteObjectDiscoveryRuleInternalServerError) IsClientError

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

func (*DeleteObjectDiscoveryRuleInternalServerError) IsCode

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

func (*DeleteObjectDiscoveryRuleInternalServerError) IsRedirect

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

func (*DeleteObjectDiscoveryRuleInternalServerError) IsServerError

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

func (*DeleteObjectDiscoveryRuleInternalServerError) IsSuccess

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

func (*DeleteObjectDiscoveryRuleInternalServerError) String

type DeleteObjectDiscoveryRuleNotFound

type DeleteObjectDiscoveryRuleNotFound struct {
	Payload *models.APIError
}

DeleteObjectDiscoveryRuleNotFound describes a response with status code 404, with default header values.

Cannot delete the ObjectDiscoveryRule because the slug does not exist.

func NewDeleteObjectDiscoveryRuleNotFound

func NewDeleteObjectDiscoveryRuleNotFound() *DeleteObjectDiscoveryRuleNotFound

NewDeleteObjectDiscoveryRuleNotFound creates a DeleteObjectDiscoveryRuleNotFound with default headers values

func (*DeleteObjectDiscoveryRuleNotFound) Code

Code gets the status code for the delete object discovery rule not found response

func (*DeleteObjectDiscoveryRuleNotFound) Error

func (*DeleteObjectDiscoveryRuleNotFound) GetPayload

func (*DeleteObjectDiscoveryRuleNotFound) IsClientError

func (o *DeleteObjectDiscoveryRuleNotFound) IsClientError() bool

IsClientError returns true when this delete object discovery rule not found response has a 4xx status code

func (*DeleteObjectDiscoveryRuleNotFound) IsCode

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

IsCode returns true when this delete object discovery rule not found response a status code equal to that given

func (*DeleteObjectDiscoveryRuleNotFound) IsRedirect

func (o *DeleteObjectDiscoveryRuleNotFound) IsRedirect() bool

IsRedirect returns true when this delete object discovery rule not found response has a 3xx status code

func (*DeleteObjectDiscoveryRuleNotFound) IsServerError

func (o *DeleteObjectDiscoveryRuleNotFound) IsServerError() bool

IsServerError returns true when this delete object discovery rule not found response has a 5xx status code

func (*DeleteObjectDiscoveryRuleNotFound) IsSuccess

func (o *DeleteObjectDiscoveryRuleNotFound) IsSuccess() bool

IsSuccess returns true when this delete object discovery rule not found response has a 2xx status code

func (*DeleteObjectDiscoveryRuleNotFound) String

type DeleteObjectDiscoveryRuleOK

type DeleteObjectDiscoveryRuleOK struct {
	Payload models.ConfigunstableDeleteObjectDiscoveryRuleResponse
}

DeleteObjectDiscoveryRuleOK describes a response with status code 200, with default header values.

A successful response.

func NewDeleteObjectDiscoveryRuleOK

func NewDeleteObjectDiscoveryRuleOK() *DeleteObjectDiscoveryRuleOK

NewDeleteObjectDiscoveryRuleOK creates a DeleteObjectDiscoveryRuleOK with default headers values

func (*DeleteObjectDiscoveryRuleOK) Code

func (o *DeleteObjectDiscoveryRuleOK) Code() int

Code gets the status code for the delete object discovery rule o k response

func (*DeleteObjectDiscoveryRuleOK) Error

func (*DeleteObjectDiscoveryRuleOK) GetPayload

func (*DeleteObjectDiscoveryRuleOK) IsClientError

func (o *DeleteObjectDiscoveryRuleOK) IsClientError() bool

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

func (*DeleteObjectDiscoveryRuleOK) IsCode

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

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

func (*DeleteObjectDiscoveryRuleOK) IsRedirect

func (o *DeleteObjectDiscoveryRuleOK) IsRedirect() bool

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

func (*DeleteObjectDiscoveryRuleOK) IsServerError

func (o *DeleteObjectDiscoveryRuleOK) IsServerError() bool

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

func (*DeleteObjectDiscoveryRuleOK) IsSuccess

func (o *DeleteObjectDiscoveryRuleOK) IsSuccess() bool

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

func (*DeleteObjectDiscoveryRuleOK) String

func (o *DeleteObjectDiscoveryRuleOK) String() string

type DeleteObjectDiscoveryRuleParams

type DeleteObjectDiscoveryRuleParams struct {

	// Slug.
	Slug string

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

DeleteObjectDiscoveryRuleParams contains all the parameters to send to the API endpoint

for the delete object discovery rule operation.

Typically these are written to a http.Request.

func NewDeleteObjectDiscoveryRuleParams

func NewDeleteObjectDiscoveryRuleParams() *DeleteObjectDiscoveryRuleParams

NewDeleteObjectDiscoveryRuleParams creates a new DeleteObjectDiscoveryRuleParams 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 NewDeleteObjectDiscoveryRuleParamsWithContext

func NewDeleteObjectDiscoveryRuleParamsWithContext(ctx context.Context) *DeleteObjectDiscoveryRuleParams

NewDeleteObjectDiscoveryRuleParamsWithContext creates a new DeleteObjectDiscoveryRuleParams object with the ability to set a context for a request.

func NewDeleteObjectDiscoveryRuleParamsWithHTTPClient

func NewDeleteObjectDiscoveryRuleParamsWithHTTPClient(client *http.Client) *DeleteObjectDiscoveryRuleParams

NewDeleteObjectDiscoveryRuleParamsWithHTTPClient creates a new DeleteObjectDiscoveryRuleParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteObjectDiscoveryRuleParamsWithTimeout

func NewDeleteObjectDiscoveryRuleParamsWithTimeout(timeout time.Duration) *DeleteObjectDiscoveryRuleParams

NewDeleteObjectDiscoveryRuleParamsWithTimeout creates a new DeleteObjectDiscoveryRuleParams object with the ability to set a timeout on a request.

func (*DeleteObjectDiscoveryRuleParams) SetContext

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

SetContext adds the context to the delete object discovery rule params

func (*DeleteObjectDiscoveryRuleParams) SetDefaults

func (o *DeleteObjectDiscoveryRuleParams) SetDefaults()

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

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

func (*DeleteObjectDiscoveryRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete object discovery rule params

func (*DeleteObjectDiscoveryRuleParams) SetSlug

func (o *DeleteObjectDiscoveryRuleParams) SetSlug(slug string)

SetSlug adds the slug to the delete object discovery rule params

func (*DeleteObjectDiscoveryRuleParams) SetTimeout

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

SetTimeout adds the timeout to the delete object discovery rule params

func (*DeleteObjectDiscoveryRuleParams) WithContext

WithContext adds the context to the delete object discovery rule params

func (*DeleteObjectDiscoveryRuleParams) WithDefaults

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

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

func (*DeleteObjectDiscoveryRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete object discovery rule params

func (*DeleteObjectDiscoveryRuleParams) WithSlug

WithSlug adds the slug to the delete object discovery rule params

func (*DeleteObjectDiscoveryRuleParams) WithTimeout

WithTimeout adds the timeout to the delete object discovery rule params

func (*DeleteObjectDiscoveryRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteObjectDiscoveryRuleReader

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

DeleteObjectDiscoveryRuleReader is a Reader for the DeleteObjectDiscoveryRule structure.

func (*DeleteObjectDiscoveryRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListObjectDiscoveryRuleDefault

type ListObjectDiscoveryRuleDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

ListObjectDiscoveryRuleDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewListObjectDiscoveryRuleDefault

func NewListObjectDiscoveryRuleDefault(code int) *ListObjectDiscoveryRuleDefault

NewListObjectDiscoveryRuleDefault creates a ListObjectDiscoveryRuleDefault with default headers values

func (*ListObjectDiscoveryRuleDefault) Code

Code gets the status code for the list object discovery rule default response

func (*ListObjectDiscoveryRuleDefault) Error

func (*ListObjectDiscoveryRuleDefault) GetPayload

func (*ListObjectDiscoveryRuleDefault) IsClientError

func (o *ListObjectDiscoveryRuleDefault) IsClientError() bool

IsClientError returns true when this list object discovery rule default response has a 4xx status code

func (*ListObjectDiscoveryRuleDefault) IsCode

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

IsCode returns true when this list object discovery rule default response a status code equal to that given

func (*ListObjectDiscoveryRuleDefault) IsRedirect

func (o *ListObjectDiscoveryRuleDefault) IsRedirect() bool

IsRedirect returns true when this list object discovery rule default response has a 3xx status code

func (*ListObjectDiscoveryRuleDefault) IsServerError

func (o *ListObjectDiscoveryRuleDefault) IsServerError() bool

IsServerError returns true when this list object discovery rule default response has a 5xx status code

func (*ListObjectDiscoveryRuleDefault) IsSuccess

func (o *ListObjectDiscoveryRuleDefault) IsSuccess() bool

IsSuccess returns true when this list object discovery rule default response has a 2xx status code

func (*ListObjectDiscoveryRuleDefault) String

type ListObjectDiscoveryRuleInternalServerError

type ListObjectDiscoveryRuleInternalServerError struct {
	Payload *models.APIError
}

ListObjectDiscoveryRuleInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewListObjectDiscoveryRuleInternalServerError

func NewListObjectDiscoveryRuleInternalServerError() *ListObjectDiscoveryRuleInternalServerError

NewListObjectDiscoveryRuleInternalServerError creates a ListObjectDiscoveryRuleInternalServerError with default headers values

func (*ListObjectDiscoveryRuleInternalServerError) Code

Code gets the status code for the list object discovery rule internal server error response

func (*ListObjectDiscoveryRuleInternalServerError) Error

func (*ListObjectDiscoveryRuleInternalServerError) GetPayload

func (*ListObjectDiscoveryRuleInternalServerError) IsClientError

IsClientError returns true when this list object discovery rule internal server error response has a 4xx status code

func (*ListObjectDiscoveryRuleInternalServerError) IsCode

IsCode returns true when this list object discovery rule internal server error response a status code equal to that given

func (*ListObjectDiscoveryRuleInternalServerError) IsRedirect

IsRedirect returns true when this list object discovery rule internal server error response has a 3xx status code

func (*ListObjectDiscoveryRuleInternalServerError) IsServerError

IsServerError returns true when this list object discovery rule internal server error response has a 5xx status code

func (*ListObjectDiscoveryRuleInternalServerError) IsSuccess

IsSuccess returns true when this list object discovery rule internal server error response has a 2xx status code

func (*ListObjectDiscoveryRuleInternalServerError) String

type ListObjectDiscoveryRuleOK

type ListObjectDiscoveryRuleOK struct {
	Payload *models.ConfigunstableListObjectDiscoveryRulesResponse
}

ListObjectDiscoveryRuleOK describes a response with status code 200, with default header values.

A successful response.

func NewListObjectDiscoveryRuleOK

func NewListObjectDiscoveryRuleOK() *ListObjectDiscoveryRuleOK

NewListObjectDiscoveryRuleOK creates a ListObjectDiscoveryRuleOK with default headers values

func (*ListObjectDiscoveryRuleOK) Code

func (o *ListObjectDiscoveryRuleOK) Code() int

Code gets the status code for the list object discovery rule o k response

func (*ListObjectDiscoveryRuleOK) Error

func (o *ListObjectDiscoveryRuleOK) Error() string

func (*ListObjectDiscoveryRuleOK) GetPayload

func (*ListObjectDiscoveryRuleOK) IsClientError

func (o *ListObjectDiscoveryRuleOK) IsClientError() bool

IsClientError returns true when this list object discovery rule o k response has a 4xx status code

func (*ListObjectDiscoveryRuleOK) IsCode

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

IsCode returns true when this list object discovery rule o k response a status code equal to that given

func (*ListObjectDiscoveryRuleOK) IsRedirect

func (o *ListObjectDiscoveryRuleOK) IsRedirect() bool

IsRedirect returns true when this list object discovery rule o k response has a 3xx status code

func (*ListObjectDiscoveryRuleOK) IsServerError

func (o *ListObjectDiscoveryRuleOK) IsServerError() bool

IsServerError returns true when this list object discovery rule o k response has a 5xx status code

func (*ListObjectDiscoveryRuleOK) IsSuccess

func (o *ListObjectDiscoveryRuleOK) IsSuccess() bool

IsSuccess returns true when this list object discovery rule o k response has a 2xx status code

func (*ListObjectDiscoveryRuleOK) String

func (o *ListObjectDiscoveryRuleOK) String() string

type ListObjectDiscoveryRuleParams

type ListObjectDiscoveryRuleParams struct {

	/* PageMaxSize.

	     Page size preference (i.e. how many items are returned in the next
	page). If zero, the server will use a default. Regardless of what size
	is given, clients must never assume how many items will be returned.

	     Format: int64
	*/
	PageMaxSize *int64

	/* PageToken.

	     Opaque page token identifying which page to request. An empty token
	identifies the first page.
	*/
	PageToken *string

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

ListObjectDiscoveryRuleParams contains all the parameters to send to the API endpoint

for the list object discovery rule operation.

Typically these are written to a http.Request.

func NewListObjectDiscoveryRuleParams

func NewListObjectDiscoveryRuleParams() *ListObjectDiscoveryRuleParams

NewListObjectDiscoveryRuleParams creates a new ListObjectDiscoveryRuleParams 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 NewListObjectDiscoveryRuleParamsWithContext

func NewListObjectDiscoveryRuleParamsWithContext(ctx context.Context) *ListObjectDiscoveryRuleParams

NewListObjectDiscoveryRuleParamsWithContext creates a new ListObjectDiscoveryRuleParams object with the ability to set a context for a request.

func NewListObjectDiscoveryRuleParamsWithHTTPClient

func NewListObjectDiscoveryRuleParamsWithHTTPClient(client *http.Client) *ListObjectDiscoveryRuleParams

NewListObjectDiscoveryRuleParamsWithHTTPClient creates a new ListObjectDiscoveryRuleParams object with the ability to set a custom HTTPClient for a request.

func NewListObjectDiscoveryRuleParamsWithTimeout

func NewListObjectDiscoveryRuleParamsWithTimeout(timeout time.Duration) *ListObjectDiscoveryRuleParams

NewListObjectDiscoveryRuleParamsWithTimeout creates a new ListObjectDiscoveryRuleParams object with the ability to set a timeout on a request.

func (*ListObjectDiscoveryRuleParams) SetContext

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

SetContext adds the context to the list object discovery rule params

func (*ListObjectDiscoveryRuleParams) SetDefaults

func (o *ListObjectDiscoveryRuleParams) SetDefaults()

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

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

func (*ListObjectDiscoveryRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list object discovery rule params

func (*ListObjectDiscoveryRuleParams) SetPageMaxSize

func (o *ListObjectDiscoveryRuleParams) SetPageMaxSize(pageMaxSize *int64)

SetPageMaxSize adds the pageMaxSize to the list object discovery rule params

func (*ListObjectDiscoveryRuleParams) SetPageToken

func (o *ListObjectDiscoveryRuleParams) SetPageToken(pageToken *string)

SetPageToken adds the pageToken to the list object discovery rule params

func (*ListObjectDiscoveryRuleParams) SetTimeout

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

SetTimeout adds the timeout to the list object discovery rule params

func (*ListObjectDiscoveryRuleParams) WithContext

WithContext adds the context to the list object discovery rule params

func (*ListObjectDiscoveryRuleParams) WithDefaults

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

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

func (*ListObjectDiscoveryRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list object discovery rule params

func (*ListObjectDiscoveryRuleParams) WithPageMaxSize

func (o *ListObjectDiscoveryRuleParams) WithPageMaxSize(pageMaxSize *int64) *ListObjectDiscoveryRuleParams

WithPageMaxSize adds the pageMaxSize to the list object discovery rule params

func (*ListObjectDiscoveryRuleParams) WithPageToken

WithPageToken adds the pageToken to the list object discovery rule params

func (*ListObjectDiscoveryRuleParams) WithTimeout

WithTimeout adds the timeout to the list object discovery rule params

func (*ListObjectDiscoveryRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListObjectDiscoveryRuleReader

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

ListObjectDiscoveryRuleReader is a Reader for the ListObjectDiscoveryRule structure.

func (*ListObjectDiscoveryRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReadObjectDiscoveryRuleDefault

type ReadObjectDiscoveryRuleDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

ReadObjectDiscoveryRuleDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewReadObjectDiscoveryRuleDefault

func NewReadObjectDiscoveryRuleDefault(code int) *ReadObjectDiscoveryRuleDefault

NewReadObjectDiscoveryRuleDefault creates a ReadObjectDiscoveryRuleDefault with default headers values

func (*ReadObjectDiscoveryRuleDefault) Code

Code gets the status code for the read object discovery rule default response

func (*ReadObjectDiscoveryRuleDefault) Error

func (*ReadObjectDiscoveryRuleDefault) GetPayload

func (*ReadObjectDiscoveryRuleDefault) IsClientError

func (o *ReadObjectDiscoveryRuleDefault) IsClientError() bool

IsClientError returns true when this read object discovery rule default response has a 4xx status code

func (*ReadObjectDiscoveryRuleDefault) IsCode

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

IsCode returns true when this read object discovery rule default response a status code equal to that given

func (*ReadObjectDiscoveryRuleDefault) IsRedirect

func (o *ReadObjectDiscoveryRuleDefault) IsRedirect() bool

IsRedirect returns true when this read object discovery rule default response has a 3xx status code

func (*ReadObjectDiscoveryRuleDefault) IsServerError

func (o *ReadObjectDiscoveryRuleDefault) IsServerError() bool

IsServerError returns true when this read object discovery rule default response has a 5xx status code

func (*ReadObjectDiscoveryRuleDefault) IsSuccess

func (o *ReadObjectDiscoveryRuleDefault) IsSuccess() bool

IsSuccess returns true when this read object discovery rule default response has a 2xx status code

func (*ReadObjectDiscoveryRuleDefault) String

type ReadObjectDiscoveryRuleInternalServerError

type ReadObjectDiscoveryRuleInternalServerError struct {
	Payload *models.APIError
}

ReadObjectDiscoveryRuleInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewReadObjectDiscoveryRuleInternalServerError

func NewReadObjectDiscoveryRuleInternalServerError() *ReadObjectDiscoveryRuleInternalServerError

NewReadObjectDiscoveryRuleInternalServerError creates a ReadObjectDiscoveryRuleInternalServerError with default headers values

func (*ReadObjectDiscoveryRuleInternalServerError) Code

Code gets the status code for the read object discovery rule internal server error response

func (*ReadObjectDiscoveryRuleInternalServerError) Error

func (*ReadObjectDiscoveryRuleInternalServerError) GetPayload

func (*ReadObjectDiscoveryRuleInternalServerError) IsClientError

IsClientError returns true when this read object discovery rule internal server error response has a 4xx status code

func (*ReadObjectDiscoveryRuleInternalServerError) IsCode

IsCode returns true when this read object discovery rule internal server error response a status code equal to that given

func (*ReadObjectDiscoveryRuleInternalServerError) IsRedirect

IsRedirect returns true when this read object discovery rule internal server error response has a 3xx status code

func (*ReadObjectDiscoveryRuleInternalServerError) IsServerError

IsServerError returns true when this read object discovery rule internal server error response has a 5xx status code

func (*ReadObjectDiscoveryRuleInternalServerError) IsSuccess

IsSuccess returns true when this read object discovery rule internal server error response has a 2xx status code

func (*ReadObjectDiscoveryRuleInternalServerError) String

type ReadObjectDiscoveryRuleNotFound

type ReadObjectDiscoveryRuleNotFound struct {
	Payload *models.APIError
}

ReadObjectDiscoveryRuleNotFound describes a response with status code 404, with default header values.

Cannot read the ObjectDiscoveryRule because the slug does not exist.

func NewReadObjectDiscoveryRuleNotFound

func NewReadObjectDiscoveryRuleNotFound() *ReadObjectDiscoveryRuleNotFound

NewReadObjectDiscoveryRuleNotFound creates a ReadObjectDiscoveryRuleNotFound with default headers values

func (*ReadObjectDiscoveryRuleNotFound) Code

Code gets the status code for the read object discovery rule not found response

func (*ReadObjectDiscoveryRuleNotFound) Error

func (*ReadObjectDiscoveryRuleNotFound) GetPayload

func (*ReadObjectDiscoveryRuleNotFound) IsClientError

func (o *ReadObjectDiscoveryRuleNotFound) IsClientError() bool

IsClientError returns true when this read object discovery rule not found response has a 4xx status code

func (*ReadObjectDiscoveryRuleNotFound) IsCode

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

IsCode returns true when this read object discovery rule not found response a status code equal to that given

func (*ReadObjectDiscoveryRuleNotFound) IsRedirect

func (o *ReadObjectDiscoveryRuleNotFound) IsRedirect() bool

IsRedirect returns true when this read object discovery rule not found response has a 3xx status code

func (*ReadObjectDiscoveryRuleNotFound) IsServerError

func (o *ReadObjectDiscoveryRuleNotFound) IsServerError() bool

IsServerError returns true when this read object discovery rule not found response has a 5xx status code

func (*ReadObjectDiscoveryRuleNotFound) IsSuccess

func (o *ReadObjectDiscoveryRuleNotFound) IsSuccess() bool

IsSuccess returns true when this read object discovery rule not found response has a 2xx status code

func (*ReadObjectDiscoveryRuleNotFound) String

type ReadObjectDiscoveryRuleOK

type ReadObjectDiscoveryRuleOK struct {
	Payload *models.ConfigunstableReadObjectDiscoveryRuleResponse
}

ReadObjectDiscoveryRuleOK describes a response with status code 200, with default header values.

A successful response.

func NewReadObjectDiscoveryRuleOK

func NewReadObjectDiscoveryRuleOK() *ReadObjectDiscoveryRuleOK

NewReadObjectDiscoveryRuleOK creates a ReadObjectDiscoveryRuleOK with default headers values

func (*ReadObjectDiscoveryRuleOK) Code

func (o *ReadObjectDiscoveryRuleOK) Code() int

Code gets the status code for the read object discovery rule o k response

func (*ReadObjectDiscoveryRuleOK) Error

func (o *ReadObjectDiscoveryRuleOK) Error() string

func (*ReadObjectDiscoveryRuleOK) GetPayload

func (*ReadObjectDiscoveryRuleOK) IsClientError

func (o *ReadObjectDiscoveryRuleOK) IsClientError() bool

IsClientError returns true when this read object discovery rule o k response has a 4xx status code

func (*ReadObjectDiscoveryRuleOK) IsCode

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

IsCode returns true when this read object discovery rule o k response a status code equal to that given

func (*ReadObjectDiscoveryRuleOK) IsRedirect

func (o *ReadObjectDiscoveryRuleOK) IsRedirect() bool

IsRedirect returns true when this read object discovery rule o k response has a 3xx status code

func (*ReadObjectDiscoveryRuleOK) IsServerError

func (o *ReadObjectDiscoveryRuleOK) IsServerError() bool

IsServerError returns true when this read object discovery rule o k response has a 5xx status code

func (*ReadObjectDiscoveryRuleOK) IsSuccess

func (o *ReadObjectDiscoveryRuleOK) IsSuccess() bool

IsSuccess returns true when this read object discovery rule o k response has a 2xx status code

func (*ReadObjectDiscoveryRuleOK) String

func (o *ReadObjectDiscoveryRuleOK) String() string

type ReadObjectDiscoveryRuleParams

type ReadObjectDiscoveryRuleParams struct {

	// Slug.
	Slug string

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

ReadObjectDiscoveryRuleParams contains all the parameters to send to the API endpoint

for the read object discovery rule operation.

Typically these are written to a http.Request.

func NewReadObjectDiscoveryRuleParams

func NewReadObjectDiscoveryRuleParams() *ReadObjectDiscoveryRuleParams

NewReadObjectDiscoveryRuleParams creates a new ReadObjectDiscoveryRuleParams 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 NewReadObjectDiscoveryRuleParamsWithContext

func NewReadObjectDiscoveryRuleParamsWithContext(ctx context.Context) *ReadObjectDiscoveryRuleParams

NewReadObjectDiscoveryRuleParamsWithContext creates a new ReadObjectDiscoveryRuleParams object with the ability to set a context for a request.

func NewReadObjectDiscoveryRuleParamsWithHTTPClient

func NewReadObjectDiscoveryRuleParamsWithHTTPClient(client *http.Client) *ReadObjectDiscoveryRuleParams

NewReadObjectDiscoveryRuleParamsWithHTTPClient creates a new ReadObjectDiscoveryRuleParams object with the ability to set a custom HTTPClient for a request.

func NewReadObjectDiscoveryRuleParamsWithTimeout

func NewReadObjectDiscoveryRuleParamsWithTimeout(timeout time.Duration) *ReadObjectDiscoveryRuleParams

NewReadObjectDiscoveryRuleParamsWithTimeout creates a new ReadObjectDiscoveryRuleParams object with the ability to set a timeout on a request.

func (*ReadObjectDiscoveryRuleParams) SetContext

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

SetContext adds the context to the read object discovery rule params

func (*ReadObjectDiscoveryRuleParams) SetDefaults

func (o *ReadObjectDiscoveryRuleParams) SetDefaults()

SetDefaults hydrates default values in the read object discovery rule params (not the query body).

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

func (*ReadObjectDiscoveryRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the read object discovery rule params

func (*ReadObjectDiscoveryRuleParams) SetSlug

func (o *ReadObjectDiscoveryRuleParams) SetSlug(slug string)

SetSlug adds the slug to the read object discovery rule params

func (*ReadObjectDiscoveryRuleParams) SetTimeout

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

SetTimeout adds the timeout to the read object discovery rule params

func (*ReadObjectDiscoveryRuleParams) WithContext

WithContext adds the context to the read object discovery rule params

func (*ReadObjectDiscoveryRuleParams) WithDefaults

WithDefaults hydrates default values in the read object discovery rule params (not the query body).

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

func (*ReadObjectDiscoveryRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the read object discovery rule params

func (*ReadObjectDiscoveryRuleParams) WithSlug

WithSlug adds the slug to the read object discovery rule params

func (*ReadObjectDiscoveryRuleParams) WithTimeout

WithTimeout adds the timeout to the read object discovery rule params

func (*ReadObjectDiscoveryRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ReadObjectDiscoveryRuleReader

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

ReadObjectDiscoveryRuleReader is a Reader for the ReadObjectDiscoveryRule structure.

func (*ReadObjectDiscoveryRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateObjectDiscoveryRuleBadRequest

type UpdateObjectDiscoveryRuleBadRequest struct {
	Payload *models.APIError
}

UpdateObjectDiscoveryRuleBadRequest describes a response with status code 400, with default header values.

Cannot update the ObjectDiscoveryRule because the request is invalid.

func NewUpdateObjectDiscoveryRuleBadRequest

func NewUpdateObjectDiscoveryRuleBadRequest() *UpdateObjectDiscoveryRuleBadRequest

NewUpdateObjectDiscoveryRuleBadRequest creates a UpdateObjectDiscoveryRuleBadRequest with default headers values

func (*UpdateObjectDiscoveryRuleBadRequest) Code

Code gets the status code for the update object discovery rule bad request response

func (*UpdateObjectDiscoveryRuleBadRequest) Error

func (*UpdateObjectDiscoveryRuleBadRequest) GetPayload

func (*UpdateObjectDiscoveryRuleBadRequest) IsClientError

func (o *UpdateObjectDiscoveryRuleBadRequest) IsClientError() bool

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

func (*UpdateObjectDiscoveryRuleBadRequest) IsCode

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

func (*UpdateObjectDiscoveryRuleBadRequest) IsRedirect

func (o *UpdateObjectDiscoveryRuleBadRequest) IsRedirect() bool

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

func (*UpdateObjectDiscoveryRuleBadRequest) IsServerError

func (o *UpdateObjectDiscoveryRuleBadRequest) IsServerError() bool

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

func (*UpdateObjectDiscoveryRuleBadRequest) IsSuccess

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

func (*UpdateObjectDiscoveryRuleBadRequest) String

type UpdateObjectDiscoveryRuleConflict

type UpdateObjectDiscoveryRuleConflict struct {
	Payload *models.APIError
}

UpdateObjectDiscoveryRuleConflict describes a response with status code 409, with default header values.

Cannot update the ObjectDiscoveryRule because there is a conflict with an existing ObjectDiscoveryRule.

func NewUpdateObjectDiscoveryRuleConflict

func NewUpdateObjectDiscoveryRuleConflict() *UpdateObjectDiscoveryRuleConflict

NewUpdateObjectDiscoveryRuleConflict creates a UpdateObjectDiscoveryRuleConflict with default headers values

func (*UpdateObjectDiscoveryRuleConflict) Code

Code gets the status code for the update object discovery rule conflict response

func (*UpdateObjectDiscoveryRuleConflict) Error

func (*UpdateObjectDiscoveryRuleConflict) GetPayload

func (*UpdateObjectDiscoveryRuleConflict) IsClientError

func (o *UpdateObjectDiscoveryRuleConflict) IsClientError() bool

IsClientError returns true when this update object discovery rule conflict response has a 4xx status code

func (*UpdateObjectDiscoveryRuleConflict) IsCode

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

IsCode returns true when this update object discovery rule conflict response a status code equal to that given

func (*UpdateObjectDiscoveryRuleConflict) IsRedirect

func (o *UpdateObjectDiscoveryRuleConflict) IsRedirect() bool

IsRedirect returns true when this update object discovery rule conflict response has a 3xx status code

func (*UpdateObjectDiscoveryRuleConflict) IsServerError

func (o *UpdateObjectDiscoveryRuleConflict) IsServerError() bool

IsServerError returns true when this update object discovery rule conflict response has a 5xx status code

func (*UpdateObjectDiscoveryRuleConflict) IsSuccess

func (o *UpdateObjectDiscoveryRuleConflict) IsSuccess() bool

IsSuccess returns true when this update object discovery rule conflict response has a 2xx status code

func (*UpdateObjectDiscoveryRuleConflict) String

type UpdateObjectDiscoveryRuleDefault

type UpdateObjectDiscoveryRuleDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

UpdateObjectDiscoveryRuleDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewUpdateObjectDiscoveryRuleDefault

func NewUpdateObjectDiscoveryRuleDefault(code int) *UpdateObjectDiscoveryRuleDefault

NewUpdateObjectDiscoveryRuleDefault creates a UpdateObjectDiscoveryRuleDefault with default headers values

func (*UpdateObjectDiscoveryRuleDefault) Code

Code gets the status code for the update object discovery rule default response

func (*UpdateObjectDiscoveryRuleDefault) Error

func (*UpdateObjectDiscoveryRuleDefault) GetPayload

func (*UpdateObjectDiscoveryRuleDefault) IsClientError

func (o *UpdateObjectDiscoveryRuleDefault) IsClientError() bool

IsClientError returns true when this update object discovery rule default response has a 4xx status code

func (*UpdateObjectDiscoveryRuleDefault) IsCode

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

IsCode returns true when this update object discovery rule default response a status code equal to that given

func (*UpdateObjectDiscoveryRuleDefault) IsRedirect

func (o *UpdateObjectDiscoveryRuleDefault) IsRedirect() bool

IsRedirect returns true when this update object discovery rule default response has a 3xx status code

func (*UpdateObjectDiscoveryRuleDefault) IsServerError

func (o *UpdateObjectDiscoveryRuleDefault) IsServerError() bool

IsServerError returns true when this update object discovery rule default response has a 5xx status code

func (*UpdateObjectDiscoveryRuleDefault) IsSuccess

func (o *UpdateObjectDiscoveryRuleDefault) IsSuccess() bool

IsSuccess returns true when this update object discovery rule default response has a 2xx status code

func (*UpdateObjectDiscoveryRuleDefault) String

type UpdateObjectDiscoveryRuleInternalServerError

type UpdateObjectDiscoveryRuleInternalServerError struct {
	Payload *models.APIError
}

UpdateObjectDiscoveryRuleInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewUpdateObjectDiscoveryRuleInternalServerError

func NewUpdateObjectDiscoveryRuleInternalServerError() *UpdateObjectDiscoveryRuleInternalServerError

NewUpdateObjectDiscoveryRuleInternalServerError creates a UpdateObjectDiscoveryRuleInternalServerError with default headers values

func (*UpdateObjectDiscoveryRuleInternalServerError) Code

Code gets the status code for the update object discovery rule internal server error response

func (*UpdateObjectDiscoveryRuleInternalServerError) Error

func (*UpdateObjectDiscoveryRuleInternalServerError) GetPayload

func (*UpdateObjectDiscoveryRuleInternalServerError) IsClientError

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

func (*UpdateObjectDiscoveryRuleInternalServerError) IsCode

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

func (*UpdateObjectDiscoveryRuleInternalServerError) IsRedirect

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

func (*UpdateObjectDiscoveryRuleInternalServerError) IsServerError

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

func (*UpdateObjectDiscoveryRuleInternalServerError) IsSuccess

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

func (*UpdateObjectDiscoveryRuleInternalServerError) String

type UpdateObjectDiscoveryRuleNotFound

type UpdateObjectDiscoveryRuleNotFound struct {
	Payload *models.APIError
}

UpdateObjectDiscoveryRuleNotFound describes a response with status code 404, with default header values.

Cannot update the ObjectDiscoveryRule because the slug does not exist.

func NewUpdateObjectDiscoveryRuleNotFound

func NewUpdateObjectDiscoveryRuleNotFound() *UpdateObjectDiscoveryRuleNotFound

NewUpdateObjectDiscoveryRuleNotFound creates a UpdateObjectDiscoveryRuleNotFound with default headers values

func (*UpdateObjectDiscoveryRuleNotFound) Code

Code gets the status code for the update object discovery rule not found response

func (*UpdateObjectDiscoveryRuleNotFound) Error

func (*UpdateObjectDiscoveryRuleNotFound) GetPayload

func (*UpdateObjectDiscoveryRuleNotFound) IsClientError

func (o *UpdateObjectDiscoveryRuleNotFound) IsClientError() bool

IsClientError returns true when this update object discovery rule not found response has a 4xx status code

func (*UpdateObjectDiscoveryRuleNotFound) IsCode

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

IsCode returns true when this update object discovery rule not found response a status code equal to that given

func (*UpdateObjectDiscoveryRuleNotFound) IsRedirect

func (o *UpdateObjectDiscoveryRuleNotFound) IsRedirect() bool

IsRedirect returns true when this update object discovery rule not found response has a 3xx status code

func (*UpdateObjectDiscoveryRuleNotFound) IsServerError

func (o *UpdateObjectDiscoveryRuleNotFound) IsServerError() bool

IsServerError returns true when this update object discovery rule not found response has a 5xx status code

func (*UpdateObjectDiscoveryRuleNotFound) IsSuccess

func (o *UpdateObjectDiscoveryRuleNotFound) IsSuccess() bool

IsSuccess returns true when this update object discovery rule not found response has a 2xx status code

func (*UpdateObjectDiscoveryRuleNotFound) String

type UpdateObjectDiscoveryRuleOK

type UpdateObjectDiscoveryRuleOK struct {
	Payload *models.ConfigunstableUpdateObjectDiscoveryRuleResponse
}

UpdateObjectDiscoveryRuleOK describes a response with status code 200, with default header values.

A successful response containing the updated ObjectDiscoveryRule.

func NewUpdateObjectDiscoveryRuleOK

func NewUpdateObjectDiscoveryRuleOK() *UpdateObjectDiscoveryRuleOK

NewUpdateObjectDiscoveryRuleOK creates a UpdateObjectDiscoveryRuleOK with default headers values

func (*UpdateObjectDiscoveryRuleOK) Code

func (o *UpdateObjectDiscoveryRuleOK) Code() int

Code gets the status code for the update object discovery rule o k response

func (*UpdateObjectDiscoveryRuleOK) Error

func (*UpdateObjectDiscoveryRuleOK) GetPayload

func (*UpdateObjectDiscoveryRuleOK) IsClientError

func (o *UpdateObjectDiscoveryRuleOK) IsClientError() bool

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

func (*UpdateObjectDiscoveryRuleOK) IsCode

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

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

func (*UpdateObjectDiscoveryRuleOK) IsRedirect

func (o *UpdateObjectDiscoveryRuleOK) IsRedirect() bool

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

func (*UpdateObjectDiscoveryRuleOK) IsServerError

func (o *UpdateObjectDiscoveryRuleOK) IsServerError() bool

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

func (*UpdateObjectDiscoveryRuleOK) IsSuccess

func (o *UpdateObjectDiscoveryRuleOK) IsSuccess() bool

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

func (*UpdateObjectDiscoveryRuleOK) String

func (o *UpdateObjectDiscoveryRuleOK) String() string

type UpdateObjectDiscoveryRuleParams

type UpdateObjectDiscoveryRuleParams struct {

	// Body.
	Body *models.ConfigUnstableUpdateObjectDiscoveryRuleBody

	// Slug.
	Slug string

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

UpdateObjectDiscoveryRuleParams contains all the parameters to send to the API endpoint

for the update object discovery rule operation.

Typically these are written to a http.Request.

func NewUpdateObjectDiscoveryRuleParams

func NewUpdateObjectDiscoveryRuleParams() *UpdateObjectDiscoveryRuleParams

NewUpdateObjectDiscoveryRuleParams creates a new UpdateObjectDiscoveryRuleParams 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 NewUpdateObjectDiscoveryRuleParamsWithContext

func NewUpdateObjectDiscoveryRuleParamsWithContext(ctx context.Context) *UpdateObjectDiscoveryRuleParams

NewUpdateObjectDiscoveryRuleParamsWithContext creates a new UpdateObjectDiscoveryRuleParams object with the ability to set a context for a request.

func NewUpdateObjectDiscoveryRuleParamsWithHTTPClient

func NewUpdateObjectDiscoveryRuleParamsWithHTTPClient(client *http.Client) *UpdateObjectDiscoveryRuleParams

NewUpdateObjectDiscoveryRuleParamsWithHTTPClient creates a new UpdateObjectDiscoveryRuleParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateObjectDiscoveryRuleParamsWithTimeout

func NewUpdateObjectDiscoveryRuleParamsWithTimeout(timeout time.Duration) *UpdateObjectDiscoveryRuleParams

NewUpdateObjectDiscoveryRuleParamsWithTimeout creates a new UpdateObjectDiscoveryRuleParams object with the ability to set a timeout on a request.

func (*UpdateObjectDiscoveryRuleParams) SetBody

SetBody adds the body to the update object discovery rule params

func (*UpdateObjectDiscoveryRuleParams) SetContext

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

SetContext adds the context to the update object discovery rule params

func (*UpdateObjectDiscoveryRuleParams) SetDefaults

func (o *UpdateObjectDiscoveryRuleParams) SetDefaults()

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

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

func (*UpdateObjectDiscoveryRuleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update object discovery rule params

func (*UpdateObjectDiscoveryRuleParams) SetSlug

func (o *UpdateObjectDiscoveryRuleParams) SetSlug(slug string)

SetSlug adds the slug to the update object discovery rule params

func (*UpdateObjectDiscoveryRuleParams) SetTimeout

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

SetTimeout adds the timeout to the update object discovery rule params

func (*UpdateObjectDiscoveryRuleParams) WithBody

WithBody adds the body to the update object discovery rule params

func (*UpdateObjectDiscoveryRuleParams) WithContext

WithContext adds the context to the update object discovery rule params

func (*UpdateObjectDiscoveryRuleParams) WithDefaults

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

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

func (*UpdateObjectDiscoveryRuleParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update object discovery rule params

func (*UpdateObjectDiscoveryRuleParams) WithSlug

WithSlug adds the slug to the update object discovery rule params

func (*UpdateObjectDiscoveryRuleParams) WithTimeout

WithTimeout adds the timeout to the update object discovery rule params

func (*UpdateObjectDiscoveryRuleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateObjectDiscoveryRuleReader

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

UpdateObjectDiscoveryRuleReader is a Reader for the UpdateObjectDiscoveryRule structure.

func (*UpdateObjectDiscoveryRuleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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