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 ¶ added in v1.9.2
func (a *Client) CreateConfig(params *CreateConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateConfigCreated, error)
CreateConfig creates v p n config
func (*Client) DeleteConfig ¶ added in v1.9.2
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 ¶ added in v1.9.2
CreateConfigBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewCreateConfigBadRequest ¶ added in v1.9.2
func NewCreateConfigBadRequest() *CreateConfigBadRequest
NewCreateConfigBadRequest creates a CreateConfigBadRequest with default headers values
func (*CreateConfigBadRequest) Code ¶ added in v1.9.2
func (o *CreateConfigBadRequest) Code() int
Code gets the status code for the create config bad request response
func (*CreateConfigBadRequest) Error ¶ added in v1.9.2
func (o *CreateConfigBadRequest) Error() string
func (*CreateConfigBadRequest) GetPayload ¶ added in v1.9.2
func (o *CreateConfigBadRequest) GetPayload() *models.Error
func (*CreateConfigBadRequest) IsClientError ¶ added in v1.9.2
func (o *CreateConfigBadRequest) IsClientError() bool
IsClientError returns true when this create config bad request response has a 4xx status code
func (*CreateConfigBadRequest) IsCode ¶ added in v1.9.2
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 ¶ added in v1.9.2
func (o *CreateConfigBadRequest) IsRedirect() bool
IsRedirect returns true when this create config bad request response has a 3xx status code
func (*CreateConfigBadRequest) IsServerError ¶ added in v1.9.2
func (o *CreateConfigBadRequest) IsServerError() bool
IsServerError returns true when this create config bad request response has a 5xx status code
func (*CreateConfigBadRequest) IsSuccess ¶ added in v1.9.2
func (o *CreateConfigBadRequest) IsSuccess() bool
IsSuccess returns true when this create config bad request response has a 2xx status code
func (*CreateConfigBadRequest) String ¶ added in v1.9.2
func (o *CreateConfigBadRequest) String() string
type CreateConfigCreated ¶ added in v1.9.2
CreateConfigCreated describes a response with status code 201, with default header values.
Created
func NewCreateConfigCreated ¶ added in v1.9.2
func NewCreateConfigCreated() *CreateConfigCreated
NewCreateConfigCreated creates a CreateConfigCreated with default headers values
func (*CreateConfigCreated) Code ¶ added in v1.9.2
func (o *CreateConfigCreated) Code() int
Code gets the status code for the create config created response
func (*CreateConfigCreated) Error ¶ added in v1.9.2
func (o *CreateConfigCreated) Error() string
func (*CreateConfigCreated) GetPayload ¶ added in v1.9.2
func (o *CreateConfigCreated) GetPayload() *models.VPNConfig
func (*CreateConfigCreated) IsClientError ¶ added in v1.9.2
func (o *CreateConfigCreated) IsClientError() bool
IsClientError returns true when this create config created response has a 4xx status code
func (*CreateConfigCreated) IsCode ¶ added in v1.9.2
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 ¶ added in v1.9.2
func (o *CreateConfigCreated) IsRedirect() bool
IsRedirect returns true when this create config created response has a 3xx status code
func (*CreateConfigCreated) IsServerError ¶ added in v1.9.2
func (o *CreateConfigCreated) IsServerError() bool
IsServerError returns true when this create config created response has a 5xx status code
func (*CreateConfigCreated) IsSuccess ¶ added in v1.9.2
func (o *CreateConfigCreated) IsSuccess() bool
IsSuccess returns true when this create config created response has a 2xx status code
func (*CreateConfigCreated) String ¶ added in v1.9.2
func (o *CreateConfigCreated) String() string
type CreateConfigInternalServerError ¶ added in v1.9.2
CreateConfigInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewCreateConfigInternalServerError ¶ added in v1.9.2
func NewCreateConfigInternalServerError() *CreateConfigInternalServerError
NewCreateConfigInternalServerError creates a CreateConfigInternalServerError with default headers values
func (*CreateConfigInternalServerError) Code ¶ added in v1.9.2
func (o *CreateConfigInternalServerError) Code() int
Code gets the status code for the create config internal server error response
func (*CreateConfigInternalServerError) Error ¶ added in v1.9.2
func (o *CreateConfigInternalServerError) Error() string
func (*CreateConfigInternalServerError) GetPayload ¶ added in v1.9.2
func (o *CreateConfigInternalServerError) GetPayload() *models.Error
func (*CreateConfigInternalServerError) IsClientError ¶ added in v1.9.2
func (o *CreateConfigInternalServerError) IsClientError() bool
IsClientError returns true when this create config internal server error response has a 4xx status code
func (*CreateConfigInternalServerError) IsCode ¶ added in v1.9.2
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 ¶ added in v1.9.2
func (o *CreateConfigInternalServerError) IsRedirect() bool
IsRedirect returns true when this create config internal server error response has a 3xx status code
func (*CreateConfigInternalServerError) IsServerError ¶ added in v1.9.2
func (o *CreateConfigInternalServerError) IsServerError() bool
IsServerError returns true when this create config internal server error response has a 5xx status code
func (*CreateConfigInternalServerError) IsSuccess ¶ added in v1.9.2
func (o *CreateConfigInternalServerError) IsSuccess() bool
IsSuccess returns true when this create config internal server error response has a 2xx status code
func (*CreateConfigInternalServerError) String ¶ added in v1.9.2
func (o *CreateConfigInternalServerError) String() string
type CreateConfigParams ¶ added in v1.9.2
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 ¶ added in v1.9.2
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 ¶ added in v1.9.2
func NewCreateConfigParamsWithContext(ctx context.Context) *CreateConfigParams
NewCreateConfigParamsWithContext creates a new CreateConfigParams object with the ability to set a context for a request.
func NewCreateConfigParamsWithHTTPClient ¶ added in v1.9.2
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 ¶ added in v1.9.2
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 ¶ added in v1.9.2
func (o *CreateConfigParams) SetBody(body *models.CreateConfigRequest)
SetBody adds the body to the create config params
func (*CreateConfigParams) SetContext ¶ added in v1.9.2
func (o *CreateConfigParams) SetContext(ctx context.Context)
SetContext adds the context to the create config params
func (*CreateConfigParams) SetDefaults ¶ added in v1.9.2
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 ¶ added in v1.9.2
func (o *CreateConfigParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create config params
func (*CreateConfigParams) SetTimeout ¶ added in v1.9.2
func (o *CreateConfigParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create config params
func (*CreateConfigParams) WithBody ¶ added in v1.9.2
func (o *CreateConfigParams) WithBody(body *models.CreateConfigRequest) *CreateConfigParams
WithBody adds the body to the create config params
func (*CreateConfigParams) WithContext ¶ added in v1.9.2
func (o *CreateConfigParams) WithContext(ctx context.Context) *CreateConfigParams
WithContext adds the context to the create config params
func (*CreateConfigParams) WithDefaults ¶ added in v1.9.2
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 ¶ added in v1.9.2
func (o *CreateConfigParams) WithHTTPClient(client *http.Client) *CreateConfigParams
WithHTTPClient adds the HTTPClient to the create config params
func (*CreateConfigParams) WithTimeout ¶ added in v1.9.2
func (o *CreateConfigParams) WithTimeout(timeout time.Duration) *CreateConfigParams
WithTimeout adds the timeout to the create config params
func (*CreateConfigParams) WriteToRequest ¶ added in v1.9.2
func (o *CreateConfigParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateConfigReader ¶ added in v1.9.2
type CreateConfigReader struct {
// contains filtered or unexported fields
}
CreateConfigReader is a Reader for the CreateConfig structure.
func (*CreateConfigReader) ReadResponse ¶ added in v1.9.2
func (o *CreateConfigReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateConfigServiceUnavailable ¶ added in v1.9.2
type CreateConfigServiceUnavailable struct {
}CreateConfigServiceUnavailable describes a response with status code 503, with default header values.
Service Temporarily Unavailable
func NewCreateConfigServiceUnavailable ¶ added in v1.9.2
func NewCreateConfigServiceUnavailable() *CreateConfigServiceUnavailable
NewCreateConfigServiceUnavailable creates a CreateConfigServiceUnavailable with default headers values
func (*CreateConfigServiceUnavailable) Code ¶ added in v1.9.2
func (o *CreateConfigServiceUnavailable) Code() int
Code gets the status code for the create config service unavailable response
func (*CreateConfigServiceUnavailable) Error ¶ added in v1.9.2
func (o *CreateConfigServiceUnavailable) Error() string
func (*CreateConfigServiceUnavailable) GetPayload ¶ added in v1.9.2
func (o *CreateConfigServiceUnavailable) GetPayload() *models.ServiceTemporarilyUnavailable
func (*CreateConfigServiceUnavailable) IsClientError ¶ added in v1.9.2
func (o *CreateConfigServiceUnavailable) IsClientError() bool
IsClientError returns true when this create config service unavailable response has a 4xx status code
func (*CreateConfigServiceUnavailable) IsCode ¶ added in v1.9.2
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 ¶ added in v1.9.2
func (o *CreateConfigServiceUnavailable) IsRedirect() bool
IsRedirect returns true when this create config service unavailable response has a 3xx status code
func (*CreateConfigServiceUnavailable) IsServerError ¶ added in v1.9.2
func (o *CreateConfigServiceUnavailable) IsServerError() bool
IsServerError returns true when this create config service unavailable response has a 5xx status code
func (*CreateConfigServiceUnavailable) IsSuccess ¶ added in v1.9.2
func (o *CreateConfigServiceUnavailable) IsSuccess() bool
IsSuccess returns true when this create config service unavailable response has a 2xx status code
func (*CreateConfigServiceUnavailable) String ¶ added in v1.9.2
func (o *CreateConfigServiceUnavailable) String() string
type CreateConfigUnauthorized ¶ added in v1.9.2
type CreateConfigUnauthorized struct {
}CreateConfigUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewCreateConfigUnauthorized ¶ added in v1.9.2
func NewCreateConfigUnauthorized() *CreateConfigUnauthorized
NewCreateConfigUnauthorized creates a CreateConfigUnauthorized with default headers values
func (*CreateConfigUnauthorized) Code ¶ added in v1.9.2
func (o *CreateConfigUnauthorized) Code() int
Code gets the status code for the create config unauthorized response
func (*CreateConfigUnauthorized) Error ¶ added in v1.9.2
func (o *CreateConfigUnauthorized) Error() string
func (*CreateConfigUnauthorized) GetPayload ¶ added in v1.9.2
func (o *CreateConfigUnauthorized) GetPayload() *models.Error
func (*CreateConfigUnauthorized) IsClientError ¶ added in v1.9.2
func (o *CreateConfigUnauthorized) IsClientError() bool
IsClientError returns true when this create config unauthorized response has a 4xx status code
func (*CreateConfigUnauthorized) IsCode ¶ added in v1.9.2
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 ¶ added in v1.9.2
func (o *CreateConfigUnauthorized) IsRedirect() bool
IsRedirect returns true when this create config unauthorized response has a 3xx status code
func (*CreateConfigUnauthorized) IsServerError ¶ added in v1.9.2
func (o *CreateConfigUnauthorized) IsServerError() bool
IsServerError returns true when this create config unauthorized response has a 5xx status code
func (*CreateConfigUnauthorized) IsSuccess ¶ added in v1.9.2
func (o *CreateConfigUnauthorized) IsSuccess() bool
IsSuccess returns true when this create config unauthorized response has a 2xx status code
func (*CreateConfigUnauthorized) String ¶ added in v1.9.2
func (o *CreateConfigUnauthorized) String() string
type DeleteConfigBadRequest ¶ added in v1.9.2
DeleteConfigBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewDeleteConfigBadRequest ¶ added in v1.9.2
func NewDeleteConfigBadRequest() *DeleteConfigBadRequest
NewDeleteConfigBadRequest creates a DeleteConfigBadRequest with default headers values
func (*DeleteConfigBadRequest) Code ¶ added in v1.9.2
func (o *DeleteConfigBadRequest) Code() int
Code gets the status code for the delete config bad request response
func (*DeleteConfigBadRequest) Error ¶ added in v1.9.2
func (o *DeleteConfigBadRequest) Error() string
func (*DeleteConfigBadRequest) GetPayload ¶ added in v1.9.2
func (o *DeleteConfigBadRequest) GetPayload() *models.Error
func (*DeleteConfigBadRequest) IsClientError ¶ added in v1.9.2
func (o *DeleteConfigBadRequest) IsClientError() bool
IsClientError returns true when this delete config bad request response has a 4xx status code
func (*DeleteConfigBadRequest) IsCode ¶ added in v1.9.2
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 ¶ added in v1.9.2
func (o *DeleteConfigBadRequest) IsRedirect() bool
IsRedirect returns true when this delete config bad request response has a 3xx status code
func (*DeleteConfigBadRequest) IsServerError ¶ added in v1.9.2
func (o *DeleteConfigBadRequest) IsServerError() bool
IsServerError returns true when this delete config bad request response has a 5xx status code
func (*DeleteConfigBadRequest) IsSuccess ¶ added in v1.9.2
func (o *DeleteConfigBadRequest) IsSuccess() bool
IsSuccess returns true when this delete config bad request response has a 2xx status code
func (*DeleteConfigBadRequest) String ¶ added in v1.9.2
func (o *DeleteConfigBadRequest) String() string
type DeleteConfigBody ¶ added in v1.9.2
type DeleteConfigBody struct { // Brigade ID // Required: true // Format: uuid BrigadeID *strfmt.UUID `json:"brigade_id"` }
DeleteConfigBody delete config body swagger:model DeleteConfigBody
func (*DeleteConfigBody) ContextValidate ¶ added in v1.9.2
ContextValidate validates this delete config body based on context it is used
func (*DeleteConfigBody) MarshalBinary ¶ added in v1.9.2
func (o *DeleteConfigBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteConfigBody) UnmarshalBinary ¶ added in v1.9.2
func (o *DeleteConfigBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteConfigInternalServerError ¶ added in v1.9.2
DeleteConfigInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewDeleteConfigInternalServerError ¶ added in v1.9.2
func NewDeleteConfigInternalServerError() *DeleteConfigInternalServerError
NewDeleteConfigInternalServerError creates a DeleteConfigInternalServerError with default headers values
func (*DeleteConfigInternalServerError) Code ¶ added in v1.9.2
func (o *DeleteConfigInternalServerError) Code() int
Code gets the status code for the delete config internal server error response
func (*DeleteConfigInternalServerError) Error ¶ added in v1.9.2
func (o *DeleteConfigInternalServerError) Error() string
func (*DeleteConfigInternalServerError) GetPayload ¶ added in v1.9.2
func (o *DeleteConfigInternalServerError) GetPayload() *models.Error
func (*DeleteConfigInternalServerError) IsClientError ¶ added in v1.9.2
func (o *DeleteConfigInternalServerError) IsClientError() bool
IsClientError returns true when this delete config internal server error response has a 4xx status code
func (*DeleteConfigInternalServerError) IsCode ¶ added in v1.9.2
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 ¶ added in v1.9.2
func (o *DeleteConfigInternalServerError) IsRedirect() bool
IsRedirect returns true when this delete config internal server error response has a 3xx status code
func (*DeleteConfigInternalServerError) IsServerError ¶ added in v1.9.2
func (o *DeleteConfigInternalServerError) IsServerError() bool
IsServerError returns true when this delete config internal server error response has a 5xx status code
func (*DeleteConfigInternalServerError) IsSuccess ¶ added in v1.9.2
func (o *DeleteConfigInternalServerError) IsSuccess() bool
IsSuccess returns true when this delete config internal server error response has a 2xx status code
func (*DeleteConfigInternalServerError) String ¶ added in v1.9.2
func (o *DeleteConfigInternalServerError) String() string
type DeleteConfigNoContent ¶ added in v1.9.2
type DeleteConfigNoContent struct { }
DeleteConfigNoContent describes a response with status code 204, with default header values.
No Content
func NewDeleteConfigNoContent ¶ added in v1.9.2
func NewDeleteConfigNoContent() *DeleteConfigNoContent
NewDeleteConfigNoContent creates a DeleteConfigNoContent with default headers values
func (*DeleteConfigNoContent) Code ¶ added in v1.9.2
func (o *DeleteConfigNoContent) Code() int
Code gets the status code for the delete config no content response
func (*DeleteConfigNoContent) Error ¶ added in v1.9.2
func (o *DeleteConfigNoContent) Error() string
func (*DeleteConfigNoContent) IsClientError ¶ added in v1.9.2
func (o *DeleteConfigNoContent) IsClientError() bool
IsClientError returns true when this delete config no content response has a 4xx status code
func (*DeleteConfigNoContent) IsCode ¶ added in v1.9.2
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 ¶ added in v1.9.2
func (o *DeleteConfigNoContent) IsRedirect() bool
IsRedirect returns true when this delete config no content response has a 3xx status code
func (*DeleteConfigNoContent) IsServerError ¶ added in v1.9.2
func (o *DeleteConfigNoContent) IsServerError() bool
IsServerError returns true when this delete config no content response has a 5xx status code
func (*DeleteConfigNoContent) IsSuccess ¶ added in v1.9.2
func (o *DeleteConfigNoContent) IsSuccess() bool
IsSuccess returns true when this delete config no content response has a 2xx status code
func (*DeleteConfigNoContent) String ¶ added in v1.9.2
func (o *DeleteConfigNoContent) String() string
type DeleteConfigParams ¶ added in v1.9.2
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 ¶ added in v1.9.2
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 ¶ added in v1.9.2
func NewDeleteConfigParamsWithContext(ctx context.Context) *DeleteConfigParams
NewDeleteConfigParamsWithContext creates a new DeleteConfigParams object with the ability to set a context for a request.
func NewDeleteConfigParamsWithHTTPClient ¶ added in v1.9.2
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 ¶ added in v1.9.2
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 ¶ added in v1.9.2
func (o *DeleteConfigParams) SetBody(body DeleteConfigBody)
SetBody adds the body to the delete config params
func (*DeleteConfigParams) SetConfigID ¶ added in v1.9.2
func (o *DeleteConfigParams) SetConfigID(configID string)
SetConfigID adds the configId to the delete config params
func (*DeleteConfigParams) SetContext ¶ added in v1.9.2
func (o *DeleteConfigParams) SetContext(ctx context.Context)
SetContext adds the context to the delete config params
func (*DeleteConfigParams) SetDefaults ¶ added in v1.9.2
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 ¶ added in v1.9.2
func (o *DeleteConfigParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete config params
func (*DeleteConfigParams) SetTimeout ¶ added in v1.9.2
func (o *DeleteConfigParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete config params
func (*DeleteConfigParams) WithBody ¶ added in v1.9.2
func (o *DeleteConfigParams) WithBody(body DeleteConfigBody) *DeleteConfigParams
WithBody adds the body to the delete config params
func (*DeleteConfigParams) WithConfigID ¶ added in v1.9.2
func (o *DeleteConfigParams) WithConfigID(configID string) *DeleteConfigParams
WithConfigID adds the configID to the delete config params
func (*DeleteConfigParams) WithContext ¶ added in v1.9.2
func (o *DeleteConfigParams) WithContext(ctx context.Context) *DeleteConfigParams
WithContext adds the context to the delete config params
func (*DeleteConfigParams) WithDefaults ¶ added in v1.9.2
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 ¶ added in v1.9.2
func (o *DeleteConfigParams) WithHTTPClient(client *http.Client) *DeleteConfigParams
WithHTTPClient adds the HTTPClient to the delete config params
func (*DeleteConfigParams) WithTimeout ¶ added in v1.9.2
func (o *DeleteConfigParams) WithTimeout(timeout time.Duration) *DeleteConfigParams
WithTimeout adds the timeout to the delete config params
func (*DeleteConfigParams) WriteToRequest ¶ added in v1.9.2
func (o *DeleteConfigParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteConfigReader ¶ added in v1.9.2
type DeleteConfigReader struct {
// contains filtered or unexported fields
}
DeleteConfigReader is a Reader for the DeleteConfig structure.
func (*DeleteConfigReader) ReadResponse ¶ added in v1.9.2
func (o *DeleteConfigReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteConfigServiceUnavailable ¶ added in v1.9.2
type DeleteConfigServiceUnavailable struct {
}DeleteConfigServiceUnavailable describes a response with status code 503, with default header values.
Service Temporarily Unavailable
func NewDeleteConfigServiceUnavailable ¶ added in v1.9.2
func NewDeleteConfigServiceUnavailable() *DeleteConfigServiceUnavailable
NewDeleteConfigServiceUnavailable creates a DeleteConfigServiceUnavailable with default headers values
func (*DeleteConfigServiceUnavailable) Code ¶ added in v1.9.2
func (o *DeleteConfigServiceUnavailable) Code() int
Code gets the status code for the delete config service unavailable response
func (*DeleteConfigServiceUnavailable) Error ¶ added in v1.9.2
func (o *DeleteConfigServiceUnavailable) Error() string
func (*DeleteConfigServiceUnavailable) GetPayload ¶ added in v1.9.2
func (o *DeleteConfigServiceUnavailable) GetPayload() *models.ServiceTemporarilyUnavailable
func (*DeleteConfigServiceUnavailable) IsClientError ¶ added in v1.9.2
func (o *DeleteConfigServiceUnavailable) IsClientError() bool
IsClientError returns true when this delete config service unavailable response has a 4xx status code
func (*DeleteConfigServiceUnavailable) IsCode ¶ added in v1.9.2
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 ¶ added in v1.9.2
func (o *DeleteConfigServiceUnavailable) IsRedirect() bool
IsRedirect returns true when this delete config service unavailable response has a 3xx status code
func (*DeleteConfigServiceUnavailable) IsServerError ¶ added in v1.9.2
func (o *DeleteConfigServiceUnavailable) IsServerError() bool
IsServerError returns true when this delete config service unavailable response has a 5xx status code
func (*DeleteConfigServiceUnavailable) IsSuccess ¶ added in v1.9.2
func (o *DeleteConfigServiceUnavailable) IsSuccess() bool
IsSuccess returns true when this delete config service unavailable response has a 2xx status code
func (*DeleteConfigServiceUnavailable) String ¶ added in v1.9.2
func (o *DeleteConfigServiceUnavailable) String() string
type DeleteConfigUnauthorized ¶ added in v1.9.2
type DeleteConfigUnauthorized struct {
}DeleteConfigUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewDeleteConfigUnauthorized ¶ added in v1.9.2
func NewDeleteConfigUnauthorized() *DeleteConfigUnauthorized
NewDeleteConfigUnauthorized creates a DeleteConfigUnauthorized with default headers values
func (*DeleteConfigUnauthorized) Code ¶ added in v1.9.2
func (o *DeleteConfigUnauthorized) Code() int
Code gets the status code for the delete config unauthorized response
func (*DeleteConfigUnauthorized) Error ¶ added in v1.9.2
func (o *DeleteConfigUnauthorized) Error() string
func (*DeleteConfigUnauthorized) GetPayload ¶ added in v1.9.2
func (o *DeleteConfigUnauthorized) GetPayload() *models.Error
func (*DeleteConfigUnauthorized) IsClientError ¶ added in v1.9.2
func (o *DeleteConfigUnauthorized) IsClientError() bool
IsClientError returns true when this delete config unauthorized response has a 4xx status code
func (*DeleteConfigUnauthorized) IsCode ¶ added in v1.9.2
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 ¶ added in v1.9.2
func (o *DeleteConfigUnauthorized) IsRedirect() bool
IsRedirect returns true when this delete config unauthorized response has a 3xx status code
func (*DeleteConfigUnauthorized) IsServerError ¶ added in v1.9.2
func (o *DeleteConfigUnauthorized) IsServerError() bool
IsServerError returns true when this delete config unauthorized response has a 5xx status code
func (*DeleteConfigUnauthorized) IsSuccess ¶ added in v1.9.2
func (o *DeleteConfigUnauthorized) IsSuccess() bool
IsSuccess returns true when this delete config unauthorized response has a 2xx status code
func (*DeleteConfigUnauthorized) String ¶ added in v1.9.2
func (o *DeleteConfigUnauthorized) String() string