Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateSubOrganization(params *CreateSubOrganizationParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateSubOrganizationOK, error)
- func (a *Client) GetSubOrgIds(params *GetSubOrgIdsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetSubOrgIdsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateRootQuorum(params *UpdateRootQuorumParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateRootQuorumOK, error)
- type ClientOption
- type ClientService
- type CreateSubOrganizationOK
- func (o *CreateSubOrganizationOK) Code() int
- func (o *CreateSubOrganizationOK) Error() string
- func (o *CreateSubOrganizationOK) GetPayload() *models.ActivityResponse
- func (o *CreateSubOrganizationOK) IsClientError() bool
- func (o *CreateSubOrganizationOK) IsCode(code int) bool
- func (o *CreateSubOrganizationOK) IsRedirect() bool
- func (o *CreateSubOrganizationOK) IsServerError() bool
- func (o *CreateSubOrganizationOK) IsSuccess() bool
- func (o *CreateSubOrganizationOK) String() string
- type CreateSubOrganizationParams
- func NewCreateSubOrganizationParams() *CreateSubOrganizationParams
- func NewCreateSubOrganizationParamsWithContext(ctx context.Context) *CreateSubOrganizationParams
- func NewCreateSubOrganizationParamsWithHTTPClient(client *http.Client) *CreateSubOrganizationParams
- func NewCreateSubOrganizationParamsWithTimeout(timeout time.Duration) *CreateSubOrganizationParams
- func (o *CreateSubOrganizationParams) SetBody(body *models.CreateSubOrganizationRequest)
- func (o *CreateSubOrganizationParams) SetContext(ctx context.Context)
- func (o *CreateSubOrganizationParams) SetDefaults()
- func (o *CreateSubOrganizationParams) SetHTTPClient(client *http.Client)
- func (o *CreateSubOrganizationParams) SetTimeout(timeout time.Duration)
- func (o *CreateSubOrganizationParams) WithBody(body *models.CreateSubOrganizationRequest) *CreateSubOrganizationParams
- func (o *CreateSubOrganizationParams) WithContext(ctx context.Context) *CreateSubOrganizationParams
- func (o *CreateSubOrganizationParams) WithDefaults() *CreateSubOrganizationParams
- func (o *CreateSubOrganizationParams) WithHTTPClient(client *http.Client) *CreateSubOrganizationParams
- func (o *CreateSubOrganizationParams) WithTimeout(timeout time.Duration) *CreateSubOrganizationParams
- func (o *CreateSubOrganizationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateSubOrganizationReader
- type GetSubOrgIdsOK
- func (o *GetSubOrgIdsOK) Code() int
- func (o *GetSubOrgIdsOK) Error() string
- func (o *GetSubOrgIdsOK) GetPayload() *models.GetSubOrgIdsResponse
- func (o *GetSubOrgIdsOK) IsClientError() bool
- func (o *GetSubOrgIdsOK) IsCode(code int) bool
- func (o *GetSubOrgIdsOK) IsRedirect() bool
- func (o *GetSubOrgIdsOK) IsServerError() bool
- func (o *GetSubOrgIdsOK) IsSuccess() bool
- func (o *GetSubOrgIdsOK) String() string
- type GetSubOrgIdsParams
- func (o *GetSubOrgIdsParams) SetBody(body *models.GetSubOrgIdsRequest)
- func (o *GetSubOrgIdsParams) SetContext(ctx context.Context)
- func (o *GetSubOrgIdsParams) SetDefaults()
- func (o *GetSubOrgIdsParams) SetHTTPClient(client *http.Client)
- func (o *GetSubOrgIdsParams) SetTimeout(timeout time.Duration)
- func (o *GetSubOrgIdsParams) WithBody(body *models.GetSubOrgIdsRequest) *GetSubOrgIdsParams
- func (o *GetSubOrgIdsParams) WithContext(ctx context.Context) *GetSubOrgIdsParams
- func (o *GetSubOrgIdsParams) WithDefaults() *GetSubOrgIdsParams
- func (o *GetSubOrgIdsParams) WithHTTPClient(client *http.Client) *GetSubOrgIdsParams
- func (o *GetSubOrgIdsParams) WithTimeout(timeout time.Duration) *GetSubOrgIdsParams
- func (o *GetSubOrgIdsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSubOrgIdsReader
- type UpdateRootQuorumOK
- func (o *UpdateRootQuorumOK) Code() int
- func (o *UpdateRootQuorumOK) Error() string
- func (o *UpdateRootQuorumOK) GetPayload() *models.ActivityResponse
- func (o *UpdateRootQuorumOK) IsClientError() bool
- func (o *UpdateRootQuorumOK) IsCode(code int) bool
- func (o *UpdateRootQuorumOK) IsRedirect() bool
- func (o *UpdateRootQuorumOK) IsServerError() bool
- func (o *UpdateRootQuorumOK) IsSuccess() bool
- func (o *UpdateRootQuorumOK) String() string
- type UpdateRootQuorumParams
- func NewUpdateRootQuorumParams() *UpdateRootQuorumParams
- func NewUpdateRootQuorumParamsWithContext(ctx context.Context) *UpdateRootQuorumParams
- func NewUpdateRootQuorumParamsWithHTTPClient(client *http.Client) *UpdateRootQuorumParams
- func NewUpdateRootQuorumParamsWithTimeout(timeout time.Duration) *UpdateRootQuorumParams
- func (o *UpdateRootQuorumParams) SetBody(body *models.UpdateRootQuorumRequest)
- func (o *UpdateRootQuorumParams) SetContext(ctx context.Context)
- func (o *UpdateRootQuorumParams) SetDefaults()
- func (o *UpdateRootQuorumParams) SetHTTPClient(client *http.Client)
- func (o *UpdateRootQuorumParams) SetTimeout(timeout time.Duration)
- func (o *UpdateRootQuorumParams) WithBody(body *models.UpdateRootQuorumRequest) *UpdateRootQuorumParams
- func (o *UpdateRootQuorumParams) WithContext(ctx context.Context) *UpdateRootQuorumParams
- func (o *UpdateRootQuorumParams) WithDefaults() *UpdateRootQuorumParams
- func (o *UpdateRootQuorumParams) WithHTTPClient(client *http.Client) *UpdateRootQuorumParams
- func (o *UpdateRootQuorumParams) WithTimeout(timeout time.Duration) *UpdateRootQuorumParams
- func (o *UpdateRootQuorumParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateRootQuorumReader
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 organizations API
func (*Client) CreateSubOrganization ¶
func (a *Client) CreateSubOrganization(params *CreateSubOrganizationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateSubOrganizationOK, error)
CreateSubOrganization creates sub organization
Create a new Sub-Organization
func (*Client) GetSubOrgIds ¶
func (a *Client) GetSubOrgIds(params *GetSubOrgIdsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSubOrgIdsOK, error)
GetSubOrgIds gets suborgs
Get all suborg IDs associated given a parent org ID and an optional filter.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateRootQuorum ¶
func (a *Client) UpdateRootQuorum(params *UpdateRootQuorumParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateRootQuorumOK, error)
UpdateRootQuorum updates root quorum
Set the threshold and members of the root quorum. This must be approved by the current root quorum.
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateSubOrganization(params *CreateSubOrganizationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateSubOrganizationOK, error) GetSubOrgIds(params *GetSubOrgIdsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSubOrgIdsOK, error) UpdateRootQuorum(params *UpdateRootQuorumParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateRootQuorumOK, 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 organizations API client.
type CreateSubOrganizationOK ¶
type CreateSubOrganizationOK struct {
Payload *models.ActivityResponse
}
CreateSubOrganizationOK describes a response with status code 200, with default header values.
A successful response.
func NewCreateSubOrganizationOK ¶
func NewCreateSubOrganizationOK() *CreateSubOrganizationOK
NewCreateSubOrganizationOK creates a CreateSubOrganizationOK with default headers values
func (*CreateSubOrganizationOK) Code ¶
func (o *CreateSubOrganizationOK) Code() int
Code gets the status code for the create sub organization o k response
func (*CreateSubOrganizationOK) Error ¶
func (o *CreateSubOrganizationOK) Error() string
func (*CreateSubOrganizationOK) GetPayload ¶
func (o *CreateSubOrganizationOK) GetPayload() *models.ActivityResponse
func (*CreateSubOrganizationOK) IsClientError ¶
func (o *CreateSubOrganizationOK) IsClientError() bool
IsClientError returns true when this create sub organization o k response has a 4xx status code
func (*CreateSubOrganizationOK) IsCode ¶
func (o *CreateSubOrganizationOK) IsCode(code int) bool
IsCode returns true when this create sub organization o k response a status code equal to that given
func (*CreateSubOrganizationOK) IsRedirect ¶
func (o *CreateSubOrganizationOK) IsRedirect() bool
IsRedirect returns true when this create sub organization o k response has a 3xx status code
func (*CreateSubOrganizationOK) IsServerError ¶
func (o *CreateSubOrganizationOK) IsServerError() bool
IsServerError returns true when this create sub organization o k response has a 5xx status code
func (*CreateSubOrganizationOK) IsSuccess ¶
func (o *CreateSubOrganizationOK) IsSuccess() bool
IsSuccess returns true when this create sub organization o k response has a 2xx status code
func (*CreateSubOrganizationOK) String ¶
func (o *CreateSubOrganizationOK) String() string
type CreateSubOrganizationParams ¶
type CreateSubOrganizationParams struct { // Body. Body *models.CreateSubOrganizationRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateSubOrganizationParams contains all the parameters to send to the API endpoint
for the create sub organization operation. Typically these are written to a http.Request.
func NewCreateSubOrganizationParams ¶
func NewCreateSubOrganizationParams() *CreateSubOrganizationParams
NewCreateSubOrganizationParams creates a new CreateSubOrganizationParams 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 NewCreateSubOrganizationParamsWithContext ¶
func NewCreateSubOrganizationParamsWithContext(ctx context.Context) *CreateSubOrganizationParams
NewCreateSubOrganizationParamsWithContext creates a new CreateSubOrganizationParams object with the ability to set a context for a request.
func NewCreateSubOrganizationParamsWithHTTPClient ¶
func NewCreateSubOrganizationParamsWithHTTPClient(client *http.Client) *CreateSubOrganizationParams
NewCreateSubOrganizationParamsWithHTTPClient creates a new CreateSubOrganizationParams object with the ability to set a custom HTTPClient for a request.
func NewCreateSubOrganizationParamsWithTimeout ¶
func NewCreateSubOrganizationParamsWithTimeout(timeout time.Duration) *CreateSubOrganizationParams
NewCreateSubOrganizationParamsWithTimeout creates a new CreateSubOrganizationParams object with the ability to set a timeout on a request.
func (*CreateSubOrganizationParams) SetBody ¶
func (o *CreateSubOrganizationParams) SetBody(body *models.CreateSubOrganizationRequest)
SetBody adds the body to the create sub organization params
func (*CreateSubOrganizationParams) SetContext ¶
func (o *CreateSubOrganizationParams) SetContext(ctx context.Context)
SetContext adds the context to the create sub organization params
func (*CreateSubOrganizationParams) SetDefaults ¶
func (o *CreateSubOrganizationParams) SetDefaults()
SetDefaults hydrates default values in the create sub organization params (not the query body).
All values with no default are reset to their zero value.
func (*CreateSubOrganizationParams) SetHTTPClient ¶
func (o *CreateSubOrganizationParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create sub organization params
func (*CreateSubOrganizationParams) SetTimeout ¶
func (o *CreateSubOrganizationParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create sub organization params
func (*CreateSubOrganizationParams) WithBody ¶
func (o *CreateSubOrganizationParams) WithBody(body *models.CreateSubOrganizationRequest) *CreateSubOrganizationParams
WithBody adds the body to the create sub organization params
func (*CreateSubOrganizationParams) WithContext ¶
func (o *CreateSubOrganizationParams) WithContext(ctx context.Context) *CreateSubOrganizationParams
WithContext adds the context to the create sub organization params
func (*CreateSubOrganizationParams) WithDefaults ¶
func (o *CreateSubOrganizationParams) WithDefaults() *CreateSubOrganizationParams
WithDefaults hydrates default values in the create sub organization params (not the query body).
All values with no default are reset to their zero value.
func (*CreateSubOrganizationParams) WithHTTPClient ¶
func (o *CreateSubOrganizationParams) WithHTTPClient(client *http.Client) *CreateSubOrganizationParams
WithHTTPClient adds the HTTPClient to the create sub organization params
func (*CreateSubOrganizationParams) WithTimeout ¶
func (o *CreateSubOrganizationParams) WithTimeout(timeout time.Duration) *CreateSubOrganizationParams
WithTimeout adds the timeout to the create sub organization params
func (*CreateSubOrganizationParams) WriteToRequest ¶
func (o *CreateSubOrganizationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateSubOrganizationReader ¶
type CreateSubOrganizationReader struct {
// contains filtered or unexported fields
}
CreateSubOrganizationReader is a Reader for the CreateSubOrganization structure.
func (*CreateSubOrganizationReader) ReadResponse ¶
func (o *CreateSubOrganizationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSubOrgIdsOK ¶
type GetSubOrgIdsOK struct {
Payload *models.GetSubOrgIdsResponse
}
GetSubOrgIdsOK describes a response with status code 200, with default header values.
A successful response.
func NewGetSubOrgIdsOK ¶
func NewGetSubOrgIdsOK() *GetSubOrgIdsOK
NewGetSubOrgIdsOK creates a GetSubOrgIdsOK with default headers values
func (*GetSubOrgIdsOK) Code ¶
func (o *GetSubOrgIdsOK) Code() int
Code gets the status code for the get sub org ids o k response
func (*GetSubOrgIdsOK) Error ¶
func (o *GetSubOrgIdsOK) Error() string
func (*GetSubOrgIdsOK) GetPayload ¶
func (o *GetSubOrgIdsOK) GetPayload() *models.GetSubOrgIdsResponse
func (*GetSubOrgIdsOK) IsClientError ¶
func (o *GetSubOrgIdsOK) IsClientError() bool
IsClientError returns true when this get sub org ids o k response has a 4xx status code
func (*GetSubOrgIdsOK) IsCode ¶
func (o *GetSubOrgIdsOK) IsCode(code int) bool
IsCode returns true when this get sub org ids o k response a status code equal to that given
func (*GetSubOrgIdsOK) IsRedirect ¶
func (o *GetSubOrgIdsOK) IsRedirect() bool
IsRedirect returns true when this get sub org ids o k response has a 3xx status code
func (*GetSubOrgIdsOK) IsServerError ¶
func (o *GetSubOrgIdsOK) IsServerError() bool
IsServerError returns true when this get sub org ids o k response has a 5xx status code
func (*GetSubOrgIdsOK) IsSuccess ¶
func (o *GetSubOrgIdsOK) IsSuccess() bool
IsSuccess returns true when this get sub org ids o k response has a 2xx status code
func (*GetSubOrgIdsOK) String ¶
func (o *GetSubOrgIdsOK) String() string
type GetSubOrgIdsParams ¶
type GetSubOrgIdsParams struct { // Body. Body *models.GetSubOrgIdsRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetSubOrgIdsParams contains all the parameters to send to the API endpoint
for the get sub org ids operation. Typically these are written to a http.Request.
func NewGetSubOrgIdsParams ¶
func NewGetSubOrgIdsParams() *GetSubOrgIdsParams
NewGetSubOrgIdsParams creates a new GetSubOrgIdsParams 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 NewGetSubOrgIdsParamsWithContext ¶
func NewGetSubOrgIdsParamsWithContext(ctx context.Context) *GetSubOrgIdsParams
NewGetSubOrgIdsParamsWithContext creates a new GetSubOrgIdsParams object with the ability to set a context for a request.
func NewGetSubOrgIdsParamsWithHTTPClient ¶
func NewGetSubOrgIdsParamsWithHTTPClient(client *http.Client) *GetSubOrgIdsParams
NewGetSubOrgIdsParamsWithHTTPClient creates a new GetSubOrgIdsParams object with the ability to set a custom HTTPClient for a request.
func NewGetSubOrgIdsParamsWithTimeout ¶
func NewGetSubOrgIdsParamsWithTimeout(timeout time.Duration) *GetSubOrgIdsParams
NewGetSubOrgIdsParamsWithTimeout creates a new GetSubOrgIdsParams object with the ability to set a timeout on a request.
func (*GetSubOrgIdsParams) SetBody ¶
func (o *GetSubOrgIdsParams) SetBody(body *models.GetSubOrgIdsRequest)
SetBody adds the body to the get sub org ids params
func (*GetSubOrgIdsParams) SetContext ¶
func (o *GetSubOrgIdsParams) SetContext(ctx context.Context)
SetContext adds the context to the get sub org ids params
func (*GetSubOrgIdsParams) SetDefaults ¶
func (o *GetSubOrgIdsParams) SetDefaults()
SetDefaults hydrates default values in the get sub org ids params (not the query body).
All values with no default are reset to their zero value.
func (*GetSubOrgIdsParams) SetHTTPClient ¶
func (o *GetSubOrgIdsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get sub org ids params
func (*GetSubOrgIdsParams) SetTimeout ¶
func (o *GetSubOrgIdsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get sub org ids params
func (*GetSubOrgIdsParams) WithBody ¶
func (o *GetSubOrgIdsParams) WithBody(body *models.GetSubOrgIdsRequest) *GetSubOrgIdsParams
WithBody adds the body to the get sub org ids params
func (*GetSubOrgIdsParams) WithContext ¶
func (o *GetSubOrgIdsParams) WithContext(ctx context.Context) *GetSubOrgIdsParams
WithContext adds the context to the get sub org ids params
func (*GetSubOrgIdsParams) WithDefaults ¶
func (o *GetSubOrgIdsParams) WithDefaults() *GetSubOrgIdsParams
WithDefaults hydrates default values in the get sub org ids params (not the query body).
All values with no default are reset to their zero value.
func (*GetSubOrgIdsParams) WithHTTPClient ¶
func (o *GetSubOrgIdsParams) WithHTTPClient(client *http.Client) *GetSubOrgIdsParams
WithHTTPClient adds the HTTPClient to the get sub org ids params
func (*GetSubOrgIdsParams) WithTimeout ¶
func (o *GetSubOrgIdsParams) WithTimeout(timeout time.Duration) *GetSubOrgIdsParams
WithTimeout adds the timeout to the get sub org ids params
func (*GetSubOrgIdsParams) WriteToRequest ¶
func (o *GetSubOrgIdsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSubOrgIdsReader ¶
type GetSubOrgIdsReader struct {
// contains filtered or unexported fields
}
GetSubOrgIdsReader is a Reader for the GetSubOrgIds structure.
func (*GetSubOrgIdsReader) ReadResponse ¶
func (o *GetSubOrgIdsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateRootQuorumOK ¶
type UpdateRootQuorumOK struct {
Payload *models.ActivityResponse
}
UpdateRootQuorumOK describes a response with status code 200, with default header values.
A successful response.
func NewUpdateRootQuorumOK ¶
func NewUpdateRootQuorumOK() *UpdateRootQuorumOK
NewUpdateRootQuorumOK creates a UpdateRootQuorumOK with default headers values
func (*UpdateRootQuorumOK) Code ¶
func (o *UpdateRootQuorumOK) Code() int
Code gets the status code for the update root quorum o k response
func (*UpdateRootQuorumOK) Error ¶
func (o *UpdateRootQuorumOK) Error() string
func (*UpdateRootQuorumOK) GetPayload ¶
func (o *UpdateRootQuorumOK) GetPayload() *models.ActivityResponse
func (*UpdateRootQuorumOK) IsClientError ¶
func (o *UpdateRootQuorumOK) IsClientError() bool
IsClientError returns true when this update root quorum o k response has a 4xx status code
func (*UpdateRootQuorumOK) IsCode ¶
func (o *UpdateRootQuorumOK) IsCode(code int) bool
IsCode returns true when this update root quorum o k response a status code equal to that given
func (*UpdateRootQuorumOK) IsRedirect ¶
func (o *UpdateRootQuorumOK) IsRedirect() bool
IsRedirect returns true when this update root quorum o k response has a 3xx status code
func (*UpdateRootQuorumOK) IsServerError ¶
func (o *UpdateRootQuorumOK) IsServerError() bool
IsServerError returns true when this update root quorum o k response has a 5xx status code
func (*UpdateRootQuorumOK) IsSuccess ¶
func (o *UpdateRootQuorumOK) IsSuccess() bool
IsSuccess returns true when this update root quorum o k response has a 2xx status code
func (*UpdateRootQuorumOK) String ¶
func (o *UpdateRootQuorumOK) String() string
type UpdateRootQuorumParams ¶
type UpdateRootQuorumParams struct { // Body. Body *models.UpdateRootQuorumRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateRootQuorumParams contains all the parameters to send to the API endpoint
for the update root quorum operation. Typically these are written to a http.Request.
func NewUpdateRootQuorumParams ¶
func NewUpdateRootQuorumParams() *UpdateRootQuorumParams
NewUpdateRootQuorumParams creates a new UpdateRootQuorumParams 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 NewUpdateRootQuorumParamsWithContext ¶
func NewUpdateRootQuorumParamsWithContext(ctx context.Context) *UpdateRootQuorumParams
NewUpdateRootQuorumParamsWithContext creates a new UpdateRootQuorumParams object with the ability to set a context for a request.
func NewUpdateRootQuorumParamsWithHTTPClient ¶
func NewUpdateRootQuorumParamsWithHTTPClient(client *http.Client) *UpdateRootQuorumParams
NewUpdateRootQuorumParamsWithHTTPClient creates a new UpdateRootQuorumParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateRootQuorumParamsWithTimeout ¶
func NewUpdateRootQuorumParamsWithTimeout(timeout time.Duration) *UpdateRootQuorumParams
NewUpdateRootQuorumParamsWithTimeout creates a new UpdateRootQuorumParams object with the ability to set a timeout on a request.
func (*UpdateRootQuorumParams) SetBody ¶
func (o *UpdateRootQuorumParams) SetBody(body *models.UpdateRootQuorumRequest)
SetBody adds the body to the update root quorum params
func (*UpdateRootQuorumParams) SetContext ¶
func (o *UpdateRootQuorumParams) SetContext(ctx context.Context)
SetContext adds the context to the update root quorum params
func (*UpdateRootQuorumParams) SetDefaults ¶
func (o *UpdateRootQuorumParams) SetDefaults()
SetDefaults hydrates default values in the update root quorum params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateRootQuorumParams) SetHTTPClient ¶
func (o *UpdateRootQuorumParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update root quorum params
func (*UpdateRootQuorumParams) SetTimeout ¶
func (o *UpdateRootQuorumParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update root quorum params
func (*UpdateRootQuorumParams) WithBody ¶
func (o *UpdateRootQuorumParams) WithBody(body *models.UpdateRootQuorumRequest) *UpdateRootQuorumParams
WithBody adds the body to the update root quorum params
func (*UpdateRootQuorumParams) WithContext ¶
func (o *UpdateRootQuorumParams) WithContext(ctx context.Context) *UpdateRootQuorumParams
WithContext adds the context to the update root quorum params
func (*UpdateRootQuorumParams) WithDefaults ¶
func (o *UpdateRootQuorumParams) WithDefaults() *UpdateRootQuorumParams
WithDefaults hydrates default values in the update root quorum params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateRootQuorumParams) WithHTTPClient ¶
func (o *UpdateRootQuorumParams) WithHTTPClient(client *http.Client) *UpdateRootQuorumParams
WithHTTPClient adds the HTTPClient to the update root quorum params
func (*UpdateRootQuorumParams) WithTimeout ¶
func (o *UpdateRootQuorumParams) WithTimeout(timeout time.Duration) *UpdateRootQuorumParams
WithTimeout adds the timeout to the update root quorum params
func (*UpdateRootQuorumParams) WriteToRequest ¶
func (o *UpdateRootQuorumParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateRootQuorumReader ¶
type UpdateRootQuorumReader struct {
// contains filtered or unexported fields
}
UpdateRootQuorumReader is a Reader for the UpdateRootQuorum structure.
func (*UpdateRootQuorumReader) ReadResponse ¶
func (o *UpdateRootQuorumReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.