Documentation ¶
Index ¶
- type AddOrUpdateConfigItemBadRequest
- func (o *AddOrUpdateConfigItemBadRequest) Code() int
- func (o *AddOrUpdateConfigItemBadRequest) Error() string
- func (o *AddOrUpdateConfigItemBadRequest) GetPayload() *models.Error
- func (o *AddOrUpdateConfigItemBadRequest) IsClientError() bool
- func (o *AddOrUpdateConfigItemBadRequest) IsCode(code int) bool
- func (o *AddOrUpdateConfigItemBadRequest) IsRedirect() bool
- func (o *AddOrUpdateConfigItemBadRequest) IsServerError() bool
- func (o *AddOrUpdateConfigItemBadRequest) IsSuccess() bool
- func (o *AddOrUpdateConfigItemBadRequest) String() string
- type AddOrUpdateConfigItemForbidden
- func (o *AddOrUpdateConfigItemForbidden) Code() int
- func (o *AddOrUpdateConfigItemForbidden) Error() string
- func (o *AddOrUpdateConfigItemForbidden) IsClientError() bool
- func (o *AddOrUpdateConfigItemForbidden) IsCode(code int) bool
- func (o *AddOrUpdateConfigItemForbidden) IsRedirect() bool
- func (o *AddOrUpdateConfigItemForbidden) IsServerError() bool
- func (o *AddOrUpdateConfigItemForbidden) IsSuccess() bool
- func (o *AddOrUpdateConfigItemForbidden) String() string
- type AddOrUpdateConfigItemInternalServerError
- func (o *AddOrUpdateConfigItemInternalServerError) Code() int
- func (o *AddOrUpdateConfigItemInternalServerError) Error() string
- func (o *AddOrUpdateConfigItemInternalServerError) GetPayload() *models.Error
- func (o *AddOrUpdateConfigItemInternalServerError) IsClientError() bool
- func (o *AddOrUpdateConfigItemInternalServerError) IsCode(code int) bool
- func (o *AddOrUpdateConfigItemInternalServerError) IsRedirect() bool
- func (o *AddOrUpdateConfigItemInternalServerError) IsServerError() bool
- func (o *AddOrUpdateConfigItemInternalServerError) IsSuccess() bool
- func (o *AddOrUpdateConfigItemInternalServerError) String() string
- type AddOrUpdateConfigItemOK
- func (o *AddOrUpdateConfigItemOK) Code() int
- func (o *AddOrUpdateConfigItemOK) Error() string
- func (o *AddOrUpdateConfigItemOK) GetPayload() *models.ConfigValue
- func (o *AddOrUpdateConfigItemOK) IsClientError() bool
- func (o *AddOrUpdateConfigItemOK) IsCode(code int) bool
- func (o *AddOrUpdateConfigItemOK) IsRedirect() bool
- func (o *AddOrUpdateConfigItemOK) IsServerError() bool
- func (o *AddOrUpdateConfigItemOK) IsSuccess() bool
- func (o *AddOrUpdateConfigItemOK) String() string
- type AddOrUpdateConfigItemParams
- func NewAddOrUpdateConfigItemParams() *AddOrUpdateConfigItemParams
- func NewAddOrUpdateConfigItemParamsWithContext(ctx context.Context) *AddOrUpdateConfigItemParams
- func NewAddOrUpdateConfigItemParamsWithHTTPClient(client *http.Client) *AddOrUpdateConfigItemParams
- func NewAddOrUpdateConfigItemParamsWithTimeout(timeout time.Duration) *AddOrUpdateConfigItemParams
- func (o *AddOrUpdateConfigItemParams) SetClusterID(clusterID string)
- func (o *AddOrUpdateConfigItemParams) SetConfigKey(configKey string)
- func (o *AddOrUpdateConfigItemParams) SetContext(ctx context.Context)
- func (o *AddOrUpdateConfigItemParams) SetDefaults()
- func (o *AddOrUpdateConfigItemParams) SetHTTPClient(client *http.Client)
- func (o *AddOrUpdateConfigItemParams) SetTimeout(timeout time.Duration)
- func (o *AddOrUpdateConfigItemParams) SetValue(value *models.ConfigValue)
- func (o *AddOrUpdateConfigItemParams) WithClusterID(clusterID string) *AddOrUpdateConfigItemParams
- func (o *AddOrUpdateConfigItemParams) WithConfigKey(configKey string) *AddOrUpdateConfigItemParams
- func (o *AddOrUpdateConfigItemParams) WithContext(ctx context.Context) *AddOrUpdateConfigItemParams
- func (o *AddOrUpdateConfigItemParams) WithDefaults() *AddOrUpdateConfigItemParams
- func (o *AddOrUpdateConfigItemParams) WithHTTPClient(client *http.Client) *AddOrUpdateConfigItemParams
- func (o *AddOrUpdateConfigItemParams) WithTimeout(timeout time.Duration) *AddOrUpdateConfigItemParams
- func (o *AddOrUpdateConfigItemParams) WithValue(value *models.ConfigValue) *AddOrUpdateConfigItemParams
- func (o *AddOrUpdateConfigItemParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddOrUpdateConfigItemReader
- type AddOrUpdateConfigItemUnauthorized
- func (o *AddOrUpdateConfigItemUnauthorized) Code() int
- func (o *AddOrUpdateConfigItemUnauthorized) Error() string
- func (o *AddOrUpdateConfigItemUnauthorized) IsClientError() bool
- func (o *AddOrUpdateConfigItemUnauthorized) IsCode(code int) bool
- func (o *AddOrUpdateConfigItemUnauthorized) IsRedirect() bool
- func (o *AddOrUpdateConfigItemUnauthorized) IsServerError() bool
- func (o *AddOrUpdateConfigItemUnauthorized) IsSuccess() bool
- func (o *AddOrUpdateConfigItemUnauthorized) String() string
- type Client
- func (a *Client) AddOrUpdateConfigItem(params *AddOrUpdateConfigItemParams, authInfo runtime.ClientAuthInfoWriter, ...) (*AddOrUpdateConfigItemOK, error)
- func (a *Client) DeleteConfigItem(params *DeleteConfigItemParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteConfigItemNoContent, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeleteConfigItemBadRequest
- func (o *DeleteConfigItemBadRequest) Code() int
- func (o *DeleteConfigItemBadRequest) Error() string
- func (o *DeleteConfigItemBadRequest) GetPayload() *models.Error
- func (o *DeleteConfigItemBadRequest) IsClientError() bool
- func (o *DeleteConfigItemBadRequest) IsCode(code int) bool
- func (o *DeleteConfigItemBadRequest) IsRedirect() bool
- func (o *DeleteConfigItemBadRequest) IsServerError() bool
- func (o *DeleteConfigItemBadRequest) IsSuccess() bool
- func (o *DeleteConfigItemBadRequest) String() string
- type DeleteConfigItemForbidden
- func (o *DeleteConfigItemForbidden) Code() int
- func (o *DeleteConfigItemForbidden) Error() string
- func (o *DeleteConfigItemForbidden) IsClientError() bool
- func (o *DeleteConfigItemForbidden) IsCode(code int) bool
- func (o *DeleteConfigItemForbidden) IsRedirect() bool
- func (o *DeleteConfigItemForbidden) IsServerError() bool
- func (o *DeleteConfigItemForbidden) IsSuccess() bool
- func (o *DeleteConfigItemForbidden) String() string
- type DeleteConfigItemInternalServerError
- func (o *DeleteConfigItemInternalServerError) Code() int
- func (o *DeleteConfigItemInternalServerError) Error() string
- func (o *DeleteConfigItemInternalServerError) GetPayload() *models.Error
- func (o *DeleteConfigItemInternalServerError) IsClientError() bool
- func (o *DeleteConfigItemInternalServerError) IsCode(code int) bool
- func (o *DeleteConfigItemInternalServerError) IsRedirect() bool
- func (o *DeleteConfigItemInternalServerError) IsServerError() bool
- func (o *DeleteConfigItemInternalServerError) IsSuccess() bool
- func (o *DeleteConfigItemInternalServerError) String() string
- type DeleteConfigItemNoContent
- func (o *DeleteConfigItemNoContent) Code() int
- func (o *DeleteConfigItemNoContent) Error() string
- func (o *DeleteConfigItemNoContent) IsClientError() bool
- func (o *DeleteConfigItemNoContent) IsCode(code int) bool
- func (o *DeleteConfigItemNoContent) IsRedirect() bool
- func (o *DeleteConfigItemNoContent) IsServerError() bool
- func (o *DeleteConfigItemNoContent) IsSuccess() bool
- func (o *DeleteConfigItemNoContent) String() string
- type DeleteConfigItemNotFound
- func (o *DeleteConfigItemNotFound) Code() int
- func (o *DeleteConfigItemNotFound) Error() string
- func (o *DeleteConfigItemNotFound) IsClientError() bool
- func (o *DeleteConfigItemNotFound) IsCode(code int) bool
- func (o *DeleteConfigItemNotFound) IsRedirect() bool
- func (o *DeleteConfigItemNotFound) IsServerError() bool
- func (o *DeleteConfigItemNotFound) IsSuccess() bool
- func (o *DeleteConfigItemNotFound) String() string
- type DeleteConfigItemParams
- func NewDeleteConfigItemParams() *DeleteConfigItemParams
- func NewDeleteConfigItemParamsWithContext(ctx context.Context) *DeleteConfigItemParams
- func NewDeleteConfigItemParamsWithHTTPClient(client *http.Client) *DeleteConfigItemParams
- func NewDeleteConfigItemParamsWithTimeout(timeout time.Duration) *DeleteConfigItemParams
- func (o *DeleteConfigItemParams) SetClusterID(clusterID string)
- func (o *DeleteConfigItemParams) SetConfigKey(configKey string)
- func (o *DeleteConfigItemParams) SetContext(ctx context.Context)
- func (o *DeleteConfigItemParams) SetDefaults()
- func (o *DeleteConfigItemParams) SetHTTPClient(client *http.Client)
- func (o *DeleteConfigItemParams) SetTimeout(timeout time.Duration)
- func (o *DeleteConfigItemParams) WithClusterID(clusterID string) *DeleteConfigItemParams
- func (o *DeleteConfigItemParams) WithConfigKey(configKey string) *DeleteConfigItemParams
- func (o *DeleteConfigItemParams) WithContext(ctx context.Context) *DeleteConfigItemParams
- func (o *DeleteConfigItemParams) WithDefaults() *DeleteConfigItemParams
- func (o *DeleteConfigItemParams) WithHTTPClient(client *http.Client) *DeleteConfigItemParams
- func (o *DeleteConfigItemParams) WithTimeout(timeout time.Duration) *DeleteConfigItemParams
- func (o *DeleteConfigItemParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteConfigItemReader
- type DeleteConfigItemUnauthorized
- func (o *DeleteConfigItemUnauthorized) Code() int
- func (o *DeleteConfigItemUnauthorized) Error() string
- func (o *DeleteConfigItemUnauthorized) IsClientError() bool
- func (o *DeleteConfigItemUnauthorized) IsCode(code int) bool
- func (o *DeleteConfigItemUnauthorized) IsRedirect() bool
- func (o *DeleteConfigItemUnauthorized) IsServerError() bool
- func (o *DeleteConfigItemUnauthorized) IsSuccess() bool
- func (o *DeleteConfigItemUnauthorized) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddOrUpdateConfigItemBadRequest ¶
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 ¶
func (o *AddOrUpdateConfigItemBadRequest) Code() int
Code gets the status code for the add or update config item bad request response
func (*AddOrUpdateConfigItemBadRequest) Error ¶
func (o *AddOrUpdateConfigItemBadRequest) Error() string
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 ¶
func (o *AddOrUpdateConfigItemBadRequest) String() 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 ¶
func (o *AddOrUpdateConfigItemForbidden) Code() int
Code gets the status code for the add or update config item forbidden response
func (*AddOrUpdateConfigItemForbidden) Error ¶
func (o *AddOrUpdateConfigItemForbidden) Error() string
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 ¶
func (o *AddOrUpdateConfigItemForbidden) String() string
type AddOrUpdateConfigItemInternalServerError ¶
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 ¶
func (o *AddOrUpdateConfigItemInternalServerError) Code() int
Code gets the status code for the add or update config item internal server error response
func (*AddOrUpdateConfigItemInternalServerError) Error ¶
func (o *AddOrUpdateConfigItemInternalServerError) Error() string
func (*AddOrUpdateConfigItemInternalServerError) GetPayload ¶
func (o *AddOrUpdateConfigItemInternalServerError) GetPayload() *models.Error
func (*AddOrUpdateConfigItemInternalServerError) IsClientError ¶
func (o *AddOrUpdateConfigItemInternalServerError) IsClientError() bool
IsClientError returns true when this add or update config item internal server error response has a 4xx status code
func (*AddOrUpdateConfigItemInternalServerError) IsCode ¶
func (o *AddOrUpdateConfigItemInternalServerError) IsCode(code int) bool
IsCode returns true when this add or update config item internal server error response a status code equal to that given
func (*AddOrUpdateConfigItemInternalServerError) IsRedirect ¶
func (o *AddOrUpdateConfigItemInternalServerError) IsRedirect() bool
IsRedirect returns true when this add or update config item internal server error response has a 3xx status code
func (*AddOrUpdateConfigItemInternalServerError) IsServerError ¶
func (o *AddOrUpdateConfigItemInternalServerError) IsServerError() bool
IsServerError returns true when this add or update config item internal server error response has a 5xx status code
func (*AddOrUpdateConfigItemInternalServerError) IsSuccess ¶
func (o *AddOrUpdateConfigItemInternalServerError) IsSuccess() bool
IsSuccess returns true when this add or update config item internal server error response has a 2xx status code
func (*AddOrUpdateConfigItemInternalServerError) String ¶
func (o *AddOrUpdateConfigItemInternalServerError) String() 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 ¶
func (o *AddOrUpdateConfigItemParams) WithContext(ctx context.Context) *AddOrUpdateConfigItemParams
WithContext adds the context to the add or update config item params
func (*AddOrUpdateConfigItemParams) WithDefaults ¶
func (o *AddOrUpdateConfigItemParams) WithDefaults() *AddOrUpdateConfigItemParams
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 ¶
func (o *AddOrUpdateConfigItemParams) WithHTTPClient(client *http.Client) *AddOrUpdateConfigItemParams
WithHTTPClient adds the HTTPClient to the add or update config item params
func (*AddOrUpdateConfigItemParams) WithTimeout ¶
func (o *AddOrUpdateConfigItemParams) WithTimeout(timeout time.Duration) *AddOrUpdateConfigItemParams
WithTimeout adds the timeout to the add or update config item params
func (*AddOrUpdateConfigItemParams) WithValue ¶
func (o *AddOrUpdateConfigItemParams) WithValue(value *models.ConfigValue) *AddOrUpdateConfigItemParams
WithValue adds the value to the add or update config item params
func (*AddOrUpdateConfigItemParams) WriteToRequest ¶
func (o *AddOrUpdateConfigItemParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *AddOrUpdateConfigItemUnauthorized) Code() int
Code gets the status code for the add or update config item unauthorized response
func (*AddOrUpdateConfigItemUnauthorized) Error ¶
func (o *AddOrUpdateConfigItemUnauthorized) Error() string
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 ¶
func (o *AddOrUpdateConfigItemUnauthorized) String() 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 ¶
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 (o *DeleteConfigItemBadRequest) Error() string
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 ¶
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 ¶
func (o *DeleteConfigItemInternalServerError) Code() int
Code gets the status code for the delete config item internal server error response
func (*DeleteConfigItemInternalServerError) Error ¶
func (o *DeleteConfigItemInternalServerError) Error() string
func (*DeleteConfigItemInternalServerError) GetPayload ¶
func (o *DeleteConfigItemInternalServerError) GetPayload() *models.Error
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 ¶
func (o *DeleteConfigItemInternalServerError) IsCode(code int) bool
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 ¶
func (o *DeleteConfigItemInternalServerError) IsSuccess() bool
IsSuccess returns true when this delete config item internal server error response has a 2xx status code
func (*DeleteConfigItemInternalServerError) String ¶
func (o *DeleteConfigItemInternalServerError) String() 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 ¶
func (o *DeleteConfigItemParams) WithContext(ctx context.Context) *DeleteConfigItemParams
WithContext adds the context to the delete config item params
func (*DeleteConfigItemParams) WithDefaults ¶
func (o *DeleteConfigItemParams) WithDefaults() *DeleteConfigItemParams
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 ¶
func (o *DeleteConfigItemParams) WithTimeout(timeout time.Duration) *DeleteConfigItemParams
WithTimeout adds the timeout to the delete config item params
func (*DeleteConfigItemParams) WriteToRequest ¶
func (o *DeleteConfigItemParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *DeleteConfigItemUnauthorized) Code() int
Code gets the status code for the delete config item unauthorized response
func (*DeleteConfigItemUnauthorized) Error ¶
func (o *DeleteConfigItemUnauthorized) Error() string
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 ¶
func (o *DeleteConfigItemUnauthorized) String() string