organization

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: ISC 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 organization API

func (*Client) CreateOrganization

func (a *Client) CreateOrganization(params *CreateOrganizationParams, opts ...ClientOption) (*CreateOrganizationOK, error)

CreateOrganization create organization API

func (*Client) DeleteOrganization

func (a *Client) DeleteOrganization(params *DeleteOrganizationParams, opts ...ClientOption) (*DeleteOrganizationOK, error)

DeleteOrganization delete organization API

func (*Client) GetOrganizations

func (a *Client) GetOrganizations(params *GetOrganizationsParams, opts ...ClientOption) (*GetOrganizationsOK, error)

GetOrganizations get organizations API

func (*Client) GetOrganizationsConnection

func (a *Client) GetOrganizationsConnection(params *GetOrganizationsConnectionParams, opts ...ClientOption) (*GetOrganizationsConnectionOK, error)

GetOrganizationsConnection get organizations connection API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateOrganization

func (a *Client) UpdateOrganization(params *UpdateOrganizationParams, opts ...ClientOption) (*UpdateOrganizationOK, error)

UpdateOrganization update organization API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateOrganization(params *CreateOrganizationParams, opts ...ClientOption) (*CreateOrganizationOK, error)

	DeleteOrganization(params *DeleteOrganizationParams, opts ...ClientOption) (*DeleteOrganizationOK, error)

	GetOrganizations(params *GetOrganizationsParams, opts ...ClientOption) (*GetOrganizationsOK, error)

	GetOrganizationsConnection(params *GetOrganizationsConnectionParams, opts ...ClientOption) (*GetOrganizationsConnectionOK, error)

	UpdateOrganization(params *UpdateOrganizationParams, opts ...ClientOption) (*UpdateOrganizationOK, 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 organization API client.

type CreateOrganizationBadRequest

type CreateOrganizationBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
CreateOrganizationBadRequest describes a response with status code 400, with default header values.

Bad request

func NewCreateOrganizationBadRequest

func NewCreateOrganizationBadRequest() *CreateOrganizationBadRequest

NewCreateOrganizationBadRequest creates a CreateOrganizationBadRequest with default headers values

func (*CreateOrganizationBadRequest) Error

func (*CreateOrganizationBadRequest) GetPayload

type CreateOrganizationInternalServerError

type CreateOrganizationInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
CreateOrganizationInternalServerError describes a response with status code 500, with default header values.

Server error

func NewCreateOrganizationInternalServerError

func NewCreateOrganizationInternalServerError() *CreateOrganizationInternalServerError

NewCreateOrganizationInternalServerError creates a CreateOrganizationInternalServerError with default headers values

func (*CreateOrganizationInternalServerError) Error

func (*CreateOrganizationInternalServerError) GetPayload

type CreateOrganizationNotFound

type CreateOrganizationNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
CreateOrganizationNotFound describes a response with status code 404, with default header values.

Not found

func NewCreateOrganizationNotFound

func NewCreateOrganizationNotFound() *CreateOrganizationNotFound

NewCreateOrganizationNotFound creates a CreateOrganizationNotFound with default headers values

func (*CreateOrganizationNotFound) Error

func (*CreateOrganizationNotFound) GetPayload

func (o *CreateOrganizationNotFound) GetPayload() *models.ErrorBody

type CreateOrganizationOK

type CreateOrganizationOK struct {
	XTowerRequestID string

	Payload []*models.WithTaskOrganization
}
CreateOrganizationOK describes a response with status code 200, with default header values.

CreateOrganizationOK create organization o k

func NewCreateOrganizationOK

func NewCreateOrganizationOK() *CreateOrganizationOK

NewCreateOrganizationOK creates a CreateOrganizationOK with default headers values

func (*CreateOrganizationOK) Error

func (o *CreateOrganizationOK) Error() string

func (*CreateOrganizationOK) GetPayload

type CreateOrganizationParams

type CreateOrganizationParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody []*models.OrganizationCreationParams

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

CreateOrganizationParams contains all the parameters to send to the API endpoint

for the create organization operation.

Typically these are written to a http.Request.

func NewCreateOrganizationParams

func NewCreateOrganizationParams() *CreateOrganizationParams

NewCreateOrganizationParams creates a new CreateOrganizationParams 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 NewCreateOrganizationParamsWithContext

func NewCreateOrganizationParamsWithContext(ctx context.Context) *CreateOrganizationParams

NewCreateOrganizationParamsWithContext creates a new CreateOrganizationParams object with the ability to set a context for a request.

func NewCreateOrganizationParamsWithHTTPClient

func NewCreateOrganizationParamsWithHTTPClient(client *http.Client) *CreateOrganizationParams

NewCreateOrganizationParamsWithHTTPClient creates a new CreateOrganizationParams object with the ability to set a custom HTTPClient for a request.

func NewCreateOrganizationParamsWithTimeout

func NewCreateOrganizationParamsWithTimeout(timeout time.Duration) *CreateOrganizationParams

NewCreateOrganizationParamsWithTimeout creates a new CreateOrganizationParams object with the ability to set a timeout on a request.

func (*CreateOrganizationParams) SetContentLanguage

func (o *CreateOrganizationParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the create organization params

func (*CreateOrganizationParams) SetContext

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

SetContext adds the context to the create organization params

func (*CreateOrganizationParams) SetDefaults

func (o *CreateOrganizationParams) SetDefaults()

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

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

func (*CreateOrganizationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create organization params

func (*CreateOrganizationParams) SetRequestBody

func (o *CreateOrganizationParams) SetRequestBody(requestBody []*models.OrganizationCreationParams)

SetRequestBody adds the requestBody to the create organization params

func (*CreateOrganizationParams) SetTimeout

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

SetTimeout adds the timeout to the create organization params

func (*CreateOrganizationParams) WithContentLanguage

func (o *CreateOrganizationParams) WithContentLanguage(contentLanguage *string) *CreateOrganizationParams

WithContentLanguage adds the contentLanguage to the create organization params

func (*CreateOrganizationParams) WithContext

WithContext adds the context to the create organization params

func (*CreateOrganizationParams) WithDefaults

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

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

func (*CreateOrganizationParams) WithHTTPClient

func (o *CreateOrganizationParams) WithHTTPClient(client *http.Client) *CreateOrganizationParams

WithHTTPClient adds the HTTPClient to the create organization params

func (*CreateOrganizationParams) WithRequestBody

WithRequestBody adds the requestBody to the create organization params

func (*CreateOrganizationParams) WithTimeout

WithTimeout adds the timeout to the create organization params

func (*CreateOrganizationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateOrganizationReader

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

CreateOrganizationReader is a Reader for the CreateOrganization structure.

func (*CreateOrganizationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteOrganizationBadRequest

type DeleteOrganizationBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
DeleteOrganizationBadRequest describes a response with status code 400, with default header values.

Bad request

func NewDeleteOrganizationBadRequest

func NewDeleteOrganizationBadRequest() *DeleteOrganizationBadRequest

NewDeleteOrganizationBadRequest creates a DeleteOrganizationBadRequest with default headers values

func (*DeleteOrganizationBadRequest) Error

func (*DeleteOrganizationBadRequest) GetPayload

type DeleteOrganizationInternalServerError

type DeleteOrganizationInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
DeleteOrganizationInternalServerError describes a response with status code 500, with default header values.

Server error

func NewDeleteOrganizationInternalServerError

func NewDeleteOrganizationInternalServerError() *DeleteOrganizationInternalServerError

NewDeleteOrganizationInternalServerError creates a DeleteOrganizationInternalServerError with default headers values

func (*DeleteOrganizationInternalServerError) Error

func (*DeleteOrganizationInternalServerError) GetPayload

type DeleteOrganizationNotFound

type DeleteOrganizationNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
DeleteOrganizationNotFound describes a response with status code 404, with default header values.

Not found

func NewDeleteOrganizationNotFound

func NewDeleteOrganizationNotFound() *DeleteOrganizationNotFound

NewDeleteOrganizationNotFound creates a DeleteOrganizationNotFound with default headers values

func (*DeleteOrganizationNotFound) Error

func (*DeleteOrganizationNotFound) GetPayload

func (o *DeleteOrganizationNotFound) GetPayload() *models.ErrorBody

type DeleteOrganizationOK

type DeleteOrganizationOK struct {
	XTowerRequestID string

	Payload []*models.WithTaskDeleteOrganization
}
DeleteOrganizationOK describes a response with status code 200, with default header values.

DeleteOrganizationOK delete organization o k

func NewDeleteOrganizationOK

func NewDeleteOrganizationOK() *DeleteOrganizationOK

NewDeleteOrganizationOK creates a DeleteOrganizationOK with default headers values

func (*DeleteOrganizationOK) Error

func (o *DeleteOrganizationOK) Error() string

func (*DeleteOrganizationOK) GetPayload

type DeleteOrganizationParams

type DeleteOrganizationParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.OrganizationDeletionParams

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

DeleteOrganizationParams contains all the parameters to send to the API endpoint

for the delete organization operation.

Typically these are written to a http.Request.

func NewDeleteOrganizationParams

func NewDeleteOrganizationParams() *DeleteOrganizationParams

NewDeleteOrganizationParams creates a new DeleteOrganizationParams 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 NewDeleteOrganizationParamsWithContext

func NewDeleteOrganizationParamsWithContext(ctx context.Context) *DeleteOrganizationParams

NewDeleteOrganizationParamsWithContext creates a new DeleteOrganizationParams object with the ability to set a context for a request.

func NewDeleteOrganizationParamsWithHTTPClient

func NewDeleteOrganizationParamsWithHTTPClient(client *http.Client) *DeleteOrganizationParams

NewDeleteOrganizationParamsWithHTTPClient creates a new DeleteOrganizationParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteOrganizationParamsWithTimeout

func NewDeleteOrganizationParamsWithTimeout(timeout time.Duration) *DeleteOrganizationParams

NewDeleteOrganizationParamsWithTimeout creates a new DeleteOrganizationParams object with the ability to set a timeout on a request.

func (*DeleteOrganizationParams) SetContentLanguage

func (o *DeleteOrganizationParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the delete organization params

func (*DeleteOrganizationParams) SetContext

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

SetContext adds the context to the delete organization params

func (*DeleteOrganizationParams) SetDefaults

func (o *DeleteOrganizationParams) SetDefaults()

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

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

func (*DeleteOrganizationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete organization params

func (*DeleteOrganizationParams) SetRequestBody

func (o *DeleteOrganizationParams) SetRequestBody(requestBody *models.OrganizationDeletionParams)

SetRequestBody adds the requestBody to the delete organization params

func (*DeleteOrganizationParams) SetTimeout

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

SetTimeout adds the timeout to the delete organization params

func (*DeleteOrganizationParams) WithContentLanguage

func (o *DeleteOrganizationParams) WithContentLanguage(contentLanguage *string) *DeleteOrganizationParams

WithContentLanguage adds the contentLanguage to the delete organization params

func (*DeleteOrganizationParams) WithContext

WithContext adds the context to the delete organization params

func (*DeleteOrganizationParams) WithDefaults

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

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

func (*DeleteOrganizationParams) WithHTTPClient

func (o *DeleteOrganizationParams) WithHTTPClient(client *http.Client) *DeleteOrganizationParams

WithHTTPClient adds the HTTPClient to the delete organization params

func (*DeleteOrganizationParams) WithRequestBody

WithRequestBody adds the requestBody to the delete organization params

func (*DeleteOrganizationParams) WithTimeout

WithTimeout adds the timeout to the delete organization params

func (*DeleteOrganizationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteOrganizationReader

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

DeleteOrganizationReader is a Reader for the DeleteOrganization structure.

func (*DeleteOrganizationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetOrganizationsBadRequest

type GetOrganizationsBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetOrganizationsBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetOrganizationsBadRequest

func NewGetOrganizationsBadRequest() *GetOrganizationsBadRequest

NewGetOrganizationsBadRequest creates a GetOrganizationsBadRequest with default headers values

func (*GetOrganizationsBadRequest) Error

func (*GetOrganizationsBadRequest) GetPayload

func (o *GetOrganizationsBadRequest) GetPayload() *models.ErrorBody

type GetOrganizationsConnectionBadRequest

type GetOrganizationsConnectionBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetOrganizationsConnectionBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetOrganizationsConnectionBadRequest

func NewGetOrganizationsConnectionBadRequest() *GetOrganizationsConnectionBadRequest

NewGetOrganizationsConnectionBadRequest creates a GetOrganizationsConnectionBadRequest with default headers values

func (*GetOrganizationsConnectionBadRequest) Error

func (*GetOrganizationsConnectionBadRequest) GetPayload

type GetOrganizationsConnectionInternalServerError

type GetOrganizationsConnectionInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetOrganizationsConnectionInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetOrganizationsConnectionInternalServerError

func NewGetOrganizationsConnectionInternalServerError() *GetOrganizationsConnectionInternalServerError

NewGetOrganizationsConnectionInternalServerError creates a GetOrganizationsConnectionInternalServerError with default headers values

func (*GetOrganizationsConnectionInternalServerError) Error

func (*GetOrganizationsConnectionInternalServerError) GetPayload

type GetOrganizationsConnectionNotFound

type GetOrganizationsConnectionNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetOrganizationsConnectionNotFound describes a response with status code 404, with default header values.

Not found

func NewGetOrganizationsConnectionNotFound

func NewGetOrganizationsConnectionNotFound() *GetOrganizationsConnectionNotFound

NewGetOrganizationsConnectionNotFound creates a GetOrganizationsConnectionNotFound with default headers values

func (*GetOrganizationsConnectionNotFound) Error

func (*GetOrganizationsConnectionNotFound) GetPayload

type GetOrganizationsConnectionOK

type GetOrganizationsConnectionOK struct {
	XTowerRequestID string

	Payload *models.OrganizationConnection
}
GetOrganizationsConnectionOK describes a response with status code 200, with default header values.

GetOrganizationsConnectionOK get organizations connection o k

func NewGetOrganizationsConnectionOK

func NewGetOrganizationsConnectionOK() *GetOrganizationsConnectionOK

NewGetOrganizationsConnectionOK creates a GetOrganizationsConnectionOK with default headers values

func (*GetOrganizationsConnectionOK) Error

func (*GetOrganizationsConnectionOK) GetPayload

type GetOrganizationsConnectionParams

type GetOrganizationsConnectionParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetOrganizationsConnectionRequestBody

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

GetOrganizationsConnectionParams contains all the parameters to send to the API endpoint

for the get organizations connection operation.

Typically these are written to a http.Request.

func NewGetOrganizationsConnectionParams

func NewGetOrganizationsConnectionParams() *GetOrganizationsConnectionParams

NewGetOrganizationsConnectionParams creates a new GetOrganizationsConnectionParams 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 NewGetOrganizationsConnectionParamsWithContext

func NewGetOrganizationsConnectionParamsWithContext(ctx context.Context) *GetOrganizationsConnectionParams

NewGetOrganizationsConnectionParamsWithContext creates a new GetOrganizationsConnectionParams object with the ability to set a context for a request.

func NewGetOrganizationsConnectionParamsWithHTTPClient

func NewGetOrganizationsConnectionParamsWithHTTPClient(client *http.Client) *GetOrganizationsConnectionParams

NewGetOrganizationsConnectionParamsWithHTTPClient creates a new GetOrganizationsConnectionParams object with the ability to set a custom HTTPClient for a request.

func NewGetOrganizationsConnectionParamsWithTimeout

func NewGetOrganizationsConnectionParamsWithTimeout(timeout time.Duration) *GetOrganizationsConnectionParams

NewGetOrganizationsConnectionParamsWithTimeout creates a new GetOrganizationsConnectionParams object with the ability to set a timeout on a request.

func (*GetOrganizationsConnectionParams) SetContentLanguage

func (o *GetOrganizationsConnectionParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get organizations connection params

func (*GetOrganizationsConnectionParams) SetContext

SetContext adds the context to the get organizations connection params

func (*GetOrganizationsConnectionParams) SetDefaults

func (o *GetOrganizationsConnectionParams) SetDefaults()

SetDefaults hydrates default values in the get organizations connection params (not the query body).

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

func (*GetOrganizationsConnectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get organizations connection params

func (*GetOrganizationsConnectionParams) SetRequestBody

SetRequestBody adds the requestBody to the get organizations connection params

func (*GetOrganizationsConnectionParams) SetTimeout

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

SetTimeout adds the timeout to the get organizations connection params

func (*GetOrganizationsConnectionParams) WithContentLanguage

func (o *GetOrganizationsConnectionParams) WithContentLanguage(contentLanguage *string) *GetOrganizationsConnectionParams

WithContentLanguage adds the contentLanguage to the get organizations connection params

func (*GetOrganizationsConnectionParams) WithContext

WithContext adds the context to the get organizations connection params

func (*GetOrganizationsConnectionParams) WithDefaults

WithDefaults hydrates default values in the get organizations connection params (not the query body).

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

func (*GetOrganizationsConnectionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get organizations connection params

func (*GetOrganizationsConnectionParams) WithRequestBody

WithRequestBody adds the requestBody to the get organizations connection params

func (*GetOrganizationsConnectionParams) WithTimeout

WithTimeout adds the timeout to the get organizations connection params

func (*GetOrganizationsConnectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetOrganizationsConnectionReader

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

GetOrganizationsConnectionReader is a Reader for the GetOrganizationsConnection structure.

func (*GetOrganizationsConnectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetOrganizationsInternalServerError

type GetOrganizationsInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetOrganizationsInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetOrganizationsInternalServerError

func NewGetOrganizationsInternalServerError() *GetOrganizationsInternalServerError

NewGetOrganizationsInternalServerError creates a GetOrganizationsInternalServerError with default headers values

func (*GetOrganizationsInternalServerError) Error

func (*GetOrganizationsInternalServerError) GetPayload

type GetOrganizationsNotFound

type GetOrganizationsNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetOrganizationsNotFound describes a response with status code 404, with default header values.

Not found

func NewGetOrganizationsNotFound

func NewGetOrganizationsNotFound() *GetOrganizationsNotFound

NewGetOrganizationsNotFound creates a GetOrganizationsNotFound with default headers values

func (*GetOrganizationsNotFound) Error

func (o *GetOrganizationsNotFound) Error() string

func (*GetOrganizationsNotFound) GetPayload

func (o *GetOrganizationsNotFound) GetPayload() *models.ErrorBody

type GetOrganizationsOK

type GetOrganizationsOK struct {
	XTowerRequestID string

	Payload []*models.Organization
}
GetOrganizationsOK describes a response with status code 200, with default header values.

GetOrganizationsOK get organizations o k

func NewGetOrganizationsOK

func NewGetOrganizationsOK() *GetOrganizationsOK

NewGetOrganizationsOK creates a GetOrganizationsOK with default headers values

func (*GetOrganizationsOK) Error

func (o *GetOrganizationsOK) Error() string

func (*GetOrganizationsOK) GetPayload

func (o *GetOrganizationsOK) GetPayload() []*models.Organization

type GetOrganizationsParams

type GetOrganizationsParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetOrganizationsRequestBody

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

GetOrganizationsParams contains all the parameters to send to the API endpoint

for the get organizations operation.

Typically these are written to a http.Request.

func NewGetOrganizationsParams

func NewGetOrganizationsParams() *GetOrganizationsParams

NewGetOrganizationsParams creates a new GetOrganizationsParams 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 NewGetOrganizationsParamsWithContext

func NewGetOrganizationsParamsWithContext(ctx context.Context) *GetOrganizationsParams

NewGetOrganizationsParamsWithContext creates a new GetOrganizationsParams object with the ability to set a context for a request.

func NewGetOrganizationsParamsWithHTTPClient

func NewGetOrganizationsParamsWithHTTPClient(client *http.Client) *GetOrganizationsParams

NewGetOrganizationsParamsWithHTTPClient creates a new GetOrganizationsParams object with the ability to set a custom HTTPClient for a request.

func NewGetOrganizationsParamsWithTimeout

func NewGetOrganizationsParamsWithTimeout(timeout time.Duration) *GetOrganizationsParams

NewGetOrganizationsParamsWithTimeout creates a new GetOrganizationsParams object with the ability to set a timeout on a request.

func (*GetOrganizationsParams) SetContentLanguage

func (o *GetOrganizationsParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get organizations params

func (*GetOrganizationsParams) SetContext

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

SetContext adds the context to the get organizations params

func (*GetOrganizationsParams) SetDefaults

func (o *GetOrganizationsParams) SetDefaults()

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

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

func (*GetOrganizationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get organizations params

func (*GetOrganizationsParams) SetRequestBody

func (o *GetOrganizationsParams) SetRequestBody(requestBody *models.GetOrganizationsRequestBody)

SetRequestBody adds the requestBody to the get organizations params

func (*GetOrganizationsParams) SetTimeout

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

SetTimeout adds the timeout to the get organizations params

func (*GetOrganizationsParams) WithContentLanguage

func (o *GetOrganizationsParams) WithContentLanguage(contentLanguage *string) *GetOrganizationsParams

WithContentLanguage adds the contentLanguage to the get organizations params

func (*GetOrganizationsParams) WithContext

WithContext adds the context to the get organizations params

func (*GetOrganizationsParams) WithDefaults

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

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

func (*GetOrganizationsParams) WithHTTPClient

func (o *GetOrganizationsParams) WithHTTPClient(client *http.Client) *GetOrganizationsParams

WithHTTPClient adds the HTTPClient to the get organizations params

func (*GetOrganizationsParams) WithRequestBody

WithRequestBody adds the requestBody to the get organizations params

func (*GetOrganizationsParams) WithTimeout

WithTimeout adds the timeout to the get organizations params

func (*GetOrganizationsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetOrganizationsReader

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

GetOrganizationsReader is a Reader for the GetOrganizations structure.

func (*GetOrganizationsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateOrganizationBadRequest

type UpdateOrganizationBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
UpdateOrganizationBadRequest describes a response with status code 400, with default header values.

Bad request

func NewUpdateOrganizationBadRequest

func NewUpdateOrganizationBadRequest() *UpdateOrganizationBadRequest

NewUpdateOrganizationBadRequest creates a UpdateOrganizationBadRequest with default headers values

func (*UpdateOrganizationBadRequest) Error

func (*UpdateOrganizationBadRequest) GetPayload

type UpdateOrganizationInternalServerError

type UpdateOrganizationInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
UpdateOrganizationInternalServerError describes a response with status code 500, with default header values.

Server error

func NewUpdateOrganizationInternalServerError

func NewUpdateOrganizationInternalServerError() *UpdateOrganizationInternalServerError

NewUpdateOrganizationInternalServerError creates a UpdateOrganizationInternalServerError with default headers values

func (*UpdateOrganizationInternalServerError) Error

func (*UpdateOrganizationInternalServerError) GetPayload

type UpdateOrganizationNotFound

type UpdateOrganizationNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
UpdateOrganizationNotFound describes a response with status code 404, with default header values.

Not found

func NewUpdateOrganizationNotFound

func NewUpdateOrganizationNotFound() *UpdateOrganizationNotFound

NewUpdateOrganizationNotFound creates a UpdateOrganizationNotFound with default headers values

func (*UpdateOrganizationNotFound) Error

func (*UpdateOrganizationNotFound) GetPayload

func (o *UpdateOrganizationNotFound) GetPayload() *models.ErrorBody

type UpdateOrganizationOK

type UpdateOrganizationOK struct {
	XTowerRequestID string

	Payload []*models.WithTaskOrganization
}
UpdateOrganizationOK describes a response with status code 200, with default header values.

UpdateOrganizationOK update organization o k

func NewUpdateOrganizationOK

func NewUpdateOrganizationOK() *UpdateOrganizationOK

NewUpdateOrganizationOK creates a UpdateOrganizationOK with default headers values

func (*UpdateOrganizationOK) Error

func (o *UpdateOrganizationOK) Error() string

func (*UpdateOrganizationOK) GetPayload

type UpdateOrganizationParams

type UpdateOrganizationParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.OrganizationUpdationParams

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

UpdateOrganizationParams contains all the parameters to send to the API endpoint

for the update organization operation.

Typically these are written to a http.Request.

func NewUpdateOrganizationParams

func NewUpdateOrganizationParams() *UpdateOrganizationParams

NewUpdateOrganizationParams creates a new UpdateOrganizationParams 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 NewUpdateOrganizationParamsWithContext

func NewUpdateOrganizationParamsWithContext(ctx context.Context) *UpdateOrganizationParams

NewUpdateOrganizationParamsWithContext creates a new UpdateOrganizationParams object with the ability to set a context for a request.

func NewUpdateOrganizationParamsWithHTTPClient

func NewUpdateOrganizationParamsWithHTTPClient(client *http.Client) *UpdateOrganizationParams

NewUpdateOrganizationParamsWithHTTPClient creates a new UpdateOrganizationParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateOrganizationParamsWithTimeout

func NewUpdateOrganizationParamsWithTimeout(timeout time.Duration) *UpdateOrganizationParams

NewUpdateOrganizationParamsWithTimeout creates a new UpdateOrganizationParams object with the ability to set a timeout on a request.

func (*UpdateOrganizationParams) SetContentLanguage

func (o *UpdateOrganizationParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the update organization params

func (*UpdateOrganizationParams) SetContext

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

SetContext adds the context to the update organization params

func (*UpdateOrganizationParams) SetDefaults

func (o *UpdateOrganizationParams) SetDefaults()

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

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

func (*UpdateOrganizationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update organization params

func (*UpdateOrganizationParams) SetRequestBody

func (o *UpdateOrganizationParams) SetRequestBody(requestBody *models.OrganizationUpdationParams)

SetRequestBody adds the requestBody to the update organization params

func (*UpdateOrganizationParams) SetTimeout

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

SetTimeout adds the timeout to the update organization params

func (*UpdateOrganizationParams) WithContentLanguage

func (o *UpdateOrganizationParams) WithContentLanguage(contentLanguage *string) *UpdateOrganizationParams

WithContentLanguage adds the contentLanguage to the update organization params

func (*UpdateOrganizationParams) WithContext

WithContext adds the context to the update organization params

func (*UpdateOrganizationParams) WithDefaults

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

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

func (*UpdateOrganizationParams) WithHTTPClient

func (o *UpdateOrganizationParams) WithHTTPClient(client *http.Client) *UpdateOrganizationParams

WithHTTPClient adds the HTTPClient to the update organization params

func (*UpdateOrganizationParams) WithRequestBody

WithRequestBody adds the requestBody to the update organization params

func (*UpdateOrganizationParams) WithTimeout

WithTimeout adds the timeout to the update organization params

func (*UpdateOrganizationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateOrganizationReader

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

UpdateOrganizationReader is a Reader for the UpdateOrganization structure.

func (*UpdateOrganizationReader) ReadResponse

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