person

package
v0.0.0-...-cedd4c5 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: Apache-2.0 Imports: 10 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 person API

func (*Client) PersonAdd

func (a *Client) PersonAdd(params *PersonAddParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PersonAddOK, error)

PersonAdd adds a person record to alfabet this interface takes in id user name first name last name phone and email

Add a person record to Alfabet. This interface takes in id, userName, firstName, lastName, phone and email.

func (*Client) PersonFindByID

func (a *Client) PersonFindByID(params *PersonFindByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PersonFindByIDOK, error)

PersonFindByID retrieves an existing person or a sigle person record based on the users e u a id

Retrieve an existing person or a sigle person record based on the users EUA id.

func (*Client) PersonFindList

func (a *Client) PersonFindList(params *PersonFindListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PersonFindListOK, error)

PersonFindList retrieves a list of persons based on the inputs passed in

Retrieve a list of persons based on the inputs passed in.

func (*Client) PersonUpdate

func (a *Client) PersonUpdate(params *PersonUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PersonUpdateOK, error)

PersonUpdate updates a person record to alfabet this interface takes in id user name first name last name phone and email

Update a person record to Alfabet. This interface takes in id, userName, firstName, lastName, phone and email.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	PersonAdd(params *PersonAddParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PersonAddOK, error)

	PersonFindByID(params *PersonFindByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PersonFindByIDOK, error)

	PersonFindList(params *PersonFindListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PersonFindListOK, error)

	PersonUpdate(params *PersonUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PersonUpdateOK, 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 person API client.

type PersonAddBadRequest

type PersonAddBadRequest struct {
	Payload *models.Response
}

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

Bad Request

func NewPersonAddBadRequest

func NewPersonAddBadRequest() *PersonAddBadRequest

NewPersonAddBadRequest creates a PersonAddBadRequest with default headers values

func (*PersonAddBadRequest) Code

func (o *PersonAddBadRequest) Code() int

Code gets the status code for the person add bad request response

func (*PersonAddBadRequest) Error

func (o *PersonAddBadRequest) Error() string

func (*PersonAddBadRequest) GetPayload

func (o *PersonAddBadRequest) GetPayload() *models.Response

func (*PersonAddBadRequest) IsClientError

func (o *PersonAddBadRequest) IsClientError() bool

IsClientError returns true when this person add bad request response has a 4xx status code

func (*PersonAddBadRequest) IsCode

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

IsCode returns true when this person add bad request response a status code equal to that given

func (*PersonAddBadRequest) IsRedirect

func (o *PersonAddBadRequest) IsRedirect() bool

IsRedirect returns true when this person add bad request response has a 3xx status code

func (*PersonAddBadRequest) IsServerError

func (o *PersonAddBadRequest) IsServerError() bool

IsServerError returns true when this person add bad request response has a 5xx status code

func (*PersonAddBadRequest) IsSuccess

func (o *PersonAddBadRequest) IsSuccess() bool

IsSuccess returns true when this person add bad request response has a 2xx status code

func (*PersonAddBadRequest) String

func (o *PersonAddBadRequest) String() string

type PersonAddInternalServerError

type PersonAddInternalServerError struct {
	Payload *models.Response
}

PersonAddInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewPersonAddInternalServerError

func NewPersonAddInternalServerError() *PersonAddInternalServerError

NewPersonAddInternalServerError creates a PersonAddInternalServerError with default headers values

func (*PersonAddInternalServerError) Code

Code gets the status code for the person add internal server error response

func (*PersonAddInternalServerError) Error

func (*PersonAddInternalServerError) GetPayload

func (o *PersonAddInternalServerError) GetPayload() *models.Response

func (*PersonAddInternalServerError) IsClientError

func (o *PersonAddInternalServerError) IsClientError() bool

IsClientError returns true when this person add internal server error response has a 4xx status code

func (*PersonAddInternalServerError) IsCode

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

IsCode returns true when this person add internal server error response a status code equal to that given

func (*PersonAddInternalServerError) IsRedirect

func (o *PersonAddInternalServerError) IsRedirect() bool

IsRedirect returns true when this person add internal server error response has a 3xx status code

func (*PersonAddInternalServerError) IsServerError

func (o *PersonAddInternalServerError) IsServerError() bool

IsServerError returns true when this person add internal server error response has a 5xx status code

func (*PersonAddInternalServerError) IsSuccess

func (o *PersonAddInternalServerError) IsSuccess() bool

IsSuccess returns true when this person add internal server error response has a 2xx status code

func (*PersonAddInternalServerError) String

type PersonAddOK

type PersonAddOK struct {
	Payload *models.Response
}

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

OK

func NewPersonAddOK

func NewPersonAddOK() *PersonAddOK

NewPersonAddOK creates a PersonAddOK with default headers values

func (*PersonAddOK) Code

func (o *PersonAddOK) Code() int

Code gets the status code for the person add o k response

func (*PersonAddOK) Error

func (o *PersonAddOK) Error() string

func (*PersonAddOK) GetPayload

func (o *PersonAddOK) GetPayload() *models.Response

func (*PersonAddOK) IsClientError

func (o *PersonAddOK) IsClientError() bool

IsClientError returns true when this person add o k response has a 4xx status code

func (*PersonAddOK) IsCode

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

IsCode returns true when this person add o k response a status code equal to that given

func (*PersonAddOK) IsRedirect

func (o *PersonAddOK) IsRedirect() bool

IsRedirect returns true when this person add o k response has a 3xx status code

func (*PersonAddOK) IsServerError

func (o *PersonAddOK) IsServerError() bool

IsServerError returns true when this person add o k response has a 5xx status code

func (*PersonAddOK) IsSuccess

func (o *PersonAddOK) IsSuccess() bool

IsSuccess returns true when this person add o k response has a 2xx status code

func (*PersonAddOK) String

func (o *PersonAddOK) String() string

type PersonAddParams

type PersonAddParams struct {

	/* Body.

	   Person information to be added to Alfabet.
	*/
	Body *models.Person

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

PersonAddParams contains all the parameters to send to the API endpoint

for the person add operation.

Typically these are written to a http.Request.

func NewPersonAddParams

func NewPersonAddParams() *PersonAddParams

NewPersonAddParams creates a new PersonAddParams 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 NewPersonAddParamsWithContext

func NewPersonAddParamsWithContext(ctx context.Context) *PersonAddParams

NewPersonAddParamsWithContext creates a new PersonAddParams object with the ability to set a context for a request.

func NewPersonAddParamsWithHTTPClient

func NewPersonAddParamsWithHTTPClient(client *http.Client) *PersonAddParams

NewPersonAddParamsWithHTTPClient creates a new PersonAddParams object with the ability to set a custom HTTPClient for a request.

func NewPersonAddParamsWithTimeout

func NewPersonAddParamsWithTimeout(timeout time.Duration) *PersonAddParams

NewPersonAddParamsWithTimeout creates a new PersonAddParams object with the ability to set a timeout on a request.

func (*PersonAddParams) SetBody

func (o *PersonAddParams) SetBody(body *models.Person)

SetBody adds the body to the person add params

func (*PersonAddParams) SetContext

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

SetContext adds the context to the person add params

func (*PersonAddParams) SetDefaults

func (o *PersonAddParams) SetDefaults()

SetDefaults hydrates default values in the person add params (not the query body).

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

func (*PersonAddParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the person add params

func (*PersonAddParams) SetTimeout

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

SetTimeout adds the timeout to the person add params

func (*PersonAddParams) WithBody

func (o *PersonAddParams) WithBody(body *models.Person) *PersonAddParams

WithBody adds the body to the person add params

func (*PersonAddParams) WithContext

func (o *PersonAddParams) WithContext(ctx context.Context) *PersonAddParams

WithContext adds the context to the person add params

func (*PersonAddParams) WithDefaults

func (o *PersonAddParams) WithDefaults() *PersonAddParams

WithDefaults hydrates default values in the person add params (not the query body).

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

func (*PersonAddParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the person add params

func (*PersonAddParams) WithTimeout

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

WithTimeout adds the timeout to the person add params

func (*PersonAddParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PersonAddReader

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

PersonAddReader is a Reader for the PersonAdd structure.

func (*PersonAddReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PersonAddUnauthorized

type PersonAddUnauthorized struct {
	Payload *models.Response
}

PersonAddUnauthorized describes a response with status code 401, with default header values.

Access Denied

func NewPersonAddUnauthorized

func NewPersonAddUnauthorized() *PersonAddUnauthorized

NewPersonAddUnauthorized creates a PersonAddUnauthorized with default headers values

func (*PersonAddUnauthorized) Code

func (o *PersonAddUnauthorized) Code() int

Code gets the status code for the person add unauthorized response

func (*PersonAddUnauthorized) Error

func (o *PersonAddUnauthorized) Error() string

func (*PersonAddUnauthorized) GetPayload

func (o *PersonAddUnauthorized) GetPayload() *models.Response

func (*PersonAddUnauthorized) IsClientError

func (o *PersonAddUnauthorized) IsClientError() bool

IsClientError returns true when this person add unauthorized response has a 4xx status code

func (*PersonAddUnauthorized) IsCode

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

IsCode returns true when this person add unauthorized response a status code equal to that given

func (*PersonAddUnauthorized) IsRedirect

func (o *PersonAddUnauthorized) IsRedirect() bool

IsRedirect returns true when this person add unauthorized response has a 3xx status code

func (*PersonAddUnauthorized) IsServerError

func (o *PersonAddUnauthorized) IsServerError() bool

IsServerError returns true when this person add unauthorized response has a 5xx status code

func (*PersonAddUnauthorized) IsSuccess

func (o *PersonAddUnauthorized) IsSuccess() bool

IsSuccess returns true when this person add unauthorized response has a 2xx status code

func (*PersonAddUnauthorized) String

func (o *PersonAddUnauthorized) String() string

type PersonFindByIDBadRequest

type PersonFindByIDBadRequest struct {
	Payload *models.Response
}

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

Bad Request

func NewPersonFindByIDBadRequest

func NewPersonFindByIDBadRequest() *PersonFindByIDBadRequest

NewPersonFindByIDBadRequest creates a PersonFindByIDBadRequest with default headers values

func (*PersonFindByIDBadRequest) Code

func (o *PersonFindByIDBadRequest) Code() int

Code gets the status code for the person find by Id bad request response

func (*PersonFindByIDBadRequest) Error

func (o *PersonFindByIDBadRequest) Error() string

func (*PersonFindByIDBadRequest) GetPayload

func (o *PersonFindByIDBadRequest) GetPayload() *models.Response

func (*PersonFindByIDBadRequest) IsClientError

func (o *PersonFindByIDBadRequest) IsClientError() bool

IsClientError returns true when this person find by Id bad request response has a 4xx status code

func (*PersonFindByIDBadRequest) IsCode

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

IsCode returns true when this person find by Id bad request response a status code equal to that given

func (*PersonFindByIDBadRequest) IsRedirect

func (o *PersonFindByIDBadRequest) IsRedirect() bool

IsRedirect returns true when this person find by Id bad request response has a 3xx status code

func (*PersonFindByIDBadRequest) IsServerError

func (o *PersonFindByIDBadRequest) IsServerError() bool

IsServerError returns true when this person find by Id bad request response has a 5xx status code

func (*PersonFindByIDBadRequest) IsSuccess

func (o *PersonFindByIDBadRequest) IsSuccess() bool

IsSuccess returns true when this person find by Id bad request response has a 2xx status code

func (*PersonFindByIDBadRequest) String

func (o *PersonFindByIDBadRequest) String() string

type PersonFindByIDInternalServerError

type PersonFindByIDInternalServerError struct {
	Payload *models.Response
}

PersonFindByIDInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewPersonFindByIDInternalServerError

func NewPersonFindByIDInternalServerError() *PersonFindByIDInternalServerError

NewPersonFindByIDInternalServerError creates a PersonFindByIDInternalServerError with default headers values

func (*PersonFindByIDInternalServerError) Code

Code gets the status code for the person find by Id internal server error response

func (*PersonFindByIDInternalServerError) Error

func (*PersonFindByIDInternalServerError) GetPayload

func (*PersonFindByIDInternalServerError) IsClientError

func (o *PersonFindByIDInternalServerError) IsClientError() bool

IsClientError returns true when this person find by Id internal server error response has a 4xx status code

func (*PersonFindByIDInternalServerError) IsCode

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

IsCode returns true when this person find by Id internal server error response a status code equal to that given

func (*PersonFindByIDInternalServerError) IsRedirect

func (o *PersonFindByIDInternalServerError) IsRedirect() bool

IsRedirect returns true when this person find by Id internal server error response has a 3xx status code

func (*PersonFindByIDInternalServerError) IsServerError

func (o *PersonFindByIDInternalServerError) IsServerError() bool

IsServerError returns true when this person find by Id internal server error response has a 5xx status code

func (*PersonFindByIDInternalServerError) IsSuccess

func (o *PersonFindByIDInternalServerError) IsSuccess() bool

IsSuccess returns true when this person find by Id internal server error response has a 2xx status code

func (*PersonFindByIDInternalServerError) String

type PersonFindByIDNotFound

type PersonFindByIDNotFound struct {
	Payload *models.Response
}

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

Not Found

func NewPersonFindByIDNotFound

func NewPersonFindByIDNotFound() *PersonFindByIDNotFound

NewPersonFindByIDNotFound creates a PersonFindByIDNotFound with default headers values

func (*PersonFindByIDNotFound) Code

func (o *PersonFindByIDNotFound) Code() int

Code gets the status code for the person find by Id not found response

func (*PersonFindByIDNotFound) Error

func (o *PersonFindByIDNotFound) Error() string

func (*PersonFindByIDNotFound) GetPayload

func (o *PersonFindByIDNotFound) GetPayload() *models.Response

func (*PersonFindByIDNotFound) IsClientError

func (o *PersonFindByIDNotFound) IsClientError() bool

IsClientError returns true when this person find by Id not found response has a 4xx status code

func (*PersonFindByIDNotFound) IsCode

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

IsCode returns true when this person find by Id not found response a status code equal to that given

func (*PersonFindByIDNotFound) IsRedirect

func (o *PersonFindByIDNotFound) IsRedirect() bool

IsRedirect returns true when this person find by Id not found response has a 3xx status code

func (*PersonFindByIDNotFound) IsServerError

func (o *PersonFindByIDNotFound) IsServerError() bool

IsServerError returns true when this person find by Id not found response has a 5xx status code

func (*PersonFindByIDNotFound) IsSuccess

func (o *PersonFindByIDNotFound) IsSuccess() bool

IsSuccess returns true when this person find by Id not found response has a 2xx status code

func (*PersonFindByIDNotFound) String

func (o *PersonFindByIDNotFound) String() string

type PersonFindByIDOK

type PersonFindByIDOK struct {
	Payload *models.Person
}

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

OK

func NewPersonFindByIDOK

func NewPersonFindByIDOK() *PersonFindByIDOK

NewPersonFindByIDOK creates a PersonFindByIDOK with default headers values

func (*PersonFindByIDOK) Code

func (o *PersonFindByIDOK) Code() int

Code gets the status code for the person find by Id o k response

func (*PersonFindByIDOK) Error

func (o *PersonFindByIDOK) Error() string

func (*PersonFindByIDOK) GetPayload

func (o *PersonFindByIDOK) GetPayload() *models.Person

func (*PersonFindByIDOK) IsClientError

func (o *PersonFindByIDOK) IsClientError() bool

IsClientError returns true when this person find by Id o k response has a 4xx status code

func (*PersonFindByIDOK) IsCode

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

IsCode returns true when this person find by Id o k response a status code equal to that given

func (*PersonFindByIDOK) IsRedirect

func (o *PersonFindByIDOK) IsRedirect() bool

IsRedirect returns true when this person find by Id o k response has a 3xx status code

func (*PersonFindByIDOK) IsServerError

func (o *PersonFindByIDOK) IsServerError() bool

IsServerError returns true when this person find by Id o k response has a 5xx status code

func (*PersonFindByIDOK) IsSuccess

func (o *PersonFindByIDOK) IsSuccess() bool

IsSuccess returns true when this person find by Id o k response has a 2xx status code

func (*PersonFindByIDOK) String

func (o *PersonFindByIDOK) String() string

type PersonFindByIDParams

type PersonFindByIDParams struct {

	/* ID.

	   ID of person to retrieve.
	*/
	ID string

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

PersonFindByIDParams contains all the parameters to send to the API endpoint

for the person find by Id operation.

Typically these are written to a http.Request.

func NewPersonFindByIDParams

func NewPersonFindByIDParams() *PersonFindByIDParams

NewPersonFindByIDParams creates a new PersonFindByIDParams 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 NewPersonFindByIDParamsWithContext

func NewPersonFindByIDParamsWithContext(ctx context.Context) *PersonFindByIDParams

NewPersonFindByIDParamsWithContext creates a new PersonFindByIDParams object with the ability to set a context for a request.

func NewPersonFindByIDParamsWithHTTPClient

func NewPersonFindByIDParamsWithHTTPClient(client *http.Client) *PersonFindByIDParams

NewPersonFindByIDParamsWithHTTPClient creates a new PersonFindByIDParams object with the ability to set a custom HTTPClient for a request.

func NewPersonFindByIDParamsWithTimeout

func NewPersonFindByIDParamsWithTimeout(timeout time.Duration) *PersonFindByIDParams

NewPersonFindByIDParamsWithTimeout creates a new PersonFindByIDParams object with the ability to set a timeout on a request.

func (*PersonFindByIDParams) SetContext

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

SetContext adds the context to the person find by Id params

func (*PersonFindByIDParams) SetDefaults

func (o *PersonFindByIDParams) SetDefaults()

SetDefaults hydrates default values in the person find by Id params (not the query body).

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

func (*PersonFindByIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the person find by Id params

func (*PersonFindByIDParams) SetID

func (o *PersonFindByIDParams) SetID(id string)

SetID adds the id to the person find by Id params

func (*PersonFindByIDParams) SetTimeout

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

SetTimeout adds the timeout to the person find by Id params

func (*PersonFindByIDParams) WithContext

WithContext adds the context to the person find by Id params

func (*PersonFindByIDParams) WithDefaults

func (o *PersonFindByIDParams) WithDefaults() *PersonFindByIDParams

WithDefaults hydrates default values in the person find by Id params (not the query body).

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

func (*PersonFindByIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the person find by Id params

func (*PersonFindByIDParams) WithID

WithID adds the id to the person find by Id params

func (*PersonFindByIDParams) WithTimeout

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

WithTimeout adds the timeout to the person find by Id params

func (*PersonFindByIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PersonFindByIDReader

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

PersonFindByIDReader is a Reader for the PersonFindByID structure.

func (*PersonFindByIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PersonFindByIDUnauthorized

type PersonFindByIDUnauthorized struct {
	Payload *models.Response
}

PersonFindByIDUnauthorized describes a response with status code 401, with default header values.

Access Denied

func NewPersonFindByIDUnauthorized

func NewPersonFindByIDUnauthorized() *PersonFindByIDUnauthorized

NewPersonFindByIDUnauthorized creates a PersonFindByIDUnauthorized with default headers values

func (*PersonFindByIDUnauthorized) Code

func (o *PersonFindByIDUnauthorized) Code() int

Code gets the status code for the person find by Id unauthorized response

func (*PersonFindByIDUnauthorized) Error

func (*PersonFindByIDUnauthorized) GetPayload

func (o *PersonFindByIDUnauthorized) GetPayload() *models.Response

func (*PersonFindByIDUnauthorized) IsClientError

func (o *PersonFindByIDUnauthorized) IsClientError() bool

IsClientError returns true when this person find by Id unauthorized response has a 4xx status code

func (*PersonFindByIDUnauthorized) IsCode

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

IsCode returns true when this person find by Id unauthorized response a status code equal to that given

func (*PersonFindByIDUnauthorized) IsRedirect

func (o *PersonFindByIDUnauthorized) IsRedirect() bool

IsRedirect returns true when this person find by Id unauthorized response has a 3xx status code

func (*PersonFindByIDUnauthorized) IsServerError

func (o *PersonFindByIDUnauthorized) IsServerError() bool

IsServerError returns true when this person find by Id unauthorized response has a 5xx status code

func (*PersonFindByIDUnauthorized) IsSuccess

func (o *PersonFindByIDUnauthorized) IsSuccess() bool

IsSuccess returns true when this person find by Id unauthorized response has a 2xx status code

func (*PersonFindByIDUnauthorized) String

func (o *PersonFindByIDUnauthorized) String() string

type PersonFindListBadRequest

type PersonFindListBadRequest struct {
	Payload *models.Response
}

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

Bad Request

func NewPersonFindListBadRequest

func NewPersonFindListBadRequest() *PersonFindListBadRequest

NewPersonFindListBadRequest creates a PersonFindListBadRequest with default headers values

func (*PersonFindListBadRequest) Code

func (o *PersonFindListBadRequest) Code() int

Code gets the status code for the person find list bad request response

func (*PersonFindListBadRequest) Error

func (o *PersonFindListBadRequest) Error() string

func (*PersonFindListBadRequest) GetPayload

func (o *PersonFindListBadRequest) GetPayload() *models.Response

func (*PersonFindListBadRequest) IsClientError

func (o *PersonFindListBadRequest) IsClientError() bool

IsClientError returns true when this person find list bad request response has a 4xx status code

func (*PersonFindListBadRequest) IsCode

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

IsCode returns true when this person find list bad request response a status code equal to that given

func (*PersonFindListBadRequest) IsRedirect

func (o *PersonFindListBadRequest) IsRedirect() bool

IsRedirect returns true when this person find list bad request response has a 3xx status code

func (*PersonFindListBadRequest) IsServerError

func (o *PersonFindListBadRequest) IsServerError() bool

IsServerError returns true when this person find list bad request response has a 5xx status code

func (*PersonFindListBadRequest) IsSuccess

func (o *PersonFindListBadRequest) IsSuccess() bool

IsSuccess returns true when this person find list bad request response has a 2xx status code

func (*PersonFindListBadRequest) String

func (o *PersonFindListBadRequest) String() string

type PersonFindListInternalServerError

type PersonFindListInternalServerError struct {
	Payload *models.Response
}

PersonFindListInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewPersonFindListInternalServerError

func NewPersonFindListInternalServerError() *PersonFindListInternalServerError

NewPersonFindListInternalServerError creates a PersonFindListInternalServerError with default headers values

func (*PersonFindListInternalServerError) Code

Code gets the status code for the person find list internal server error response

func (*PersonFindListInternalServerError) Error

func (*PersonFindListInternalServerError) GetPayload

func (*PersonFindListInternalServerError) IsClientError

func (o *PersonFindListInternalServerError) IsClientError() bool

IsClientError returns true when this person find list internal server error response has a 4xx status code

func (*PersonFindListInternalServerError) IsCode

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

IsCode returns true when this person find list internal server error response a status code equal to that given

func (*PersonFindListInternalServerError) IsRedirect

func (o *PersonFindListInternalServerError) IsRedirect() bool

IsRedirect returns true when this person find list internal server error response has a 3xx status code

func (*PersonFindListInternalServerError) IsServerError

func (o *PersonFindListInternalServerError) IsServerError() bool

IsServerError returns true when this person find list internal server error response has a 5xx status code

func (*PersonFindListInternalServerError) IsSuccess

func (o *PersonFindListInternalServerError) IsSuccess() bool

IsSuccess returns true when this person find list internal server error response has a 2xx status code

func (*PersonFindListInternalServerError) String

type PersonFindListOK

type PersonFindListOK struct {
	Payload *models.PersonFindResponse
}

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

OK

func NewPersonFindListOK

func NewPersonFindListOK() *PersonFindListOK

NewPersonFindListOK creates a PersonFindListOK with default headers values

func (*PersonFindListOK) Code

func (o *PersonFindListOK) Code() int

Code gets the status code for the person find list o k response

func (*PersonFindListOK) Error

func (o *PersonFindListOK) Error() string

func (*PersonFindListOK) GetPayload

func (o *PersonFindListOK) GetPayload() *models.PersonFindResponse

func (*PersonFindListOK) IsClientError

func (o *PersonFindListOK) IsClientError() bool

IsClientError returns true when this person find list o k response has a 4xx status code

func (*PersonFindListOK) IsCode

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

IsCode returns true when this person find list o k response a status code equal to that given

func (*PersonFindListOK) IsRedirect

func (o *PersonFindListOK) IsRedirect() bool

IsRedirect returns true when this person find list o k response has a 3xx status code

func (*PersonFindListOK) IsServerError

func (o *PersonFindListOK) IsServerError() bool

IsServerError returns true when this person find list o k response has a 5xx status code

func (*PersonFindListOK) IsSuccess

func (o *PersonFindListOK) IsSuccess() bool

IsSuccess returns true when this person find list o k response has a 2xx status code

func (*PersonFindListOK) String

func (o *PersonFindListOK) String() string

type PersonFindListParams

type PersonFindListParams struct {

	/* Email.

	   A person's email.
	*/
	Email *string

	/* FirstName.

	   A person's first name.
	*/
	FirstName *string

	/* ID.

	   A person's EUA id.
	*/
	ID *string

	/* LastName.

	   A person's last name.
	*/
	LastName *string

	/* Phone.

	   A person's phone number.
	*/
	Phone *string

	/* UserName.

	   A person's username.
	*/
	UserName *string

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

PersonFindListParams contains all the parameters to send to the API endpoint

for the person find list operation.

Typically these are written to a http.Request.

func NewPersonFindListParams

func NewPersonFindListParams() *PersonFindListParams

NewPersonFindListParams creates a new PersonFindListParams 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 NewPersonFindListParamsWithContext

func NewPersonFindListParamsWithContext(ctx context.Context) *PersonFindListParams

NewPersonFindListParamsWithContext creates a new PersonFindListParams object with the ability to set a context for a request.

func NewPersonFindListParamsWithHTTPClient

func NewPersonFindListParamsWithHTTPClient(client *http.Client) *PersonFindListParams

NewPersonFindListParamsWithHTTPClient creates a new PersonFindListParams object with the ability to set a custom HTTPClient for a request.

func NewPersonFindListParamsWithTimeout

func NewPersonFindListParamsWithTimeout(timeout time.Duration) *PersonFindListParams

NewPersonFindListParamsWithTimeout creates a new PersonFindListParams object with the ability to set a timeout on a request.

func (*PersonFindListParams) SetContext

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

SetContext adds the context to the person find list params

func (*PersonFindListParams) SetDefaults

func (o *PersonFindListParams) SetDefaults()

SetDefaults hydrates default values in the person find list params (not the query body).

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

func (*PersonFindListParams) SetEmail

func (o *PersonFindListParams) SetEmail(email *string)

SetEmail adds the email to the person find list params

func (*PersonFindListParams) SetFirstName

func (o *PersonFindListParams) SetFirstName(firstName *string)

SetFirstName adds the firstName to the person find list params

func (*PersonFindListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the person find list params

func (*PersonFindListParams) SetID

func (o *PersonFindListParams) SetID(id *string)

SetID adds the id to the person find list params

func (*PersonFindListParams) SetLastName

func (o *PersonFindListParams) SetLastName(lastName *string)

SetLastName adds the lastName to the person find list params

func (*PersonFindListParams) SetPhone

func (o *PersonFindListParams) SetPhone(phone *string)

SetPhone adds the phone to the person find list params

func (*PersonFindListParams) SetTimeout

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

SetTimeout adds the timeout to the person find list params

func (*PersonFindListParams) SetUserName

func (o *PersonFindListParams) SetUserName(userName *string)

SetUserName adds the userName to the person find list params

func (*PersonFindListParams) WithContext

WithContext adds the context to the person find list params

func (*PersonFindListParams) WithDefaults

func (o *PersonFindListParams) WithDefaults() *PersonFindListParams

WithDefaults hydrates default values in the person find list params (not the query body).

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

func (*PersonFindListParams) WithEmail

func (o *PersonFindListParams) WithEmail(email *string) *PersonFindListParams

WithEmail adds the email to the person find list params

func (*PersonFindListParams) WithFirstName

func (o *PersonFindListParams) WithFirstName(firstName *string) *PersonFindListParams

WithFirstName adds the firstName to the person find list params

func (*PersonFindListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the person find list params

func (*PersonFindListParams) WithID

WithID adds the id to the person find list params

func (*PersonFindListParams) WithLastName

func (o *PersonFindListParams) WithLastName(lastName *string) *PersonFindListParams

WithLastName adds the lastName to the person find list params

func (*PersonFindListParams) WithPhone

func (o *PersonFindListParams) WithPhone(phone *string) *PersonFindListParams

WithPhone adds the phone to the person find list params

func (*PersonFindListParams) WithTimeout

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

WithTimeout adds the timeout to the person find list params

func (*PersonFindListParams) WithUserName

func (o *PersonFindListParams) WithUserName(userName *string) *PersonFindListParams

WithUserName adds the userName to the person find list params

func (*PersonFindListParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PersonFindListReader

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

PersonFindListReader is a Reader for the PersonFindList structure.

func (*PersonFindListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PersonFindListUnauthorized

type PersonFindListUnauthorized struct {
	Payload *models.Response
}

PersonFindListUnauthorized describes a response with status code 401, with default header values.

Access Denied

func NewPersonFindListUnauthorized

func NewPersonFindListUnauthorized() *PersonFindListUnauthorized

NewPersonFindListUnauthorized creates a PersonFindListUnauthorized with default headers values

func (*PersonFindListUnauthorized) Code

func (o *PersonFindListUnauthorized) Code() int

Code gets the status code for the person find list unauthorized response

func (*PersonFindListUnauthorized) Error

func (*PersonFindListUnauthorized) GetPayload

func (o *PersonFindListUnauthorized) GetPayload() *models.Response

func (*PersonFindListUnauthorized) IsClientError

func (o *PersonFindListUnauthorized) IsClientError() bool

IsClientError returns true when this person find list unauthorized response has a 4xx status code

func (*PersonFindListUnauthorized) IsCode

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

IsCode returns true when this person find list unauthorized response a status code equal to that given

func (*PersonFindListUnauthorized) IsRedirect

func (o *PersonFindListUnauthorized) IsRedirect() bool

IsRedirect returns true when this person find list unauthorized response has a 3xx status code

func (*PersonFindListUnauthorized) IsServerError

func (o *PersonFindListUnauthorized) IsServerError() bool

IsServerError returns true when this person find list unauthorized response has a 5xx status code

func (*PersonFindListUnauthorized) IsSuccess

func (o *PersonFindListUnauthorized) IsSuccess() bool

IsSuccess returns true when this person find list unauthorized response has a 2xx status code

func (*PersonFindListUnauthorized) String

func (o *PersonFindListUnauthorized) String() string

type PersonUpdateBadRequest

type PersonUpdateBadRequest struct {
	Payload *models.Response
}

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

Bad Request

func NewPersonUpdateBadRequest

func NewPersonUpdateBadRequest() *PersonUpdateBadRequest

NewPersonUpdateBadRequest creates a PersonUpdateBadRequest with default headers values

func (*PersonUpdateBadRequest) Code

func (o *PersonUpdateBadRequest) Code() int

Code gets the status code for the person update bad request response

func (*PersonUpdateBadRequest) Error

func (o *PersonUpdateBadRequest) Error() string

func (*PersonUpdateBadRequest) GetPayload

func (o *PersonUpdateBadRequest) GetPayload() *models.Response

func (*PersonUpdateBadRequest) IsClientError

func (o *PersonUpdateBadRequest) IsClientError() bool

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

func (*PersonUpdateBadRequest) IsCode

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

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

func (*PersonUpdateBadRequest) IsRedirect

func (o *PersonUpdateBadRequest) IsRedirect() bool

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

func (*PersonUpdateBadRequest) IsServerError

func (o *PersonUpdateBadRequest) IsServerError() bool

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

func (*PersonUpdateBadRequest) IsSuccess

func (o *PersonUpdateBadRequest) IsSuccess() bool

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

func (*PersonUpdateBadRequest) String

func (o *PersonUpdateBadRequest) String() string

type PersonUpdateInternalServerError

type PersonUpdateInternalServerError struct {
	Payload *models.Response
}

PersonUpdateInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewPersonUpdateInternalServerError

func NewPersonUpdateInternalServerError() *PersonUpdateInternalServerError

NewPersonUpdateInternalServerError creates a PersonUpdateInternalServerError with default headers values

func (*PersonUpdateInternalServerError) Code

Code gets the status code for the person update internal server error response

func (*PersonUpdateInternalServerError) Error

func (*PersonUpdateInternalServerError) GetPayload

func (*PersonUpdateInternalServerError) IsClientError

func (o *PersonUpdateInternalServerError) IsClientError() bool

IsClientError returns true when this person update internal server error response has a 4xx status code

func (*PersonUpdateInternalServerError) IsCode

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

IsCode returns true when this person update internal server error response a status code equal to that given

func (*PersonUpdateInternalServerError) IsRedirect

func (o *PersonUpdateInternalServerError) IsRedirect() bool

IsRedirect returns true when this person update internal server error response has a 3xx status code

func (*PersonUpdateInternalServerError) IsServerError

func (o *PersonUpdateInternalServerError) IsServerError() bool

IsServerError returns true when this person update internal server error response has a 5xx status code

func (*PersonUpdateInternalServerError) IsSuccess

func (o *PersonUpdateInternalServerError) IsSuccess() bool

IsSuccess returns true when this person update internal server error response has a 2xx status code

func (*PersonUpdateInternalServerError) String

type PersonUpdateOK

type PersonUpdateOK struct {
	Payload *models.Response
}

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

OK

func NewPersonUpdateOK

func NewPersonUpdateOK() *PersonUpdateOK

NewPersonUpdateOK creates a PersonUpdateOK with default headers values

func (*PersonUpdateOK) Code

func (o *PersonUpdateOK) Code() int

Code gets the status code for the person update o k response

func (*PersonUpdateOK) Error

func (o *PersonUpdateOK) Error() string

func (*PersonUpdateOK) GetPayload

func (o *PersonUpdateOK) GetPayload() *models.Response

func (*PersonUpdateOK) IsClientError

func (o *PersonUpdateOK) IsClientError() bool

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

func (*PersonUpdateOK) IsCode

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

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

func (*PersonUpdateOK) IsRedirect

func (o *PersonUpdateOK) IsRedirect() bool

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

func (*PersonUpdateOK) IsServerError

func (o *PersonUpdateOK) IsServerError() bool

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

func (*PersonUpdateOK) IsSuccess

func (o *PersonUpdateOK) IsSuccess() bool

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

func (*PersonUpdateOK) String

func (o *PersonUpdateOK) String() string

type PersonUpdateParams

type PersonUpdateParams struct {

	/* Body.

	   Person information to be updated in Alfabet.
	*/
	Body *models.Person

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

PersonUpdateParams contains all the parameters to send to the API endpoint

for the person update operation.

Typically these are written to a http.Request.

func NewPersonUpdateParams

func NewPersonUpdateParams() *PersonUpdateParams

NewPersonUpdateParams creates a new PersonUpdateParams 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 NewPersonUpdateParamsWithContext

func NewPersonUpdateParamsWithContext(ctx context.Context) *PersonUpdateParams

NewPersonUpdateParamsWithContext creates a new PersonUpdateParams object with the ability to set a context for a request.

func NewPersonUpdateParamsWithHTTPClient

func NewPersonUpdateParamsWithHTTPClient(client *http.Client) *PersonUpdateParams

NewPersonUpdateParamsWithHTTPClient creates a new PersonUpdateParams object with the ability to set a custom HTTPClient for a request.

func NewPersonUpdateParamsWithTimeout

func NewPersonUpdateParamsWithTimeout(timeout time.Duration) *PersonUpdateParams

NewPersonUpdateParamsWithTimeout creates a new PersonUpdateParams object with the ability to set a timeout on a request.

func (*PersonUpdateParams) SetBody

func (o *PersonUpdateParams) SetBody(body *models.Person)

SetBody adds the body to the person update params

func (*PersonUpdateParams) SetContext

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

SetContext adds the context to the person update params

func (*PersonUpdateParams) SetDefaults

func (o *PersonUpdateParams) SetDefaults()

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

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

func (*PersonUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the person update params

func (*PersonUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the person update params

func (*PersonUpdateParams) WithBody

func (o *PersonUpdateParams) WithBody(body *models.Person) *PersonUpdateParams

WithBody adds the body to the person update params

func (*PersonUpdateParams) WithContext

WithContext adds the context to the person update params

func (*PersonUpdateParams) WithDefaults

func (o *PersonUpdateParams) WithDefaults() *PersonUpdateParams

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

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

func (*PersonUpdateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the person update params

func (*PersonUpdateParams) WithTimeout

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

WithTimeout adds the timeout to the person update params

func (*PersonUpdateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PersonUpdateReader

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

PersonUpdateReader is a Reader for the PersonUpdate structure.

func (*PersonUpdateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PersonUpdateUnauthorized

type PersonUpdateUnauthorized struct {
	Payload *models.Response
}

PersonUpdateUnauthorized describes a response with status code 401, with default header values.

Access Denied

func NewPersonUpdateUnauthorized

func NewPersonUpdateUnauthorized() *PersonUpdateUnauthorized

NewPersonUpdateUnauthorized creates a PersonUpdateUnauthorized with default headers values

func (*PersonUpdateUnauthorized) Code

func (o *PersonUpdateUnauthorized) Code() int

Code gets the status code for the person update unauthorized response

func (*PersonUpdateUnauthorized) Error

func (o *PersonUpdateUnauthorized) Error() string

func (*PersonUpdateUnauthorized) GetPayload

func (o *PersonUpdateUnauthorized) GetPayload() *models.Response

func (*PersonUpdateUnauthorized) IsClientError

func (o *PersonUpdateUnauthorized) IsClientError() bool

IsClientError returns true when this person update unauthorized response has a 4xx status code

func (*PersonUpdateUnauthorized) IsCode

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

IsCode returns true when this person update unauthorized response a status code equal to that given

func (*PersonUpdateUnauthorized) IsRedirect

func (o *PersonUpdateUnauthorized) IsRedirect() bool

IsRedirect returns true when this person update unauthorized response has a 3xx status code

func (*PersonUpdateUnauthorized) IsServerError

func (o *PersonUpdateUnauthorized) IsServerError() bool

IsServerError returns true when this person update unauthorized response has a 5xx status code

func (*PersonUpdateUnauthorized) IsSuccess

func (o *PersonUpdateUnauthorized) IsSuccess() bool

IsSuccess returns true when this person update unauthorized response has a 2xx status code

func (*PersonUpdateUnauthorized) String

func (o *PersonUpdateUnauthorized) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL