Documentation
¶
Index ¶
- func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
- func WithContentTypeTextPlain(r *runtime.ClientOperation)
- type Client
- func (a *Client) GetGeneralAPISettings(params *GetGeneralAPISettingsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetGeneralAPISettingsOK, error)
- func (a *Client) GetGeneralAttachmentSettings(params *GetGeneralAttachmentSettingsParams, ...) (*GetGeneralAttachmentSettingsOK, error)
- func (a *Client) GetGeneralRepositorySettings(params *GetGeneralRepositorySettingsParams, ...) (*GetGeneralRepositorySettingsOK, error)
- func (a *Client) GetGeneralUISettings(params *GetGeneralUISettingsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetGeneralUISettingsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetGeneralAPISettingsOK
- func (o *GetGeneralAPISettingsOK) Code() int
- func (o *GetGeneralAPISettingsOK) Error() string
- func (o *GetGeneralAPISettingsOK) GetPayload() *models.GeneralAPISettings
- func (o *GetGeneralAPISettingsOK) IsClientError() bool
- func (o *GetGeneralAPISettingsOK) IsCode(code int) bool
- func (o *GetGeneralAPISettingsOK) IsRedirect() bool
- func (o *GetGeneralAPISettingsOK) IsServerError() bool
- func (o *GetGeneralAPISettingsOK) IsSuccess() bool
- func (o *GetGeneralAPISettingsOK) String() string
- type GetGeneralAPISettingsParams
- func NewGetGeneralAPISettingsParams() *GetGeneralAPISettingsParams
- func NewGetGeneralAPISettingsParamsWithContext(ctx context.Context) *GetGeneralAPISettingsParams
- func NewGetGeneralAPISettingsParamsWithHTTPClient(client *http.Client) *GetGeneralAPISettingsParams
- func NewGetGeneralAPISettingsParamsWithTimeout(timeout time.Duration) *GetGeneralAPISettingsParams
- func (o *GetGeneralAPISettingsParams) SetContext(ctx context.Context)
- func (o *GetGeneralAPISettingsParams) SetDefaults()
- func (o *GetGeneralAPISettingsParams) SetHTTPClient(client *http.Client)
- func (o *GetGeneralAPISettingsParams) SetTimeout(timeout time.Duration)
- func (o *GetGeneralAPISettingsParams) WithContext(ctx context.Context) *GetGeneralAPISettingsParams
- func (o *GetGeneralAPISettingsParams) WithDefaults() *GetGeneralAPISettingsParams
- func (o *GetGeneralAPISettingsParams) WithHTTPClient(client *http.Client) *GetGeneralAPISettingsParams
- func (o *GetGeneralAPISettingsParams) WithTimeout(timeout time.Duration) *GetGeneralAPISettingsParams
- func (o *GetGeneralAPISettingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetGeneralAPISettingsReader
- type GetGeneralAttachmentSettingsOK
- func (o *GetGeneralAttachmentSettingsOK) Code() int
- func (o *GetGeneralAttachmentSettingsOK) Error() string
- func (o *GetGeneralAttachmentSettingsOK) GetPayload() *models.GeneralAttachmentSettings
- func (o *GetGeneralAttachmentSettingsOK) IsClientError() bool
- func (o *GetGeneralAttachmentSettingsOK) IsCode(code int) bool
- func (o *GetGeneralAttachmentSettingsOK) IsRedirect() bool
- func (o *GetGeneralAttachmentSettingsOK) IsServerError() bool
- func (o *GetGeneralAttachmentSettingsOK) IsSuccess() bool
- func (o *GetGeneralAttachmentSettingsOK) String() string
- type GetGeneralAttachmentSettingsParams
- func NewGetGeneralAttachmentSettingsParams() *GetGeneralAttachmentSettingsParams
- func NewGetGeneralAttachmentSettingsParamsWithContext(ctx context.Context) *GetGeneralAttachmentSettingsParams
- func NewGetGeneralAttachmentSettingsParamsWithHTTPClient(client *http.Client) *GetGeneralAttachmentSettingsParams
- func NewGetGeneralAttachmentSettingsParamsWithTimeout(timeout time.Duration) *GetGeneralAttachmentSettingsParams
- func (o *GetGeneralAttachmentSettingsParams) SetContext(ctx context.Context)
- func (o *GetGeneralAttachmentSettingsParams) SetDefaults()
- func (o *GetGeneralAttachmentSettingsParams) SetHTTPClient(client *http.Client)
- func (o *GetGeneralAttachmentSettingsParams) SetTimeout(timeout time.Duration)
- func (o *GetGeneralAttachmentSettingsParams) WithContext(ctx context.Context) *GetGeneralAttachmentSettingsParams
- func (o *GetGeneralAttachmentSettingsParams) WithDefaults() *GetGeneralAttachmentSettingsParams
- func (o *GetGeneralAttachmentSettingsParams) WithHTTPClient(client *http.Client) *GetGeneralAttachmentSettingsParams
- func (o *GetGeneralAttachmentSettingsParams) WithTimeout(timeout time.Duration) *GetGeneralAttachmentSettingsParams
- func (o *GetGeneralAttachmentSettingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetGeneralAttachmentSettingsReader
- type GetGeneralRepositorySettingsOK
- func (o *GetGeneralRepositorySettingsOK) Code() int
- func (o *GetGeneralRepositorySettingsOK) Error() string
- func (o *GetGeneralRepositorySettingsOK) GetPayload() *models.GeneralRepoSettings
- func (o *GetGeneralRepositorySettingsOK) IsClientError() bool
- func (o *GetGeneralRepositorySettingsOK) IsCode(code int) bool
- func (o *GetGeneralRepositorySettingsOK) IsRedirect() bool
- func (o *GetGeneralRepositorySettingsOK) IsServerError() bool
- func (o *GetGeneralRepositorySettingsOK) IsSuccess() bool
- func (o *GetGeneralRepositorySettingsOK) String() string
- type GetGeneralRepositorySettingsParams
- func NewGetGeneralRepositorySettingsParams() *GetGeneralRepositorySettingsParams
- func NewGetGeneralRepositorySettingsParamsWithContext(ctx context.Context) *GetGeneralRepositorySettingsParams
- func NewGetGeneralRepositorySettingsParamsWithHTTPClient(client *http.Client) *GetGeneralRepositorySettingsParams
- func NewGetGeneralRepositorySettingsParamsWithTimeout(timeout time.Duration) *GetGeneralRepositorySettingsParams
- func (o *GetGeneralRepositorySettingsParams) SetContext(ctx context.Context)
- func (o *GetGeneralRepositorySettingsParams) SetDefaults()
- func (o *GetGeneralRepositorySettingsParams) SetHTTPClient(client *http.Client)
- func (o *GetGeneralRepositorySettingsParams) SetTimeout(timeout time.Duration)
- func (o *GetGeneralRepositorySettingsParams) WithContext(ctx context.Context) *GetGeneralRepositorySettingsParams
- func (o *GetGeneralRepositorySettingsParams) WithDefaults() *GetGeneralRepositorySettingsParams
- func (o *GetGeneralRepositorySettingsParams) WithHTTPClient(client *http.Client) *GetGeneralRepositorySettingsParams
- func (o *GetGeneralRepositorySettingsParams) WithTimeout(timeout time.Duration) *GetGeneralRepositorySettingsParams
- func (o *GetGeneralRepositorySettingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetGeneralRepositorySettingsReader
- type GetGeneralUISettingsOK
- func (o *GetGeneralUISettingsOK) Code() int
- func (o *GetGeneralUISettingsOK) Error() string
- func (o *GetGeneralUISettingsOK) GetPayload() *models.GeneralUISettings
- func (o *GetGeneralUISettingsOK) IsClientError() bool
- func (o *GetGeneralUISettingsOK) IsCode(code int) bool
- func (o *GetGeneralUISettingsOK) IsRedirect() bool
- func (o *GetGeneralUISettingsOK) IsServerError() bool
- func (o *GetGeneralUISettingsOK) IsSuccess() bool
- func (o *GetGeneralUISettingsOK) String() string
- type GetGeneralUISettingsParams
- func NewGetGeneralUISettingsParams() *GetGeneralUISettingsParams
- func NewGetGeneralUISettingsParamsWithContext(ctx context.Context) *GetGeneralUISettingsParams
- func NewGetGeneralUISettingsParamsWithHTTPClient(client *http.Client) *GetGeneralUISettingsParams
- func NewGetGeneralUISettingsParamsWithTimeout(timeout time.Duration) *GetGeneralUISettingsParams
- func (o *GetGeneralUISettingsParams) SetContext(ctx context.Context)
- func (o *GetGeneralUISettingsParams) SetDefaults()
- func (o *GetGeneralUISettingsParams) SetHTTPClient(client *http.Client)
- func (o *GetGeneralUISettingsParams) SetTimeout(timeout time.Duration)
- func (o *GetGeneralUISettingsParams) WithContext(ctx context.Context) *GetGeneralUISettingsParams
- func (o *GetGeneralUISettingsParams) WithDefaults() *GetGeneralUISettingsParams
- func (o *GetGeneralUISettingsParams) WithHTTPClient(client *http.Client) *GetGeneralUISettingsParams
- func (o *GetGeneralUISettingsParams) WithTimeout(timeout time.Duration) *GetGeneralUISettingsParams
- func (o *GetGeneralUISettingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetGeneralUISettingsReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithContentTypeApplicationJSON ¶
func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
WithContentTypeApplicationJSON sets the Content-Type header to "application/json".
func WithContentTypeTextPlain ¶
func WithContentTypeTextPlain(r *runtime.ClientOperation)
WithContentTypeTextPlain sets the Content-Type header to "text/plain".
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for settings API
func (*Client) GetGeneralAPISettings ¶
func (a *Client) GetGeneralAPISettings(params *GetGeneralAPISettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGeneralAPISettingsOK, error)
GetGeneralAPISettings gets instance s global settings for api
func (*Client) GetGeneralAttachmentSettings ¶
func (a *Client) GetGeneralAttachmentSettings(params *GetGeneralAttachmentSettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGeneralAttachmentSettingsOK, error)
GetGeneralAttachmentSettings gets instance s global settings for attachment
func (*Client) GetGeneralRepositorySettings ¶
func (a *Client) GetGeneralRepositorySettings(params *GetGeneralRepositorySettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGeneralRepositorySettingsOK, error)
GetGeneralRepositorySettings gets instance s global settings for repositories
func (*Client) GetGeneralUISettings ¶
func (a *Client) GetGeneralUISettings(params *GetGeneralUISettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGeneralUISettingsOK, error)
GetGeneralUISettings gets instance s global settings for ui
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 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 { GetGeneralAPISettings(params *GetGeneralAPISettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGeneralAPISettingsOK, error) GetGeneralAttachmentSettings(params *GetGeneralAttachmentSettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGeneralAttachmentSettingsOK, error) GetGeneralRepositorySettings(params *GetGeneralRepositorySettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGeneralRepositorySettingsOK, error) GetGeneralUISettings(params *GetGeneralUISettingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGeneralUISettingsOK, 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 settings API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new settings 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 settings 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 GetGeneralAPISettingsOK ¶
type GetGeneralAPISettingsOK struct {
Payload *models.GeneralAPISettings
}
GetGeneralAPISettingsOK describes a response with status code 200, with default header values.
GeneralAPISettings
func NewGetGeneralAPISettingsOK ¶
func NewGetGeneralAPISettingsOK() *GetGeneralAPISettingsOK
NewGetGeneralAPISettingsOK creates a GetGeneralAPISettingsOK with default headers values
func (*GetGeneralAPISettingsOK) Code ¶
func (o *GetGeneralAPISettingsOK) Code() int
Code gets the status code for the get general Api settings o k response
func (*GetGeneralAPISettingsOK) Error ¶
func (o *GetGeneralAPISettingsOK) Error() string
func (*GetGeneralAPISettingsOK) GetPayload ¶
func (o *GetGeneralAPISettingsOK) GetPayload() *models.GeneralAPISettings
func (*GetGeneralAPISettingsOK) IsClientError ¶
func (o *GetGeneralAPISettingsOK) IsClientError() bool
IsClientError returns true when this get general Api settings o k response has a 4xx status code
func (*GetGeneralAPISettingsOK) IsCode ¶
func (o *GetGeneralAPISettingsOK) IsCode(code int) bool
IsCode returns true when this get general Api settings o k response a status code equal to that given
func (*GetGeneralAPISettingsOK) IsRedirect ¶
func (o *GetGeneralAPISettingsOK) IsRedirect() bool
IsRedirect returns true when this get general Api settings o k response has a 3xx status code
func (*GetGeneralAPISettingsOK) IsServerError ¶
func (o *GetGeneralAPISettingsOK) IsServerError() bool
IsServerError returns true when this get general Api settings o k response has a 5xx status code
func (*GetGeneralAPISettingsOK) IsSuccess ¶
func (o *GetGeneralAPISettingsOK) IsSuccess() bool
IsSuccess returns true when this get general Api settings o k response has a 2xx status code
func (*GetGeneralAPISettingsOK) String ¶
func (o *GetGeneralAPISettingsOK) String() string
type GetGeneralAPISettingsParams ¶
type GetGeneralAPISettingsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetGeneralAPISettingsParams contains all the parameters to send to the API endpoint
for the get general API settings operation. Typically these are written to a http.Request.
func NewGetGeneralAPISettingsParams ¶
func NewGetGeneralAPISettingsParams() *GetGeneralAPISettingsParams
NewGetGeneralAPISettingsParams creates a new GetGeneralAPISettingsParams 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 NewGetGeneralAPISettingsParamsWithContext ¶
func NewGetGeneralAPISettingsParamsWithContext(ctx context.Context) *GetGeneralAPISettingsParams
NewGetGeneralAPISettingsParamsWithContext creates a new GetGeneralAPISettingsParams object with the ability to set a context for a request.
func NewGetGeneralAPISettingsParamsWithHTTPClient ¶
func NewGetGeneralAPISettingsParamsWithHTTPClient(client *http.Client) *GetGeneralAPISettingsParams
NewGetGeneralAPISettingsParamsWithHTTPClient creates a new GetGeneralAPISettingsParams object with the ability to set a custom HTTPClient for a request.
func NewGetGeneralAPISettingsParamsWithTimeout ¶
func NewGetGeneralAPISettingsParamsWithTimeout(timeout time.Duration) *GetGeneralAPISettingsParams
NewGetGeneralAPISettingsParamsWithTimeout creates a new GetGeneralAPISettingsParams object with the ability to set a timeout on a request.
func (*GetGeneralAPISettingsParams) SetContext ¶
func (o *GetGeneralAPISettingsParams) SetContext(ctx context.Context)
SetContext adds the context to the get general API settings params
func (*GetGeneralAPISettingsParams) SetDefaults ¶
func (o *GetGeneralAPISettingsParams) SetDefaults()
SetDefaults hydrates default values in the get general API settings params (not the query body).
All values with no default are reset to their zero value.
func (*GetGeneralAPISettingsParams) SetHTTPClient ¶
func (o *GetGeneralAPISettingsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get general API settings params
func (*GetGeneralAPISettingsParams) SetTimeout ¶
func (o *GetGeneralAPISettingsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get general API settings params
func (*GetGeneralAPISettingsParams) WithContext ¶
func (o *GetGeneralAPISettingsParams) WithContext(ctx context.Context) *GetGeneralAPISettingsParams
WithContext adds the context to the get general API settings params
func (*GetGeneralAPISettingsParams) WithDefaults ¶
func (o *GetGeneralAPISettingsParams) WithDefaults() *GetGeneralAPISettingsParams
WithDefaults hydrates default values in the get general API settings params (not the query body).
All values with no default are reset to their zero value.
func (*GetGeneralAPISettingsParams) WithHTTPClient ¶
func (o *GetGeneralAPISettingsParams) WithHTTPClient(client *http.Client) *GetGeneralAPISettingsParams
WithHTTPClient adds the HTTPClient to the get general API settings params
func (*GetGeneralAPISettingsParams) WithTimeout ¶
func (o *GetGeneralAPISettingsParams) WithTimeout(timeout time.Duration) *GetGeneralAPISettingsParams
WithTimeout adds the timeout to the get general API settings params
func (*GetGeneralAPISettingsParams) WriteToRequest ¶
func (o *GetGeneralAPISettingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetGeneralAPISettingsReader ¶
type GetGeneralAPISettingsReader struct {
// contains filtered or unexported fields
}
GetGeneralAPISettingsReader is a Reader for the GetGeneralAPISettings structure.
func (*GetGeneralAPISettingsReader) ReadResponse ¶
func (o *GetGeneralAPISettingsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetGeneralAttachmentSettingsOK ¶
type GetGeneralAttachmentSettingsOK struct {
Payload *models.GeneralAttachmentSettings
}
GetGeneralAttachmentSettingsOK describes a response with status code 200, with default header values.
GeneralAttachmentSettings
func NewGetGeneralAttachmentSettingsOK ¶
func NewGetGeneralAttachmentSettingsOK() *GetGeneralAttachmentSettingsOK
NewGetGeneralAttachmentSettingsOK creates a GetGeneralAttachmentSettingsOK with default headers values
func (*GetGeneralAttachmentSettingsOK) Code ¶
func (o *GetGeneralAttachmentSettingsOK) Code() int
Code gets the status code for the get general attachment settings o k response
func (*GetGeneralAttachmentSettingsOK) Error ¶
func (o *GetGeneralAttachmentSettingsOK) Error() string
func (*GetGeneralAttachmentSettingsOK) GetPayload ¶
func (o *GetGeneralAttachmentSettingsOK) GetPayload() *models.GeneralAttachmentSettings
func (*GetGeneralAttachmentSettingsOK) IsClientError ¶
func (o *GetGeneralAttachmentSettingsOK) IsClientError() bool
IsClientError returns true when this get general attachment settings o k response has a 4xx status code
func (*GetGeneralAttachmentSettingsOK) IsCode ¶
func (o *GetGeneralAttachmentSettingsOK) IsCode(code int) bool
IsCode returns true when this get general attachment settings o k response a status code equal to that given
func (*GetGeneralAttachmentSettingsOK) IsRedirect ¶
func (o *GetGeneralAttachmentSettingsOK) IsRedirect() bool
IsRedirect returns true when this get general attachment settings o k response has a 3xx status code
func (*GetGeneralAttachmentSettingsOK) IsServerError ¶
func (o *GetGeneralAttachmentSettingsOK) IsServerError() bool
IsServerError returns true when this get general attachment settings o k response has a 5xx status code
func (*GetGeneralAttachmentSettingsOK) IsSuccess ¶
func (o *GetGeneralAttachmentSettingsOK) IsSuccess() bool
IsSuccess returns true when this get general attachment settings o k response has a 2xx status code
func (*GetGeneralAttachmentSettingsOK) String ¶
func (o *GetGeneralAttachmentSettingsOK) String() string
type GetGeneralAttachmentSettingsParams ¶
type GetGeneralAttachmentSettingsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetGeneralAttachmentSettingsParams contains all the parameters to send to the API endpoint
for the get general attachment settings operation. Typically these are written to a http.Request.
func NewGetGeneralAttachmentSettingsParams ¶
func NewGetGeneralAttachmentSettingsParams() *GetGeneralAttachmentSettingsParams
NewGetGeneralAttachmentSettingsParams creates a new GetGeneralAttachmentSettingsParams 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 NewGetGeneralAttachmentSettingsParamsWithContext ¶
func NewGetGeneralAttachmentSettingsParamsWithContext(ctx context.Context) *GetGeneralAttachmentSettingsParams
NewGetGeneralAttachmentSettingsParamsWithContext creates a new GetGeneralAttachmentSettingsParams object with the ability to set a context for a request.
func NewGetGeneralAttachmentSettingsParamsWithHTTPClient ¶
func NewGetGeneralAttachmentSettingsParamsWithHTTPClient(client *http.Client) *GetGeneralAttachmentSettingsParams
NewGetGeneralAttachmentSettingsParamsWithHTTPClient creates a new GetGeneralAttachmentSettingsParams object with the ability to set a custom HTTPClient for a request.
func NewGetGeneralAttachmentSettingsParamsWithTimeout ¶
func NewGetGeneralAttachmentSettingsParamsWithTimeout(timeout time.Duration) *GetGeneralAttachmentSettingsParams
NewGetGeneralAttachmentSettingsParamsWithTimeout creates a new GetGeneralAttachmentSettingsParams object with the ability to set a timeout on a request.
func (*GetGeneralAttachmentSettingsParams) SetContext ¶
func (o *GetGeneralAttachmentSettingsParams) SetContext(ctx context.Context)
SetContext adds the context to the get general attachment settings params
func (*GetGeneralAttachmentSettingsParams) SetDefaults ¶
func (o *GetGeneralAttachmentSettingsParams) SetDefaults()
SetDefaults hydrates default values in the get general attachment settings params (not the query body).
All values with no default are reset to their zero value.
func (*GetGeneralAttachmentSettingsParams) SetHTTPClient ¶
func (o *GetGeneralAttachmentSettingsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get general attachment settings params
func (*GetGeneralAttachmentSettingsParams) SetTimeout ¶
func (o *GetGeneralAttachmentSettingsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get general attachment settings params
func (*GetGeneralAttachmentSettingsParams) WithContext ¶
func (o *GetGeneralAttachmentSettingsParams) WithContext(ctx context.Context) *GetGeneralAttachmentSettingsParams
WithContext adds the context to the get general attachment settings params
func (*GetGeneralAttachmentSettingsParams) WithDefaults ¶
func (o *GetGeneralAttachmentSettingsParams) WithDefaults() *GetGeneralAttachmentSettingsParams
WithDefaults hydrates default values in the get general attachment settings params (not the query body).
All values with no default are reset to their zero value.
func (*GetGeneralAttachmentSettingsParams) WithHTTPClient ¶
func (o *GetGeneralAttachmentSettingsParams) WithHTTPClient(client *http.Client) *GetGeneralAttachmentSettingsParams
WithHTTPClient adds the HTTPClient to the get general attachment settings params
func (*GetGeneralAttachmentSettingsParams) WithTimeout ¶
func (o *GetGeneralAttachmentSettingsParams) WithTimeout(timeout time.Duration) *GetGeneralAttachmentSettingsParams
WithTimeout adds the timeout to the get general attachment settings params
func (*GetGeneralAttachmentSettingsParams) WriteToRequest ¶
func (o *GetGeneralAttachmentSettingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetGeneralAttachmentSettingsReader ¶
type GetGeneralAttachmentSettingsReader struct {
// contains filtered or unexported fields
}
GetGeneralAttachmentSettingsReader is a Reader for the GetGeneralAttachmentSettings structure.
func (*GetGeneralAttachmentSettingsReader) ReadResponse ¶
func (o *GetGeneralAttachmentSettingsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetGeneralRepositorySettingsOK ¶
type GetGeneralRepositorySettingsOK struct {
Payload *models.GeneralRepoSettings
}
GetGeneralRepositorySettingsOK describes a response with status code 200, with default header values.
GeneralRepoSettings
func NewGetGeneralRepositorySettingsOK ¶
func NewGetGeneralRepositorySettingsOK() *GetGeneralRepositorySettingsOK
NewGetGeneralRepositorySettingsOK creates a GetGeneralRepositorySettingsOK with default headers values
func (*GetGeneralRepositorySettingsOK) Code ¶
func (o *GetGeneralRepositorySettingsOK) Code() int
Code gets the status code for the get general repository settings o k response
func (*GetGeneralRepositorySettingsOK) Error ¶
func (o *GetGeneralRepositorySettingsOK) Error() string
func (*GetGeneralRepositorySettingsOK) GetPayload ¶
func (o *GetGeneralRepositorySettingsOK) GetPayload() *models.GeneralRepoSettings
func (*GetGeneralRepositorySettingsOK) IsClientError ¶
func (o *GetGeneralRepositorySettingsOK) IsClientError() bool
IsClientError returns true when this get general repository settings o k response has a 4xx status code
func (*GetGeneralRepositorySettingsOK) IsCode ¶
func (o *GetGeneralRepositorySettingsOK) IsCode(code int) bool
IsCode returns true when this get general repository settings o k response a status code equal to that given
func (*GetGeneralRepositorySettingsOK) IsRedirect ¶
func (o *GetGeneralRepositorySettingsOK) IsRedirect() bool
IsRedirect returns true when this get general repository settings o k response has a 3xx status code
func (*GetGeneralRepositorySettingsOK) IsServerError ¶
func (o *GetGeneralRepositorySettingsOK) IsServerError() bool
IsServerError returns true when this get general repository settings o k response has a 5xx status code
func (*GetGeneralRepositorySettingsOK) IsSuccess ¶
func (o *GetGeneralRepositorySettingsOK) IsSuccess() bool
IsSuccess returns true when this get general repository settings o k response has a 2xx status code
func (*GetGeneralRepositorySettingsOK) String ¶
func (o *GetGeneralRepositorySettingsOK) String() string
type GetGeneralRepositorySettingsParams ¶
type GetGeneralRepositorySettingsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetGeneralRepositorySettingsParams contains all the parameters to send to the API endpoint
for the get general repository settings operation. Typically these are written to a http.Request.
func NewGetGeneralRepositorySettingsParams ¶
func NewGetGeneralRepositorySettingsParams() *GetGeneralRepositorySettingsParams
NewGetGeneralRepositorySettingsParams creates a new GetGeneralRepositorySettingsParams 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 NewGetGeneralRepositorySettingsParamsWithContext ¶
func NewGetGeneralRepositorySettingsParamsWithContext(ctx context.Context) *GetGeneralRepositorySettingsParams
NewGetGeneralRepositorySettingsParamsWithContext creates a new GetGeneralRepositorySettingsParams object with the ability to set a context for a request.
func NewGetGeneralRepositorySettingsParamsWithHTTPClient ¶
func NewGetGeneralRepositorySettingsParamsWithHTTPClient(client *http.Client) *GetGeneralRepositorySettingsParams
NewGetGeneralRepositorySettingsParamsWithHTTPClient creates a new GetGeneralRepositorySettingsParams object with the ability to set a custom HTTPClient for a request.
func NewGetGeneralRepositorySettingsParamsWithTimeout ¶
func NewGetGeneralRepositorySettingsParamsWithTimeout(timeout time.Duration) *GetGeneralRepositorySettingsParams
NewGetGeneralRepositorySettingsParamsWithTimeout creates a new GetGeneralRepositorySettingsParams object with the ability to set a timeout on a request.
func (*GetGeneralRepositorySettingsParams) SetContext ¶
func (o *GetGeneralRepositorySettingsParams) SetContext(ctx context.Context)
SetContext adds the context to the get general repository settings params
func (*GetGeneralRepositorySettingsParams) SetDefaults ¶
func (o *GetGeneralRepositorySettingsParams) SetDefaults()
SetDefaults hydrates default values in the get general repository settings params (not the query body).
All values with no default are reset to their zero value.
func (*GetGeneralRepositorySettingsParams) SetHTTPClient ¶
func (o *GetGeneralRepositorySettingsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get general repository settings params
func (*GetGeneralRepositorySettingsParams) SetTimeout ¶
func (o *GetGeneralRepositorySettingsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get general repository settings params
func (*GetGeneralRepositorySettingsParams) WithContext ¶
func (o *GetGeneralRepositorySettingsParams) WithContext(ctx context.Context) *GetGeneralRepositorySettingsParams
WithContext adds the context to the get general repository settings params
func (*GetGeneralRepositorySettingsParams) WithDefaults ¶
func (o *GetGeneralRepositorySettingsParams) WithDefaults() *GetGeneralRepositorySettingsParams
WithDefaults hydrates default values in the get general repository settings params (not the query body).
All values with no default are reset to their zero value.
func (*GetGeneralRepositorySettingsParams) WithHTTPClient ¶
func (o *GetGeneralRepositorySettingsParams) WithHTTPClient(client *http.Client) *GetGeneralRepositorySettingsParams
WithHTTPClient adds the HTTPClient to the get general repository settings params
func (*GetGeneralRepositorySettingsParams) WithTimeout ¶
func (o *GetGeneralRepositorySettingsParams) WithTimeout(timeout time.Duration) *GetGeneralRepositorySettingsParams
WithTimeout adds the timeout to the get general repository settings params
func (*GetGeneralRepositorySettingsParams) WriteToRequest ¶
func (o *GetGeneralRepositorySettingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetGeneralRepositorySettingsReader ¶
type GetGeneralRepositorySettingsReader struct {
// contains filtered or unexported fields
}
GetGeneralRepositorySettingsReader is a Reader for the GetGeneralRepositorySettings structure.
func (*GetGeneralRepositorySettingsReader) ReadResponse ¶
func (o *GetGeneralRepositorySettingsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetGeneralUISettingsOK ¶
type GetGeneralUISettingsOK struct {
Payload *models.GeneralUISettings
}
GetGeneralUISettingsOK describes a response with status code 200, with default header values.
GeneralUISettings
func NewGetGeneralUISettingsOK ¶
func NewGetGeneralUISettingsOK() *GetGeneralUISettingsOK
NewGetGeneralUISettingsOK creates a GetGeneralUISettingsOK with default headers values
func (*GetGeneralUISettingsOK) Code ¶
func (o *GetGeneralUISettingsOK) Code() int
Code gets the status code for the get general Ui settings o k response
func (*GetGeneralUISettingsOK) Error ¶
func (o *GetGeneralUISettingsOK) Error() string
func (*GetGeneralUISettingsOK) GetPayload ¶
func (o *GetGeneralUISettingsOK) GetPayload() *models.GeneralUISettings
func (*GetGeneralUISettingsOK) IsClientError ¶
func (o *GetGeneralUISettingsOK) IsClientError() bool
IsClientError returns true when this get general Ui settings o k response has a 4xx status code
func (*GetGeneralUISettingsOK) IsCode ¶
func (o *GetGeneralUISettingsOK) IsCode(code int) bool
IsCode returns true when this get general Ui settings o k response a status code equal to that given
func (*GetGeneralUISettingsOK) IsRedirect ¶
func (o *GetGeneralUISettingsOK) IsRedirect() bool
IsRedirect returns true when this get general Ui settings o k response has a 3xx status code
func (*GetGeneralUISettingsOK) IsServerError ¶
func (o *GetGeneralUISettingsOK) IsServerError() bool
IsServerError returns true when this get general Ui settings o k response has a 5xx status code
func (*GetGeneralUISettingsOK) IsSuccess ¶
func (o *GetGeneralUISettingsOK) IsSuccess() bool
IsSuccess returns true when this get general Ui settings o k response has a 2xx status code
func (*GetGeneralUISettingsOK) String ¶
func (o *GetGeneralUISettingsOK) String() string
type GetGeneralUISettingsParams ¶
type GetGeneralUISettingsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetGeneralUISettingsParams contains all the parameters to send to the API endpoint
for the get general UI settings operation. Typically these are written to a http.Request.
func NewGetGeneralUISettingsParams ¶
func NewGetGeneralUISettingsParams() *GetGeneralUISettingsParams
NewGetGeneralUISettingsParams creates a new GetGeneralUISettingsParams 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 NewGetGeneralUISettingsParamsWithContext ¶
func NewGetGeneralUISettingsParamsWithContext(ctx context.Context) *GetGeneralUISettingsParams
NewGetGeneralUISettingsParamsWithContext creates a new GetGeneralUISettingsParams object with the ability to set a context for a request.
func NewGetGeneralUISettingsParamsWithHTTPClient ¶
func NewGetGeneralUISettingsParamsWithHTTPClient(client *http.Client) *GetGeneralUISettingsParams
NewGetGeneralUISettingsParamsWithHTTPClient creates a new GetGeneralUISettingsParams object with the ability to set a custom HTTPClient for a request.
func NewGetGeneralUISettingsParamsWithTimeout ¶
func NewGetGeneralUISettingsParamsWithTimeout(timeout time.Duration) *GetGeneralUISettingsParams
NewGetGeneralUISettingsParamsWithTimeout creates a new GetGeneralUISettingsParams object with the ability to set a timeout on a request.
func (*GetGeneralUISettingsParams) SetContext ¶
func (o *GetGeneralUISettingsParams) SetContext(ctx context.Context)
SetContext adds the context to the get general UI settings params
func (*GetGeneralUISettingsParams) SetDefaults ¶
func (o *GetGeneralUISettingsParams) SetDefaults()
SetDefaults hydrates default values in the get general UI settings params (not the query body).
All values with no default are reset to their zero value.
func (*GetGeneralUISettingsParams) SetHTTPClient ¶
func (o *GetGeneralUISettingsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get general UI settings params
func (*GetGeneralUISettingsParams) SetTimeout ¶
func (o *GetGeneralUISettingsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get general UI settings params
func (*GetGeneralUISettingsParams) WithContext ¶
func (o *GetGeneralUISettingsParams) WithContext(ctx context.Context) *GetGeneralUISettingsParams
WithContext adds the context to the get general UI settings params
func (*GetGeneralUISettingsParams) WithDefaults ¶
func (o *GetGeneralUISettingsParams) WithDefaults() *GetGeneralUISettingsParams
WithDefaults hydrates default values in the get general UI settings params (not the query body).
All values with no default are reset to their zero value.
func (*GetGeneralUISettingsParams) WithHTTPClient ¶
func (o *GetGeneralUISettingsParams) WithHTTPClient(client *http.Client) *GetGeneralUISettingsParams
WithHTTPClient adds the HTTPClient to the get general UI settings params
func (*GetGeneralUISettingsParams) WithTimeout ¶
func (o *GetGeneralUISettingsParams) WithTimeout(timeout time.Duration) *GetGeneralUISettingsParams
WithTimeout adds the timeout to the get general UI settings params
func (*GetGeneralUISettingsParams) WriteToRequest ¶
func (o *GetGeneralUISettingsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetGeneralUISettingsReader ¶
type GetGeneralUISettingsReader struct {
// contains filtered or unexported fields
}
GetGeneralUISettingsReader is a Reader for the GetGeneralUISettings structure.
func (*GetGeneralUISettingsReader) ReadResponse ¶
func (o *GetGeneralUISettingsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- get_general_api_settings_parameters.go
- get_general_api_settings_responses.go
- get_general_attachment_settings_parameters.go
- get_general_attachment_settings_responses.go
- get_general_repository_settings_parameters.go
- get_general_repository_settings_responses.go
- get_general_ui_settings_parameters.go
- get_general_ui_settings_responses.go
- settings_client.go