config_items

package
v0.0.0-...-4a85c4f Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddOrUpdateConfigItemBadRequest

type AddOrUpdateConfigItemBadRequest struct {
	Payload *models.Error
}

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

Invalid request

func NewAddOrUpdateConfigItemBadRequest

func NewAddOrUpdateConfigItemBadRequest() *AddOrUpdateConfigItemBadRequest

NewAddOrUpdateConfigItemBadRequest creates a AddOrUpdateConfigItemBadRequest with default headers values

func (*AddOrUpdateConfigItemBadRequest) Code

Code gets the status code for the add or update config item bad request response

func (*AddOrUpdateConfigItemBadRequest) Error

func (*AddOrUpdateConfigItemBadRequest) GetPayload

func (o *AddOrUpdateConfigItemBadRequest) GetPayload() *models.Error

func (*AddOrUpdateConfigItemBadRequest) IsClientError

func (o *AddOrUpdateConfigItemBadRequest) IsClientError() bool

IsClientError returns true when this add or update config item bad request response has a 4xx status code

func (*AddOrUpdateConfigItemBadRequest) IsCode

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

IsCode returns true when this add or update config item bad request response a status code equal to that given

func (*AddOrUpdateConfigItemBadRequest) IsRedirect

func (o *AddOrUpdateConfigItemBadRequest) IsRedirect() bool

IsRedirect returns true when this add or update config item bad request response has a 3xx status code

func (*AddOrUpdateConfigItemBadRequest) IsServerError

func (o *AddOrUpdateConfigItemBadRequest) IsServerError() bool

IsServerError returns true when this add or update config item bad request response has a 5xx status code

func (*AddOrUpdateConfigItemBadRequest) IsSuccess

func (o *AddOrUpdateConfigItemBadRequest) IsSuccess() bool

IsSuccess returns true when this add or update config item bad request response has a 2xx status code

func (*AddOrUpdateConfigItemBadRequest) String

type AddOrUpdateConfigItemForbidden

type AddOrUpdateConfigItemForbidden struct {
}

AddOrUpdateConfigItemForbidden describes a response with status code 403, with default header values.

Forbidden

func NewAddOrUpdateConfigItemForbidden

func NewAddOrUpdateConfigItemForbidden() *AddOrUpdateConfigItemForbidden

NewAddOrUpdateConfigItemForbidden creates a AddOrUpdateConfigItemForbidden with default headers values

func (*AddOrUpdateConfigItemForbidden) Code

Code gets the status code for the add or update config item forbidden response

func (*AddOrUpdateConfigItemForbidden) Error

func (*AddOrUpdateConfigItemForbidden) IsClientError

func (o *AddOrUpdateConfigItemForbidden) IsClientError() bool

IsClientError returns true when this add or update config item forbidden response has a 4xx status code

func (*AddOrUpdateConfigItemForbidden) IsCode

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

IsCode returns true when this add or update config item forbidden response a status code equal to that given

func (*AddOrUpdateConfigItemForbidden) IsRedirect

func (o *AddOrUpdateConfigItemForbidden) IsRedirect() bool

IsRedirect returns true when this add or update config item forbidden response has a 3xx status code

func (*AddOrUpdateConfigItemForbidden) IsServerError

func (o *AddOrUpdateConfigItemForbidden) IsServerError() bool

IsServerError returns true when this add or update config item forbidden response has a 5xx status code

func (*AddOrUpdateConfigItemForbidden) IsSuccess

func (o *AddOrUpdateConfigItemForbidden) IsSuccess() bool

IsSuccess returns true when this add or update config item forbidden response has a 2xx status code

func (*AddOrUpdateConfigItemForbidden) String

type AddOrUpdateConfigItemInternalServerError

type AddOrUpdateConfigItemInternalServerError struct {
	Payload *models.Error
}

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

Unexpected error

func NewAddOrUpdateConfigItemInternalServerError

func NewAddOrUpdateConfigItemInternalServerError() *AddOrUpdateConfigItemInternalServerError

NewAddOrUpdateConfigItemInternalServerError creates a AddOrUpdateConfigItemInternalServerError with default headers values

func (*AddOrUpdateConfigItemInternalServerError) Code

Code gets the status code for the add or update config item internal server error response

func (*AddOrUpdateConfigItemInternalServerError) Error

func (*AddOrUpdateConfigItemInternalServerError) GetPayload

