Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateAccessGrant(params *CreateAccessGrantParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateAccessGrantCreated, error)
- func (a *Client) DeleteAccessGrant(params *DeleteAccessGrantParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteAccessGrantNoContent, error)
- func (a *Client) GetAccessGrant(params *GetAccessGrantParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAccessGrantOK, error)
- func (a *Client) GetAccessGrants(params *GetAccessGrantsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAccessGrantsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateAccessGrant(params *UpdateAccessGrantParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateAccessGrantOK, error)
- type ClientOption
- type ClientService
- type CreateAccessGrantBadRequest
- func (o *CreateAccessGrantBadRequest) Code() int
- func (o *CreateAccessGrantBadRequest) Error() string
- func (o *CreateAccessGrantBadRequest) GetPayload() *models.Errors
- func (o *CreateAccessGrantBadRequest) IsClientError() bool
- func (o *CreateAccessGrantBadRequest) IsCode(code int) bool
- func (o *CreateAccessGrantBadRequest) IsRedirect() bool
- func (o *CreateAccessGrantBadRequest) IsServerError() bool
- func (o *CreateAccessGrantBadRequest) IsSuccess() bool
- func (o *CreateAccessGrantBadRequest) String() string
- type CreateAccessGrantCreated
- func (o *CreateAccessGrantCreated) Code() int
- func (o *CreateAccessGrantCreated) Error() string
- func (o *CreateAccessGrantCreated) GetPayload() *models.AccessGrant
- func (o *CreateAccessGrantCreated) IsClientError() bool
- func (o *CreateAccessGrantCreated) IsCode(code int) bool
- func (o *CreateAccessGrantCreated) IsRedirect() bool
- func (o *CreateAccessGrantCreated) IsServerError() bool
- func (o *CreateAccessGrantCreated) IsSuccess() bool
- func (o *CreateAccessGrantCreated) String() string
- type CreateAccessGrantForbidden
- func (o *CreateAccessGrantForbidden) Code() int
- func (o *CreateAccessGrantForbidden) Error() string
- func (o *CreateAccessGrantForbidden) GetPayload() *models.Errors
- func (o *CreateAccessGrantForbidden) IsClientError() bool
- func (o *CreateAccessGrantForbidden) IsCode(code int) bool
- func (o *CreateAccessGrantForbidden) IsRedirect() bool
- func (o *CreateAccessGrantForbidden) IsServerError() bool
- func (o *CreateAccessGrantForbidden) IsSuccess() bool
- func (o *CreateAccessGrantForbidden) String() string
- type CreateAccessGrantNotAcceptable
- func (o *CreateAccessGrantNotAcceptable) Code() int
- func (o *CreateAccessGrantNotAcceptable) Error() string
- func (o *CreateAccessGrantNotAcceptable) GetPayload() *models.Errors
- func (o *CreateAccessGrantNotAcceptable) IsClientError() bool
- func (o *CreateAccessGrantNotAcceptable) IsCode(code int) bool
- func (o *CreateAccessGrantNotAcceptable) IsRedirect() bool
- func (o *CreateAccessGrantNotAcceptable) IsServerError() bool
- func (o *CreateAccessGrantNotAcceptable) IsSuccess() bool
- func (o *CreateAccessGrantNotAcceptable) String() string
- type CreateAccessGrantNotFound
- func (o *CreateAccessGrantNotFound) Code() int
- func (o *CreateAccessGrantNotFound) Error() string
- func (o *CreateAccessGrantNotFound) GetPayload() *models.Errors
- func (o *CreateAccessGrantNotFound) IsClientError() bool
- func (o *CreateAccessGrantNotFound) IsCode(code int) bool
- func (o *CreateAccessGrantNotFound) IsRedirect() bool
- func (o *CreateAccessGrantNotFound) IsServerError() bool
- func (o *CreateAccessGrantNotFound) IsSuccess() bool
- func (o *CreateAccessGrantNotFound) String() string
- type CreateAccessGrantParams
- func NewCreateAccessGrantParams() *CreateAccessGrantParams
- func NewCreateAccessGrantParamsWithContext(ctx context.Context) *CreateAccessGrantParams
- func NewCreateAccessGrantParamsWithHTTPClient(client *http.Client) *CreateAccessGrantParams
- func NewCreateAccessGrantParamsWithTimeout(timeout time.Duration) *CreateAccessGrantParams
- func (o *CreateAccessGrantParams) SetAccessGrants(accessGrants *models.PostAccessGrants)
- func (o *CreateAccessGrantParams) SetContext(ctx context.Context)
- func (o *CreateAccessGrantParams) SetDefaults()
- func (o *CreateAccessGrantParams) SetHTTPClient(client *http.Client)
- func (o *CreateAccessGrantParams) SetTimeout(timeout time.Duration)
- func (o *CreateAccessGrantParams) WithAccessGrants(accessGrants *models.PostAccessGrants) *CreateAccessGrantParams
- func (o *CreateAccessGrantParams) WithContext(ctx context.Context) *CreateAccessGrantParams
- func (o *CreateAccessGrantParams) WithDefaults() *CreateAccessGrantParams
- func (o *CreateAccessGrantParams) WithHTTPClient(client *http.Client) *CreateAccessGrantParams
- func (o *CreateAccessGrantParams) WithTimeout(timeout time.Duration) *CreateAccessGrantParams
- func (o *CreateAccessGrantParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateAccessGrantReader
- type CreateAccessGrantUnprocessableEntity
- func (o *CreateAccessGrantUnprocessableEntity) Code() int
- func (o *CreateAccessGrantUnprocessableEntity) Error() string
- func (o *CreateAccessGrantUnprocessableEntity) GetPayload() *models.Errors
- func (o *CreateAccessGrantUnprocessableEntity) IsClientError() bool
- func (o *CreateAccessGrantUnprocessableEntity) IsCode(code int) bool
- func (o *CreateAccessGrantUnprocessableEntity) IsRedirect() bool
- func (o *CreateAccessGrantUnprocessableEntity) IsServerError() bool
- func (o *CreateAccessGrantUnprocessableEntity) IsSuccess() bool
- func (o *CreateAccessGrantUnprocessableEntity) String() string
- type DeleteAccessGrantNoContent
- func (o *DeleteAccessGrantNoContent) Code() int
- func (o *DeleteAccessGrantNoContent) Error() string
- func (o *DeleteAccessGrantNoContent) GetPayload() *models.AccessGrant
- func (o *DeleteAccessGrantNoContent) IsClientError() bool
- func (o *DeleteAccessGrantNoContent) IsCode(code int) bool
- func (o *DeleteAccessGrantNoContent) IsRedirect() bool
- func (o *DeleteAccessGrantNoContent) IsServerError() bool
- func (o *DeleteAccessGrantNoContent) IsSuccess() bool
- func (o *DeleteAccessGrantNoContent) String() string
- type DeleteAccessGrantNotFound
- func (o *DeleteAccessGrantNotFound) Code() int
- func (o *DeleteAccessGrantNotFound) Error() string
- func (o *DeleteAccessGrantNotFound) GetPayload() *models.Errors
- func (o *DeleteAccessGrantNotFound) IsClientError() bool
- func (o *DeleteAccessGrantNotFound) IsCode(code int) bool
- func (o *DeleteAccessGrantNotFound) IsRedirect() bool
- func (o *DeleteAccessGrantNotFound) IsServerError() bool
- func (o *DeleteAccessGrantNotFound) IsSuccess() bool
- func (o *DeleteAccessGrantNotFound) String() string
- type DeleteAccessGrantParams
- func NewDeleteAccessGrantParams() *DeleteAccessGrantParams
- func NewDeleteAccessGrantParamsWithContext(ctx context.Context) *DeleteAccessGrantParams
- func NewDeleteAccessGrantParamsWithHTTPClient(client *http.Client) *DeleteAccessGrantParams
- func NewDeleteAccessGrantParamsWithTimeout(timeout time.Duration) *DeleteAccessGrantParams
- func (o *DeleteAccessGrantParams) SetAccessGrantToken(accessGrantToken string)
- func (o *DeleteAccessGrantParams) SetContext(ctx context.Context)
- func (o *DeleteAccessGrantParams) SetDefaults()
- func (o *DeleteAccessGrantParams) SetHTTPClient(client *http.Client)
- func (o *DeleteAccessGrantParams) SetTimeout(timeout time.Duration)
- func (o *DeleteAccessGrantParams) WithAccessGrantToken(accessGrantToken string) *DeleteAccessGrantParams
- func (o *DeleteAccessGrantParams) WithContext(ctx context.Context) *DeleteAccessGrantParams
- func (o *DeleteAccessGrantParams) WithDefaults() *DeleteAccessGrantParams
- func (o *DeleteAccessGrantParams) WithHTTPClient(client *http.Client) *DeleteAccessGrantParams
- func (o *DeleteAccessGrantParams) WithTimeout(timeout time.Duration) *DeleteAccessGrantParams
- func (o *DeleteAccessGrantParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteAccessGrantReader
- type GetAccessGrantNotFound
- func (o *GetAccessGrantNotFound) Code() int
- func (o *GetAccessGrantNotFound) Error() string
- func (o *GetAccessGrantNotFound) GetPayload() *models.Errors
- func (o *GetAccessGrantNotFound) IsClientError() bool
- func (o *GetAccessGrantNotFound) IsCode(code int) bool
- func (o *GetAccessGrantNotFound) IsRedirect() bool
- func (o *GetAccessGrantNotFound) IsServerError() bool
- func (o *GetAccessGrantNotFound) IsSuccess() bool
- func (o *GetAccessGrantNotFound) String() string
- type GetAccessGrantOK
- func (o *GetAccessGrantOK) Code() int
- func (o *GetAccessGrantOK) Error() string
- func (o *GetAccessGrantOK) GetPayload() *models.AccessGrant
- func (o *GetAccessGrantOK) IsClientError() bool
- func (o *GetAccessGrantOK) IsCode(code int) bool
- func (o *GetAccessGrantOK) IsRedirect() bool
- func (o *GetAccessGrantOK) IsServerError() bool
- func (o *GetAccessGrantOK) IsSuccess() bool
- func (o *GetAccessGrantOK) String() string
- type GetAccessGrantParams
- func NewGetAccessGrantParams() *GetAccessGrantParams
- func NewGetAccessGrantParamsWithContext(ctx context.Context) *GetAccessGrantParams
- func NewGetAccessGrantParamsWithHTTPClient(client *http.Client) *GetAccessGrantParams
- func NewGetAccessGrantParamsWithTimeout(timeout time.Duration) *GetAccessGrantParams
- func (o *GetAccessGrantParams) SetAccessGrantToken(accessGrantToken string)
- func (o *GetAccessGrantParams) SetContext(ctx context.Context)
- func (o *GetAccessGrantParams) SetDefaults()
- func (o *GetAccessGrantParams) SetHTTPClient(client *http.Client)
- func (o *GetAccessGrantParams) SetTimeout(timeout time.Duration)
- func (o *GetAccessGrantParams) WithAccessGrantToken(accessGrantToken string) *GetAccessGrantParams
- func (o *GetAccessGrantParams) WithContext(ctx context.Context) *GetAccessGrantParams
- func (o *GetAccessGrantParams) WithDefaults() *GetAccessGrantParams
- func (o *GetAccessGrantParams) WithHTTPClient(client *http.Client) *GetAccessGrantParams
- func (o *GetAccessGrantParams) WithTimeout(timeout time.Duration) *GetAccessGrantParams
- func (o *GetAccessGrantParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAccessGrantReader
- type GetAccessGrantsOK
- func (o *GetAccessGrantsOK) Code() int
- func (o *GetAccessGrantsOK) Error() string
- func (o *GetAccessGrantsOK) GetPayload() *models.AccessGrants
- func (o *GetAccessGrantsOK) IsClientError() bool
- func (o *GetAccessGrantsOK) IsCode(code int) bool
- func (o *GetAccessGrantsOK) IsRedirect() bool
- func (o *GetAccessGrantsOK) IsServerError() bool
- func (o *GetAccessGrantsOK) IsSuccess() bool
- func (o *GetAccessGrantsOK) String() string
- type GetAccessGrantsParams
- func NewGetAccessGrantsParams() *GetAccessGrantsParams
- func NewGetAccessGrantsParamsWithContext(ctx context.Context) *GetAccessGrantsParams
- func NewGetAccessGrantsParamsWithHTTPClient(client *http.Client) *GetAccessGrantsParams
- func NewGetAccessGrantsParamsWithTimeout(timeout time.Duration) *GetAccessGrantsParams
- func (o *GetAccessGrantsParams) SetContext(ctx context.Context)
- func (o *GetAccessGrantsParams) SetDefaults()
- func (o *GetAccessGrantsParams) SetHTTPClient(client *http.Client)
- func (o *GetAccessGrantsParams) SetLimit(limit *int32)
- func (o *GetAccessGrantsParams) SetPage(page *int32)
- func (o *GetAccessGrantsParams) SetTimeout(timeout time.Duration)
- func (o *GetAccessGrantsParams) WithContext(ctx context.Context) *GetAccessGrantsParams
- func (o *GetAccessGrantsParams) WithDefaults() *GetAccessGrantsParams
- func (o *GetAccessGrantsParams) WithHTTPClient(client *http.Client) *GetAccessGrantsParams
- func (o *GetAccessGrantsParams) WithLimit(limit *int32) *GetAccessGrantsParams
- func (o *GetAccessGrantsParams) WithPage(page *int32) *GetAccessGrantsParams
- func (o *GetAccessGrantsParams) WithTimeout(timeout time.Duration) *GetAccessGrantsParams
- func (o *GetAccessGrantsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAccessGrantsReader
- type UpdateAccessGrantBadRequest
- func (o *UpdateAccessGrantBadRequest) Code() int
- func (o *UpdateAccessGrantBadRequest) Error() string
- func (o *UpdateAccessGrantBadRequest) GetPayload() *models.Errors
- func (o *UpdateAccessGrantBadRequest) IsClientError() bool
- func (o *UpdateAccessGrantBadRequest) IsCode(code int) bool
- func (o *UpdateAccessGrantBadRequest) IsRedirect() bool
- func (o *UpdateAccessGrantBadRequest) IsServerError() bool
- func (o *UpdateAccessGrantBadRequest) IsSuccess() bool
- func (o *UpdateAccessGrantBadRequest) String() string
- type UpdateAccessGrantNotFound
- func (o *UpdateAccessGrantNotFound) Code() int
- func (o *UpdateAccessGrantNotFound) Error() string
- func (o *UpdateAccessGrantNotFound) GetPayload() *models.Errors
- func (o *UpdateAccessGrantNotFound) IsClientError() bool
- func (o *UpdateAccessGrantNotFound) IsCode(code int) bool
- func (o *UpdateAccessGrantNotFound) IsRedirect() bool
- func (o *UpdateAccessGrantNotFound) IsServerError() bool
- func (o *UpdateAccessGrantNotFound) IsSuccess() bool
- func (o *UpdateAccessGrantNotFound) String() string
- type UpdateAccessGrantOK
- func (o *UpdateAccessGrantOK) Code() int
- func (o *UpdateAccessGrantOK) Error() string
- func (o *UpdateAccessGrantOK) GetPayload() *models.AccessGrant
- func (o *UpdateAccessGrantOK) IsClientError() bool
- func (o *UpdateAccessGrantOK) IsCode(code int) bool
- func (o *UpdateAccessGrantOK) IsRedirect() bool
- func (o *UpdateAccessGrantOK) IsServerError() bool
- func (o *UpdateAccessGrantOK) IsSuccess() bool
- func (o *UpdateAccessGrantOK) String() string
- type UpdateAccessGrantParams
- func NewUpdateAccessGrantParams() *UpdateAccessGrantParams
- func NewUpdateAccessGrantParamsWithContext(ctx context.Context) *UpdateAccessGrantParams
- func NewUpdateAccessGrantParamsWithHTTPClient(client *http.Client) *UpdateAccessGrantParams
- func NewUpdateAccessGrantParamsWithTimeout(timeout time.Duration) *UpdateAccessGrantParams
- func (o *UpdateAccessGrantParams) SetAccessGrantToken(accessGrantToken string)
- func (o *UpdateAccessGrantParams) SetAccessGrants(accessGrants *models.PutAccessGrants)
- func (o *UpdateAccessGrantParams) SetContext(ctx context.Context)
- func (o *UpdateAccessGrantParams) SetDefaults()
- func (o *UpdateAccessGrantParams) SetHTTPClient(client *http.Client)
- func (o *UpdateAccessGrantParams) SetTimeout(timeout time.Duration)
- func (o *UpdateAccessGrantParams) WithAccessGrantToken(accessGrantToken string) *UpdateAccessGrantParams
- func (o *UpdateAccessGrantParams) WithAccessGrants(accessGrants *models.PutAccessGrants) *UpdateAccessGrantParams
- func (o *UpdateAccessGrantParams) WithContext(ctx context.Context) *UpdateAccessGrantParams
- func (o *UpdateAccessGrantParams) WithDefaults() *UpdateAccessGrantParams
- func (o *UpdateAccessGrantParams) WithHTTPClient(client *http.Client) *UpdateAccessGrantParams
- func (o *UpdateAccessGrantParams) WithTimeout(timeout time.Duration) *UpdateAccessGrantParams
- func (o *UpdateAccessGrantParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateAccessGrantReader
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 ¶
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 (o *CreateAccessGrantBadRequest) Error() string
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 ¶
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 (o *CreateAccessGrantForbidden) Error() string
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 ¶
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 ¶
func (o *CreateAccessGrantNotAcceptable) Code() int
Code gets the status code for the create access grant not acceptable response
func (*CreateAccessGrantNotAcceptable) Error ¶
func (o *CreateAccessGrantNotAcceptable) Error() string
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 ¶
func (o *CreateAccessGrantNotAcceptable) String() string
type CreateAccessGrantNotFound ¶
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 ¶
func (o *CreateAccessGrantParams) WithContext(ctx context.Context) *CreateAccessGrantParams
WithContext adds the context to the create access grant params
func (*CreateAccessGrantParams) WithDefaults ¶
func (o *CreateAccessGrantParams) WithDefaults() *CreateAccessGrantParams
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 ¶
func (o *CreateAccessGrantParams) WithTimeout(timeout time.Duration) *CreateAccessGrantParams
WithTimeout adds the timeout to the create access grant params
func (*CreateAccessGrantParams) WriteToRequest ¶
func (o *CreateAccessGrantParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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 ¶
func (o *CreateAccessGrantUnprocessableEntity) Code() int
Code gets the status code for the create access grant unprocessable entity response
func (*CreateAccessGrantUnprocessableEntity) Error ¶
func (o *CreateAccessGrantUnprocessableEntity) Error() string
func (*CreateAccessGrantUnprocessableEntity) GetPayload ¶
func (o *CreateAccessGrantUnprocessableEntity) GetPayload() *models.Errors
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 ¶
func (o *CreateAccessGrantUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this create access grant unprocessable entity response a status code equal to that given
func (*CreateAccessGrantUnprocessableEntity) IsRedirect ¶
func (o *CreateAccessGrantUnprocessableEntity) IsRedirect() bool
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 ¶
func (o *CreateAccessGrantUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this create access grant unprocessable entity response has a 2xx status code
func (*CreateAccessGrantUnprocessableEntity) String ¶
func (o *CreateAccessGrantUnprocessableEntity) String() 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 (o *DeleteAccessGrantNoContent) Error() string
func (*DeleteAccessGrantNoContent) GetPayload ¶
func (o *DeleteAccessGrantNoContent) GetPayload() *models.AccessGrant
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 ¶
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 ¶
func (o *DeleteAccessGrantParams) WithContext(ctx context.Context) *DeleteAccessGrantParams
WithContext adds the context to the delete access grant params
func (*DeleteAccessGrantParams) WithDefaults ¶
func (o *DeleteAccessGrantParams) WithDefaults() *DeleteAccessGrantParams
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 ¶
func (o *DeleteAccessGrantParams) WithTimeout(timeout time.Duration) *DeleteAccessGrantParams
WithTimeout adds the timeout to the delete access grant params
func (*DeleteAccessGrantParams) WriteToRequest ¶
func (o *DeleteAccessGrantParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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 ¶
func (o *GetAccessGrantParams) WithContext(ctx context.Context) *GetAccessGrantParams
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 ¶
func (o *GetAccessGrantsParams) WithContext(ctx context.Context) *GetAccessGrantsParams
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 ¶
func (o *GetAccessGrantsParams) WithPage(page *int32) *GetAccessGrantsParams
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 ¶
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 (o *UpdateAccessGrantBadRequest) Error() string
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 ¶
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 ¶
func (o *UpdateAccessGrantParams) WithContext(ctx context.Context) *UpdateAccessGrantParams
WithContext adds the context to the update access grant params
func (*UpdateAccessGrantParams) WithDefaults ¶
func (o *UpdateAccessGrantParams) WithDefaults() *UpdateAccessGrantParams
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 ¶
func (o *UpdateAccessGrantParams) WithTimeout(timeout time.Duration) *UpdateAccessGrantParams
WithTimeout adds the timeout to the update access grant params
func (*UpdateAccessGrantParams) WriteToRequest ¶
func (o *UpdateAccessGrantParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files
¶
- access_grants_client.go
- create_access_grant_parameters.go
- create_access_grant_responses.go
- delete_access_grant_parameters.go
- delete_access_grant_responses.go
- get_access_grant_parameters.go
- get_access_grant_responses.go
- get_access_grants_parameters.go
- get_access_grants_responses.go
- update_access_grant_parameters.go
- update_access_grant_responses.go