organization_children

package
v1.0.97 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: MIT Imports: 13 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 children API

func New

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

New creates a new organization children API client.

func (*Client) CreateOrgChild

func (a *Client) CreateOrgChild(params *CreateOrgChildParams, authInfo runtime.ClientAuthInfoWriter) (*CreateOrgChildOK, error)

CreateOrgChild Create a new organization child, making the authenticated user the owner of it.

func (*Client) GetOrgChildren

func (a *Client) GetOrgChildren(params *GetOrgChildrenParams, authInfo runtime.ClientAuthInfoWriter) (*GetOrgChildrenOK, error)

GetOrgChildren Get the children organizations that the authenticated user has access.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type CreateOrgChildOK

type CreateOrgChildOK struct {
	Payload *CreateOrgChildOKBody
}

CreateOrgChildOK handles this case with default header values.

Organization created. The body contains the information of the new created organization.

func NewCreateOrgChildOK

func NewCreateOrgChildOK() *CreateOrgChildOK

NewCreateOrgChildOK creates a CreateOrgChildOK with default headers values

func (*CreateOrgChildOK) Error

func (o *CreateOrgChildOK) Error() string

func (*CreateOrgChildOK) GetPayload

func (o *CreateOrgChildOK) GetPayload() *CreateOrgChildOKBody

type CreateOrgChildOKBody

type CreateOrgChildOKBody struct {

	// data
	// Required: true
	Data *models.Organization `json:"data"`
}

CreateOrgChildOKBody create org child o k body swagger:model CreateOrgChildOKBody

func (*CreateOrgChildOKBody) MarshalBinary

func (o *CreateOrgChildOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateOrgChildOKBody) UnmarshalBinary

func (o *CreateOrgChildOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateOrgChildOKBody) Validate

func (o *CreateOrgChildOKBody) Validate(formats strfmt.Registry) error

Validate validates this create org child o k body

type CreateOrgChildParams

type CreateOrgChildParams struct {

	/*Body
	  The information of the organization to create.

	*/
	Body *models.NewOrganization
	/*OrganizationCanonical
	  A canonical of an organization.

	*/
	OrganizationCanonical string

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

CreateOrgChildParams contains all the parameters to send to the API endpoint for the create org child operation typically these are written to a http.Request

func NewCreateOrgChildParams

func NewCreateOrgChildParams() *CreateOrgChildParams

NewCreateOrgChildParams creates a new CreateOrgChildParams object with the default values initialized.

func NewCreateOrgChildParamsWithContext

func NewCreateOrgChildParamsWithContext(ctx context.Context) *CreateOrgChildParams

NewCreateOrgChildParamsWithContext creates a new CreateOrgChildParams object with the default values initialized, and the ability to set a context for a request

func NewCreateOrgChildParamsWithHTTPClient

func NewCreateOrgChildParamsWithHTTPClient(client *http.Client) *CreateOrgChildParams

NewCreateOrgChildParamsWithHTTPClient creates a new CreateOrgChildParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateOrgChildParamsWithTimeout

func NewCreateOrgChildParamsWithTimeout(timeout time.Duration) *CreateOrgChildParams

NewCreateOrgChildParamsWithTimeout creates a new CreateOrgChildParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateOrgChildParams) SetBody

func (o *CreateOrgChildParams) SetBody(body *models.NewOrganization)

SetBody adds the body to the create org child params

func (*CreateOrgChildParams) SetContext

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

SetContext adds the context to the create org child params