func (*AddOrUpdateConfigItemInternalServerError) IsClientError

IsClientError returns true when this add or update config item internal server error response has a 4xx status code

func (*AddOrUpdateConfigItemInternalServerError) IsCode

IsCode returns true when this add or update config item internal server error response a status code equal to that given

func (*AddOrUpdateConfigItemInternalServerError) IsRedirect

IsRedirect returns true when this add or update config item internal server error response has a 3xx status code

func (*AddOrUpdateConfigItemInternalServerError) IsServerError

IsServerError returns true when this add or update config item internal server error response has a 5xx status code

func (*AddOrUpdateConfigItemInternalServerError) IsSuccess

IsSuccess returns true when this add or update config item internal server error response has a 2xx status code

func (*AddOrUpdateConfigItemInternalServerError) String

type AddOrUpdateConfigItemOK

type AddOrUpdateConfigItemOK struct {
	Payload *models.ConfigValue
}

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

The config items add/update request is accepted.

func NewAddOrUpdateConfigItemOK

func NewAddOrUpdateConfigItemOK() *AddOrUpdateConfigItemOK

NewAddOrUpdateConfigItemOK creates a AddOrUpdateConfigItemOK with default headers values

func (*AddOrUpdateConfigItemOK) Code

func (o *AddOrUpdateConfigItemOK) Code() int

Code gets the status code for the add or update config item o k response

func (*AddOrUpdateConfigItemOK) Error

func (o *AddOrUpdateConfigItemOK) Error() string

func (*AddOrUpdateConfigItemOK) GetPayload

func (o *AddOrUpdateConfigItemOK) GetPayload() *models.ConfigValue

func (*AddOrUpdateConfigItemOK) IsClientError

func (o *AddOrUpdateConfigItemOK) IsClientError() bool

IsClientError returns true when this add or update config item o k response has a 4xx status code

func (*AddOrUpdateConfigItemOK) IsCode

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

IsCode returns true when this add or update config item o k response a status code equal to that given

func (*AddOrUpdateConfigItemOK) IsRedirect

func (o *AddOrUpdateConfigItemOK) IsRedirect() bool

IsRedirect returns true when this add or update config item o k response has a 3xx status code

func (*AddOrUpdateConfigItemOK) IsServerError

func (o *AddOrUpdateConfigItemOK) IsServerError() bool

IsServerError returns true when this add or update config item o k response has a 5xx status code

func (*AddOrUpdateConfigItemOK) IsSuccess

func (o *AddOrUpdateConfigItemOK) IsSuccess() bool

IsSuccess returns true when this add or update config item o k response has a 2xx status code

func (*AddOrUpdateConfigItemOK) String

func (o *AddOrUpdateConfigItemOK) String() string

type AddOrUpdateConfigItemParams

