principals

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for principals API

func (*Client) PrincipalGetUsingGET

func (a *Client) PrincipalGetUsingGET(params *PrincipalGetUsingGETParams, opts ...ClientOption) (*PrincipalGetUsingGETOK, error)

PrincipalGetUsingGET gets

Get principal

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption added in v1.2.4

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	PrincipalGetUsingGET(params *PrincipalGetUsingGETParams, opts ...ClientOption) (*PrincipalGetUsingGETOK, 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 principals API client.

type PrincipalGetUsingGETBadRequest

type PrincipalGetUsingGETBadRequest struct {
	Payload *models.ProxyResponseMessage
}
PrincipalGetUsingGETBadRequest describes a response with status code 400, with default header values.

Bad request, error occurred. For more details see log messages.

func NewPrincipalGetUsingGETBadRequest

func NewPrincipalGetUsingGETBadRequest() *PrincipalGetUsingGETBadRequest

NewPrincipalGetUsingGETBadRequest creates a PrincipalGetUsingGETBadRequest with default headers values

func (*PrincipalGetUsingGETBadRequest) Error

func (*PrincipalGetUsingGETBadRequest) GetPayload added in v1.2.0

type PrincipalGetUsingGETNotFound

type PrincipalGetUsingGETNotFound struct {
}
PrincipalGetUsingGETNotFound describes a response with status code 404, with default header values.

Entity not found.

func NewPrincipalGetUsingGETNotFound

func NewPrincipalGetUsingGETNotFound() *PrincipalGetUsingGETNotFound

NewPrincipalGetUsingGETNotFound creates a PrincipalGetUsingGETNotFound with default headers values

func (*PrincipalGetUsingGETNotFound) Error

type PrincipalGetUsingGETOK

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

OK

func NewPrincipalGetUsingGETOK

func NewPrincipalGetUsingGETOK() *PrincipalGetUsingGETOK

NewPrincipalGetUsingGETOK creates a PrincipalGetUsingGETOK with default headers values

func (*PrincipalGetUsingGETOK) Error

func (o *PrincipalGetUsingGETOK) Error() string

func (*PrincipalGetUsingGETOK) GetPayload

type PrincipalGetUsingGETParams

type PrincipalGetUsingGETParams struct {

	/* PrincipalID.

	   principalId

	   Format: int32
	*/
	PrincipalID int32

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

PrincipalGetUsingGETParams contains all the parameters to send to the API endpoint

for the principal get using g e t operation.

Typically these are written to a http.Request.

func NewPrincipalGetUsingGETParams

func NewPrincipalGetUsingGETParams() *PrincipalGetUsingGETParams

NewPrincipalGetUsingGETParams creates a new PrincipalGetUsingGETParams 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 NewPrincipalGetUsingGETParamsWithContext

func NewPrincipalGetUsingGETParamsWithContext(ctx context.Context) *PrincipalGetUsingGETParams

NewPrincipalGetUsingGETParamsWithContext creates a new PrincipalGetUsingGETParams object with the ability to set a context for a request.

func NewPrincipalGetUsingGETParamsWithHTTPClient

func NewPrincipalGetUsingGETParamsWithHTTPClient(client *http.Client) *PrincipalGetUsingGETParams

NewPrincipalGetUsingGETParamsWithHTTPClient creates a new PrincipalGetUsingGETParams object with the ability to set a custom HTTPClient for a request.

func NewPrincipalGetUsingGETParamsWithTimeout

func NewPrincipalGetUsingGETParamsWithTimeout(timeout time.Duration) *PrincipalGetUsingGETParams

NewPrincipalGetUsingGETParamsWithTimeout creates a new PrincipalGetUsingGETParams object with the ability to set a timeout on a request.

func (*PrincipalGetUsingGETParams) SetContext

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

SetContext adds the context to the principal get using g e t params

func (*PrincipalGetUsingGETParams) SetDefaults added in v1.2.4

func (o *PrincipalGetUsingGETParams) SetDefaults()

SetDefaults hydrates default values in the principal get using g e t params (not the query body).

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

func (*PrincipalGetUsingGETParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the principal get using g e t params

func (*PrincipalGetUsingGETParams) SetPrincipalID

func (o *PrincipalGetUsingGETParams) SetPrincipalID(principalID int32)

SetPrincipalID adds the principalId to the principal get using g e t params

func (*PrincipalGetUsingGETParams) SetTimeout

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

SetTimeout adds the timeout to the principal get using g e t params

func (*PrincipalGetUsingGETParams) WithContext

WithContext adds the context to the principal get using g e t params

func (*PrincipalGetUsingGETParams) WithDefaults added in v1.2.4

WithDefaults hydrates default values in the principal get using g e t params (not the query body).

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

func (*PrincipalGetUsingGETParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the principal get using g e t params

func (*PrincipalGetUsingGETParams) WithPrincipalID

func (o *PrincipalGetUsingGETParams) WithPrincipalID(principalID int32) *PrincipalGetUsingGETParams

WithPrincipalID adds the principalID to the principal get using g e t params

func (*PrincipalGetUsingGETParams) WithTimeout

WithTimeout adds the timeout to the principal get using g e t params

func (*PrincipalGetUsingGETParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PrincipalGetUsingGETReader

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

PrincipalGetUsingGETReader is a Reader for the PrincipalGetUsingGET structure.

func (*PrincipalGetUsingGETReader) ReadResponse

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