access_grants

package
v0.0.0-...-417219d Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 11 Imported by: 1

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

func (*Client) CreateAccessGrant

func (a *Client) CreateAccessGrant(params *CreateAccessGrantParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateAccessGrantCreated, error)

CreateAccessGrant Create an Access Grant.

func (*Client) DeleteAccessGrant

func (a *Client) DeleteAccessGrant(params *DeleteAccessGrantParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAccessGrantNoContent, error)

DeleteAccessGrant Delete an Access Grant.

func (*Client) GetAccessGrant

func (a *Client) GetAccessGrant(params *GetAccessGrantParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAccessGrantOK, error)

GetAccessGrant Return a specific Access Grant.

func (*Client) GetAccessGrants

func (a *Client) GetAccessGrants(params *GetAccessGrantsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAccessGrantsOK, error)

GetAccessGrants Return all Access Grants that the current API token has access to.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateAccessGrant

func (a *Client) UpdateAccessGrant(params *UpdateAccessGrantParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateAccessGrantOK, error)

UpdateAccessGrant Update an AccessGrant.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateAccessGrant(params *CreateAccessGrantParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateAccessGrantCreated, error)

	DeleteAccessGrant(params *DeleteAccessGrantParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAccessGrantNoContent, error)

	GetAccessGrant(params *GetAccessGrantParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAccessGrantOK, error)

	GetAccessGrants(params *GetAccessGrantsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAccessGrantsOK, error)

	UpdateAccessGrant(params *UpdateAccessGrantParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateAccessGrantOK, 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 access grants API client.

type CreateAccessGrantBadRequest

type CreateAccessGrantBadRequest struct {
	Payload *models.Errors
}

CreateAccessGrantBadRequest describes a response with status code 400, with default header values.

BadRequest

func NewCreateAccessGrantBadRequest

func NewCreateAccessGrantBadRequest() *CreateAccessGrantBadRequest

NewCreateAccessGrantBadRequest creates a CreateAccessGrantBadRequest with default headers values

func (*CreateAccessGrantBadRequest) Code

func (o *CreateAccessGrantBadRequest) Code() int

Code gets the status code for the create access grant bad request response

func (*CreateAccessGrantBadRequest) Error

func (*CreateAccessGrantBadRequest) GetPayload

func (o *CreateAccessGrantBadRequest) GetPayload() *models.Errors

func (*CreateAccessGrantBadRequest) IsClientError

func (o *CreateAccessGrantBadRequest) IsClientError() bool

IsClientError returns true when this create access grant bad request response has a 4xx status code

func (*CreateAccessGrantBadRequest) IsCode

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

IsCode returns true when this create access grant bad request response a status code equal to that given

func (*CreateAccessGrantBadRequest) IsRedirect

func (o *CreateAccessGrantBadRequest) IsRedirect() bool

IsRedirect returns true when this create access grant bad request response has a 3xx status code

func (*CreateAccessGrantBadRequest) IsServerError

func (o *CreateAccessGrantBadRequest) IsServerError() bool

IsServerError returns true when this create access grant bad request response has a 5xx status code

func (*CreateAccessGrantBadRequest) IsSuccess

func (o *CreateAccessGrantBadRequest) IsSuccess() bool

IsSuccess returns true when this create access grant bad request response has a 2xx status code

func (*CreateAccessGrantBadRequest) String

func (o *CreateAccessGrantBadRequest) String() string

type CreateAccessGrantCreated

type CreateAccessGrantCreated struct {
	Payload *models.AccessGrant
}

CreateAccessGrantCreated describes a response with status code 201, with default header values.

CreateAccessGrantCreated create access grant created

func NewCreateAccessGrantCreated

func NewCreateAccessGrantCreated() *CreateAccessGrantCreated

NewCreateAccessGrantCreated creates a CreateAccessGrantCreated with default headers values

func (*CreateAccessGrantCreated) Code

func (o *CreateAccessGrantCreated) Code() int

Code gets the status code for the create access grant created response

func (*CreateAccessGrantCreated) Error

func (o *CreateAccessGrantCreated) Error() string

func (*CreateAccessGrantCreated) GetPayload

func (o *CreateAccessGrantCreated) GetPayload() *models.AccessGrant

func (*CreateAccessGrantCreated) IsClientError

func (o *CreateAccessGrantCreated) IsClientError() bool

IsClientError returns true when this create access grant created response has a 4xx status code

func (*CreateAccessGrantCreated) IsCode

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

IsCode returns true when this create access grant created response a status code equal to that given

func (*CreateAccessGrantCreated) IsRedirect

func (o *CreateAccessGrantCreated) IsRedirect() bool

IsRedirect returns true when this create access grant created response has a 3xx status code

func (*CreateAccessGrantCreated) IsServerError

func (o *CreateAccessGrantCreated) IsServerError() bool

IsServerError returns true when this create access grant created response has a 5xx status code

func (*CreateAccessGrantCreated) IsSuccess

func (o *CreateAccessGrantCreated) IsSuccess() bool

IsSuccess returns true when this create access grant created response has a 2xx status code

func (*CreateAccessGrantCreated) String

func (o *CreateAccessGrantCreated) String() string

type CreateAccessGrantForbidden

type CreateAccessGrantForbidden struct {
	Payload *models.Errors
}

CreateAccessGrantForbidden describes a response with status code 403, with default header values.

Forbidden

func NewCreateAccessGrantForbidden

func NewCreateAccessGrantForbidden() *CreateAccessGrantForbidden

NewCreateAccessGrantForbidden creates a CreateAccessGrantForbidden with default headers values

func (*CreateAccessGrantForbidden) Code

func (o *CreateAccessGrantForbidden) Code() int

Code gets the status code for the create access grant forbidden response

func (*CreateAccessGrantForbidden) Error

func (*CreateAccessGrantForbidden) GetPayload

func (o *CreateAccessGrantForbidden) GetPayload() *models.Errors

func (*CreateAccessGrantForbidden) IsClientError

func (o *CreateAccessGrantForbidden) IsClientError() bool

IsClientError returns true when this create access grant forbidden response has a 4xx status code

func (*CreateAccessGrantForbidden) IsCode

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

IsCode returns true when this create access grant forbidden response a status code equal to that given

func (*CreateAccessGrantForbidden) IsRedirect

func (o *CreateAccessGrantForbidden) IsRedirect() bool

IsRedirect returns true when this create access grant forbidden response has a 3xx status code

func (*CreateAccessGrantForbidden) IsServerError

func (o *CreateAccessGrantForbidden) IsServerError() bool

IsServerError returns true when this create access grant forbidden response has a 5xx status code

func (*CreateAccessGrantForbidden) IsSuccess

func (o *CreateAccessGrantForbidden) IsSuccess() bool

IsSuccess returns true when this create access grant forbidden response has a 2xx status code

func (*CreateAccessGrantForbidden) String

func (o *CreateAccessGrantForbidden) String() string

type CreateAccessGrantNotAcceptable

type CreateAccessGrantNotAcceptable struct {
	Payload *models.Errors
}

CreateAccessGrantNotAcceptable describes a response with status code 406, with default header values.

NotAcceptable

func NewCreateAccessGrantNotAcceptable

func NewCreateAccessGrantNotAcceptable() *CreateAccessGrantNotAcceptable

NewCreateAccessGrantNotAcceptable creates a CreateAccessGrantNotAcceptable with default headers values

func (*CreateAccessGrantNotAcceptable) Code

Code gets the status code for the create access grant not acceptable response

func (*CreateAccessGrantNotAcceptable) Error

func (*CreateAccessGrantNotAcceptable) GetPayload

func (o *CreateAccessGrantNotAcceptable) GetPayload() *models.Errors

func (*CreateAccessGrantNotAcceptable) IsClientError

func (o *CreateAccessGrantNotAcceptable) IsClientError() bool

IsClientError returns true when this create access grant not acceptable response has a 4xx status code

func (*CreateAccessGrantNotAcceptable) IsCode

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

IsCode returns true when this create access grant not acceptable response a status code equal to that given

func (*CreateAccessGrantNotAcceptable) IsRedirect

func (o *CreateAccessGrantNotAcceptable) IsRedirect() bool

IsRedirect returns true when this create access grant not acceptable response has a 3xx status code

func (*CreateAccessGrantNotAcceptable) IsServerError

func (o *CreateAccessGrantNotAcceptable) IsServerError() bool

IsServerError returns true when this create access grant not acceptable response has a 5xx status code

func (*CreateAccessGrantNotAcceptable) IsSuccess

func (o *CreateAccessGrantNotAcceptable) IsSuccess() bool

IsSuccess returns true when this create access grant not acceptable response has a 2xx status code

func (*CreateAccessGrantNotAcceptable) String

type CreateAccessGrantNotFound

type CreateAccessGrantNotFound struct {
	Payload *models.Errors
}

CreateAccessGrantNotFound describes a response with status code 404, with default header values.

NotFound

func NewCreateAccessGrantNotFound

func NewCreateAccessGrantNotFound() *CreateAccessGrantNotFound

NewCreateAccessGrantNotFound creates a CreateAccessGrantNotFound with default headers values

func (*CreateAccessGrantNotFound) Code

func (o *CreateAccessGrantNotFound) Code() int

Code gets the status code for the create access grant not found response

func (*CreateAccessGrantNotFound) Error

func (o *CreateAccessGrantNotFound) Error() string

func (*CreateAccessGrantNotFound) GetPayload

func (o *CreateAccessGrantNotFound) GetPayload() *models.Errors

func (*CreateAccessGrantNotFound) IsClientError

func (o *CreateAccessGrantNotFound) IsClientError() bool

IsClientError returns true when this create access grant not found response has a 4xx status code

func (*CreateAccessGrantNotFound) IsCode

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

IsCode returns true when this create access grant not found response a status code equal to that given

func (*CreateAccessGrantNotFound) IsRedirect

func (o *CreateAccessGrantNotFound) IsRedirect() bool

IsRedirect returns true when this create access grant not found response has a 3xx status code

func (*CreateAccessGrantNotFound) IsServerError

func (o *CreateAccessGrantNotFound) IsServerError() bool

IsServerError returns true when this create access grant not found response has a 5xx status code

func (*CreateAccessGrantNotFound) IsSuccess

func (o *CreateAccessGrantNotFound) IsSuccess() bool

IsSuccess returns true when this create access grant not found response has a 2xx status code

func (*CreateAccessGrantNotFound) String

func (o *CreateAccessGrantNotFound) String() string

type CreateAccessGrantParams

type CreateAccessGrantParams struct {

	// AccessGrants.
	AccessGrants *models.PostAccessGrants

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

CreateAccessGrantParams contains all the parameters to send to the API endpoint

for the create access grant operation.

Typically these are written to a http.Request.

func NewCreateAccessGrantParams

func NewCreateAccessGrantParams() *CreateAccessGrantParams

NewCreateAccessGrantParams creates a new CreateAccessGrantParams 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 NewCreateAccessGrantParamsWithContext

func NewCreateAccessGrantParamsWithContext(ctx context.Context) *CreateAccessGrantParams

NewCreateAccessGrantParamsWithContext creates a new CreateAccessGrantParams object with the ability to set a context for a request.

func NewCreateAccessGrantParamsWithHTTPClient

func NewCreateAccessGrantParamsWithHTTPClient(client *http.Client) *CreateAccessGrantParams

NewCreateAccessGrantParamsWithHTTPClient creates a new CreateAccessGrantParams object with the ability to set a custom HTTPClient for a request.

func NewCreateAccessGrantParamsWithTimeout

func NewCreateAccessGrantParamsWithTimeout(timeout time.Duration) *CreateAccessGrantParams

NewCreateAccessGrantParamsWithTimeout creates a new CreateAccessGrantParams object with the ability to set a timeout on a request.

func (*CreateAccessGrantParams) SetAccessGrants

func (o *CreateAccessGrantParams) SetAccessGrants(accessGrants *models.PostAccessGrants)

SetAccessGrants adds the accessGrants to the create access grant params

func (*CreateAccessGrantParams) SetContext

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

SetContext adds the context to the create access grant params

func (*CreateAccessGrantParams) SetDefaults

func (o *CreateAccessGrantParams) SetDefaults()

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

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

func (*CreateAccessGrantParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create access grant params

func (*CreateAccessGrantParams) SetTimeout

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

SetTimeout adds the timeout to the create access grant params

func (*CreateAccessGrantParams) WithAccessGrants

func (o *CreateAccessGrantParams) WithAccessGrants(accessGrants *models.PostAccessGrants) *CreateAccessGrantParams

WithAccessGrants adds the accessGrants to the create access grant params

func (*CreateAccessGrantParams) WithContext

WithContext adds the context to the create access grant params

func (*CreateAccessGrantParams) WithDefaults

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

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

func (*CreateAccessGrantParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create access grant params

func (*CreateAccessGrantParams) WithTimeout

WithTimeout adds the timeout to the create access grant params

func (*CreateAccessGrantParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateAccessGrantReader

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

CreateAccessGrantReader is a Reader for the CreateAccessGrant structure.

func (*CreateAccessGrantReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateAccessGrantUnprocessableEntity

type CreateAccessGrantUnprocessableEntity struct {
	Payload *models.Errors
}

CreateAccessGrantUnprocessableEntity describes a response with status code 422, with default header values.

UnprocessableEntity

func NewCreateAccessGrantUnprocessableEntity

func NewCreateAccessGrantUnprocessableEntity() *CreateAccessGrantUnprocessableEntity

NewCreateAccessGrantUnprocessableEntity creates a CreateAccessGrantUnprocessableEntity with default headers values

func (*CreateAccessGrantUnprocessableEntity) Code

Code gets the status code for the create access grant unprocessable entity response

func (*CreateAccessGrantUnprocessableEntity) Error

func (*CreateAccessGrantUnprocessableEntity) GetPayload

func (*CreateAccessGrantUnprocessableEntity) IsClientError

func (o *CreateAccessGrantUnprocessableEntity) IsClientError() bool

IsClientError returns true when this create access grant unprocessable entity response has a 4xx status code

func (*CreateAccessGrantUnprocessableEntity) IsCode

IsCode returns true when this create access grant unprocessable entity response a status code equal to that given

func (*CreateAccessGrantUnprocessableEntity) IsRedirect

IsRedirect returns true when this create access grant unprocessable entity response has a 3xx status code

func (*CreateAccessGrantUnprocessableEntity) IsServerError

func (o *CreateAccessGrantUnprocessableEntity) IsServerError() bool

IsServerError returns true when this create access grant unprocessable entity response has a 5xx status code

func (*CreateAccessGrantUnprocessableEntity) IsSuccess

IsSuccess returns true when this create access grant unprocessable entity response has a 2xx status code

func (*CreateAccessGrantUnprocessableEntity) String

type DeleteAccessGrantNoContent

type DeleteAccessGrantNoContent struct {
	Payload *models.AccessGrant
}

DeleteAccessGrantNoContent describes a response with status code 204, with default header values.

DeleteAccessGrantNoContent delete access grant no content

func NewDeleteAccessGrantNoContent

func NewDeleteAccessGrantNoContent() *DeleteAccessGrantNoContent

NewDeleteAccessGrantNoContent creates a DeleteAccessGrantNoContent with default headers values

func (*DeleteAccessGrantNoContent) Code

func (o *DeleteAccessGrantNoContent) Code() int

Code gets the status code for the delete access grant no content response

func (*DeleteAccessGrantNoContent) Error

func (*DeleteAccessGrantNoContent) GetPayload

func (*DeleteAccessGrantNoContent) IsClientError

func (o *DeleteAccessGrantNoContent) IsClientError() bool

IsClientError returns true when this delete access grant no content response has a 4xx status code

func (*DeleteAccessGrantNoContent) IsCode

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

IsCode returns true when this delete access grant no content response a status code equal to that given

func (*DeleteAccessGrantNoContent) IsRedirect

func (o *DeleteAccessGrantNoContent) IsRedirect() bool

IsRedirect returns true when this delete access grant no content response has a 3xx status code

func (*DeleteAccessGrantNoContent) IsServerError

func (o *DeleteAccessGrantNoContent) IsServerError() bool

IsServerError returns true when this delete access grant no content response has a 5xx status code

func (*DeleteAccessGrantNoContent) IsSuccess

func (o *DeleteAccessGrantNoContent) IsSuccess() bool

IsSuccess returns true when this delete access grant no content response has a 2xx status code

func (*DeleteAccessGrantNoContent) String

func (o *DeleteAccessGrantNoContent) String() string

type DeleteAccessGrantNotFound

type DeleteAccessGrantNotFound struct {
	Payload *models.Errors
}

DeleteAccessGrantNotFound describes a response with status code 404, with default header values.

NotFound

func NewDeleteAccessGrantNotFound

func NewDeleteAccessGrantNotFound() *DeleteAccessGrantNotFound

NewDeleteAccessGrantNotFound creates a DeleteAccessGrantNotFound with default headers values

func (*DeleteAccessGrantNotFound) Code

func (o *DeleteAccessGrantNotFound) Code() int

Code gets the status code for the delete access grant not found response

func (*DeleteAccessGrantNotFound) Error

func (o *DeleteAccessGrantNotFound) Error() string

func (*DeleteAccessGrantNotFound) GetPayload

func (o *DeleteAccessGrantNotFound) GetPayload() *models.Errors

func (*DeleteAccessGrantNotFound) IsClientError

func (o *DeleteAccessGrantNotFound) IsClientError() bool

IsClientError returns true when this delete access grant not found response has a 4xx status code

func (*DeleteAccessGrantNotFound) IsCode

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

IsCode returns true when this delete access grant not found response a status code equal to that given

func (*DeleteAccessGrantNotFound) IsRedirect

func (o *DeleteAccessGrantNotFound) IsRedirect() bool

IsRedirect returns true when this delete access grant not found response has a 3xx status code

func (*DeleteAccessGrantNotFound) IsServerError

func (o *DeleteAccessGrantNotFound) IsServerError() bool

IsServerError returns true when this delete access grant not found response has a 5xx status code

func (*DeleteAccessGrantNotFound) IsSuccess

func (o *DeleteAccessGrantNotFound) IsSuccess() bool

IsSuccess returns true when this delete access grant not found response has a 2xx status code

func (*DeleteAccessGrantNotFound) String

func (o *DeleteAccessGrantNotFound) String() string

type DeleteAccessGrantParams

type DeleteAccessGrantParams struct {

	// AccessGrantToken.
	AccessGrantToken string

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

DeleteAccessGrantParams contains all the parameters to send to the API endpoint

for the delete access grant operation.

Typically these are written to a http.Request.

func NewDeleteAccessGrantParams

func NewDeleteAccessGrantParams() *DeleteAccessGrantParams

NewDeleteAccessGrantParams creates a new DeleteAccessGrantParams 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 NewDeleteAccessGrantParamsWithContext

func NewDeleteAccessGrantParamsWithContext(ctx context.Context) *DeleteAccessGrantParams

NewDeleteAccessGrantParamsWithContext creates a new DeleteAccessGrantParams object with the ability to set a context for a request.

func NewDeleteAccessGrantParamsWithHTTPClient

func NewDeleteAccessGrantParamsWithHTTPClient(client *http.Client) *DeleteAccessGrantParams

NewDeleteAccessGrantParamsWithHTTPClient creates a new DeleteAccessGrantParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteAccessGrantParamsWithTimeout

func NewDeleteAccessGrantParamsWithTimeout(timeout time.Duration) *DeleteAccessGrantParams

NewDeleteAccessGrantParamsWithTimeout creates a new DeleteAccessGrantParams object with the ability to set a timeout on a request.

func (*DeleteAccessGrantParams) SetAccessGrantToken

func (o *DeleteAccessGrantParams) SetAccessGrantToken(accessGrantToken string)

SetAccessGrantToken adds the accessGrantToken to the delete access grant params

func (*DeleteAccessGrantParams) SetContext

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

SetContext adds the context to the delete access grant params

func (*DeleteAccessGrantParams) SetDefaults

func (o *DeleteAccessGrantParams) SetDefaults()

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

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

func (*DeleteAccessGrantParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete access grant params

func (*DeleteAccessGrantParams) SetTimeout

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

SetTimeout adds the timeout to the delete access grant params

func (*DeleteAccessGrantParams) WithAccessGrantToken

func (o *DeleteAccessGrantParams) WithAccessGrantToken(accessGrantToken string) *DeleteAccessGrantParams

WithAccessGrantToken adds the accessGrantToken to the delete access grant params

func (*DeleteAccessGrantParams) WithContext

WithContext adds the context to the delete access grant params

func (*DeleteAccessGrantParams) WithDefaults

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

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

func (*DeleteAccessGrantParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete access grant params

func (*DeleteAccessGrantParams) WithTimeout

WithTimeout adds the timeout to the delete access grant params

func (*DeleteAccessGrantParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteAccessGrantReader

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

DeleteAccessGrantReader is a Reader for the DeleteAccessGrant structure.

func (*DeleteAccessGrantReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAccessGrantNotFound

type GetAccessGrantNotFound struct {
	Payload *models.Errors
}

GetAccessGrantNotFound describes a response with status code 404, with default header values.

NotFound

func NewGetAccessGrantNotFound

func NewGetAccessGrantNotFound() *GetAccessGrantNotFound

NewGetAccessGrantNotFound creates a GetAccessGrantNotFound with default headers values

func (*GetAccessGrantNotFound) Code

func (o *GetAccessGrantNotFound) Code() int

Code gets the status code for the get access grant not found response

func (*GetAccessGrantNotFound) Error

func (o *GetAccessGrantNotFound) Error() string

func (*GetAccessGrantNotFound) GetPayload

func (o *GetAccessGrantNotFound) GetPayload() *models.Errors

func (*GetAccessGrantNotFound) IsClientError

func (o *GetAccessGrantNotFound) IsClientError() bool

IsClientError returns true when this get access grant not found response has a 4xx status code

func (*GetAccessGrantNotFound) IsCode

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

IsCode returns true when this get access grant not found response a status code equal to that given

func (*GetAccessGrantNotFound) IsRedirect

func (o *GetAccessGrantNotFound) IsRedirect() bool

IsRedirect returns true when this get access grant not found response has a 3xx status code

func (*GetAccessGrantNotFound) IsServerError

func (o *GetAccessGrantNotFound) IsServerError() bool

IsServerError returns true when this get access grant not found response has a 5xx status code

func (*GetAccessGrantNotFound) IsSuccess

func (o *GetAccessGrantNotFound) IsSuccess() bool

IsSuccess returns true when this get access grant not found response has a 2xx status code

func (*GetAccessGrantNotFound) String

func (o *GetAccessGrantNotFound) String() string

type GetAccessGrantOK

type GetAccessGrantOK struct {
	Payload *models.AccessGrant
}

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

GetAccessGrantOK get access grant o k

func NewGetAccessGrantOK

func NewGetAccessGrantOK() *GetAccessGrantOK

NewGetAccessGrantOK creates a GetAccessGrantOK with default headers values

func (*GetAccessGrantOK) Code

func (o *GetAccessGrantOK) Code() int

Code gets the status code for the get access grant o k response

func (*GetAccessGrantOK) Error

func (o *GetAccessGrantOK) Error() string

func (*GetAccessGrantOK) GetPayload

func (o *GetAccessGrantOK) GetPayload() *models.AccessGrant

func (*GetAccessGrantOK) IsClientError

func (o *GetAccessGrantOK) IsClientError() bool

IsClientError returns true when this get access grant o k response has a 4xx status code

func (*GetAccessGrantOK) IsCode

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

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

func (*GetAccessGrantOK) IsRedirect

func (o *GetAccessGrantOK) IsRedirect() bool

IsRedirect returns true when this get access grant o k response has a 3xx status code

func (*GetAccessGrantOK) IsServerError

func (o *GetAccessGrantOK) IsServerError() bool

IsServerError returns true when this get access grant o k response has a 5xx status code

func (*GetAccessGrantOK) IsSuccess

func (o *GetAccessGrantOK) IsSuccess() bool

IsSuccess returns true when this get access grant o k response has a 2xx status code

func (*GetAccessGrantOK) String

func (o *GetAccessGrantOK) String() string

type GetAccessGrantParams

type GetAccessGrantParams struct {

	// AccessGrantToken.
	AccessGrantToken string

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

GetAccessGrantParams contains all the parameters to send to the API endpoint

for the get access grant operation.

Typically these are written to a http.Request.

func NewGetAccessGrantParams

func NewGetAccessGrantParams() *GetAccessGrantParams

NewGetAccessGrantParams creates a new GetAccessGrantParams 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 NewGetAccessGrantParamsWithContext

func NewGetAccessGrantParamsWithContext(ctx context.Context) *GetAccessGrantParams

NewGetAccessGrantParamsWithContext creates a new GetAccessGrantParams object with the ability to set a context for a request.

func NewGetAccessGrantParamsWithHTTPClient

func NewGetAccessGrantParamsWithHTTPClient(client *http.Client) *GetAccessGrantParams

NewGetAccessGrantParamsWithHTTPClient creates a new GetAccessGrantParams object with the ability to set a custom HTTPClient for a request.

func NewGetAccessGrantParamsWithTimeout

func NewGetAccessGrantParamsWithTimeout(timeout time.Duration) *GetAccessGrantParams

NewGetAccessGrantParamsWithTimeout creates a new GetAccessGrantParams object with the ability to set a timeout on a request.

func (*GetAccessGrantParams) SetAccessGrantToken

func (o *GetAccessGrantParams) SetAccessGrantToken(accessGrantToken string)

SetAccessGrantToken adds the accessGrantToken to the get access grant params

func (*GetAccessGrantParams) SetContext

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

SetContext adds the context to the get access grant params

func (*GetAccessGrantParams) SetDefaults

func (o *GetAccessGrantParams) SetDefaults()

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

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

func (*GetAccessGrantParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get access grant params

func (*GetAccessGrantParams) SetTimeout

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

SetTimeout adds the timeout to the get access grant params

func (*GetAccessGrantParams) WithAccessGrantToken

func (o *GetAccessGrantParams) WithAccessGrantToken(accessGrantToken string) *GetAccessGrantParams

WithAccessGrantToken adds the accessGrantToken to the get access grant params

func (*GetAccessGrantParams) WithContext

WithContext adds the context to the get access grant params

func (*GetAccessGrantParams) WithDefaults

func (o *GetAccessGrantParams) WithDefaults() *GetAccessGrantParams

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

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

func (*GetAccessGrantParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get access grant params

func (*GetAccessGrantParams) WithTimeout

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

WithTimeout adds the timeout to the get access grant params

func (*GetAccessGrantParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAccessGrantReader

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

GetAccessGrantReader is a Reader for the GetAccessGrant structure.

func (*GetAccessGrantReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAccessGrantsOK

type GetAccessGrantsOK struct {
	Payload *models.AccessGrants
}

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

GetAccessGrantsOK get access grants o k

func NewGetAccessGrantsOK

func NewGetAccessGrantsOK() *GetAccessGrantsOK

NewGetAccessGrantsOK creates a GetAccessGrantsOK with default headers values

func (*GetAccessGrantsOK) Code

func (o *GetAccessGrantsOK) Code() int

Code gets the status code for the get access grants o k response

func (*GetAccessGrantsOK) Error

func (o *GetAccessGrantsOK) Error() string

func (*GetAccessGrantsOK) GetPayload

func (o *GetAccessGrantsOK) GetPayload() *models.AccessGrants

func (*GetAccessGrantsOK) IsClientError

func (o *GetAccessGrantsOK) IsClientError() bool

IsClientError returns true when this get access grants o k response has a 4xx status code

func (*GetAccessGrantsOK) IsCode

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

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

func (*GetAccessGrantsOK) IsRedirect

func (o *GetAccessGrantsOK) IsRedirect() bool

IsRedirect returns true when this get access grants o k response has a 3xx status code

func (*GetAccessGrantsOK) IsServerError

func (o *GetAccessGrantsOK) IsServerError() bool

IsServerError returns true when this get access grants o k response has a 5xx status code

func (*GetAccessGrantsOK) IsSuccess

func (o *GetAccessGrantsOK) IsSuccess() bool

IsSuccess returns true when this get access grants o k response has a 2xx status code

func (*GetAccessGrantsOK) String

func (o *GetAccessGrantsOK) String() string

type GetAccessGrantsParams

type GetAccessGrantsParams struct {

	/* Limit.

	   The amount of results to return. The maximum is 1000.

	   Format: int32
	*/
	Limit *int32

	/* Page.

	   The page of results to return.

	   Format: int32
	*/
	Page *int32

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

GetAccessGrantsParams contains all the parameters to send to the API endpoint

for the get access grants operation.

Typically these are written to a http.Request.

func NewGetAccessGrantsParams

func NewGetAccessGrantsParams() *GetAccessGrantsParams

NewGetAccessGrantsParams creates a new GetAccessGrantsParams 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 NewGetAccessGrantsParamsWithContext

func NewGetAccessGrantsParamsWithContext(ctx context.Context) *GetAccessGrantsParams

NewGetAccessGrantsParamsWithContext creates a new GetAccessGrantsParams object with the ability to set a context for a request.

func NewGetAccessGrantsParamsWithHTTPClient

func NewGetAccessGrantsParamsWithHTTPClient(client *http.Client) *GetAccessGrantsParams

NewGetAccessGrantsParamsWithHTTPClient creates a new GetAccessGrantsParams object with the ability to set a custom HTTPClient for a request.

func NewGetAccessGrantsParamsWithTimeout

func NewGetAccessGrantsParamsWithTimeout(timeout time.Duration) *GetAccessGrantsParams

NewGetAccessGrantsParamsWithTimeout creates a new GetAccessGrantsParams object with the ability to set a timeout on a request.

func (*GetAccessGrantsParams) SetContext

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

SetContext adds the context to the get access grants params

func (*GetAccessGrantsParams) SetDefaults

func (o *GetAccessGrantsParams) SetDefaults()

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

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

func (*GetAccessGrantsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get access grants params

func (*GetAccessGrantsParams) SetLimit

func (o *GetAccessGrantsParams) SetLimit(limit *int32)

SetLimit adds the limit to the get access grants params

func (*GetAccessGrantsParams) SetPage

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

SetPage adds the page to the get access grants params

func (*GetAccessGrantsParams) SetTimeout

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

SetTimeout adds the timeout to the get access grants params

func (*GetAccessGrantsParams) WithContext

WithContext adds the context to the get access grants params

func (*GetAccessGrantsParams) WithDefaults

func (o *GetAccessGrantsParams) WithDefaults() *GetAccessGrantsParams

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

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

func (*GetAccessGrantsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get access grants params

func (*GetAccessGrantsParams) WithLimit

func (o *GetAccessGrantsParams) WithLimit(limit *int32) *GetAccessGrantsParams

WithLimit adds the limit to the get access grants params

func (*GetAccessGrantsParams) WithPage

WithPage adds the page to the get access grants params

func (*GetAccessGrantsParams) WithTimeout

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

WithTimeout adds the timeout to the get access grants params

func (*GetAccessGrantsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAccessGrantsReader

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

GetAccessGrantsReader is a Reader for the GetAccessGrants structure.

func (*GetAccessGrantsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateAccessGrantBadRequest

type UpdateAccessGrantBadRequest struct {
	Payload *models.Errors
}

UpdateAccessGrantBadRequest describes a response with status code 400, with default header values.

BadRequest

func NewUpdateAccessGrantBadRequest

func NewUpdateAccessGrantBadRequest() *UpdateAccessGrantBadRequest

NewUpdateAccessGrantBadRequest creates a UpdateAccessGrantBadRequest with default headers values

func (*UpdateAccessGrantBadRequest) Code

func (o *UpdateAccessGrantBadRequest) Code() int

Code gets the status code for the update access grant bad request response

func (*UpdateAccessGrantBadRequest) Error

func (*UpdateAccessGrantBadRequest) GetPayload

func (o *UpdateAccessGrantBadRequest) GetPayload() *models.Errors

func (*UpdateAccessGrantBadRequest) IsClientError

func (o *UpdateAccessGrantBadRequest) IsClientError() bool

IsClientError returns true when this update access grant bad request response has a 4xx status code

func (*UpdateAccessGrantBadRequest) IsCode

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

IsCode returns true when this update access grant bad request response a status code equal to that given

func (*UpdateAccessGrantBadRequest) IsRedirect

func (o *UpdateAccessGrantBadRequest) IsRedirect() bool

IsRedirect returns true when this update access grant bad request response has a 3xx status code

func (*UpdateAccessGrantBadRequest) IsServerError

func (o *UpdateAccessGrantBadRequest) IsServerError() bool

IsServerError returns true when this update access grant bad request response has a 5xx status code

func (*UpdateAccessGrantBadRequest) IsSuccess

func (o *UpdateAccessGrantBadRequest) IsSuccess() bool

IsSuccess returns true when this update access grant bad request response has a 2xx status code

func (*UpdateAccessGrantBadRequest) String

func (o *UpdateAccessGrantBadRequest) String() string

type UpdateAccessGrantNotFound

type UpdateAccessGrantNotFound struct {
	Payload *models.Errors
}

UpdateAccessGrantNotFound describes a response with status code 404, with default header values.

NotFound

func NewUpdateAccessGrantNotFound

func NewUpdateAccessGrantNotFound() *UpdateAccessGrantNotFound

NewUpdateAccessGrantNotFound creates a UpdateAccessGrantNotFound with default headers values

func (*UpdateAccessGrantNotFound) Code

func (o *UpdateAccessGrantNotFound) Code() int

Code gets the status code for the update access grant not found response

func (*UpdateAccessGrantNotFound) Error

func (o *UpdateAccessGrantNotFound) Error() string

func (*UpdateAccessGrantNotFound) GetPayload

func (o *UpdateAccessGrantNotFound) GetPayload() *models.Errors

func (*UpdateAccessGrantNotFound) IsClientError

func (o *UpdateAccessGrantNotFound) IsClientError() bool

IsClientError returns true when this update access grant not found response has a 4xx status code

func (*UpdateAccessGrantNotFound) IsCode

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

IsCode returns true when this update access grant not found response a status code equal to that given

func (*UpdateAccessGrantNotFound) IsRedirect

func (o *UpdateAccessGrantNotFound) IsRedirect() bool

IsRedirect returns true when this update access grant not found response has a 3xx status code

func (*UpdateAccessGrantNotFound) IsServerError

func (o *UpdateAccessGrantNotFound) IsServerError() bool

IsServerError returns true when this update access grant not found response has a 5xx status code

func (*UpdateAccessGrantNotFound) IsSuccess

func (o *UpdateAccessGrantNotFound) IsSuccess() bool

IsSuccess returns true when this update access grant not found response has a 2xx status code

func (*UpdateAccessGrantNotFound) String

func (o *UpdateAccessGrantNotFound) String() string

type UpdateAccessGrantOK

type UpdateAccessGrantOK struct {
	Payload *models.AccessGrant
}

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

UpdateAccessGrantOK update access grant o k

func NewUpdateAccessGrantOK

func NewUpdateAccessGrantOK() *UpdateAccessGrantOK

NewUpdateAccessGrantOK creates a UpdateAccessGrantOK with default headers values

func (*UpdateAccessGrantOK) Code

func (o *UpdateAccessGrantOK) Code() int

Code gets the status code for the update access grant o k response

func (*UpdateAccessGrantOK) Error

func (o *UpdateAccessGrantOK) Error() string

func (*UpdateAccessGrantOK) GetPayload

func (o *UpdateAccessGrantOK) GetPayload() *models.AccessGrant

func (*UpdateAccessGrantOK) IsClientError

func (o *UpdateAccessGrantOK) IsClientError() bool

IsClientError returns true when this update access grant o k response has a 4xx status code

func (*UpdateAccessGrantOK) IsCode

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

IsCode returns true when this update access grant o k response a status code equal to that given

func (*UpdateAccessGrantOK) IsRedirect

func (o *UpdateAccessGrantOK) IsRedirect() bool

IsRedirect returns true when this update access grant o k response has a 3xx status code

func (*UpdateAccessGrantOK) IsServerError

func (o *UpdateAccessGrantOK) IsServerError() bool

IsServerError returns true when this update access grant o k response has a 5xx status code

func (*UpdateAccessGrantOK) IsSuccess

func (o *UpdateAccessGrantOK) IsSuccess() bool

IsSuccess returns true when this update access grant o k response has a 2xx status code

func (*UpdateAccessGrantOK) String

func (o *UpdateAccessGrantOK) String() string

type UpdateAccessGrantParams

type UpdateAccessGrantParams struct {

	// AccessGrants.
	AccessGrants *models.PutAccessGrants

	// AccessGrantToken.
	AccessGrantToken string

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

UpdateAccessGrantParams contains all the parameters to send to the API endpoint

for the update access grant operation.

Typically these are written to a http.Request.

func NewUpdateAccessGrantParams

func NewUpdateAccessGrantParams() *UpdateAccessGrantParams

NewUpdateAccessGrantParams creates a new UpdateAccessGrantParams 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 NewUpdateAccessGrantParamsWithContext

func NewUpdateAccessGrantParamsWithContext(ctx context.Context) *UpdateAccessGrantParams

NewUpdateAccessGrantParamsWithContext creates a new UpdateAccessGrantParams object with the ability to set a context for a request.

func NewUpdateAccessGrantParamsWithHTTPClient

func NewUpdateAccessGrantParamsWithHTTPClient(client *http.Client) *UpdateAccessGrantParams

NewUpdateAccessGrantParamsWithHTTPClient creates a new UpdateAccessGrantParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateAccessGrantParamsWithTimeout

func NewUpdateAccessGrantParamsWithTimeout(timeout time.Duration) *UpdateAccessGrantParams

NewUpdateAccessGrantParamsWithTimeout creates a new UpdateAccessGrantParams object with the ability to set a timeout on a request.

func (*UpdateAccessGrantParams) SetAccessGrantToken

func (o *UpdateAccessGrantParams) SetAccessGrantToken(accessGrantToken string)

SetAccessGrantToken adds the accessGrantToken to the update access grant params

func (*UpdateAccessGrantParams) SetAccessGrants

func (o *UpdateAccessGrantParams) SetAccessGrants(accessGrants *models.PutAccessGrants)

SetAccessGrants adds the accessGrants to the update access grant params

func (*UpdateAccessGrantParams) SetContext

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

SetContext adds the context to the update access grant params

func (*UpdateAccessGrantParams) SetDefaults

func (o *UpdateAccessGrantParams) SetDefaults()

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

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

func (*UpdateAccessGrantParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update access grant params

func (*UpdateAccessGrantParams) SetTimeout

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

SetTimeout adds the timeout to the update access grant params

func (*UpdateAccessGrantParams) WithAccessGrantToken

func (o *UpdateAccessGrantParams) WithAccessGrantToken(accessGrantToken string) *UpdateAccessGrantParams

WithAccessGrantToken adds the accessGrantToken to the update access grant params

func (*UpdateAccessGrantParams) WithAccessGrants

func (o *UpdateAccessGrantParams) WithAccessGrants(accessGrants *models.PutAccessGrants) *UpdateAccessGrantParams

WithAccessGrants adds the accessGrants to the update access grant params

func (*UpdateAccessGrantParams) WithContext

WithContext adds the context to the update access grant params

func (*UpdateAccessGrantParams) WithDefaults

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

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

func (*UpdateAccessGrantParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update access grant params

func (*UpdateAccessGrantParams) WithTimeout

WithTimeout adds the timeout to the update access grant params

func (*UpdateAccessGrantParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateAccessGrantReader

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

UpdateAccessGrantReader is a Reader for the UpdateAccessGrant structure.

func (*UpdateAccessGrantReader) ReadResponse

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