func (*CreateOrgChildParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create org child params

func (*CreateOrgChildParams) SetOrganizationCanonical

func (o *CreateOrgChildParams) SetOrganizationCanonical(organizationCanonical string)

SetOrganizationCanonical adds the organizationCanonical to the create org child params

func (*CreateOrgChildParams) SetTimeout

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

SetTimeout adds the timeout to the create org child params

func (*CreateOrgChildParams) WithBody

WithBody adds the body to the create org child params

func (*CreateOrgChildParams) WithContext

WithContext adds the context to the create org child params

func (*CreateOrgChildParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create org child params

func (*CreateOrgChildParams) WithOrganizationCanonical

func (o *CreateOrgChildParams) WithOrganizationCanonical(organizationCanonical string) *CreateOrgChildParams

WithOrganizationCanonical adds the organizationCanonical to the create org child params

func (*CreateOrgChildParams) WithTimeout

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

WithTimeout adds the timeout to the create org child params

func (*CreateOrgChildParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateOrgChildReader

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

CreateOrgChildReader is a Reader for the CreateOrgChild structure.

func (*CreateOrgChildReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetOrgChildrenDefault

type GetOrgChildrenDefault struct {

	/*The length of the response body in octets (8-bit bytes).
	 */
	ContentLength uint64

	Payload *models.ErrorPayload
	// contains filtered or unexported fields
}

GetOrgChildrenDefault handles this case with default header values.

The response sent when an unexpected error happened, as known as an internal server error.

func NewGetOrgChildrenDefault

func NewGetOrgChildrenDefault(code int) *GetOrgChildrenDefault

NewGetOrgChildrenDefault creates a GetOrgChildrenDefault with default headers values

func (*GetOrgChildrenDefault) Code

func (o *GetOrgChildrenDefault) Code() int

Code gets the status code for the get org children default response

func (*GetOrgChildrenDefault) Error

func (o *GetOrgChildrenDefault) Error() string

func (*GetOrgChildrenDefault) GetPayload

func (o *GetOrgChildrenDefault) GetPayload() *models.ErrorPayload

type GetOrgChildrenForbidden

type GetOrgChildrenForbidden struct {
	/*The length of the response body in octets (8-bit bytes).
	 */
	ContentLength uint64

	Payload *models.ErrorPayload
}

GetOrgChildrenForbidden handles this case with default header values.

The authenticated user cannot perform the operation because, it doesn't have permissions for such operation.

func NewGetOrgChildrenForbidden

func NewGetOrgChildrenForbidden() *GetOrgChildrenForbidden

NewGetOrgChildrenForbidden creates a GetOrgChildrenForbidden with default headers values

func (*GetOrgChildrenForbidden) Error

func (o *GetOrgChildrenForbidden) Error() string

func (*GetOrgChildrenForbidden) GetPayload

func (o *GetOrgChildrenForbidden) GetPayload() *models.ErrorPayload

type GetOrgChildrenNotFound

type GetOrgChildrenNotFound struct {
	/*The length of the response body in octets (8-bit bytes).
	 */
	ContentLength uint64

	Payload *models.ErrorPayload
}

GetOrgChildrenNotFound handles this case with default header values.

The response sent when any of the entities present in the path is not found.

func NewGetOrgChildrenNotFound

func NewGetOrgChildrenNotFound() *GetOrgChildrenNotFound

NewGetOrgChildrenNotFound creates a GetOrgChildrenNotFound with default headers values

func (*GetOrgChildrenNotFound) Error

func (o *GetOrgChildrenNotFound) Error() string

func (*GetOrgChildrenNotFound) GetPayload

func (o *GetOrgChildrenNotFound) GetPayload() *models.ErrorPayload

type GetOrgChildrenOK

type GetOrgChildrenOK struct {
	Payload *GetOrgChildrenOKBody
}

GetOrgChildrenOK handles this case with default header values.

List of the children organizations which the authenticated user has access.

func NewGetOrgChildrenOK

func NewGetOrgChildrenOK() *GetOrgChildrenOK

NewGetOrgChildrenOK creates a GetOrgChildrenOK with default headers values

func (*GetOrgChildrenOK) Error

func (o *GetOrgChildrenOK) Error() string

func (*GetOrgChildrenOK) GetPayload

func (o *GetOrgChildrenOK) GetPayload() *GetOrgChildrenOKBody

type GetOrgChildrenOKBody

type GetOrgChildrenOKBody struct {

	// data
	// Required: true
	Data []*models.Organization `json:"data"`

	// pagination
	// Required: true
	Pagination *models.Pagination `json:"pagination"`
}

GetOrgChildrenOKBody get org children o k body swagger:model GetOrgChildrenOKBody

func (*GetOrgChildrenOKBody) MarshalBinary

func (o *GetOrgChildrenOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetOrgChildrenOKBody) UnmarshalBinary

func (o *GetOrgChildrenOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetOrgChildrenOKBody) Validate

func (o *GetOrgChildrenOKBody) Validate(formats strfmt.Registry) error

Validate validates this get org children o k body

type GetOrgChildrenParams

type GetOrgChildrenParams struct {

	/*OrderBy
	  Allows to order the list of items. Example usage: field_name:asc


	*/
	OrderBy *string
	/*OrganizationCanonical
	  A canonical of an organization.

	*/
	OrganizationCanonical string
	/*OrganizationCreatedAt
	  Search by organization's creation date

	*/
	OrganizationCreatedAt *strfmt.DateTime
	/*OrganizationName
	  Search by the organization's name

	*/
	OrganizationName *string
	/*PageIndex
	  The page number to request. The first page is 1.

	*/
	PageIndex *uint32
	/*PageSize
	  The number of items at most which the response can have.

	*/
	PageSize *uint32

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

GetOrgChildrenParams contains all the parameters to send to the API endpoint for the get org children operation typically these are written to a http.Request

func NewGetOrgChildrenParams

func NewGetOrgChildrenParams() *GetOrgChildrenParams

NewGetOrgChildrenParams creates a new GetOrgChildrenParams object with the default values initialized.

func NewGetOrgChildrenParamsWithContext

func NewGetOrgChildrenParamsWithContext(ctx context.Context) *GetOrgChildrenParams

NewGetOrgChildrenParamsWithContext creates a new GetOrgChildrenParams object with the default values initialized, and the ability to set a context for a request

func NewGetOrgChildrenParamsWithHTTPClient

func NewGetOrgChildrenParamsWithHTTPClient(client *http.Client) *GetOrgChildrenParams

NewGetOrgChildrenParamsWithHTTPClient creates a new GetOrgChildrenParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetOrgChildrenParamsWithTimeout

func NewGetOrgChildrenParamsWithTimeout(timeout time.Duration) *GetOrgChildrenParams

NewGetOrgChildrenParamsWithTimeout creates a new GetOrgChildrenParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetOrgChildrenParams) SetContext

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

SetContext adds the context to the get org children params

func (*GetOrgChildrenParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get org children params

func (*GetOrgChildrenParams) SetOrderBy

func (o *GetOrgChildrenParams) SetOrderBy(orderBy *string)

SetOrderBy adds the orderBy to the get org children params

func (*GetOrgChildrenParams) SetOrganizationCanonical

func (o *GetOrgChildrenParams) SetOrganizationCanonical(organizationCanonical string)

SetOrganizationCanonical adds the organizationCanonical to the get org children params

func (*GetOrgChildrenParams) SetOrganizationCreatedAt

func (o *GetOrgChildrenParams) SetOrganizationCreatedAt(organizationCreatedAt *strfmt.DateTime)

SetOrganizationCreatedAt adds the organizationCreatedAt to the get org children params

func (*GetOrgChildrenParams) SetOrganizationName

func (o *GetOrgChildrenParams) SetOrganizationName(organizationName *string)

SetOrganizationName adds the organizationName to the get org children params

func (*GetOrgChildrenParams) SetPageIndex

func (o *GetOrgChildrenParams) SetPageIndex(pageIndex *uint32)

SetPageIndex adds the pageIndex to the get org children params

func (*GetOrgChildrenParams) SetPageSize

func (o *GetOrgChildrenParams) SetPageSize(pageSize *uint32)

SetPageSize adds the pageSize to the get org children params

func (*GetOrgChildrenParams) SetTimeout

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

SetTimeout adds the timeout to the get org children params

func (*GetOrgChildrenParams) WithContext

WithContext adds the context to the get org children params

func (*GetOrgChildrenParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get org children params

func (*GetOrgChildrenParams) WithOrderBy

func (o *GetOrgChildrenParams) WithOrderBy(orderBy *string) *GetOrgChildrenParams

WithOrderBy adds the orderBy to the get org children params

func (*GetOrgChildrenParams) WithOrganizationCanonical

func (o *GetOrgChildrenParams) WithOrganizationCanonical(organizationCanonical string) *GetOrgChildrenParams

WithOrganizationCanonical adds the organizationCanonical to the get org children params

func (*GetOrgChildrenParams) WithOrganizationCreatedAt

func (o *GetOrgChildrenParams) WithOrganizationCreatedAt(organizationCreatedAt *strfmt.DateTime) *GetOrgChildrenParams

WithOrganizationCreatedAt adds the organizationCreatedAt to the get org children params

func (*GetOrgChildrenParams) WithOrganizationName

func (o *GetOrgChildrenParams) WithOrganizationName(organizationName *string) *GetOrgChildrenParams

WithOrganizationName adds the organizationName to the get org children params

func (*GetOrgChildrenParams) WithPageIndex

func (o *GetOrgChildrenParams) WithPageIndex(pageIndex *uint32) *GetOrgChildrenParams

WithPageIndex adds the pageIndex to the get org children params

func (*GetOrgChildrenParams) WithPageSize

func (o *GetOrgChildrenParams) WithPageSize(pageSize *uint32) *GetOrgChildrenParams

WithPageSize adds the pageSize to the get org children params

func (*GetOrgChildrenParams) WithTimeout

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

WithTimeout adds the timeout to the get org children params

func (*GetOrgChildrenParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetOrgChildrenReader

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

GetOrgChildrenReader is a Reader for the GetOrgChildren structure.

func (*GetOrgChildrenReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetOrgChildrenUnprocessableEntity

type GetOrgChildrenUnprocessableEntity struct {
	/*The length of the response body in octets (8-bit bytes).
	 */
	ContentLength uint64

	Payload *models.ErrorPayload
}

GetOrgChildrenUnprocessableEntity handles this case with default header values.

All the custom errors that are generated from the Cycloid API

func NewGetOrgChildrenUnprocessableEntity

func NewGetOrgChildrenUnprocessableEntity() *GetOrgChildrenUnprocessableEntity

NewGetOrgChildrenUnprocessableEntity creates a GetOrgChildrenUnprocessableEntity with default headers values

func (*GetOrgChildrenUnprocessableEntity) Error

func (*GetOrgChildrenUnprocessableEntity) GetPayload

Jump to

Keyboard shortcuts

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