Documentation
¶
Index ¶
- func WithAcceptApplicationJSON(r *runtime.ClientOperation)
- func WithAcceptApplicationXML(r *runtime.ClientOperation)
- func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
- func WithContentTypeApplicationXML(r *runtime.ClientOperation)
- type Client
- func (a *Client) CreateConfig(params *CreateConfigParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateConfigCreated, error)
- func (a *Client) DeleteConfig(params *DeleteConfigParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteConfigNoContent, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateConfigBadRequest
- func (o *CreateConfigBadRequest) Code() int
- func (o *CreateConfigBadRequest) Error() string
- func (o *CreateConfigBadRequest) GetPayload() *models.Error
- func (o *CreateConfigBadRequest) IsClientError() bool
- func (o *CreateConfigBadRequest) IsCode(code int) bool
- func (o *CreateConfigBadRequest) IsRedirect() bool
- func (o *CreateConfigBadRequest) IsServerError() bool
- func (o *CreateConfigBadRequest) IsSuccess() bool
- func (o *CreateConfigBadRequest) String() string
- type CreateConfigCreated
- func (o *CreateConfigCreated) Code() int
- func (o *CreateConfigCreated) Error() string
- func (o *CreateConfigCreated) GetPayload() *models.VPNConfig
- func (o *CreateConfigCreated) IsClientError() bool
- func (o *CreateConfigCreated) IsCode(code int) bool
- func (o *CreateConfigCreated) IsRedirect() bool
- func (o *CreateConfigCreated) IsServerError() bool
- func (o *CreateConfigCreated) IsSuccess() bool
- func (o *CreateConfigCreated) String() string
- type CreateConfigInternalServerError
- func (o *CreateConfigInternalServerError) Code() int
- func (o *CreateConfigInternalServerError) Error() string
- func (o *CreateConfigInternalServerError) GetPayload() *models.Error
- func (o *CreateConfigInternalServerError) IsClientError() bool
- func (o *CreateConfigInternalServerError) IsCode(code int) bool
- func (o *CreateConfigInternalServerError) IsRedirect() bool
- func (o *CreateConfigInternalServerError) IsServerError() bool
- func (o *CreateConfigInternalServerError) IsSuccess() bool
- func (o *CreateConfigInternalServerError) String() string
- type CreateConfigParams
- func (o *CreateConfigParams) SetBody(body *models.CreateConfigRequest)
- func (o *CreateConfigParams) SetContext(ctx context.Context)
- func (o *CreateConfigParams) SetDefaults()
- func (o *CreateConfigParams) SetHTTPClient(client *http.Client)
- func (o *CreateConfigParams) SetTimeout(timeout time.Duration)
- func (o *CreateConfigParams) WithBody(body *models.CreateConfigRequest) *CreateConfigParams
- func (o *CreateConfigParams) WithContext(ctx context.Context) *CreateConfigParams
- func (o *CreateConfigParams) WithDefaults() *CreateConfigParams
- func (o *CreateConfigParams) WithHTTPClient(client *http.Client) *CreateConfigParams
- func (o *CreateConfigParams) WithTimeout(timeout time.Duration) *CreateConfigParams
- func (o *CreateConfigParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateConfigReader
- type CreateConfigServiceUnavailable
- func (o *CreateConfigServiceUnavailable) Code() int
- func (o *CreateConfigServiceUnavailable) Error() string
- func (o *CreateConfigServiceUnavailable) GetPayload() *models.ServiceTemporarilyUnavailable
- func (o *CreateConfigServiceUnavailable) IsClientError() bool
- func (o *CreateConfigServiceUnavailable) IsCode(code int) bool
- func (o *CreateConfigServiceUnavailable) IsRedirect() bool
- func (o *CreateConfigServiceUnavailable) IsServerError() bool
- func (o *CreateConfigServiceUnavailable) IsSuccess() bool
- func (o *CreateConfigServiceUnavailable) String() string
- type CreateConfigUnauthorized
- func (o *CreateConfigUnauthorized) Code() int
- func (o *CreateConfigUnauthorized) Error() string
- func (o *CreateConfigUnauthorized) GetPayload() *models.Error
- func (o *CreateConfigUnauthorized) IsClientError() bool
- func (o *CreateConfigUnauthorized) IsCode(code int) bool
- func (o *CreateConfigUnauthorized) IsRedirect() bool
- func (o *CreateConfigUnauthorized) IsServerError() bool
- func (o *CreateConfigUnauthorized) IsSuccess() bool
- func (o *CreateConfigUnauthorized) String() string
- type DeleteConfigBadRequest
- func (o *DeleteConfigBadRequest) Code() int
- func (o *DeleteConfigBadRequest) Error() string
- func (o *DeleteConfigBadRequest) GetPayload() *models.Error
- func (o *DeleteConfigBadRequest) IsClientError() bool
- func (o *DeleteConfigBadRequest) IsCode(code int) bool
- func (o *DeleteConfigBadRequest) IsRedirect() bool
- func (o *DeleteConfigBadRequest) IsServerError() bool
- func (o *DeleteConfigBadRequest) IsSuccess() bool
- func (o *DeleteConfigBadRequest) String() string
- type DeleteConfigBody
- type DeleteConfigInternalServerError
- func (o *DeleteConfigInternalServerError) Code() int
- func (o *DeleteConfigInternalServerError) Error() string
- func (o *DeleteConfigInternalServerError) GetPayload() *models.Error
- func (o *DeleteConfigInternalServerError) IsClientError() bool
- func (o *DeleteConfigInternalServerError) IsCode(code int) bool
- func (o *DeleteConfigInternalServerError) IsRedirect() bool
- func (o *DeleteConfigInternalServerError) IsServerError() bool
- func (o *DeleteConfigInternalServerError) IsSuccess() bool
- func (o *DeleteConfigInternalServerError) String() string
- type DeleteConfigNoContent
- func (o *DeleteConfigNoContent) Code() int
- func (o *DeleteConfigNoContent) Error() string
- func (o *DeleteConfigNoContent) IsClientError() bool
- func (o *DeleteConfigNoContent) IsCode(code int) bool
- func (o *DeleteConfigNoContent) IsRedirect() bool
- func (o *DeleteConfigNoContent) IsServerError() bool
- func (o *DeleteConfigNoContent) IsSuccess() bool
- func (o *DeleteConfigNoContent) String() string
- type DeleteConfigParams
- func (o *DeleteConfigParams) SetBody(body DeleteConfigBody)
- func (o *DeleteConfigParams) SetConfigID(configID string)
- func (o *DeleteConfigParams) SetContext(ctx context.Context)
- func (o *DeleteConfigParams) SetDefaults()
- func (o *DeleteConfigParams) SetHTTPClient(client *http.Client)
- func (o *DeleteConfigParams) SetTimeout(timeout time.Duration)
- func (o *DeleteConfigParams) WithBody(body DeleteConfigBody) *DeleteConfigParams
- func (o *DeleteConfigParams) WithConfigID(configID string) *DeleteConfigParams
- func (o *DeleteConfigParams) WithContext(ctx context.Context) *DeleteConfigParams
- func (o *DeleteConfigParams) WithDefaults() *DeleteConfigParams
- func (o *DeleteConfigParams) WithHTTPClient(client *http.Client) *DeleteConfigParams
- func (o *DeleteConfigParams) WithTimeout(timeout time.Duration) *DeleteConfigParams
- func (o *DeleteConfigParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteConfigReader
- type DeleteConfigServiceUnavailable
- func (o *DeleteConfigServiceUnavailable) Code() int
- func (o *DeleteConfigServiceUnavailable) Error() string
- func (o *DeleteConfigServiceUnavailable) GetPayload() *models.ServiceTemporarilyUnavailable
- func (o *DeleteConfigServiceUnavailable) IsClientError() bool
- func (o *DeleteConfigServiceUnavailable) IsCode(code int) bool
- func (o *DeleteConfigServiceUnavailable) IsRedirect() bool
- func (o *DeleteConfigServiceUnavailable) IsServerError() bool
- func (o *DeleteConfigServiceUnavailable) IsSuccess() bool
- func (o *DeleteConfigServiceUnavailable) String() string
- type DeleteConfigUnauthorized
- func (o *DeleteConfigUnauthorized) Code() int
- func (o *DeleteConfigUnauthorized) Error() string
- func (o *DeleteConfigUnauthorized) GetPayload() *models.Error
- func (o *DeleteConfigUnauthorized) IsClientError() bool
- func (o *DeleteConfigUnauthorized) IsCode(code int) bool
- func (o *DeleteConfigUnauthorized) IsRedirect() bool
- func (o *DeleteConfigUnauthorized) IsServerError() bool
- func (o *DeleteConfigUnauthorized) IsSuccess() bool
- func (o *DeleteConfigUnauthorized) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAcceptApplicationJSON ¶
func WithAcceptApplicationJSON(r *runtime.ClientOperation)
WithAcceptApplicationJSON sets the Accept header to "application/json".
func WithAcceptApplicationXML ¶
func WithAcceptApplicationXML(r *runtime.ClientOperation)
WithAcceptApplicationXML sets the Accept header to "application/xml".
func WithContentTypeApplicationJSON ¶
func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
WithContentTypeApplicationJSON sets the Content-Type header to "application/json".
func WithContentTypeApplicationXML ¶
func WithContentTypeApplicationXML(r *runtime.ClientOperation)
WithContentTypeApplicationXML sets the Content-Type header to "application/xml".
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for operations API
func (*Client) CreateConfig ¶
func (a *Client) CreateConfig(params *CreateConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateConfigCreated, error)
CreateConfig creates v p n config
func (*Client) DeleteConfig ¶
func (a *Client) DeleteConfig(params *DeleteConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteConfigNoContent, error)
DeleteConfig deletes v p n config
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.
func WithAccept ¶
func WithAccept(mime string) ClientOption
WithAccept allows the client to force the Accept header to negotiate a specific Producer from the server.
You may use this option to set arbitrary extensions to your MIME media type.
func WithContentType ¶
func WithContentType(mime string) ClientOption
WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.
You may use this option to set arbitrary extensions to your MIME media type.
type ClientService ¶
type ClientService interface { CreateConfig(params *CreateConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateConfigCreated, error) DeleteConfig(params *DeleteConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteConfigNoContent, 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 operations API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new operations 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 operations 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 CreateConfigBadRequest ¶
CreateConfigBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewCreateConfigBadRequest ¶
func NewCreateConfigBadRequest() *CreateConfigBadRequest
NewCreateConfigBadRequest creates a CreateConfigBadRequest with default headers values
func (*CreateConfigBadRequest) Code ¶
func (o *CreateConfigBadRequest) Code() int
Code gets the status code for the create config bad request response
func (*CreateConfigBadRequest) Error ¶
func (o *CreateConfigBadRequest) Error() string
func (*CreateConfigBadRequest) GetPayload ¶
func (o *CreateConfigBadRequest) GetPayload() *models.Error
func (*CreateConfigBadRequest) IsClientError ¶
func (o *CreateConfigBadRequest) IsClientError() bool
IsClientError returns true when this create config bad request response has a 4xx status code
func (*CreateConfigBadRequest) IsCode ¶
func (o *CreateConfigBadRequest) IsCode(code int) bool
IsCode returns true when this create config bad request response a status code equal to that given
func (*CreateConfigBadRequest) IsRedirect ¶
func (o *CreateConfigBadRequest) IsRedirect() bool
IsRedirect returns true when this create config bad request response has a 3xx status code
func (*CreateConfigBadRequest) IsServerError ¶
func (o *CreateConfigBadRequest) IsServerError() bool
IsServerError returns true when this create config bad request response has a 5xx status code
func (*CreateConfigBadRequest) IsSuccess ¶
func (o *CreateConfigBadRequest) IsSuccess() bool
IsSuccess returns true when this create config bad request response has a 2xx status code
func (*CreateConfigBadRequest) String ¶
func (o *CreateConfigBadRequest) String() string
type CreateConfigCreated ¶
CreateConfigCreated describes a response with status code 201, with default header values.
Created
func NewCreateConfigCreated ¶
func NewCreateConfigCreated() *CreateConfigCreated
NewCreateConfigCreated creates a CreateConfigCreated with default headers values
func (*CreateConfigCreated) Code ¶
func (o *CreateConfigCreated) Code() int
Code gets the status code for the create config created response
func (*CreateConfigCreated) Error ¶
func (o *CreateConfigCreated) Error() string
func (*CreateConfigCreated) GetPayload ¶
func (o *CreateConfigCreated) GetPayload() *models.VPNConfig
func (*CreateConfigCreated) IsClientError ¶
func (o *CreateConfigCreated) IsClientError() bool
IsClientError returns true when this create config created response has a 4xx status code
func (*CreateConfigCreated) IsCode ¶
func (o *CreateConfigCreated) IsCode(code int) bool
IsCode returns true when this create config created response a status code equal to that given
func (*CreateConfigCreated) IsRedirect ¶
func (o *CreateConfigCreated) IsRedirect() bool
IsRedirect returns true when this create config created response has a 3xx status code
func (*CreateConfigCreated) IsServerError ¶
func (o *CreateConfigCreated) IsServerError() bool
IsServerError returns true when this create config created response has a 5xx status code
func (*CreateConfigCreated) IsSuccess ¶
func (o *CreateConfigCreated) IsSuccess() bool
IsSuccess returns true when this create config created response has a 2xx status code
func (*CreateConfigCreated) String ¶
func (o *CreateConfigCreated) String() string
type CreateConfigInternalServerError ¶
CreateConfigInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewCreateConfigInternalServerError ¶
func NewCreateConfigInternalServerError() *CreateConfigInternalServerError
NewCreateConfigInternalServerError creates a CreateConfigInternalServerError with default headers values
func (*CreateConfigInternalServerError) Code ¶
func (o *CreateConfigInternalServerError) Code() int
Code gets the status code for the create config internal server error response
func (*CreateConfigInternalServerError) Error ¶
func (o *CreateConfigInternalServerError) Error() string
func (*CreateConfigInternalServerError) GetPayload ¶
func (o *CreateConfigInternalServerError) GetPayload() *models.Error
func (*CreateConfigInternalServerError) IsClientError ¶
func (o *CreateConfigInternalServerError) IsClientError() bool
IsClientError returns true when this create config internal server error response has a 4xx status code
func (*CreateConfigInternalServerError) IsCode ¶
func (o *CreateConfigInternalServerError) IsCode(code int) bool
IsCode returns true when this create config internal server error response a status code equal to that given
func (*CreateConfigInternalServerError) IsRedirect ¶
func (o *CreateConfigInternalServerError) IsRedirect() bool
IsRedirect returns true when this create config internal server error response has a 3xx status code
func (*CreateConfigInternalServerError) IsServerError ¶
func (o *CreateConfigInternalServerError) IsServerError() bool
IsServerError returns true when this create config internal server error response has a 5xx status code
func (*CreateConfigInternalServerError) IsSuccess ¶
func (o *CreateConfigInternalServerError) IsSuccess() bool
IsSuccess returns true when this create config internal server error response has a 2xx status code
func (*CreateConfigInternalServerError) String ¶
func (o *CreateConfigInternalServerError) String() string
type CreateConfigParams ¶
type CreateConfigParams struct { /* Body. Config data */ Body *models.CreateConfigRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateConfigParams contains all the parameters to send to the API endpoint
for the create config operation. Typically these are written to a http.Request.
func NewCreateConfigParams ¶
func NewCreateConfigParams() *CreateConfigParams
NewCreateConfigParams creates a new CreateConfigParams 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 NewCreateConfigParamsWithContext ¶
func NewCreateConfigParamsWithContext(ctx context.Context) *CreateConfigParams
NewCreateConfigParamsWithContext creates a new CreateConfigParams object with the ability to set a context for a request.
func NewCreateConfigParamsWithHTTPClient ¶
func NewCreateConfigParamsWithHTTPClient(client *http.Client) *CreateConfigParams
NewCreateConfigParamsWithHTTPClient creates a new CreateConfigParams object with the ability to set a custom HTTPClient for a request.
func NewCreateConfigParamsWithTimeout ¶
func NewCreateConfigParamsWithTimeout(timeout time.Duration) *CreateConfigParams
NewCreateConfigParamsWithTimeout creates a new CreateConfigParams object with the ability to set a timeout on a request.
func (*CreateConfigParams) SetBody ¶
func (o *CreateConfigParams) SetBody(body *models.CreateConfigRequest)
SetBody adds the body to the create config params
func (*CreateConfigParams) SetContext ¶
func (o *CreateConfigParams) SetContext(ctx context.Context)
SetContext adds the context to the create config params
func (*CreateConfigParams) SetDefaults ¶
func (o *CreateConfigParams) SetDefaults()
SetDefaults hydrates default values in the create config params (not the query body).
All values with no default are reset to their zero value.
func (*CreateConfigParams) SetHTTPClient ¶
func (o *CreateConfigParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create config params
func (*CreateConfigParams) SetTimeout ¶
func (o *CreateConfigParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create config params
func (*CreateConfigParams) WithBody ¶
func (o *CreateConfigParams) WithBody(body *models.CreateConfigRequest) *CreateConfigParams
WithBody adds the body to the create config params
func (*CreateConfigParams) WithContext ¶
func (o *CreateConfigParams) WithContext(ctx context.Context) *CreateConfigParams
WithContext adds the context to the create config params
func (*CreateConfigParams) WithDefaults ¶
func (o *CreateConfigParams) WithDefaults() *CreateConfigParams
WithDefaults hydrates default values in the create config params (not the query body).
All values with no default are reset to their zero value.
func (*CreateConfigParams) WithHTTPClient ¶
func (o *CreateConfigParams) WithHTTPClient(client *http.Client) *CreateConfigParams
WithHTTPClient adds the HTTPClient to the create config params
func (*CreateConfigParams) WithTimeout ¶
func (o *CreateConfigParams) WithTimeout(timeout time.Duration) *CreateConfigParams
WithTimeout adds the timeout to the create config params
func (*CreateConfigParams) WriteToRequest ¶
func (o *CreateConfigParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateConfigReader ¶
type CreateConfigReader struct {
// contains filtered or unexported fields
}
CreateConfigReader is a Reader for the CreateConfig structure.
func (*CreateConfigReader) ReadResponse ¶
func (o *CreateConfigReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateConfigServiceUnavailable ¶
type CreateConfigServiceUnavailable struct {
}CreateConfigServiceUnavailable describes a response with status code 503, with default header values.
Service Temporarily Unavailable
func NewCreateConfigServiceUnavailable ¶
func NewCreateConfigServiceUnavailable() *CreateConfigServiceUnavailable
NewCreateConfigServiceUnavailable creates a CreateConfigServiceUnavailable with default headers values
func (*CreateConfigServiceUnavailable) Code ¶
func (o *CreateConfigServiceUnavailable) Code() int
Code gets the status code for the create config service unavailable response
func (*CreateConfigServiceUnavailable) Error ¶
func (o *CreateConfigServiceUnavailable) Error() string
func (*CreateConfigServiceUnavailable) GetPayload ¶
func (o *CreateConfigServiceUnavailable) GetPayload() *models.ServiceTemporarilyUnavailable
func (*CreateConfigServiceUnavailable) IsClientError ¶
func (o *CreateConfigServiceUnavailable) IsClientError() bool
IsClientError returns true when this create config service unavailable response has a 4xx status code
func (*CreateConfigServiceUnavailable) IsCode ¶
func (o *CreateConfigServiceUnavailable) IsCode(code int) bool
IsCode returns true when this create config service unavailable response a status code equal to that given
func (*CreateConfigServiceUnavailable) IsRedirect ¶
func (o *CreateConfigServiceUnavailable) IsRedirect() bool
IsRedirect returns true when this create config service unavailable response has a 3xx status code
func (*CreateConfigServiceUnavailable) IsServerError ¶
func (o *CreateConfigServiceUnavailable) IsServerError() bool
IsServerError returns true when this create config service unavailable response has a 5xx status code
func (*CreateConfigServiceUnavailable) IsSuccess ¶
func (o *CreateConfigServiceUnavailable) IsSuccess() bool
IsSuccess returns true when this create config service unavailable response has a 2xx status code
func (*CreateConfigServiceUnavailable) String ¶
func (o *CreateConfigServiceUnavailable) String() string
type CreateConfigUnauthorized ¶
type CreateConfigUnauthorized struct {
}CreateConfigUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewCreateConfigUnauthorized ¶
func NewCreateConfigUnauthorized() *CreateConfigUnauthorized
NewCreateConfigUnauthorized creates a CreateConfigUnauthorized with default headers values
func (*CreateConfigUnauthorized) Code ¶
func (o *CreateConfigUnauthorized) Code() int
Code gets the status code for the create config unauthorized response
func (*CreateConfigUnauthorized) Error ¶
func (o *CreateConfigUnauthorized) Error() string
func (*CreateConfigUnauthorized) GetPayload ¶
func (o *CreateConfigUnauthorized) GetPayload() *models.Error
func (*CreateConfigUnauthorized) IsClientError ¶
func (o *CreateConfigUnauthorized) IsClientError() bool
IsClientError returns true when this create config unauthorized response has a 4xx status code
func (*CreateConfigUnauthorized) IsCode ¶
func (o *CreateConfigUnauthorized) IsCode(code int) bool
IsCode returns true when this create config unauthorized response a status code equal to that given
func (*CreateConfigUnauthorized) IsRedirect ¶
func (o *CreateConfigUnauthorized) IsRedirect() bool
IsRedirect returns true when this create config unauthorized response has a 3xx status code
func (*CreateConfigUnauthorized) IsServerError ¶
func (o *CreateConfigUnauthorized) IsServerError() bool
IsServerError returns true when this create config unauthorized response has a 5xx status code
func (*CreateConfigUnauthorized) IsSuccess ¶
func (o *CreateConfigUnauthorized) IsSuccess() bool
IsSuccess returns true when this create config unauthorized response has a 2xx status code
func (*CreateConfigUnauthorized) String ¶
func (o *CreateConfigUnauthorized) String() string
type DeleteConfigBadRequest ¶
DeleteConfigBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewDeleteConfigBadRequest ¶
func NewDeleteConfigBadRequest() *DeleteConfigBadRequest
NewDeleteConfigBadRequest creates a DeleteConfigBadRequest with default headers values
func (*DeleteConfigBadRequest) Code ¶
func (o *DeleteConfigBadRequest) Code() int
Code gets the status code for the delete config bad request response
func (*DeleteConfigBadRequest) Error ¶
func (o *DeleteConfigBadRequest) Error() string
func (*DeleteConfigBadRequest) GetPayload ¶
func (o *DeleteConfigBadRequest) GetPayload() *models.Error
func (*DeleteConfigBadRequest) IsClientError ¶
func (o *DeleteConfigBadRequest) IsClientError() bool
IsClientError returns true when this delete config bad request response has a 4xx status code
func (*DeleteConfigBadRequest) IsCode ¶
func (o *DeleteConfigBadRequest) IsCode(code int) bool
IsCode returns true when this delete config bad request response a status code equal to that given
func (*DeleteConfigBadRequest) IsRedirect ¶
func (o *DeleteConfigBadRequest) IsRedirect() bool
IsRedirect returns true when this delete config bad request response has a 3xx status code
func (*DeleteConfigBadRequest) IsServerError ¶
func (o *DeleteConfigBadRequest) IsServerError() bool
IsServerError returns true when this delete config bad request response has a 5xx status code
func (*DeleteConfigBadRequest) IsSuccess ¶
func (o *DeleteConfigBadRequest) IsSuccess() bool
IsSuccess returns true when this delete config bad request response has a 2xx status code
func (*DeleteConfigBadRequest) String ¶
func (o *DeleteConfigBadRequest) String() string
type DeleteConfigBody ¶
type DeleteConfigBody struct { // Brigade ID // Required: true // Format: uuid BrigadeID *strfmt.UUID `json:"brigadeID"` }
DeleteConfigBody delete config body swagger:model DeleteConfigBody
func (*DeleteConfigBody) ContextValidate ¶
ContextValidate validates this delete config body based on context it is used
func (*DeleteConfigBody) MarshalBinary ¶
func (o *DeleteConfigBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteConfigBody) UnmarshalBinary ¶
func (o *DeleteConfigBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteConfigInternalServerError ¶
DeleteConfigInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewDeleteConfigInternalServerError ¶
func NewDeleteConfigInternalServerError() *DeleteConfigInternalServerError
NewDeleteConfigInternalServerError creates a DeleteConfigInternalServerError with default headers values
func (*DeleteConfigInternalServerError) Code ¶
func (o *DeleteConfigInternalServerError) Code() int
Code gets the status code for the delete config internal server error response
func (*DeleteConfigInternalServerError) Error ¶
func (o *DeleteConfigInternalServerError) Error() string
func (*DeleteConfigInternalServerError) GetPayload ¶
func (o *DeleteConfigInternalServerError) GetPayload() *models.Error
func (*DeleteConfigInternalServerError) IsClientError ¶
func (o *DeleteConfigInternalServerError) IsClientError() bool
IsClientError returns true when this delete config internal server error response has a 4xx status code
func (*DeleteConfigInternalServerError) IsCode ¶
func (o *DeleteConfigInternalServerError) IsCode(code int) bool
IsCode returns true when this delete config internal server error response a status code equal to that given
func (*DeleteConfigInternalServerError) IsRedirect ¶
func (o *DeleteConfigInternalServerError) IsRedirect() bool
IsRedirect returns true when this delete config internal server error response has a 3xx status code
func (*DeleteConfigInternalServerError) IsServerError ¶
func (o *DeleteConfigInternalServerError) IsServerError() bool
IsServerError returns true when this delete config internal server error response has a 5xx status code
func (*DeleteConfigInternalServerError) IsSuccess ¶
func (o *DeleteConfigInternalServerError) IsSuccess() bool
IsSuccess returns true when this delete config internal server error response has a 2xx status code
func (*DeleteConfigInternalServerError) String ¶
func (o *DeleteConfigInternalServerError) String() string
type DeleteConfigNoContent ¶
type DeleteConfigNoContent struct { }
DeleteConfigNoContent describes a response with status code 204, with default header values.
No Content
func NewDeleteConfigNoContent ¶
func NewDeleteConfigNoContent() *DeleteConfigNoContent
NewDeleteConfigNoContent creates a DeleteConfigNoContent with default headers values
func (*DeleteConfigNoContent) Code ¶
func (o *DeleteConfigNoContent) Code() int
Code gets the status code for the delete config no content response
func (*DeleteConfigNoContent) Error ¶
func (o *DeleteConfigNoContent) Error() string
func (*DeleteConfigNoContent) IsClientError ¶
func (o *DeleteConfigNoContent) IsClientError() bool
IsClientError returns true when this delete config no content response has a 4xx status code
func (*DeleteConfigNoContent) IsCode ¶
func (o *DeleteConfigNoContent) IsCode(code int) bool
IsCode returns true when this delete config no content response a status code equal to that given
func (*DeleteConfigNoContent) IsRedirect ¶
func (o *DeleteConfigNoContent) IsRedirect() bool
IsRedirect returns true when this delete config no content response has a 3xx status code
func (*DeleteConfigNoContent) IsServerError ¶
func (o *DeleteConfigNoContent) IsServerError() bool
IsServerError returns true when this delete config no content response has a 5xx status code
func (*DeleteConfigNoContent) IsSuccess ¶
func (o *DeleteConfigNoContent) IsSuccess() bool
IsSuccess returns true when this delete config no content response has a 2xx status code
func (*DeleteConfigNoContent) String ¶
func (o *DeleteConfigNoContent) String() string
type DeleteConfigParams ¶
type DeleteConfigParams struct { /* Body. Brigade ID */ Body DeleteConfigBody /* ConfigID. Config ID */ ConfigID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteConfigParams contains all the parameters to send to the API endpoint
for the delete config operation. Typically these are written to a http.Request.
func NewDeleteConfigParams ¶
func NewDeleteConfigParams() *DeleteConfigParams
NewDeleteConfigParams creates a new DeleteConfigParams 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 NewDeleteConfigParamsWithContext ¶
func NewDeleteConfigParamsWithContext(ctx context.Context) *DeleteConfigParams
NewDeleteConfigParamsWithContext creates a new DeleteConfigParams object with the ability to set a context for a request.
func NewDeleteConfigParamsWithHTTPClient ¶
func NewDeleteConfigParamsWithHTTPClient(client *http.Client) *DeleteConfigParams
NewDeleteConfigParamsWithHTTPClient creates a new DeleteConfigParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteConfigParamsWithTimeout ¶
func NewDeleteConfigParamsWithTimeout(timeout time.Duration) *DeleteConfigParams
NewDeleteConfigParamsWithTimeout creates a new DeleteConfigParams object with the ability to set a timeout on a request.
func (*DeleteConfigParams) SetBody ¶
func (o *DeleteConfigParams) SetBody(body DeleteConfigBody)
SetBody adds the body to the delete config params
func (*DeleteConfigParams) SetConfigID ¶
func (o *DeleteConfigParams) SetConfigID(configID string)
SetConfigID adds the configId to the delete config params
func (*DeleteConfigParams) SetContext ¶
func (o *DeleteConfigParams) SetContext(ctx context.Context)
SetContext adds the context to the delete config params
func (*DeleteConfigParams) SetDefaults ¶
func (o *DeleteConfigParams) SetDefaults()
SetDefaults hydrates default values in the delete config params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteConfigParams) SetHTTPClient ¶
func (o *DeleteConfigParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete config params
func (*DeleteConfigParams) SetTimeout ¶
func (o *DeleteConfigParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete config params
func (*DeleteConfigParams) WithBody ¶
func (o *DeleteConfigParams) WithBody(body DeleteConfigBody) *DeleteConfigParams
WithBody adds the body to the delete config params
func (*DeleteConfigParams) WithConfigID ¶
func (o *DeleteConfigParams) WithConfigID(configID string) *DeleteConfigParams
WithConfigID adds the configID to the delete config params
func (*DeleteConfigParams) WithContext ¶
func (o *DeleteConfigParams) WithContext(ctx context.Context) *DeleteConfigParams
WithContext adds the context to the delete config params
func (*DeleteConfigParams) WithDefaults ¶
func (o *DeleteConfigParams) WithDefaults() *DeleteConfigParams
WithDefaults hydrates default values in the delete config params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteConfigParams) WithHTTPClient ¶
func (o *DeleteConfigParams) WithHTTPClient(client *http.Client) *DeleteConfigParams
WithHTTPClient adds the HTTPClient to the delete config params
func (*DeleteConfigParams) WithTimeout ¶
func (o *DeleteConfigParams) WithTimeout(timeout time.Duration) *DeleteConfigParams
WithTimeout adds the timeout to the delete config params
func (*DeleteConfigParams) WriteToRequest ¶
func (o *DeleteConfigParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteConfigReader ¶
type DeleteConfigReader struct {
// contains filtered or unexported fields
}
DeleteConfigReader is a Reader for the DeleteConfig structure.
func (*DeleteConfigReader) ReadResponse ¶
func (o *DeleteConfigReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteConfigServiceUnavailable ¶
type DeleteConfigServiceUnavailable struct {
}DeleteConfigServiceUnavailable describes a response with status code 503, with default header values.
Service Temporarily Unavailable
func NewDeleteConfigServiceUnavailable ¶
func NewDeleteConfigServiceUnavailable() *DeleteConfigServiceUnavailable
NewDeleteConfigServiceUnavailable creates a DeleteConfigServiceUnavailable with default headers values
func (*DeleteConfigServiceUnavailable) Code ¶
func (o *DeleteConfigServiceUnavailable) Code() int
Code gets the status code for the delete config service unavailable response
func (*DeleteConfigServiceUnavailable) Error ¶
func (o *DeleteConfigServiceUnavailable) Error() string
func (*DeleteConfigServiceUnavailable) GetPayload ¶
func (o *DeleteConfigServiceUnavailable) GetPayload() *models.ServiceTemporarilyUnavailable
func (*DeleteConfigServiceUnavailable) IsClientError ¶
func (o *DeleteConfigServiceUnavailable) IsClientError() bool
IsClientError returns true when this delete config service unavailable response has a 4xx status code
func (*DeleteConfigServiceUnavailable) IsCode ¶
func (o *DeleteConfigServiceUnavailable) IsCode(code int) bool
IsCode returns true when this delete config service unavailable response a status code equal to that given
func (*DeleteConfigServiceUnavailable) IsRedirect ¶
func (o *DeleteConfigServiceUnavailable) IsRedirect() bool
IsRedirect returns true when this delete config service unavailable response has a 3xx status code
func (*DeleteConfigServiceUnavailable) IsServerError ¶
func (o *DeleteConfigServiceUnavailable) IsServerError() bool
IsServerError returns true when this delete config service unavailable response has a 5xx status code
func (*DeleteConfigServiceUnavailable) IsSuccess ¶
func (o *DeleteConfigServiceUnavailable) IsSuccess() bool
IsSuccess returns true when this delete config service unavailable response has a 2xx status code
func (*DeleteConfigServiceUnavailable) String ¶
func (o *DeleteConfigServiceUnavailable) String() string
type DeleteConfigUnauthorized ¶
type DeleteConfigUnauthorized struct {
}DeleteConfigUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewDeleteConfigUnauthorized ¶
func NewDeleteConfigUnauthorized() *DeleteConfigUnauthorized
NewDeleteConfigUnauthorized creates a DeleteConfigUnauthorized with default headers values
func (*DeleteConfigUnauthorized) Code ¶
func (o *DeleteConfigUnauthorized) Code() int
Code gets the status code for the delete config unauthorized response
func (*DeleteConfigUnauthorized) Error ¶
func (o *DeleteConfigUnauthorized) Error() string
func (*DeleteConfigUnauthorized) GetPayload ¶
func (o *DeleteConfigUnauthorized) GetPayload() *models.Error
func (*DeleteConfigUnauthorized) IsClientError ¶
func (o *DeleteConfigUnauthorized) IsClientError() bool
IsClientError returns true when this delete config unauthorized response has a 4xx status code
func (*DeleteConfigUnauthorized) IsCode ¶
func (o *DeleteConfigUnauthorized) IsCode(code int) bool
IsCode returns true when this delete config unauthorized response a status code equal to that given
func (*DeleteConfigUnauthorized) IsRedirect ¶
func (o *DeleteConfigUnauthorized) IsRedirect() bool
IsRedirect returns true when this delete config unauthorized response has a 3xx status code
func (*DeleteConfigUnauthorized) IsServerError ¶
func (o *DeleteConfigUnauthorized) IsServerError() bool
IsServerError returns true when this delete config unauthorized response has a 5xx status code
func (*DeleteConfigUnauthorized) IsSuccess ¶
func (o *DeleteConfigUnauthorized) IsSuccess() bool
IsSuccess returns true when this delete config unauthorized response has a 2xx status code
func (*DeleteConfigUnauthorized) String ¶
func (o *DeleteConfigUnauthorized) String() string