organizations

package
v0.0.0-...-4ac4f36 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 License: Apache-2.0 Imports: 11 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) GetOrganizationByID

func (a *Client) GetOrganizationByID(params *GetOrganizationByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOrganizationByIDOK, error)

GetOrganizationByID get organization by Id API

func (*Client) GetOrganizationSalesContact

func (a *Client) GetOrganizationSalesContact(params *GetOrganizationSalesContactParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOrganizationSalesContactOK, error)

GetOrganizationSalesContact get organization sales contact API

func (*Client) GetOrganizations

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

GetOrganizations get organizations API

func (*Client) HasAccessAsync

func (a *Client) HasAccessAsync(params *HasAccessAsyncParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*HasAccessAsyncOK, error)

HasAccessAsync has access async API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetOrganizationByID(params *GetOrganizationByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOrganizationByIDOK, error)

	GetOrganizationSalesContact(params *GetOrganizationSalesContactParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOrganizationSalesContactOK, error)

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

	HasAccessAsync(params *HasAccessAsyncParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*HasAccessAsyncOK, 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 GetOrganizationByIDOK

type GetOrganizationByIDOK struct {
	Payload *models.Organization
}
GetOrganizationByIDOK describes a response with status code 200, with default header values.

Success

func NewGetOrganizationByIDOK

func NewGetOrganizationByIDOK() *GetOrganizationByIDOK

NewGetOrganizationByIDOK creates a GetOrganizationByIDOK with default headers values

func (*GetOrganizationByIDOK) Error

func (o *GetOrganizationByIDOK) Error() string

func (*GetOrganizationByIDOK) GetPayload

func (o *GetOrganizationByIDOK) GetPayload() *models.Organization

type GetOrganizationByIDParams

type GetOrganizationByIDParams struct {

	// ID.
	//
	// Format: int32
	ID int32

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

GetOrganizationByIDParams contains all the parameters to send to the API endpoint

for the get organization by Id operation.

Typically these are written to a http.Request.

func NewGetOrganizationByIDParams

func NewGetOrganizationByIDParams() *GetOrganizationByIDParams

NewGetOrganizationByIDParams creates a new GetOrganizationByIDParams 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 NewGetOrganizationByIDParamsWithContext

func NewGetOrganizationByIDParamsWithContext(ctx context.Context) *GetOrganizationByIDParams

NewGetOrganizationByIDParamsWithContext creates a new GetOrganizationByIDParams object with the ability to set a context for a request.

func NewGetOrganizationByIDParamsWithHTTPClient

func NewGetOrganizationByIDParamsWithHTTPClient(client *http.Client) *GetOrganizationByIDParams

NewGetOrganizationByIDParamsWithHTTPClient creates a new GetOrganizationByIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetOrganizationByIDParamsWithTimeout

func NewGetOrganizationByIDParamsWithTimeout(timeout time.Duration) *GetOrganizationByIDParams

NewGetOrganizationByIDParamsWithTimeout creates a new GetOrganizationByIDParams object with the ability to set a timeout on a request.

func (*GetOrganizationByIDParams) SetContext

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

SetContext adds the context to the get organization by Id params

func (*GetOrganizationByIDParams) SetDefaults

func (o *GetOrganizationByIDParams) SetDefaults()

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

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

func (*GetOrganizationByIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get organization by Id params

func (*GetOrganizationByIDParams) SetID

func (o *GetOrganizationByIDParams) SetID(id int32)

SetID adds the id to the get organization by Id params

func (*GetOrganizationByIDParams) SetTimeout

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

SetTimeout adds the timeout to the get organization by Id params

func (*GetOrganizationByIDParams) WithContext

WithContext adds the context to the get organization by Id params

func (*GetOrganizationByIDParams) WithDefaults

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

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

func (*GetOrganizationByIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get organization by Id params

func (*GetOrganizationByIDParams) WithID

WithID adds the id to the get organization by Id params

func (*GetOrganizationByIDParams) WithTimeout

WithTimeout adds the timeout to the get organization by Id params

func (*GetOrganizationByIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetOrganizationByIDReader

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

GetOrganizationByIDReader is a Reader for the GetOrganizationByID structure.

func (*GetOrganizationByIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetOrganizationSalesContactOK

type GetOrganizationSalesContactOK struct {
	Payload *models.OrganizationSalesContact
}
GetOrganizationSalesContactOK describes a response with status code 200, with default header values.

Success

func NewGetOrganizationSalesContactOK

func NewGetOrganizationSalesContactOK() *GetOrganizationSalesContactOK

NewGetOrganizationSalesContactOK creates a GetOrganizationSalesContactOK with default headers values

func (*GetOrganizationSalesContactOK) Error

func (*GetOrganizationSalesContactOK) GetPayload

type GetOrganizationSalesContactParams

type GetOrganizationSalesContactParams struct {

	// OrganizationID.
	//
	// Format: int32
	OrganizationID int32

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

GetOrganizationSalesContactParams contains all the parameters to send to the API endpoint

for the get organization sales contact operation.

Typically these are written to a http.Request.

func NewGetOrganizationSalesContactParams

func NewGetOrganizationSalesContactParams() *GetOrganizationSalesContactParams

NewGetOrganizationSalesContactParams creates a new GetOrganizationSalesContactParams 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 NewGetOrganizationSalesContactParamsWithContext

func NewGetOrganizationSalesContactParamsWithContext(ctx context.Context) *GetOrganizationSalesContactParams

NewGetOrganizationSalesContactParamsWithContext creates a new GetOrganizationSalesContactParams object with the ability to set a context for a request.

func NewGetOrganizationSalesContactParamsWithHTTPClient

func NewGetOrganizationSalesContactParamsWithHTTPClient(client *http.Client) *GetOrganizationSalesContactParams

NewGetOrganizationSalesContactParamsWithHTTPClient creates a new GetOrganizationSalesContactParams object with the ability to set a custom HTTPClient for a request.

func NewGetOrganizationSalesContactParamsWithTimeout

func NewGetOrganizationSalesContactParamsWithTimeout(timeout time.Duration) *GetOrganizationSalesContactParams

NewGetOrganizationSalesContactParamsWithTimeout creates a new GetOrganizationSalesContactParams object with the ability to set a timeout on a request.

func (*GetOrganizationSalesContactParams) SetContext

SetContext adds the context to the get organization sales contact params

func (*GetOrganizationSalesContactParams) SetDefaults

func (o *GetOrganizationSalesContactParams) SetDefaults()

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

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

func (*GetOrganizationSalesContactParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get organization sales contact params

func (*GetOrganizationSalesContactParams) SetOrganizationID

func (o *GetOrganizationSalesContactParams) SetOrganizationID(organizationID int32)

SetOrganizationID adds the organizationId to the get organization sales contact params

func (*GetOrganizationSalesContactParams) SetTimeout

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

SetTimeout adds the timeout to the get organization sales contact params

func (*GetOrganizationSalesContactParams) WithContext

WithContext adds the context to the get organization sales contact params

func (*GetOrganizationSalesContactParams) WithDefaults

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

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

func (*GetOrganizationSalesContactParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get organization sales contact params

func (*GetOrganizationSalesContactParams) WithOrganizationID

func (o *GetOrganizationSalesContactParams) WithOrganizationID(organizationID int32) *GetOrganizationSalesContactParams

WithOrganizationID adds the organizationID to the get organization sales contact params

func (*GetOrganizationSalesContactParams) WithTimeout

WithTimeout adds the timeout to the get organization sales contact params

func (*GetOrganizationSalesContactParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetOrganizationSalesContactReader

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

GetOrganizationSalesContactReader is a Reader for the GetOrganizationSalesContact structure.

func (*GetOrganizationSalesContactReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetOrganizationsOK

type GetOrganizationsOK struct {
	Payload *models.APICollectionOfOrganization
}
GetOrganizationsOK describes a response with status code 200, with default header values.

Success

func NewGetOrganizationsOK

func NewGetOrganizationsOK() *GetOrganizationsOK

NewGetOrganizationsOK creates a GetOrganizationsOK with default headers values

func (*GetOrganizationsOK) Error

func (o *GetOrganizationsOK) Error() string

func (*GetOrganizationsOK) GetPayload

type GetOrganizationsParams

type GetOrganizationsParams struct {

	// Page.
	//
	// Format: int32
	Page *int32

	// PageSize.
	//
	// Format: int32
	PageSize *int32

	// Search.
	Search *string

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

func (o *GetOrganizationsParams) SetPage(page *int32)

SetPage adds the page to the get organizations params

func (*GetOrganizationsParams) SetPageSize

func (o *GetOrganizationsParams) SetPageSize(pageSize *int32)

SetPageSize adds the pageSize to the get organizations params

func (*GetOrganizationsParams) SetSearch

func (o *GetOrganizationsParams) SetSearch(search *string)

SetSearch adds the search 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) 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) WithPage

WithPage adds the page to the get organizations params

func (*GetOrganizationsParams) WithPageSize

func (o *GetOrganizationsParams) WithPageSize(pageSize *int32) *GetOrganizationsParams

WithPageSize adds the pageSize to the get organizations params

func (*GetOrganizationsParams) WithSearch

func (o *GetOrganizationsParams) WithSearch(search *string) *GetOrganizationsParams

WithSearch adds the search 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 HasAccessAsyncOK

type HasAccessAsyncOK struct {
	Payload bool
}
HasAccessAsyncOK describes a response with status code 200, with default header values.

Success

func NewHasAccessAsyncOK

func NewHasAccessAsyncOK() *HasAccessAsyncOK

NewHasAccessAsyncOK creates a HasAccessAsyncOK with default headers values

func (*HasAccessAsyncOK) Error

func (o *HasAccessAsyncOK) Error() string

func (*HasAccessAsyncOK) GetPayload

func (o *HasAccessAsyncOK) GetPayload() bool

type HasAccessAsyncParams

type HasAccessAsyncParams struct {

	// ID.
	//
	// Format: int32
	ID int32

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

HasAccessAsyncParams contains all the parameters to send to the API endpoint

for the has access async operation.

Typically these are written to a http.Request.

func NewHasAccessAsyncParams

func NewHasAccessAsyncParams() *HasAccessAsyncParams

NewHasAccessAsyncParams creates a new HasAccessAsyncParams 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 NewHasAccessAsyncParamsWithContext

func NewHasAccessAsyncParamsWithContext(ctx context.Context) *HasAccessAsyncParams

NewHasAccessAsyncParamsWithContext creates a new HasAccessAsyncParams object with the ability to set a context for a request.

func NewHasAccessAsyncParamsWithHTTPClient

func NewHasAccessAsyncParamsWithHTTPClient(client *http.Client) *HasAccessAsyncParams

NewHasAccessAsyncParamsWithHTTPClient creates a new HasAccessAsyncParams object with the ability to set a custom HTTPClient for a request.

func NewHasAccessAsyncParamsWithTimeout

func NewHasAccessAsyncParamsWithTimeout(timeout time.Duration) *HasAccessAsyncParams

NewHasAccessAsyncParamsWithTimeout creates a new HasAccessAsyncParams object with the ability to set a timeout on a request.

func (*HasAccessAsyncParams) SetContext

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

SetContext adds the context to the has access async params

func (*HasAccessAsyncParams) SetDefaults

func (o *HasAccessAsyncParams) SetDefaults()

SetDefaults hydrates default values in the has access async params (not the query body).

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

func (*HasAccessAsyncParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the has access async params

func (*HasAccessAsyncParams) SetID

func (o *HasAccessAsyncParams) SetID(id int32)

SetID adds the id to the has access async params

func (*HasAccessAsyncParams) SetTimeout

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

SetTimeout adds the timeout to the has access async params

func (*HasAccessAsyncParams) WithContext

WithContext adds the context to the has access async params

func (*HasAccessAsyncParams) WithDefaults

func (o *HasAccessAsyncParams) WithDefaults() *HasAccessAsyncParams

WithDefaults hydrates default values in the has access async params (not the query body).

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

func (*HasAccessAsyncParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the has access async params

func (*HasAccessAsyncParams) WithID

WithID adds the id to the has access async params

func (*HasAccessAsyncParams) WithTimeout

func (o *HasAccessAsyncParams) WithTimeout(timeout time.Duration) *HasAccessAsyncParams

WithTimeout adds the timeout to the has access async params

func (*HasAccessAsyncParams) WriteToRequest

func (o *HasAccessAsyncParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type HasAccessAsyncReader

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

HasAccessAsyncReader is a Reader for the HasAccessAsync structure.

func (*HasAccessAsyncReader) ReadResponse

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