type AddOrUpdateConfigItemParams struct {

	/* ClusterID.

	   ID of the cluster.
	*/
	ClusterID string

	/* ConfigKey.

	   Key for the config value.
	*/
	ConfigKey string

	/* Value.

	   Config value.
	*/
	Value *models.ConfigValue

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

AddOrUpdateConfigItemParams contains all the parameters to send to the API endpoint

for the add or update config item operation.

Typically these are written to a http.Request.

func NewAddOrUpdateConfigItemParams

func NewAddOrUpdateConfigItemParams() *AddOrUpdateConfigItemParams

NewAddOrUpdateConfigItemParams creates a new AddOrUpdateConfigItemParams 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 NewAddOrUpdateConfigItemParamsWithContext

func NewAddOrUpdateConfigItemParamsWithContext(ctx context.Context) *AddOrUpdateConfigItemParams

NewAddOrUpdateConfigItemParamsWithContext creates a new AddOrUpdateConfigItemParams object with the ability to set a context for a request.

func NewAddOrUpdateConfigItemParamsWithHTTPClient

func NewAddOrUpdateConfigItemParamsWithHTTPClient(client *http.Client) *AddOrUpdateConfigItemParams

NewAddOrUpdateConfigItemParamsWithHTTPClient creates a new AddOrUpdateConfigItemParams object with the ability to set a custom HTTPClient for a request.

func NewAddOrUpdateConfigItemParamsWithTimeout

func NewAddOrUpdateConfigItemParamsWithTimeout(timeout time.Duration) *AddOrUpdateConfigItemParams

NewAddOrUpdateConfigItemParamsWithTimeout creates a new AddOrUpdateConfigItemParams object with the ability to set a timeout on a request.

func (*AddOrUpdateConfigItemParams) SetClusterID

func (o *AddOrUpdateConfigItemParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the add or update config item params

func (*AddOrUpdateConfigItemParams) SetConfigKey

func (o *AddOrUpdateConfigItemParams) SetConfigKey(configKey string)

SetConfigKey adds the configKey to the add or update config item params

func (*AddOrUpdateConfigItemParams) SetContext

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

SetContext adds the context to the add or update config item params

func (*AddOrUpdateConfigItemParams) SetDefaults

func (o *AddOrUpdateConfigItemParams) SetDefaults()

SetDefaults hydrates default values in the add or update config item params (not the query body).

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

func (*AddOrUpdateConfigItemParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add or update config item params

func (*AddOrUpdateConfigItemParams) SetTimeout

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

SetTimeout adds the timeout to the add or update config item params

func (*AddOrUpdateConfigItemParams) SetValue

func (o *AddOrUpdateConfigItemParams) SetValue(value *models.ConfigValue)

SetValue adds the value to the add or update config item params

func (*AddOrUpdateConfigItemParams) WithClusterID

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

WithClusterID adds the clusterID to the add or update config item params

func (*AddOrUpdateConfigItemParams) WithConfigKey

func (o *AddOrUpdateConfigItemParams) WithConfigKey(configKey string) *AddOrUpdateConfigItemParams

WithConfigKey adds the configKey to the add or update config item params

func (*AddOrUpdateConfigItemParams) WithContext

WithContext adds the context to the add or update config item params

func (*AddOrUpdateConfigItemParams) WithDefaults

WithDefaults hydrates default values in the add or update config item params (not the query body).

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

func (*AddOrUpdateConfigItemParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the add or update config item params

func (*AddOrUpdateConfigItemParams) WithTimeout

WithTimeout adds the timeout to the add or update config item params

func (*AddOrUpdateConfigItemParams) WithValue

WithValue adds the value to the add or update config item params

func (*AddOrUpdateConfigItemParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AddOrUpdateConfigItemReader

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

AddOrUpdateConfigItemReader is a Reader for the AddOrUpdateConfigItem structure.

func (*AddOrUpdateConfigItemReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AddOrUpdateConfigItemUnauthorized

type AddOrUpdateConfigItemUnauthorized struct {
}

AddOrUpdateConfigItemUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewAddOrUpdateConfigItemUnauthorized

func NewAddOrUpdateConfigItemUnauthorized() *AddOrUpdateConfigItemUnauthorized

NewAddOrUpdateConfigItemUnauthorized creates a AddOrUpdateConfigItemUnauthorized with default headers values

func (*AddOrUpdateConfigItemUnauthorized) Code

Code gets the status code for the add or update config item unauthorized response

func (*AddOrUpdateConfigItemUnauthorized) Error

func (*AddOrUpdateConfigItemUnauthorized) IsClientError

func (o *AddOrUpdateConfigItemUnauthorized) IsClientError() bool

IsClientError returns true when this add or update config item unauthorized response has a 4xx status code

func (*AddOrUpdateConfigItemUnauthorized) IsCode

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

IsCode returns true when this add or update config item unauthorized response a status code equal to that given

func (*AddOrUpdateConfigItemUnauthorized) IsRedirect

func (o *AddOrUpdateConfigItemUnauthorized) IsRedirect() bool

IsRedirect returns true when this add or update config item unauthorized response has a 3xx status code

func (*AddOrUpdateConfigItemUnauthorized) IsServerError

func (o *AddOrUpdateConfigItemUnauthorized) IsServerError() bool

IsServerError returns true when this add or update config item unauthorized response has a 5xx status code

func (*AddOrUpdateConfigItemUnauthorized) IsSuccess

func (o *AddOrUpdateConfigItemUnauthorized) IsSuccess() bool

IsSuccess returns true when this add or update config item unauthorized response has a 2xx status code

func (*AddOrUpdateConfigItemUnauthorized) String

type Client

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

Client for config items API

func (*Client) AddOrUpdateConfigItem

func (a *Client) AddOrUpdateConfigItem(params *AddOrUpdateConfigItemParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddOrUpdateConfigItemOK, error)

AddOrUpdateConfigItem adds update config item

Add/update a configuration item unique to the cluster.

func (*Client) DeleteConfigItem

func (a *Client) DeleteConfigItem(params *DeleteConfigItemParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteConfigItemNoContent, error)

DeleteConfigItem deletes config item

Deletes config item.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	AddOrUpdateConfigItem(params *AddOrUpdateConfigItemParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddOrUpdateConfigItemOK, error)

	DeleteConfigItem(params *DeleteConfigItemParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteConfigItemNoContent, 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 config items API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new config items API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new config items API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type DeleteConfigItemBadRequest

type DeleteConfigItemBadRequest struct {
	Payload *models.Error
}

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

Invalid request

func NewDeleteConfigItemBadRequest

func NewDeleteConfigItemBadRequest() *DeleteConfigItemBadRequest

NewDeleteConfigItemBadRequest creates a DeleteConfigItemBadRequest with default headers values

func (*DeleteConfigItemBadRequest) Code

func (o *DeleteConfigItemBadRequest) Code() int

Code gets the status code for the delete config item bad request response

func (*DeleteConfigItemBadRequest) Error

func (*DeleteConfigItemBadRequest) GetPayload

func (o *DeleteConfigItemBadRequest) GetPayload() *models.Error

func (*DeleteConfigItemBadRequest) IsClientError

func (o *DeleteConfigItemBadRequest) IsClientError() bool

IsClientError returns true when this delete config item bad request response has a 4xx status code

func (*DeleteConfigItemBadRequest) IsCode

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

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

func (*DeleteConfigItemBadRequest) IsRedirect

func (o *DeleteConfigItemBadRequest) IsRedirect() bool

IsRedirect returns true when this delete config item bad request response has a 3xx status code

func (*DeleteConfigItemBadRequest) IsServerError

func (o *DeleteConfigItemBadRequest) IsServerError() bool

IsServerError returns true when this delete config item bad request response has a 5xx status code

func (*DeleteConfigItemBadRequest) IsSuccess

func (o *DeleteConfigItemBadRequest) IsSuccess() bool

IsSuccess returns true when this delete config item bad request response has a 2xx status code

func (*DeleteConfigItemBadRequest) String

func (o *DeleteConfigItemBadRequest) String() string

type DeleteConfigItemForbidden

type DeleteConfigItemForbidden struct {
}

DeleteConfigItemForbidden describes a response with status code 403, with default header values.

Forbidden

func NewDeleteConfigItemForbidden

func NewDeleteConfigItemForbidden() *DeleteConfigItemForbidden

NewDeleteConfigItemForbidden creates a DeleteConfigItemForbidden with default headers values

func (*DeleteConfigItemForbidden) Code

func (o *DeleteConfigItemForbidden) Code() int

Code gets the status code for the delete config item forbidden response

func (*DeleteConfigItemForbidden) Error

func (o *DeleteConfigItemForbidden) Error() string

func (*DeleteConfigItemForbidden) IsClientError

func (o *DeleteConfigItemForbidden) IsClientError() bool

IsClientError returns true when this delete config item forbidden response has a 4xx status code

func (*DeleteConfigItemForbidden) IsCode

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

IsCode returns true when this delete config item forbidden response a status code equal to that given

func (*DeleteConfigItemForbidden) IsRedirect

func (o *DeleteConfigItemForbidden) IsRedirect() bool

IsRedirect returns true when this delete config item forbidden response has a 3xx status code

func (*DeleteConfigItemForbidden) IsServerError

func (o *DeleteConfigItemForbidden) IsServerError() bool

IsServerError returns true when this delete config item forbidden response has a 5xx status code

func (*DeleteConfigItemForbidden) IsSuccess

func (o *DeleteConfigItemForbidden) IsSuccess() bool

IsSuccess returns true when this delete config item forbidden response has a 2xx status code

func (*DeleteConfigItemForbidden) String

func (o *DeleteConfigItemForbidden) String() string

type DeleteConfigItemInternalServerError

type DeleteConfigItemInternalServerError struct {
	Payload *models.Error
}

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

Unexpected error

func NewDeleteConfigItemInternalServerError

func NewDeleteConfigItemInternalServerError() *DeleteConfigItemInternalServerError

NewDeleteConfigItemInternalServerError creates a DeleteConfigItemInternalServerError with default headers values

func (*DeleteConfigItemInternalServerError) Code

Code gets the status code for the delete config item internal server error response

func (*DeleteConfigItemInternalServerError) Error

func (*DeleteConfigItemInternalServerError) GetPayload

func (*DeleteConfigItemInternalServerError) IsClientError

func (o *DeleteConfigItemInternalServerError) IsClientError() bool

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

func (*DeleteConfigItemInternalServerError) IsCode

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

func (*DeleteConfigItemInternalServerError) IsRedirect

func (o *DeleteConfigItemInternalServerError) IsRedirect() bool

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

func (*DeleteConfigItemInternalServerError) IsServerError

func (o *DeleteConfigItemInternalServerError) IsServerError() bool

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

func (*DeleteConfigItemInternalServerError) IsSuccess

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

func (*DeleteConfigItemInternalServerError) String

type DeleteConfigItemNoContent

type DeleteConfigItemNoContent struct {
}

DeleteConfigItemNoContent describes a response with status code 204, with default header values.

Config item deleted.

func NewDeleteConfigItemNoContent

func NewDeleteConfigItemNoContent() *DeleteConfigItemNoContent

NewDeleteConfigItemNoContent creates a DeleteConfigItemNoContent with default headers values

func (*DeleteConfigItemNoContent) Code

func (o *DeleteConfigItemNoContent) Code() int

Code gets the status code for the delete config item no content response

func (*DeleteConfigItemNoContent) Error

func (o *DeleteConfigItemNoContent) Error() string

func (*DeleteConfigItemNoContent) IsClientError

func (o *DeleteConfigItemNoContent) IsClientError() bool

IsClientError returns true when this delete config item no content response has a 4xx status code

func (*DeleteConfigItemNoContent) IsCode

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

IsCode returns true when this delete config item no content response a status code equal to that given

func (*DeleteConfigItemNoContent) IsRedirect

func (o *DeleteConfigItemNoContent) IsRedirect() bool

IsRedirect returns true when this delete config item no content response has a 3xx status code

func (*DeleteConfigItemNoContent) IsServerError

func (o *DeleteConfigItemNoContent) IsServerError() bool

IsServerError returns true when this delete config item no content response has a 5xx status code

func (*DeleteConfigItemNoContent) IsSuccess

func (o *DeleteConfigItemNoContent) IsSuccess() bool

IsSuccess returns true when this delete config item no content response has a 2xx status code

func (*DeleteConfigItemNoContent) String

func (o *DeleteConfigItemNoContent) String() string

type DeleteConfigItemNotFound

type DeleteConfigItemNotFound struct {
}

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

Config item not found

func NewDeleteConfigItemNotFound

func NewDeleteConfigItemNotFound() *DeleteConfigItemNotFound

NewDeleteConfigItemNotFound creates a DeleteConfigItemNotFound with default headers values

func (*DeleteConfigItemNotFound) Code

func (o *DeleteConfigItemNotFound) Code() int

Code gets the status code for the delete config item not found response

func (*DeleteConfigItemNotFound) Error

func (o *DeleteConfigItemNotFound) Error() string

func (*DeleteConfigItemNotFound) IsClientError

func (o *DeleteConfigItemNotFound) IsClientError() bool

IsClientError returns true when this delete config item not found response has a 4xx status code

func (*DeleteConfigItemNotFound) IsCode

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

IsCode returns true when this delete config item not found response a status code equal to that given

func (*DeleteConfigItemNotFound) IsRedirect

func (o *DeleteConfigItemNotFound) IsRedirect() bool

IsRedirect returns true when this delete config item not found response has a 3xx status code

func (*DeleteConfigItemNotFound) IsServerError

func (o *DeleteConfigItemNotFound) IsServerError() bool

IsServerError returns true when this delete config item not found response has a 5xx status code

func (*DeleteConfigItemNotFound) IsSuccess

func (o *DeleteConfigItemNotFound) IsSuccess() bool

IsSuccess returns true when this delete config item not found response has a 2xx status code

func (*DeleteConfigItemNotFound) String

func (o *DeleteConfigItemNotFound) String() string

type DeleteConfigItemParams

type DeleteConfigItemParams struct {

	/* ClusterID.

	   ID of the cluster.
	*/
	ClusterID string

	/* ConfigKey.

	   Key for the config value.
	*/
	ConfigKey string

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

DeleteConfigItemParams contains all the parameters to send to the API endpoint

for the delete config item operation.

Typically these are written to a http.Request.

func NewDeleteConfigItemParams

func NewDeleteConfigItemParams() *DeleteConfigItemParams

NewDeleteConfigItemParams creates a new DeleteConfigItemParams 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 NewDeleteConfigItemParamsWithContext

func NewDeleteConfigItemParamsWithContext(ctx context.Context) *DeleteConfigItemParams

NewDeleteConfigItemParamsWithContext creates a new DeleteConfigItemParams object with the ability to set a context for a request.

func NewDeleteConfigItemParamsWithHTTPClient

func NewDeleteConfigItemParamsWithHTTPClient(client *http.Client) *DeleteConfigItemParams

NewDeleteConfigItemParamsWithHTTPClient creates a new DeleteConfigItemParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteConfigItemParamsWithTimeout

func NewDeleteConfigItemParamsWithTimeout(timeout time.Duration) *DeleteConfigItemParams

NewDeleteConfigItemParamsWithTimeout creates a new DeleteConfigItemParams object with the ability to set a timeout on a request.

func (*DeleteConfigItemParams) SetClusterID

func (o *DeleteConfigItemParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the delete config item params

func (*DeleteConfigItemParams) SetConfigKey

func (o *DeleteConfigItemParams) SetConfigKey(configKey string)

SetConfigKey adds the configKey to the delete config item params

func (*DeleteConfigItemParams) SetContext

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

SetContext adds the context to the delete config item params

func (*DeleteConfigItemParams) SetDefaults

func (o *DeleteConfigItemParams) SetDefaults()

SetDefaults hydrates default values in the delete config item params (not the query body).

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

func (*DeleteConfigItemParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete config item params

func (*DeleteConfigItemParams) SetTimeout

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

SetTimeout adds the timeout to the delete config item params

func (*DeleteConfigItemParams) WithClusterID

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

WithClusterID adds the clusterID to the delete config item params

func (*DeleteConfigItemParams) WithConfigKey

func (o *DeleteConfigItemParams) WithConfigKey(configKey string) *DeleteConfigItemParams

WithConfigKey adds the configKey to the delete config item params

func (*DeleteConfigItemParams) WithContext

WithContext adds the context to the delete config item params

func (*DeleteConfigItemParams) WithDefaults

WithDefaults hydrates default values in the delete config item params (not the query body).

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

func (*DeleteConfigItemParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete config item params

func (*DeleteConfigItemParams) WithTimeout

WithTimeout adds the timeout to the delete config item params

func (*DeleteConfigItemParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteConfigItemReader

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

DeleteConfigItemReader is a Reader for the DeleteConfigItem structure.

func (*DeleteConfigItemReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteConfigItemUnauthorized

type DeleteConfigItemUnauthorized struct {
}

DeleteConfigItemUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewDeleteConfigItemUnauthorized

func NewDeleteConfigItemUnauthorized() *DeleteConfigItemUnauthorized

NewDeleteConfigItemUnauthorized creates a DeleteConfigItemUnauthorized with default headers values

func (*DeleteConfigItemUnauthorized) Code

Code gets the status code for the delete config item unauthorized response

func (*DeleteConfigItemUnauthorized) Error

func (*DeleteConfigItemUnauthorized) IsClientError

func (o *DeleteConfigItemUnauthorized) IsClientError() bool

IsClientError returns true when this delete config item unauthorized response has a 4xx status code

func (*DeleteConfigItemUnauthorized) IsCode

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

IsCode returns true when this delete config item unauthorized response a status code equal to that given

func (*DeleteConfigItemUnauthorized) IsRedirect

func (o *DeleteConfigItemUnauthorized) IsRedirect() bool

IsRedirect returns true when this delete config item unauthorized response has a 3xx status code

func (*DeleteConfigItemUnauthorized) IsServerError

func (o *DeleteConfigItemUnauthorized) IsServerError() bool

IsServerError returns true when this delete config item unauthorized response has a 5xx status code

func (*DeleteConfigItemUnauthorized) IsSuccess

func (o *DeleteConfigItemUnauthorized) IsSuccess() bool

IsSuccess returns true when this delete config item unauthorized response has a 2xx status code

func (*DeleteConfigItemUnauthorized) String

Jump to

Keyboard shortcuts

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