organization_access

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 organization access API

func (*Client) GetOrganizationAccess

func (a *Client) GetOrganizationAccess(params *GetOrganizationAccessParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOrganizationAccessOK, error)

GetOrganizationAccess get organization access API

func (*Client) GrantOrganizationAccess

func (a *Client) GrantOrganizationAccess(params *GrantOrganizationAccessParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GrantOrganizationAccessOK, error)

GrantOrganizationAccess grant organization access API

func (*Client) PutOrganizationAccess

func (a *Client) PutOrganizationAccess(params *PutOrganizationAccessParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutOrganizationAccessOK, error)

PutOrganizationAccess put organization access 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 {
	GetOrganizationAccess(params *GetOrganizationAccessParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOrganizationAccessOK, error)

	GrantOrganizationAccess(params *GrantOrganizationAccessParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GrantOrganizationAccessOK, error)

	PutOrganizationAccess(params *PutOrganizationAccessParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutOrganizationAccessOK, 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 access API client.

type GetOrganizationAccessOK

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

Success

func NewGetOrganizationAccessOK

func NewGetOrganizationAccessOK() *GetOrganizationAccessOK

NewGetOrganizationAccessOK creates a GetOrganizationAccessOK with default headers values

func (*GetOrganizationAccessOK) Error

func (o *GetOrganizationAccessOK) Error() string

func (*GetOrganizationAccessOK) GetPayload

type GetOrganizationAccessParams

type GetOrganizationAccessParams struct {

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

	// Page.
	//
	// Format: int32
	// Default: 1
	Page *int32

	// PageSize.
	//
	// Format: int32
	// Default: 10000
	PageSize *int32

	// UserID.
	UserID *string

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

GetOrganizationAccessParams contains all the parameters to send to the API endpoint

for the get organization access operation.

Typically these are written to a http.Request.

func NewGetOrganizationAccessParams

func NewGetOrganizationAccessParams() *GetOrganizationAccessParams

NewGetOrganizationAccessParams creates a new GetOrganizationAccessParams 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 NewGetOrganizationAccessParamsWithContext

func NewGetOrganizationAccessParamsWithContext(ctx context.Context) *GetOrganizationAccessParams

NewGetOrganizationAccessParamsWithContext creates a new GetOrganizationAccessParams object with the ability to set a context for a request.

func NewGetOrganizationAccessParamsWithHTTPClient

func NewGetOrganizationAccessParamsWithHTTPClient(client *http.Client) *GetOrganizationAccessParams

NewGetOrganizationAccessParamsWithHTTPClient creates a new GetOrganizationAccessParams object with the ability to set a custom HTTPClient for a request.

func NewGetOrganizationAccessParamsWithTimeout

func NewGetOrganizationAccessParamsWithTimeout(timeout time.Duration) *GetOrganizationAccessParams

NewGetOrganizationAccessParamsWithTimeout creates a new GetOrganizationAccessParams object with the ability to set a timeout on a request.

func (*GetOrganizationAccessParams) SetContext

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

SetContext adds the context to the get organization access params

func (*GetOrganizationAccessParams) SetDefaults

func (o *GetOrganizationAccessParams) SetDefaults()

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

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

func (*GetOrganizationAccessParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get organization access params

func (*GetOrganizationAccessParams) SetOrganizationID

func (o *GetOrganizationAccessParams) SetOrganizationID(organizationID *int32)

SetOrganizationID adds the organizationId to the get organization access params

func (*GetOrganizationAccessParams) SetPage

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

SetPage adds the page to the get organization access params

func (*GetOrganizationAccessParams) SetPageSize

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

SetPageSize adds the pageSize to the get organization access params

func (*GetOrganizationAccessParams) SetTimeout

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

SetTimeout adds the timeout to the get organization access params

func (*GetOrganizationAccessParams) SetUserID

func (o *GetOrganizationAccessParams) SetUserID(userID *string)

SetUserID adds the userId to the get organization access params

func (*GetOrganizationAccessParams) WithContext

WithContext adds the context to the get organization access params

func (*GetOrganizationAccessParams) WithDefaults

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

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

func (*GetOrganizationAccessParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get organization access params

func (*GetOrganizationAccessParams) WithOrganizationID

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

WithOrganizationID adds the organizationID to the get organization access params

func (*GetOrganizationAccessParams) WithPage

WithPage adds the page to the get organization access params

func (*GetOrganizationAccessParams) WithPageSize

WithPageSize adds the pageSize to the get organization access params

func (*GetOrganizationAccessParams) WithTimeout

WithTimeout adds the timeout to the get organization access params

func (*GetOrganizationAccessParams) WithUserID

WithUserID adds the userID to the get organization access params

func (*GetOrganizationAccessParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetOrganizationAccessReader

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

GetOrganizationAccessReader is a Reader for the GetOrganizationAccess structure.

func (*GetOrganizationAccessReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GrantOrganizationAccessOK

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

Success

func NewGrantOrganizationAccessOK

func NewGrantOrganizationAccessOK() *GrantOrganizationAccessOK

NewGrantOrganizationAccessOK creates a GrantOrganizationAccessOK with default headers values

func (*GrantOrganizationAccessOK) Error

func (o *GrantOrganizationAccessOK) Error() string

func (*GrantOrganizationAccessOK) GetPayload

type GrantOrganizationAccessParams

type GrantOrganizationAccessParams struct {

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

	// Page.
	//
	// Format: int32
	// Default: 1
	Page *int32

	// PageSize.
	//
	// Format: int32
	// Default: 10000
	PageSize *int32

	// UserID.
	UserID *string

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

GrantOrganizationAccessParams contains all the parameters to send to the API endpoint

for the grant organization access operation.

Typically these are written to a http.Request.

func NewGrantOrganizationAccessParams

func NewGrantOrganizationAccessParams() *GrantOrganizationAccessParams

NewGrantOrganizationAccessParams creates a new GrantOrganizationAccessParams 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 NewGrantOrganizationAccessParamsWithContext

func NewGrantOrganizationAccessParamsWithContext(ctx context.Context) *GrantOrganizationAccessParams

NewGrantOrganizationAccessParamsWithContext creates a new GrantOrganizationAccessParams object with the ability to set a context for a request.

func NewGrantOrganizationAccessParamsWithHTTPClient

func NewGrantOrganizationAccessParamsWithHTTPClient(client *http.Client) *GrantOrganizationAccessParams

NewGrantOrganizationAccessParamsWithHTTPClient creates a new GrantOrganizationAccessParams object with the ability to set a custom HTTPClient for a request.

func NewGrantOrganizationAccessParamsWithTimeout

func NewGrantOrganizationAccessParamsWithTimeout(timeout time.Duration) *GrantOrganizationAccessParams

NewGrantOrganizationAccessParamsWithTimeout creates a new GrantOrganizationAccessParams object with the ability to set a timeout on a request.

func (*GrantOrganizationAccessParams) SetContext

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

SetContext adds the context to the grant organization access params

func (*GrantOrganizationAccessParams) SetDefaults

func (o *GrantOrganizationAccessParams) SetDefaults()

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

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

func (*GrantOrganizationAccessParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the grant organization access params

func (*GrantOrganizationAccessParams) SetOrganizationID

func (o *GrantOrganizationAccessParams) SetOrganizationID(organizationID *int32)

SetOrganizationID adds the organizationId to the grant organization access params

func (*GrantOrganizationAccessParams) SetPage

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

SetPage adds the page to the grant organization access params

func (*GrantOrganizationAccessParams) SetPageSize

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

SetPageSize adds the pageSize to the grant organization access params

func (*GrantOrganizationAccessParams) SetTimeout

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

SetTimeout adds the timeout to the grant organization access params

func (*GrantOrganizationAccessParams) SetUserID

func (o *GrantOrganizationAccessParams) SetUserID(userID *string)

SetUserID adds the userId to the grant organization access params

func (*GrantOrganizationAccessParams) WithContext

WithContext adds the context to the grant organization access params

func (*GrantOrganizationAccessParams) WithDefaults

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

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

func (*GrantOrganizationAccessParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the grant organization access params

func (*GrantOrganizationAccessParams) WithOrganizationID

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

WithOrganizationID adds the organizationID to the grant organization access params

func (*GrantOrganizationAccessParams) WithPage

WithPage adds the page to the grant organization access params

func (*GrantOrganizationAccessParams) WithPageSize

WithPageSize adds the pageSize to the grant organization access params

func (*GrantOrganizationAccessParams) WithTimeout

WithTimeout adds the timeout to the grant organization access params

func (*GrantOrganizationAccessParams) WithUserID

WithUserID adds the userID to the grant organization access params

func (*GrantOrganizationAccessParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GrantOrganizationAccessReader

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

GrantOrganizationAccessReader is a Reader for the GrantOrganizationAccess structure.

func (*GrantOrganizationAccessReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutOrganizationAccessOK

type PutOrganizationAccessOK struct {
	Payload []*models.OrganizationAccess
}
PutOrganizationAccessOK describes a response with status code 200, with default header values.

Success

func NewPutOrganizationAccessOK

func NewPutOrganizationAccessOK() *PutOrganizationAccessOK

NewPutOrganizationAccessOK creates a PutOrganizationAccessOK with default headers values

func (*PutOrganizationAccessOK) Error

func (o *PutOrganizationAccessOK) Error() string

func (*PutOrganizationAccessOK) GetPayload

type PutOrganizationAccessParams

type PutOrganizationAccessParams struct {

	// List.
	List []*models.OrganizationAccess

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

PutOrganizationAccessParams contains all the parameters to send to the API endpoint

for the put organization access operation.

Typically these are written to a http.Request.

func NewPutOrganizationAccessParams

func NewPutOrganizationAccessParams() *PutOrganizationAccessParams

NewPutOrganizationAccessParams creates a new PutOrganizationAccessParams 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 NewPutOrganizationAccessParamsWithContext

func NewPutOrganizationAccessParamsWithContext(ctx context.Context) *PutOrganizationAccessParams

NewPutOrganizationAccessParamsWithContext creates a new PutOrganizationAccessParams object with the ability to set a context for a request.

func NewPutOrganizationAccessParamsWithHTTPClient

func NewPutOrganizationAccessParamsWithHTTPClient(client *http.Client) *PutOrganizationAccessParams

NewPutOrganizationAccessParamsWithHTTPClient creates a new PutOrganizationAccessParams object with the ability to set a custom HTTPClient for a request.

func NewPutOrganizationAccessParamsWithTimeout

func NewPutOrganizationAccessParamsWithTimeout(timeout time.Duration) *PutOrganizationAccessParams

NewPutOrganizationAccessParamsWithTimeout creates a new PutOrganizationAccessParams object with the ability to set a timeout on a request.

func (*PutOrganizationAccessParams) SetContext

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

SetContext adds the context to the put organization access params

func (*PutOrganizationAccessParams) SetDefaults

func (o *PutOrganizationAccessParams) SetDefaults()

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

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

func (*PutOrganizationAccessParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the put organization access params

func (*PutOrganizationAccessParams) SetList

SetList adds the list to the put organization access params

func (*PutOrganizationAccessParams) SetTimeout

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

SetTimeout adds the timeout to the put organization access params

func (*PutOrganizationAccessParams) WithContext

WithContext adds the context to the put organization access params

func (*PutOrganizationAccessParams) WithDefaults

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

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

func (*PutOrganizationAccessParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the put organization access params

func (*PutOrganizationAccessParams) WithList

WithList adds the list to the put organization access params

func (*PutOrganizationAccessParams) WithTimeout

WithTimeout adds the timeout to the put organization access params

func (*PutOrganizationAccessParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PutOrganizationAccessReader

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

PutOrganizationAccessReader is a Reader for the PutOrganizationAccess structure.

func (*PutOrganizationAccessReader) ReadResponse

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