organizations

package
v0.0.0-...-99157af Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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) DeleteSubOrganization

func (a *Client) DeleteSubOrganization(params *DeleteSubOrganizationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSubOrganizationOK, error)

DeleteSubOrganization deletes sub organization

Deletes a sub organization

func (*Client) GetOrganizationConfigs

func (a *Client) GetOrganizationConfigs(params *GetOrganizationConfigsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOrganizationConfigsOK, error)

GetOrganizationConfigs gets configs

Get quorum settings and features for an 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)

	DeleteSubOrganization(params *DeleteSubOrganizationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSubOrganizationOK, error)

	GetOrganizationConfigs(params *GetOrganizationConfigsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOrganizationConfigsOK, 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 (*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

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

WithBody adds the body to the create sub organization params

func (*CreateSubOrganizationParams) WithContext

WithContext adds the context to the create sub organization params

func (*CreateSubOrganizationParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the create sub organization params

func (*CreateSubOrganizationParams) WithTimeout

WithTimeout adds the timeout to the create sub organization params

func (*CreateSubOrganizationParams) WriteToRequest

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 DeleteSubOrganizationOK

type DeleteSubOrganizationOK struct {
	Payload *models.ActivityResponse
}

DeleteSubOrganizationOK describes a response with status code 200, with default header values.

A successful response.

func NewDeleteSubOrganizationOK

func NewDeleteSubOrganizationOK() *DeleteSubOrganizationOK

NewDeleteSubOrganizationOK creates a DeleteSubOrganizationOK with default headers values

func (*DeleteSubOrganizationOK) Code

func (o *DeleteSubOrganizationOK) Code() int

Code gets the status code for the delete sub organization o k response

func (*DeleteSubOrganizationOK) Error

func (o *DeleteSubOrganizationOK) Error() string

func (*DeleteSubOrganizationOK) GetPayload

func (*DeleteSubOrganizationOK) IsClientError

func (o *DeleteSubOrganizationOK) IsClientError() bool

IsClientError returns true when this delete sub organization o k response has a 4xx status code

func (*DeleteSubOrganizationOK) IsCode

func (o *DeleteSubOrganizationOK) IsCode(code int) bool

IsCode returns true when this delete sub organization o k response a status code equal to that given

func (*DeleteSubOrganizationOK) IsRedirect

func (o *DeleteSubOrganizationOK) IsRedirect() bool

IsRedirect returns true when this delete sub organization o k response has a 3xx status code

func (*DeleteSubOrganizationOK) IsServerError

func (o *DeleteSubOrganizationOK) IsServerError() bool

IsServerError returns true when this delete sub organization o k response has a 5xx status code

func (*DeleteSubOrganizationOK) IsSuccess

func (o *DeleteSubOrganizationOK) IsSuccess() bool

IsSuccess returns true when this delete sub organization o k response has a 2xx status code

func (*DeleteSubOrganizationOK) String

func (o *DeleteSubOrganizationOK) String() string

type DeleteSubOrganizationParams

type DeleteSubOrganizationParams struct {

	// Body.
	Body *models.DeleteSubOrganizationRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteSubOrganizationParams contains all the parameters to send to the API endpoint

for the delete sub organization operation.

Typically these are written to a http.Request.

func NewDeleteSubOrganizationParams

func NewDeleteSubOrganizationParams() *DeleteSubOrganizationParams

NewDeleteSubOrganizationParams creates a new DeleteSubOrganizationParams 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 NewDeleteSubOrganizationParamsWithContext

func NewDeleteSubOrganizationParamsWithContext(ctx context.Context) *DeleteSubOrganizationParams

NewDeleteSubOrganizationParamsWithContext creates a new DeleteSubOrganizationParams object with the ability to set a context for a request.

func NewDeleteSubOrganizationParamsWithHTTPClient

func NewDeleteSubOrganizationParamsWithHTTPClient(client *http.Client) *DeleteSubOrganizationParams

NewDeleteSubOrganizationParamsWithHTTPClient creates a new DeleteSubOrganizationParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteSubOrganizationParamsWithTimeout

func NewDeleteSubOrganizationParamsWithTimeout(timeout time.Duration) *DeleteSubOrganizationParams

NewDeleteSubOrganizationParamsWithTimeout creates a new DeleteSubOrganizationParams object with the ability to set a timeout on a request.

func (*DeleteSubOrganizationParams) SetBody

SetBody adds the body to the delete sub organization params

func (*DeleteSubOrganizationParams) SetContext

func (o *DeleteSubOrganizationParams) SetContext(ctx context.Context)

SetContext adds the context to the delete sub organization params

func (*DeleteSubOrganizationParams) SetDefaults

func (o *DeleteSubOrganizationParams) SetDefaults()

SetDefaults hydrates default values in the delete sub organization params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteSubOrganizationParams) SetHTTPClient

func (o *DeleteSubOrganizationParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete sub organization params

func (*DeleteSubOrganizationParams) SetTimeout

func (o *DeleteSubOrganizationParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete sub organization params

func (*DeleteSubOrganizationParams) WithBody

WithBody adds the body to the delete sub organization params

func (*DeleteSubOrganizationParams) WithContext

WithContext adds the context to the delete sub organization params

func (*DeleteSubOrganizationParams) WithDefaults

WithDefaults hydrates default values in the delete sub organization params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteSubOrganizationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete sub organization params

func (*DeleteSubOrganizationParams) WithTimeout

WithTimeout adds the timeout to the delete sub organization params

func (*DeleteSubOrganizationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteSubOrganizationReader

type DeleteSubOrganizationReader struct {
	// contains filtered or unexported fields
}

DeleteSubOrganizationReader is a Reader for the DeleteSubOrganization structure.

func (*DeleteSubOrganizationReader) ReadResponse

func (o *DeleteSubOrganizationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetOrganizationConfigsOK

type GetOrganizationConfigsOK struct {
	Payload *models.GetOrganizationConfigsResponse
}

GetOrganizationConfigsOK describes a response with status code 200, with default header values.

A successful response.

func NewGetOrganizationConfigsOK

func NewGetOrganizationConfigsOK() *GetOrganizationConfigsOK

NewGetOrganizationConfigsOK creates a GetOrganizationConfigsOK with default headers values

func (*GetOrganizationConfigsOK) Code

func (o *GetOrganizationConfigsOK) Code() int

Code gets the status code for the get organization configs o k response

func (*GetOrganizationConfigsOK) Error

func (o *GetOrganizationConfigsOK) Error() string

func (*GetOrganizationConfigsOK) GetPayload

func (*GetOrganizationConfigsOK) IsClientError

func (o *GetOrganizationConfigsOK) IsClientError() bool

IsClientError returns true when this get organization configs o k response has a 4xx status code

func (*GetOrganizationConfigsOK) IsCode

func (o *GetOrganizationConfigsOK) IsCode(code int) bool

IsCode returns true when this get organization configs o k response a status code equal to that given

func (*GetOrganizationConfigsOK) IsRedirect

func (o *GetOrganizationConfigsOK) IsRedirect() bool

IsRedirect returns true when this get organization configs o k response has a 3xx status code

func (*GetOrganizationConfigsOK) IsServerError

func (o *GetOrganizationConfigsOK) IsServerError() bool

IsServerError returns true when this get organization configs o k response has a 5xx status code

func (*GetOrganizationConfigsOK) IsSuccess

func (o *GetOrganizationConfigsOK) IsSuccess() bool

IsSuccess returns true when this get organization configs o k response has a 2xx status code

func (*GetOrganizationConfigsOK) String

func (o *GetOrganizationConfigsOK) String() string

type GetOrganizationConfigsParams

type GetOrganizationConfigsParams struct {

	// Body.
	Body *models.GetOrganizationConfigsRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetOrganizationConfigsParams contains all the parameters to send to the API endpoint

for the get organization configs operation.

Typically these are written to a http.Request.

func NewGetOrganizationConfigsParams

func NewGetOrganizationConfigsParams() *GetOrganizationConfigsParams

NewGetOrganizationConfigsParams creates a new GetOrganizationConfigsParams 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 NewGetOrganizationConfigsParamsWithContext

func NewGetOrganizationConfigsParamsWithContext(ctx context.Context) *GetOrganizationConfigsParams

NewGetOrganizationConfigsParamsWithContext creates a new GetOrganizationConfigsParams object with the ability to set a context for a request.

func NewGetOrganizationConfigsParamsWithHTTPClient

func NewGetOrganizationConfigsParamsWithHTTPClient(client *http.Client) *GetOrganizationConfigsParams

NewGetOrganizationConfigsParamsWithHTTPClient creates a new GetOrganizationConfigsParams object with the ability to set a custom HTTPClient for a request.

func NewGetOrganizationConfigsParamsWithTimeout

func NewGetOrganizationConfigsParamsWithTimeout(timeout time.Duration) *GetOrganizationConfigsParams

NewGetOrganizationConfigsParamsWithTimeout creates a new GetOrganizationConfigsParams object with the ability to set a timeout on a request.

func (*GetOrganizationConfigsParams) SetBody

SetBody adds the body to the get organization configs params

func (*GetOrganizationConfigsParams) SetContext

func (o *GetOrganizationConfigsParams) SetContext(ctx context.Context)

SetContext adds the context to the get organization configs params

func (*GetOrganizationConfigsParams) SetDefaults

func (o *GetOrganizationConfigsParams) SetDefaults()

SetDefaults hydrates default values in the get organization configs params (not the query body).

All values with no default are reset to their zero value.

func (*GetOrganizationConfigsParams) SetHTTPClient

func (o *GetOrganizationConfigsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get organization configs params

func (*GetOrganizationConfigsParams) SetTimeout

func (o *GetOrganizationConfigsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get organization configs params

func (*GetOrganizationConfigsParams) WithBody

WithBody adds the body to the get organization configs params

func (*GetOrganizationConfigsParams) WithContext

WithContext adds the context to the get organization configs params

func (*GetOrganizationConfigsParams) WithDefaults

WithDefaults hydrates default values in the get organization configs params (not the query body).

All values with no default are reset to their zero value.

func (*GetOrganizationConfigsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get organization configs params

func (*GetOrganizationConfigsParams) WithTimeout

WithTimeout adds the timeout to the get organization configs params

func (*GetOrganizationConfigsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetOrganizationConfigsReader

type GetOrganizationConfigsReader struct {
	// contains filtered or unexported fields
}

GetOrganizationConfigsReader is a Reader for the GetOrganizationConfigs structure.

func (*GetOrganizationConfigsReader) ReadResponse

func (o *GetOrganizationConfigsReader) 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

WithBody adds the body to the get sub org ids params

func (*GetSubOrgIdsParams) WithContext

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

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

WithBody adds the body to the update root quorum params

func (*UpdateRootQuorumParams) WithContext

WithContext adds the context to the update root quorum params

func (*UpdateRootQuorumParams) WithDefaults

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

WithTimeout adds the timeout to the update root quorum params

func (*UpdateRootQuorumParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL