Documentation
¶
Index ¶
- type Client
- func (a *Client) RemoveOrganizationFeature(params *RemoveOrganizationFeatureParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RemoveOrganizationFeatureOK, error)
- func (a *Client) SetOrganizationFeature(params *SetOrganizationFeatureParams, authInfo runtime.ClientAuthInfoWriter, ...) (*SetOrganizationFeatureOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type RemoveOrganizationFeatureOK
- func (o *RemoveOrganizationFeatureOK) Code() int
- func (o *RemoveOrganizationFeatureOK) Error() string
- func (o *RemoveOrganizationFeatureOK) GetPayload() *models.ActivityResponse
- func (o *RemoveOrganizationFeatureOK) IsClientError() bool
- func (o *RemoveOrganizationFeatureOK) IsCode(code int) bool
- func (o *RemoveOrganizationFeatureOK) IsRedirect() bool
- func (o *RemoveOrganizationFeatureOK) IsServerError() bool
- func (o *RemoveOrganizationFeatureOK) IsSuccess() bool
- func (o *RemoveOrganizationFeatureOK) String() string
- type RemoveOrganizationFeatureParams
- func NewRemoveOrganizationFeatureParams() *RemoveOrganizationFeatureParams
- func NewRemoveOrganizationFeatureParamsWithContext(ctx context.Context) *RemoveOrganizationFeatureParams
- func NewRemoveOrganizationFeatureParamsWithHTTPClient(client *http.Client) *RemoveOrganizationFeatureParams
- func NewRemoveOrganizationFeatureParamsWithTimeout(timeout time.Duration) *RemoveOrganizationFeatureParams
- func (o *RemoveOrganizationFeatureParams) SetBody(body *models.RemoveOrganizationFeatureRequest)
- func (o *RemoveOrganizationFeatureParams) SetContext(ctx context.Context)
- func (o *RemoveOrganizationFeatureParams) SetDefaults()
- func (o *RemoveOrganizationFeatureParams) SetHTTPClient(client *http.Client)
- func (o *RemoveOrganizationFeatureParams) SetTimeout(timeout time.Duration)
- func (o *RemoveOrganizationFeatureParams) WithBody(body *models.RemoveOrganizationFeatureRequest) *RemoveOrganizationFeatureParams
- func (o *RemoveOrganizationFeatureParams) WithContext(ctx context.Context) *RemoveOrganizationFeatureParams
- func (o *RemoveOrganizationFeatureParams) WithDefaults() *RemoveOrganizationFeatureParams
- func (o *RemoveOrganizationFeatureParams) WithHTTPClient(client *http.Client) *RemoveOrganizationFeatureParams
- func (o *RemoveOrganizationFeatureParams) WithTimeout(timeout time.Duration) *RemoveOrganizationFeatureParams
- func (o *RemoveOrganizationFeatureParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RemoveOrganizationFeatureReader
- type SetOrganizationFeatureOK
- func (o *SetOrganizationFeatureOK) Code() int
- func (o *SetOrganizationFeatureOK) Error() string
- func (o *SetOrganizationFeatureOK) GetPayload() *models.ActivityResponse
- func (o *SetOrganizationFeatureOK) IsClientError() bool
- func (o *SetOrganizationFeatureOK) IsCode(code int) bool
- func (o *SetOrganizationFeatureOK) IsRedirect() bool
- func (o *SetOrganizationFeatureOK) IsServerError() bool
- func (o *SetOrganizationFeatureOK) IsSuccess() bool
- func (o *SetOrganizationFeatureOK) String() string
- type SetOrganizationFeatureParams
- func NewSetOrganizationFeatureParams() *SetOrganizationFeatureParams
- func NewSetOrganizationFeatureParamsWithContext(ctx context.Context) *SetOrganizationFeatureParams
- func NewSetOrganizationFeatureParamsWithHTTPClient(client *http.Client) *SetOrganizationFeatureParams
- func NewSetOrganizationFeatureParamsWithTimeout(timeout time.Duration) *SetOrganizationFeatureParams
- func (o *SetOrganizationFeatureParams) SetBody(body *models.SetOrganizationFeatureRequest)
- func (o *SetOrganizationFeatureParams) SetContext(ctx context.Context)
- func (o *SetOrganizationFeatureParams) SetDefaults()
- func (o *SetOrganizationFeatureParams) SetHTTPClient(client *http.Client)
- func (o *SetOrganizationFeatureParams) SetTimeout(timeout time.Duration)
- func (o *SetOrganizationFeatureParams) WithBody(body *models.SetOrganizationFeatureRequest) *SetOrganizationFeatureParams
- func (o *SetOrganizationFeatureParams) WithContext(ctx context.Context) *SetOrganizationFeatureParams
- func (o *SetOrganizationFeatureParams) WithDefaults() *SetOrganizationFeatureParams
- func (o *SetOrganizationFeatureParams) WithHTTPClient(client *http.Client) *SetOrganizationFeatureParams
- func (o *SetOrganizationFeatureParams) WithTimeout(timeout time.Duration) *SetOrganizationFeatureParams
- func (o *SetOrganizationFeatureParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SetOrganizationFeatureReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for features API
func (*Client) RemoveOrganizationFeature ¶
func (a *Client) RemoveOrganizationFeature(params *RemoveOrganizationFeatureParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemoveOrganizationFeatureOK, error)
RemoveOrganizationFeature removes organization feature
Removes an organization feature
func (*Client) SetOrganizationFeature ¶
func (a *Client) SetOrganizationFeature(params *SetOrganizationFeatureParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetOrganizationFeatureOK, error)
SetOrganizationFeature sets organization feature
Sets an organization feature
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 is the option for Client methods
type ClientService ¶
type ClientService interface { RemoveOrganizationFeature(params *RemoveOrganizationFeatureParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemoveOrganizationFeatureOK, error) SetOrganizationFeature(params *SetOrganizationFeatureParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetOrganizationFeatureOK, 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 features API client.
type RemoveOrganizationFeatureOK ¶
type RemoveOrganizationFeatureOK struct {
Payload *models.ActivityResponse
}
RemoveOrganizationFeatureOK describes a response with status code 200, with default header values.
A successful response.
func NewRemoveOrganizationFeatureOK ¶
func NewRemoveOrganizationFeatureOK() *RemoveOrganizationFeatureOK
NewRemoveOrganizationFeatureOK creates a RemoveOrganizationFeatureOK with default headers values
func (*RemoveOrganizationFeatureOK) Code ¶
func (o *RemoveOrganizationFeatureOK) Code() int
Code gets the status code for the remove organization feature o k response
func (*RemoveOrganizationFeatureOK) Error ¶
func (o *RemoveOrganizationFeatureOK) Error() string
func (*RemoveOrganizationFeatureOK) GetPayload ¶
func (o *RemoveOrganizationFeatureOK) GetPayload() *models.ActivityResponse
func (*RemoveOrganizationFeatureOK) IsClientError ¶
func (o *RemoveOrganizationFeatureOK) IsClientError() bool
IsClientError returns true when this remove organization feature o k response has a 4xx status code
func (*RemoveOrganizationFeatureOK) IsCode ¶
func (o *RemoveOrganizationFeatureOK) IsCode(code int) bool
IsCode returns true when this remove organization feature o k response a status code equal to that given
func (*RemoveOrganizationFeatureOK) IsRedirect ¶
func (o *RemoveOrganizationFeatureOK) IsRedirect() bool
IsRedirect returns true when this remove organization feature o k response has a 3xx status code
func (*RemoveOrganizationFeatureOK) IsServerError ¶
func (o *RemoveOrganizationFeatureOK) IsServerError() bool
IsServerError returns true when this remove organization feature o k response has a 5xx status code
func (*RemoveOrganizationFeatureOK) IsSuccess ¶
func (o *RemoveOrganizationFeatureOK) IsSuccess() bool
IsSuccess returns true when this remove organization feature o k response has a 2xx status code
func (*RemoveOrganizationFeatureOK) String ¶
func (o *RemoveOrganizationFeatureOK) String() string
type RemoveOrganizationFeatureParams ¶
type RemoveOrganizationFeatureParams struct { // Body. Body *models.RemoveOrganizationFeatureRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RemoveOrganizationFeatureParams contains all the parameters to send to the API endpoint
for the remove organization feature operation. Typically these are written to a http.Request.
func NewRemoveOrganizationFeatureParams ¶
func NewRemoveOrganizationFeatureParams() *RemoveOrganizationFeatureParams
NewRemoveOrganizationFeatureParams creates a new RemoveOrganizationFeatureParams 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 NewRemoveOrganizationFeatureParamsWithContext ¶
func NewRemoveOrganizationFeatureParamsWithContext(ctx context.Context) *RemoveOrganizationFeatureParams
NewRemoveOrganizationFeatureParamsWithContext creates a new RemoveOrganizationFeatureParams object with the ability to set a context for a request.
func NewRemoveOrganizationFeatureParamsWithHTTPClient ¶
func NewRemoveOrganizationFeatureParamsWithHTTPClient(client *http.Client) *RemoveOrganizationFeatureParams
NewRemoveOrganizationFeatureParamsWithHTTPClient creates a new RemoveOrganizationFeatureParams object with the ability to set a custom HTTPClient for a request.
func NewRemoveOrganizationFeatureParamsWithTimeout ¶
func NewRemoveOrganizationFeatureParamsWithTimeout(timeout time.Duration) *RemoveOrganizationFeatureParams
NewRemoveOrganizationFeatureParamsWithTimeout creates a new RemoveOrganizationFeatureParams object with the ability to set a timeout on a request.
func (*RemoveOrganizationFeatureParams) SetBody ¶
func (o *RemoveOrganizationFeatureParams) SetBody(body *models.RemoveOrganizationFeatureRequest)
SetBody adds the body to the remove organization feature params
func (*RemoveOrganizationFeatureParams) SetContext ¶
func (o *RemoveOrganizationFeatureParams) SetContext(ctx context.Context)
SetContext adds the context to the remove organization feature params
func (*RemoveOrganizationFeatureParams) SetDefaults ¶
func (o *RemoveOrganizationFeatureParams) SetDefaults()
SetDefaults hydrates default values in the remove organization feature params (not the query body).
All values with no default are reset to their zero value.
func (*RemoveOrganizationFeatureParams) SetHTTPClient ¶
func (o *RemoveOrganizationFeatureParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the remove organization feature params
func (*RemoveOrganizationFeatureParams) SetTimeout ¶
func (o *RemoveOrganizationFeatureParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the remove organization feature params
func (*RemoveOrganizationFeatureParams) WithBody ¶
func (o *RemoveOrganizationFeatureParams) WithBody(body *models.RemoveOrganizationFeatureRequest) *RemoveOrganizationFeatureParams
WithBody adds the body to the remove organization feature params
func (*RemoveOrganizationFeatureParams) WithContext ¶
func (o *RemoveOrganizationFeatureParams) WithContext(ctx context.Context) *RemoveOrganizationFeatureParams
WithContext adds the context to the remove organization feature params
func (*RemoveOrganizationFeatureParams) WithDefaults ¶
func (o *RemoveOrganizationFeatureParams) WithDefaults() *RemoveOrganizationFeatureParams
WithDefaults hydrates default values in the remove organization feature params (not the query body).
All values with no default are reset to their zero value.
func (*RemoveOrganizationFeatureParams) WithHTTPClient ¶
func (o *RemoveOrganizationFeatureParams) WithHTTPClient(client *http.Client) *RemoveOrganizationFeatureParams
WithHTTPClient adds the HTTPClient to the remove organization feature params
func (*RemoveOrganizationFeatureParams) WithTimeout ¶
func (o *RemoveOrganizationFeatureParams) WithTimeout(timeout time.Duration) *RemoveOrganizationFeatureParams
WithTimeout adds the timeout to the remove organization feature params
func (*RemoveOrganizationFeatureParams) WriteToRequest ¶
func (o *RemoveOrganizationFeatureParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RemoveOrganizationFeatureReader ¶
type RemoveOrganizationFeatureReader struct {
// contains filtered or unexported fields
}
RemoveOrganizationFeatureReader is a Reader for the RemoveOrganizationFeature structure.
func (*RemoveOrganizationFeatureReader) ReadResponse ¶
func (o *RemoveOrganizationFeatureReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SetOrganizationFeatureOK ¶
type SetOrganizationFeatureOK struct {
Payload *models.ActivityResponse
}
SetOrganizationFeatureOK describes a response with status code 200, with default header values.
A successful response.
func NewSetOrganizationFeatureOK ¶
func NewSetOrganizationFeatureOK() *SetOrganizationFeatureOK
NewSetOrganizationFeatureOK creates a SetOrganizationFeatureOK with default headers values
func (*SetOrganizationFeatureOK) Code ¶
func (o *SetOrganizationFeatureOK) Code() int
Code gets the status code for the set organization feature o k response
func (*SetOrganizationFeatureOK) Error ¶
func (o *SetOrganizationFeatureOK) Error() string
func (*SetOrganizationFeatureOK) GetPayload ¶
func (o *SetOrganizationFeatureOK) GetPayload() *models.ActivityResponse
func (*SetOrganizationFeatureOK) IsClientError ¶
func (o *SetOrganizationFeatureOK) IsClientError() bool
IsClientError returns true when this set organization feature o k response has a 4xx status code
func (*SetOrganizationFeatureOK) IsCode ¶
func (o *SetOrganizationFeatureOK) IsCode(code int) bool
IsCode returns true when this set organization feature o k response a status code equal to that given
func (*SetOrganizationFeatureOK) IsRedirect ¶
func (o *SetOrganizationFeatureOK) IsRedirect() bool
IsRedirect returns true when this set organization feature o k response has a 3xx status code
func (*SetOrganizationFeatureOK) IsServerError ¶
func (o *SetOrganizationFeatureOK) IsServerError() bool
IsServerError returns true when this set organization feature o k response has a 5xx status code
func (*SetOrganizationFeatureOK) IsSuccess ¶
func (o *SetOrganizationFeatureOK) IsSuccess() bool
IsSuccess returns true when this set organization feature o k response has a 2xx status code
func (*SetOrganizationFeatureOK) String ¶
func (o *SetOrganizationFeatureOK) String() string
type SetOrganizationFeatureParams ¶
type SetOrganizationFeatureParams struct { // Body. Body *models.SetOrganizationFeatureRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SetOrganizationFeatureParams contains all the parameters to send to the API endpoint
for the set organization feature operation. Typically these are written to a http.Request.
func NewSetOrganizationFeatureParams ¶
func NewSetOrganizationFeatureParams() *SetOrganizationFeatureParams
NewSetOrganizationFeatureParams creates a new SetOrganizationFeatureParams 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 NewSetOrganizationFeatureParamsWithContext ¶
func NewSetOrganizationFeatureParamsWithContext(ctx context.Context) *SetOrganizationFeatureParams
NewSetOrganizationFeatureParamsWithContext creates a new SetOrganizationFeatureParams object with the ability to set a context for a request.
func NewSetOrganizationFeatureParamsWithHTTPClient ¶
func NewSetOrganizationFeatureParamsWithHTTPClient(client *http.Client) *SetOrganizationFeatureParams
NewSetOrganizationFeatureParamsWithHTTPClient creates a new SetOrganizationFeatureParams object with the ability to set a custom HTTPClient for a request.
func NewSetOrganizationFeatureParamsWithTimeout ¶
func NewSetOrganizationFeatureParamsWithTimeout(timeout time.Duration) *SetOrganizationFeatureParams
NewSetOrganizationFeatureParamsWithTimeout creates a new SetOrganizationFeatureParams object with the ability to set a timeout on a request.
func (*SetOrganizationFeatureParams) SetBody ¶
func (o *SetOrganizationFeatureParams) SetBody(body *models.SetOrganizationFeatureRequest)
SetBody adds the body to the set organization feature params
func (*SetOrganizationFeatureParams) SetContext ¶
func (o *SetOrganizationFeatureParams) SetContext(ctx context.Context)
SetContext adds the context to the set organization feature params
func (*SetOrganizationFeatureParams) SetDefaults ¶
func (o *SetOrganizationFeatureParams) SetDefaults()
SetDefaults hydrates default values in the set organization feature params (not the query body).
All values with no default are reset to their zero value.
func (*SetOrganizationFeatureParams) SetHTTPClient ¶
func (o *SetOrganizationFeatureParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the set organization feature params
func (*SetOrganizationFeatureParams) SetTimeout ¶
func (o *SetOrganizationFeatureParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the set organization feature params
func (*SetOrganizationFeatureParams) WithBody ¶
func (o *SetOrganizationFeatureParams) WithBody(body *models.SetOrganizationFeatureRequest) *SetOrganizationFeatureParams
WithBody adds the body to the set organization feature params
func (*SetOrganizationFeatureParams) WithContext ¶
func (o *SetOrganizationFeatureParams) WithContext(ctx context.Context) *SetOrganizationFeatureParams
WithContext adds the context to the set organization feature params
func (*SetOrganizationFeatureParams) WithDefaults ¶
func (o *SetOrganizationFeatureParams) WithDefaults() *SetOrganizationFeatureParams
WithDefaults hydrates default values in the set organization feature params (not the query body).
All values with no default are reset to their zero value.
func (*SetOrganizationFeatureParams) WithHTTPClient ¶
func (o *SetOrganizationFeatureParams) WithHTTPClient(client *http.Client) *SetOrganizationFeatureParams
WithHTTPClient adds the HTTPClient to the set organization feature params
func (*SetOrganizationFeatureParams) WithTimeout ¶
func (o *SetOrganizationFeatureParams) WithTimeout(timeout time.Duration) *SetOrganizationFeatureParams
WithTimeout adds the timeout to the set organization feature params
func (*SetOrganizationFeatureParams) WriteToRequest ¶
func (o *SetOrganizationFeatureParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SetOrganizationFeatureReader ¶
type SetOrganizationFeatureReader struct {
// contains filtered or unexported fields
}
SetOrganizationFeatureReader is a Reader for the SetOrganizationFeature structure.
func (*SetOrganizationFeatureReader) ReadResponse ¶
func (o *SetOrganizationFeatureReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.