organization

package
v0.0.0-...-b3f093e Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 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 organization API

func (*Client) OrganizationFindList

func (a *Client) OrganizationFindList(params *OrganizationFindListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrganizationFindListOK, error)

OrganizationFindList retrieves information about the official c m s organizational hierarchy

Retrieves information about the official CMS organizational hierarchy as maintained and published by the Division of Performance and Organizational Programs (DPOP)

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 {
	OrganizationFindList(params *OrganizationFindListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrganizationFindListOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new organization API client.

type OrganizationFindListBadRequest

type OrganizationFindListBadRequest struct {
	Payload *models.Response
}

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

Bad Request

func NewOrganizationFindListBadRequest

func NewOrganizationFindListBadRequest() *OrganizationFindListBadRequest

NewOrganizationFindListBadRequest creates a OrganizationFindListBadRequest with default headers values

func (*OrganizationFindListBadRequest) Code

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

func (*OrganizationFindListBadRequest) Error

func (*OrganizationFindListBadRequest) GetPayload

func (*OrganizationFindListBadRequest) IsClientError

func (o *OrganizationFindListBadRequest) IsClientError() bool

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

func (*OrganizationFindListBadRequest) IsCode

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

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

func (*OrganizationFindListBadRequest) IsRedirect

func (o *OrganizationFindListBadRequest) IsRedirect() bool

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

func (*OrganizationFindListBadRequest) IsServerError

func (o *OrganizationFindListBadRequest) IsServerError() bool

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

func (*OrganizationFindListBadRequest) IsSuccess

func (o *OrganizationFindListBadRequest) IsSuccess() bool

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

func (*OrganizationFindListBadRequest) String

type OrganizationFindListInternalServerError

type OrganizationFindListInternalServerError struct {
	Payload *models.Response
}

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

Internal Server Error

func NewOrganizationFindListInternalServerError

func NewOrganizationFindListInternalServerError() *OrganizationFindListInternalServerError

NewOrganizationFindListInternalServerError creates a OrganizationFindListInternalServerError with default headers values

func (*OrganizationFindListInternalServerError) Code

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

func (*OrganizationFindListInternalServerError) Error

func (*OrganizationFindListInternalServerError) GetPayload

func (*OrganizationFindListInternalServerError) IsClientError

func (o *OrganizationFindListInternalServerError) IsClientError() bool

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

func (*OrganizationFindListInternalServerError) IsCode

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

func (*OrganizationFindListInternalServerError) IsRedirect

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

func (*OrganizationFindListInternalServerError) IsServerError

func (o *OrganizationFindListInternalServerError) IsServerError() bool

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

func (*OrganizationFindListInternalServerError) IsSuccess

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

func (*OrganizationFindListInternalServerError) String

type OrganizationFindListOK

type OrganizationFindListOK struct {
	Payload *models.OrganizationFindResponse
}

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

OK

func NewOrganizationFindListOK

func NewOrganizationFindListOK() *OrganizationFindListOK

NewOrganizationFindListOK creates a OrganizationFindListOK with default headers values

func (*OrganizationFindListOK) Code

func (o *OrganizationFindListOK) Code() int

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

func (*OrganizationFindListOK) Error

func (o *OrganizationFindListOK) Error() string

func (*OrganizationFindListOK) GetPayload

func (*OrganizationFindListOK) IsClientError

func (o *OrganizationFindListOK) IsClientError() bool

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

func (*OrganizationFindListOK) IsCode

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

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

func (*OrganizationFindListOK) IsRedirect

func (o *OrganizationFindListOK) IsRedirect() bool

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

func (*OrganizationFindListOK) IsServerError

func (o *OrganizationFindListOK) IsServerError() bool

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

func (*OrganizationFindListOK) IsSuccess

func (o *OrganizationFindListOK) IsSuccess() bool

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

func (*OrganizationFindListOK) String

func (o *OrganizationFindListOK) String() string

type OrganizationFindListParams

type OrganizationFindListParams struct {

	/* Acronym.

	   Acronym of a specific organization. Will return the organization specified and all children of the organization.
	*/
	Acronym *string

	/* ID.

	   ID of a specific organization. Will return the organization specified and all children of the organization.
	*/
	ID *string

	/* Name.

	   Exact name of a specific organization. Will return the organization specified and all children of the organization.
	*/
	Name *string

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

OrganizationFindListParams contains all the parameters to send to the API endpoint

for the organization find list operation.

Typically these are written to a http.Request.

func NewOrganizationFindListParams

func NewOrganizationFindListParams() *OrganizationFindListParams

NewOrganizationFindListParams creates a new OrganizationFindListParams 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 NewOrganizationFindListParamsWithContext

func NewOrganizationFindListParamsWithContext(ctx context.Context) *OrganizationFindListParams

NewOrganizationFindListParamsWithContext creates a new OrganizationFindListParams object with the ability to set a context for a request.

func NewOrganizationFindListParamsWithHTTPClient

func NewOrganizationFindListParamsWithHTTPClient(client *http.Client) *OrganizationFindListParams

NewOrganizationFindListParamsWithHTTPClient creates a new OrganizationFindListParams object with the ability to set a custom HTTPClient for a request.

func NewOrganizationFindListParamsWithTimeout

func NewOrganizationFindListParamsWithTimeout(timeout time.Duration) *OrganizationFindListParams

NewOrganizationFindListParamsWithTimeout creates a new OrganizationFindListParams object with the ability to set a timeout on a request.

func (*OrganizationFindListParams) SetAcronym

func (o *OrganizationFindListParams) SetAcronym(acronym *string)

SetAcronym adds the acronym to the organization find list params

func (*OrganizationFindListParams) SetContext

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

SetContext adds the context to the organization find list params

func (*OrganizationFindListParams) SetDefaults

func (o *OrganizationFindListParams) SetDefaults()

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

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

func (*OrganizationFindListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the organization find list params

func (*OrganizationFindListParams) SetID

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

SetID adds the id to the organization find list params

func (*OrganizationFindListParams) SetName

func (o *OrganizationFindListParams) SetName(name *string)

SetName adds the name to the organization find list params

func (*OrganizationFindListParams) SetTimeout

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

SetTimeout adds the timeout to the organization find list params

func (*OrganizationFindListParams) WithAcronym

WithAcronym adds the acronym to the organization find list params

func (*OrganizationFindListParams) WithContext

WithContext adds the context to the organization find list params

func (*OrganizationFindListParams) WithDefaults

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

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

func (*OrganizationFindListParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the organization find list params

func (*OrganizationFindListParams) WithID

WithID adds the id to the organization find list params

func (*OrganizationFindListParams) WithName

WithName adds the name to the organization find list params

func (*OrganizationFindListParams) WithTimeout

WithTimeout adds the timeout to the organization find list params

func (*OrganizationFindListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type OrganizationFindListReader

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

OrganizationFindListReader is a Reader for the OrganizationFindList structure.

func (*OrganizationFindListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type OrganizationFindListUnauthorized

type OrganizationFindListUnauthorized struct {
	Payload *models.Response
}

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

Access Denied

func NewOrganizationFindListUnauthorized

func NewOrganizationFindListUnauthorized() *OrganizationFindListUnauthorized

NewOrganizationFindListUnauthorized creates a OrganizationFindListUnauthorized with default headers values

func (*OrganizationFindListUnauthorized) Code

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

func (*OrganizationFindListUnauthorized) Error

func (*OrganizationFindListUnauthorized) GetPayload

func (*OrganizationFindListUnauthorized) IsClientError

func (o *OrganizationFindListUnauthorized) IsClientError() bool

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

func (*OrganizationFindListUnauthorized) IsCode

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

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

func (*OrganizationFindListUnauthorized) IsRedirect

func (o *OrganizationFindListUnauthorized) IsRedirect() bool

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

func (*OrganizationFindListUnauthorized) IsServerError

func (o *OrganizationFindListUnauthorized) IsServerError() bool

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

func (*OrganizationFindListUnauthorized) IsSuccess

func (o *OrganizationFindListUnauthorized) IsSuccess() bool

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

func (*OrganizationFindListUnauthorized) String

Jump to

Keyboard shortcuts

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