groups

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: GPL-3.0 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 groups API.

func (*Client) GetCampusesCampusIDGroups

func (a *Client) GetCampusesCampusIDGroups(params *GetCampusesCampusIDGroupsParams, opts ...ClientOption) (*GetCampusesCampusIDGroupsOK, error)

GetCampusesCampusIDGroups gets groups by campus ID.

get all groups by campus ID or a group by campus ID with specified name.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.GetCampusesCampusIDGroupsContext instead.

func (*Client) GetCampusesCampusIDGroupsContext

func (a *Client) GetCampusesCampusIDGroupsContext(ctx context.Context, params *GetCampusesCampusIDGroupsParams, opts ...ClientOption) (*GetCampusesCampusIDGroupsOK, error)

GetCampusesCampusIDGroupsContext gets groups by campus ID.

get all groups by campus ID or a group by campus ID with specified name.

Do not use the deprecated [GetCampusesCampusIDGroupsParams.Context] with this method: it would be ignored.

func (*Client) GetCollegesCollegeIDGroups

func (a *Client) GetCollegesCollegeIDGroups(params *GetCollegesCollegeIDGroupsParams, opts ...ClientOption) (*GetCollegesCollegeIDGroupsOK, error)

GetCollegesCollegeIDGroups gets groups by college ID.

get all groups by college ID or a group by college ID with specified name.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.GetCollegesCollegeIDGroupsContext instead.

func (*Client) GetCollegesCollegeIDGroupsContext

func (a *Client) GetCollegesCollegeIDGroupsContext(ctx context.Context, params *GetCollegesCollegeIDGroupsParams, opts ...ClientOption) (*GetCollegesCollegeIDGroupsOK, error)

GetCollegesCollegeIDGroupsContext gets groups by college ID.

get all groups by college ID or a group by college ID with specified name.

Do not use the deprecated [GetCollegesCollegeIDGroupsParams.Context] with this method: it would be ignored.

func (*Client) GetGroupsID

func (a *Client) GetGroupsID(params *GetGroupsIDParams, opts ...ClientOption) (*GetGroupsIDOK, error)

GetGroupsID gets a group by ID.

get a single group by its ID.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.GetGroupsIDContext instead.

func (*Client) GetGroupsIDContext

func (a *Client) GetGroupsIDContext(ctx context.Context, params *GetGroupsIDParams, opts ...ClientOption) (*GetGroupsIDOK, error)

GetGroupsIDContext gets a group by ID.

get a single group by its ID.

Do not use the deprecated [GetGroupsIDParams.Context] with this method: it would be ignored.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {

	// GetCampusesCampusIDGroups get groups by campus ID.
	GetCampusesCampusIDGroups(params *GetCampusesCampusIDGroupsParams, opts ...ClientOption) (*GetCampusesCampusIDGroupsOK, error)

	// GetCampusesCampusIDGroupsContext get groups by campus ID.
	GetCampusesCampusIDGroupsContext(ctx context.Context, params *GetCampusesCampusIDGroupsParams, opts ...ClientOption) (*GetCampusesCampusIDGroupsOK, error)

	// GetCollegesCollegeIDGroups get groups by college ID.
	GetCollegesCollegeIDGroups(params *GetCollegesCollegeIDGroupsParams, opts ...ClientOption) (*GetCollegesCollegeIDGroupsOK, error)

	// GetCollegesCollegeIDGroupsContext get groups by college ID.
	GetCollegesCollegeIDGroupsContext(ctx context.Context, params *GetCollegesCollegeIDGroupsParams, opts ...ClientOption) (*GetCollegesCollegeIDGroupsOK, error)

	// GetGroupsID get a group by ID.
	GetGroupsID(params *GetGroupsIDParams, opts ...ClientOption) (*GetGroupsIDOK, error)

	// GetGroupsIDContext get a group by ID.
	GetGroupsIDContext(ctx context.Context, params *GetGroupsIDParams, opts ...ClientOption) (*GetGroupsIDOK, error)

	SetTransport(transport runtime.ContextualTransport)
}

ClientService is the interface for Client methods.

func New

New creates a new groups API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new groups API client with basic auth credentials.

It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new groups API client with a bearer token for authentication.

It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type GetCampusesCampusIDGroupsBadRequest

type GetCampusesCampusIDGroupsBadRequest struct {
	Payload *models.DtoErrorResponse
}

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

Bad Request

func NewGetCampusesCampusIDGroupsBadRequest

func NewGetCampusesCampusIDGroupsBadRequest() *GetCampusesCampusIDGroupsBadRequest

NewGetCampusesCampusIDGroupsBadRequest creates a GetCampusesCampusIDGroupsBadRequest with default headers values

func (*GetCampusesCampusIDGroupsBadRequest) Code

Code gets the status code for the get campuses campus Id groups bad request response

func (*GetCampusesCampusIDGroupsBadRequest) Error

func (*GetCampusesCampusIDGroupsBadRequest) GetPayload

func (*GetCampusesCampusIDGroupsBadRequest) IsClientError

func (o *GetCampusesCampusIDGroupsBadRequest) IsClientError() bool

IsClientError returns true when this get campuses campus Id groups bad request response has a 4xx status code

func (*GetCampusesCampusIDGroupsBadRequest) IsCode

IsCode returns true when this get campuses campus Id groups bad request response a status code equal to that given

func (*GetCampusesCampusIDGroupsBadRequest) IsRedirect

func (o *GetCampusesCampusIDGroupsBadRequest) IsRedirect() bool

IsRedirect returns true when this get campuses campus Id groups bad request response has a 3xx status code

func (*GetCampusesCampusIDGroupsBadRequest) IsServerError

func (o *GetCampusesCampusIDGroupsBadRequest) IsServerError() bool

IsServerError returns true when this get campuses campus Id groups bad request response has a 5xx status code

func (*GetCampusesCampusIDGroupsBadRequest) IsSuccess

IsSuccess returns true when this get campuses campus Id groups bad request response has a 2xx status code

func (*GetCampusesCampusIDGroupsBadRequest) String

type GetCampusesCampusIDGroupsInternalServerError

type GetCampusesCampusIDGroupsInternalServerError struct {
	Payload *models.DtoErrorResponse
}

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

Internal Server Error

func NewGetCampusesCampusIDGroupsInternalServerError

func NewGetCampusesCampusIDGroupsInternalServerError() *GetCampusesCampusIDGroupsInternalServerError

NewGetCampusesCampusIDGroupsInternalServerError creates a GetCampusesCampusIDGroupsInternalServerError with default headers values

func (*GetCampusesCampusIDGroupsInternalServerError) Code

Code gets the status code for the get campuses campus Id groups internal server error response

func (*GetCampusesCampusIDGroupsInternalServerError) Error

func (*GetCampusesCampusIDGroupsInternalServerError) GetPayload

func (*GetCampusesCampusIDGroupsInternalServerError) IsClientError

IsClientError returns true when this get campuses campus Id groups internal server error response has a 4xx status code

func (*GetCampusesCampusIDGroupsInternalServerError) IsCode

IsCode returns true when this get campuses campus Id groups internal server error response a status code equal to that given

func (*GetCampusesCampusIDGroupsInternalServerError) IsRedirect

IsRedirect returns true when this get campuses campus Id groups internal server error response has a 3xx status code

func (*GetCampusesCampusIDGroupsInternalServerError) IsServerError

IsServerError returns true when this get campuses campus Id groups internal server error response has a 5xx status code

func (*GetCampusesCampusIDGroupsInternalServerError) IsSuccess

IsSuccess returns true when this get campuses campus Id groups internal server error response has a 2xx status code

func (*GetCampusesCampusIDGroupsInternalServerError) String

type GetCampusesCampusIDGroupsNotFound

type GetCampusesCampusIDGroupsNotFound struct {
	Payload *models.DtoErrorResponse
}

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

Not Found

func NewGetCampusesCampusIDGroupsNotFound

func NewGetCampusesCampusIDGroupsNotFound() *GetCampusesCampusIDGroupsNotFound

NewGetCampusesCampusIDGroupsNotFound creates a GetCampusesCampusIDGroupsNotFound with default headers values

func (*GetCampusesCampusIDGroupsNotFound) Code

Code gets the status code for the get campuses campus Id groups not found response

func (*GetCampusesCampusIDGroupsNotFound) Error

func (*GetCampusesCampusIDGroupsNotFound) GetPayload

func (*GetCampusesCampusIDGroupsNotFound) IsClientError

func (o *GetCampusesCampusIDGroupsNotFound) IsClientError() bool

IsClientError returns true when this get campuses campus Id groups not found response has a 4xx status code

func (*GetCampusesCampusIDGroupsNotFound) IsCode

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

IsCode returns true when this get campuses campus Id groups not found response a status code equal to that given

func (*GetCampusesCampusIDGroupsNotFound) IsRedirect

func (o *GetCampusesCampusIDGroupsNotFound) IsRedirect() bool

IsRedirect returns true when this get campuses campus Id groups not found response has a 3xx status code

func (*GetCampusesCampusIDGroupsNotFound) IsServerError

func (o *GetCampusesCampusIDGroupsNotFound) IsServerError() bool

IsServerError returns true when this get campuses campus Id groups not found response has a 5xx status code

func (*GetCampusesCampusIDGroupsNotFound) IsSuccess

func (o *GetCampusesCampusIDGroupsNotFound) IsSuccess() bool

IsSuccess returns true when this get campuses campus Id groups not found response has a 2xx status code

func (*GetCampusesCampusIDGroupsNotFound) String

type GetCampusesCampusIDGroupsOK

type GetCampusesCampusIDGroupsOK struct {
	Payload []*models.DtoStudentGroupResponse
}

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

OK

func NewGetCampusesCampusIDGroupsOK

func NewGetCampusesCampusIDGroupsOK() *GetCampusesCampusIDGroupsOK

NewGetCampusesCampusIDGroupsOK creates a GetCampusesCampusIDGroupsOK with default headers values

func (*GetCampusesCampusIDGroupsOK) Code

func (o *GetCampusesCampusIDGroupsOK) Code() int

Code gets the status code for the get campuses campus Id groups o k response

func (*GetCampusesCampusIDGroupsOK) Error

func (*GetCampusesCampusIDGroupsOK) GetPayload

func (*GetCampusesCampusIDGroupsOK) IsClientError

func (o *GetCampusesCampusIDGroupsOK) IsClientError() bool

IsClientError returns true when this get campuses campus Id groups o k response has a 4xx status code

func (*GetCampusesCampusIDGroupsOK) IsCode

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

IsCode returns true when this get campuses campus Id groups o k response a status code equal to that given

func (*GetCampusesCampusIDGroupsOK) IsRedirect

func (o *GetCampusesCampusIDGroupsOK) IsRedirect() bool

IsRedirect returns true when this get campuses campus Id groups o k response has a 3xx status code

func (*GetCampusesCampusIDGroupsOK) IsServerError

func (o *GetCampusesCampusIDGroupsOK) IsServerError() bool

IsServerError returns true when this get campuses campus Id groups o k response has a 5xx status code

func (*GetCampusesCampusIDGroupsOK) IsSuccess

func (o *GetCampusesCampusIDGroupsOK) IsSuccess() bool

IsSuccess returns true when this get campuses campus Id groups o k response has a 2xx status code

func (*GetCampusesCampusIDGroupsOK) String

func (o *GetCampusesCampusIDGroupsOK) String() string

type GetCampusesCampusIDGroupsParams

type GetCampusesCampusIDGroupsParams struct {

	// CampusID.
	//
	// Campus ID
	CampusID int64

	// Name.
	//
	// Group name
	Name *string

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

GetCampusesCampusIDGroupsParams contains all the parameters to send to the API endpoint

for the get campuses campus ID groups operation.

Typically these are written to a http.Request.

func NewGetCampusesCampusIDGroupsParams

func NewGetCampusesCampusIDGroupsParams() *GetCampusesCampusIDGroupsParams

NewGetCampusesCampusIDGroupsParams creates a new GetCampusesCampusIDGroupsParams 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 NewGetCampusesCampusIDGroupsParamsWithContext deprecated

func NewGetCampusesCampusIDGroupsParamsWithContext(ctx context.Context) *GetCampusesCampusIDGroupsParams

NewGetCampusesCampusIDGroupsParamsWithContext creates a new GetCampusesCampusIDGroupsParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of GetCampusesCampusIDGroupsParams.

func NewGetCampusesCampusIDGroupsParamsWithHTTPClient

func NewGetCampusesCampusIDGroupsParamsWithHTTPClient(client *http.Client) *GetCampusesCampusIDGroupsParams

NewGetCampusesCampusIDGroupsParamsWithHTTPClient creates a new GetCampusesCampusIDGroupsParams object with the ability to set a custom HTTPClient for a request.

func NewGetCampusesCampusIDGroupsParamsWithTimeout

func NewGetCampusesCampusIDGroupsParamsWithTimeout(timeout time.Duration) *GetCampusesCampusIDGroupsParams

NewGetCampusesCampusIDGroupsParamsWithTimeout creates a new GetCampusesCampusIDGroupsParams object with the ability to set a timeout on a request.

func (*GetCampusesCampusIDGroupsParams) SetCampusID

func (o *GetCampusesCampusIDGroupsParams) SetCampusID(campusID int64)

SetCampusID adds the campusId to the get campuses campus ID groups params.

func (*GetCampusesCampusIDGroupsParams) SetContext deprecated

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

SetContext adds the context to the get campuses campus ID groups params.

Deprecated: use the operation call with context to pass the context instead of GetCampusesCampusIDGroupsParams.

func (*GetCampusesCampusIDGroupsParams) SetDefaults

func (o *GetCampusesCampusIDGroupsParams) SetDefaults()

SetDefaults hydrates default values in the get campuses campus ID groups params (not the query body).

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

func (*GetCampusesCampusIDGroupsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get campuses campus ID groups params.

func (*GetCampusesCampusIDGroupsParams) SetName

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

SetName adds the name to the get campuses campus ID groups params.

func (*GetCampusesCampusIDGroupsParams) SetTimeout

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

SetTimeout adds the timeout to the get campuses campus ID groups params.

func (*GetCampusesCampusIDGroupsParams) WithCampusID

WithCampusID adds the campusID to the get campuses campus ID groups params.

func (*GetCampusesCampusIDGroupsParams) WithContext deprecated

WithContext adds the context to the get campuses campus ID groups params.

Deprecated: use the operation call with context to pass the context instead of GetCampusesCampusIDGroupsParams.

func (*GetCampusesCampusIDGroupsParams) WithDefaults

WithDefaults hydrates default values in the get campuses campus ID groups params (not the query body).

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

func (*GetCampusesCampusIDGroupsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get campuses campus ID groups params.

func (*GetCampusesCampusIDGroupsParams) WithName

WithName adds the name to the get campuses campus ID groups params.

func (*GetCampusesCampusIDGroupsParams) WithTimeout

WithTimeout adds the timeout to the get campuses campus ID groups params.

func (*GetCampusesCampusIDGroupsParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type GetCampusesCampusIDGroupsReader

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

GetCampusesCampusIDGroupsReader is a Reader for the GetCampusesCampusIDGroups structure.

func (*GetCampusesCampusIDGroupsReader) ReadResponse

func (o *GetCampusesCampusIDGroupsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type GetCollegesCollegeIDGroupsBadRequest

type GetCollegesCollegeIDGroupsBadRequest struct {
	Payload *models.DtoErrorResponse
}

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

Bad Request

func NewGetCollegesCollegeIDGroupsBadRequest

func NewGetCollegesCollegeIDGroupsBadRequest() *GetCollegesCollegeIDGroupsBadRequest

NewGetCollegesCollegeIDGroupsBadRequest creates a GetCollegesCollegeIDGroupsBadRequest with default headers values

func (*GetCollegesCollegeIDGroupsBadRequest) Code

Code gets the status code for the get colleges college Id groups bad request response

func (*GetCollegesCollegeIDGroupsBadRequest) Error

func (*GetCollegesCollegeIDGroupsBadRequest) GetPayload

func (*GetCollegesCollegeIDGroupsBadRequest) IsClientError

func (o *GetCollegesCollegeIDGroupsBadRequest) IsClientError() bool

IsClientError returns true when this get colleges college Id groups bad request response has a 4xx status code

func (*GetCollegesCollegeIDGroupsBadRequest) IsCode

IsCode returns true when this get colleges college Id groups bad request response a status code equal to that given

func (*GetCollegesCollegeIDGroupsBadRequest) IsRedirect

IsRedirect returns true when this get colleges college Id groups bad request response has a 3xx status code

func (*GetCollegesCollegeIDGroupsBadRequest) IsServerError

func (o *GetCollegesCollegeIDGroupsBadRequest) IsServerError() bool

IsServerError returns true when this get colleges college Id groups bad request response has a 5xx status code

func (*GetCollegesCollegeIDGroupsBadRequest) IsSuccess

IsSuccess returns true when this get colleges college Id groups bad request response has a 2xx status code

func (*GetCollegesCollegeIDGroupsBadRequest) String

type GetCollegesCollegeIDGroupsInternalServerError

type GetCollegesCollegeIDGroupsInternalServerError struct {
	Payload *models.DtoErrorResponse
}

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

Internal Server Error

func NewGetCollegesCollegeIDGroupsInternalServerError

func NewGetCollegesCollegeIDGroupsInternalServerError() *GetCollegesCollegeIDGroupsInternalServerError

NewGetCollegesCollegeIDGroupsInternalServerError creates a GetCollegesCollegeIDGroupsInternalServerError with default headers values

func (*GetCollegesCollegeIDGroupsInternalServerError) Code

Code gets the status code for the get colleges college Id groups internal server error response

func (*GetCollegesCollegeIDGroupsInternalServerError) Error

func (*GetCollegesCollegeIDGroupsInternalServerError) GetPayload

func (*GetCollegesCollegeIDGroupsInternalServerError) IsClientError

IsClientError returns true when this get colleges college Id groups internal server error response has a 4xx status code

func (*GetCollegesCollegeIDGroupsInternalServerError) IsCode

IsCode returns true when this get colleges college Id groups internal server error response a status code equal to that given

func (*GetCollegesCollegeIDGroupsInternalServerError) IsRedirect

IsRedirect returns true when this get colleges college Id groups internal server error response has a 3xx status code

func (*GetCollegesCollegeIDGroupsInternalServerError) IsServerError

IsServerError returns true when this get colleges college Id groups internal server error response has a 5xx status code

func (*GetCollegesCollegeIDGroupsInternalServerError) IsSuccess

IsSuccess returns true when this get colleges college Id groups internal server error response has a 2xx status code

func (*GetCollegesCollegeIDGroupsInternalServerError) String

type GetCollegesCollegeIDGroupsNotFound

type GetCollegesCollegeIDGroupsNotFound struct {
	Payload *models.DtoErrorResponse
}

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

Not Found

func NewGetCollegesCollegeIDGroupsNotFound

func NewGetCollegesCollegeIDGroupsNotFound() *GetCollegesCollegeIDGroupsNotFound

NewGetCollegesCollegeIDGroupsNotFound creates a GetCollegesCollegeIDGroupsNotFound with default headers values

func (*GetCollegesCollegeIDGroupsNotFound) Code

Code gets the status code for the get colleges college Id groups not found response

func (*GetCollegesCollegeIDGroupsNotFound) Error

func (*GetCollegesCollegeIDGroupsNotFound) GetPayload

func (*GetCollegesCollegeIDGroupsNotFound) IsClientError

func (o *GetCollegesCollegeIDGroupsNotFound) IsClientError() bool

IsClientError returns true when this get colleges college Id groups not found response has a 4xx status code

func (*GetCollegesCollegeIDGroupsNotFound) IsCode

IsCode returns true when this get colleges college Id groups not found response a status code equal to that given

func (*GetCollegesCollegeIDGroupsNotFound) IsRedirect

func (o *GetCollegesCollegeIDGroupsNotFound) IsRedirect() bool

IsRedirect returns true when this get colleges college Id groups not found response has a 3xx status code

func (*GetCollegesCollegeIDGroupsNotFound) IsServerError

func (o *GetCollegesCollegeIDGroupsNotFound) IsServerError() bool

IsServerError returns true when this get colleges college Id groups not found response has a 5xx status code

func (*GetCollegesCollegeIDGroupsNotFound) IsSuccess

IsSuccess returns true when this get colleges college Id groups not found response has a 2xx status code

func (*GetCollegesCollegeIDGroupsNotFound) String

type GetCollegesCollegeIDGroupsOK

type GetCollegesCollegeIDGroupsOK struct {
	Payload []*models.DtoStudentGroupResponse
}

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

OK

func NewGetCollegesCollegeIDGroupsOK

func NewGetCollegesCollegeIDGroupsOK() *GetCollegesCollegeIDGroupsOK

NewGetCollegesCollegeIDGroupsOK creates a GetCollegesCollegeIDGroupsOK with default headers values

func (*GetCollegesCollegeIDGroupsOK) Code

Code gets the status code for the get colleges college Id groups o k response

func (*GetCollegesCollegeIDGroupsOK) Error

func (*GetCollegesCollegeIDGroupsOK) GetPayload

func (*GetCollegesCollegeIDGroupsOK) IsClientError

func (o *GetCollegesCollegeIDGroupsOK) IsClientError() bool

IsClientError returns true when this get colleges college Id groups o k response has a 4xx status code

func (*GetCollegesCollegeIDGroupsOK) IsCode

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

IsCode returns true when this get colleges college Id groups o k response a status code equal to that given

func (*GetCollegesCollegeIDGroupsOK) IsRedirect

func (o *GetCollegesCollegeIDGroupsOK) IsRedirect() bool

IsRedirect returns true when this get colleges college Id groups o k response has a 3xx status code

func (*GetCollegesCollegeIDGroupsOK) IsServerError

func (o *GetCollegesCollegeIDGroupsOK) IsServerError() bool

IsServerError returns true when this get colleges college Id groups o k response has a 5xx status code

func (*GetCollegesCollegeIDGroupsOK) IsSuccess

func (o *GetCollegesCollegeIDGroupsOK) IsSuccess() bool

IsSuccess returns true when this get colleges college Id groups o k response has a 2xx status code

func (*GetCollegesCollegeIDGroupsOK) String

type GetCollegesCollegeIDGroupsParams

type GetCollegesCollegeIDGroupsParams struct {

	// CollegeID.
	//
	// College ID
	CollegeID int64

	// Name.
	//
	// Group name
	Name *string

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

GetCollegesCollegeIDGroupsParams contains all the parameters to send to the API endpoint

for the get colleges college ID groups operation.

Typically these are written to a http.Request.

func NewGetCollegesCollegeIDGroupsParams

func NewGetCollegesCollegeIDGroupsParams() *GetCollegesCollegeIDGroupsParams

NewGetCollegesCollegeIDGroupsParams creates a new GetCollegesCollegeIDGroupsParams 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 NewGetCollegesCollegeIDGroupsParamsWithContext deprecated

func NewGetCollegesCollegeIDGroupsParamsWithContext(ctx context.Context) *GetCollegesCollegeIDGroupsParams

NewGetCollegesCollegeIDGroupsParamsWithContext creates a new GetCollegesCollegeIDGroupsParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of GetCollegesCollegeIDGroupsParams.

func NewGetCollegesCollegeIDGroupsParamsWithHTTPClient

func NewGetCollegesCollegeIDGroupsParamsWithHTTPClient(client *http.Client) *GetCollegesCollegeIDGroupsParams

NewGetCollegesCollegeIDGroupsParamsWithHTTPClient creates a new GetCollegesCollegeIDGroupsParams object with the ability to set a custom HTTPClient for a request.

func NewGetCollegesCollegeIDGroupsParamsWithTimeout

func NewGetCollegesCollegeIDGroupsParamsWithTimeout(timeout time.Duration) *GetCollegesCollegeIDGroupsParams

NewGetCollegesCollegeIDGroupsParamsWithTimeout creates a new GetCollegesCollegeIDGroupsParams object with the ability to set a timeout on a request.

func (*GetCollegesCollegeIDGroupsParams) SetCollegeID

func (o *GetCollegesCollegeIDGroupsParams) SetCollegeID(collegeID int64)

SetCollegeID adds the collegeId to the get colleges college ID groups params.

func (*GetCollegesCollegeIDGroupsParams) SetContext deprecated

SetContext adds the context to the get colleges college ID groups params.

Deprecated: use the operation call with context to pass the context instead of GetCollegesCollegeIDGroupsParams.

func (*GetCollegesCollegeIDGroupsParams) SetDefaults

func (o *GetCollegesCollegeIDGroupsParams) SetDefaults()

SetDefaults hydrates default values in the get colleges college ID groups params (not the query body).

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

func (*GetCollegesCollegeIDGroupsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get colleges college ID groups params.

func (*GetCollegesCollegeIDGroupsParams) SetName

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

SetName adds the name to the get colleges college ID groups params.

func (*GetCollegesCollegeIDGroupsParams) SetTimeout

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

SetTimeout adds the timeout to the get colleges college ID groups params.

func (*GetCollegesCollegeIDGroupsParams) WithCollegeID

WithCollegeID adds the collegeID to the get colleges college ID groups params.

func (*GetCollegesCollegeIDGroupsParams) WithContext deprecated

WithContext adds the context to the get colleges college ID groups params.

Deprecated: use the operation call with context to pass the context instead of GetCollegesCollegeIDGroupsParams.

func (*GetCollegesCollegeIDGroupsParams) WithDefaults

WithDefaults hydrates default values in the get colleges college ID groups params (not the query body).

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

func (*GetCollegesCollegeIDGroupsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get colleges college ID groups params.

func (*GetCollegesCollegeIDGroupsParams) WithName

WithName adds the name to the get colleges college ID groups params.

func (*GetCollegesCollegeIDGroupsParams) WithTimeout

WithTimeout adds the timeout to the get colleges college ID groups params.

func (*GetCollegesCollegeIDGroupsParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type GetCollegesCollegeIDGroupsReader

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

GetCollegesCollegeIDGroupsReader is a Reader for the GetCollegesCollegeIDGroups structure.

func (*GetCollegesCollegeIDGroupsReader) ReadResponse

func (o *GetCollegesCollegeIDGroupsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type GetGroupsIDBadRequest

type GetGroupsIDBadRequest struct {
	Payload *models.DtoErrorResponse
}

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

Bad Request

func NewGetGroupsIDBadRequest

func NewGetGroupsIDBadRequest() *GetGroupsIDBadRequest

NewGetGroupsIDBadRequest creates a GetGroupsIDBadRequest with default headers values

func (*GetGroupsIDBadRequest) Code

func (o *GetGroupsIDBadRequest) Code() int

Code gets the status code for the get groups Id bad request response

func (*GetGroupsIDBadRequest) Error

func (o *GetGroupsIDBadRequest) Error() string

func (*GetGroupsIDBadRequest) GetPayload

func (*GetGroupsIDBadRequest) IsClientError

func (o *GetGroupsIDBadRequest) IsClientError() bool

IsClientError returns true when this get groups Id bad request response has a 4xx status code

func (*GetGroupsIDBadRequest) IsCode

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

IsCode returns true when this get groups Id bad request response a status code equal to that given

func (*GetGroupsIDBadRequest) IsRedirect

func (o *GetGroupsIDBadRequest) IsRedirect() bool

IsRedirect returns true when this get groups Id bad request response has a 3xx status code

func (*GetGroupsIDBadRequest) IsServerError

func (o *GetGroupsIDBadRequest) IsServerError() bool

IsServerError returns true when this get groups Id bad request response has a 5xx status code

func (*GetGroupsIDBadRequest) IsSuccess

func (o *GetGroupsIDBadRequest) IsSuccess() bool

IsSuccess returns true when this get groups Id bad request response has a 2xx status code

func (*GetGroupsIDBadRequest) String

func (o *GetGroupsIDBadRequest) String() string

type GetGroupsIDInternalServerError

type GetGroupsIDInternalServerError struct {
	Payload *models.DtoErrorResponse
}

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

Internal Server Error

func NewGetGroupsIDInternalServerError

func NewGetGroupsIDInternalServerError() *GetGroupsIDInternalServerError

NewGetGroupsIDInternalServerError creates a GetGroupsIDInternalServerError with default headers values

func (*GetGroupsIDInternalServerError) Code

Code gets the status code for the get groups Id internal server error response

func (*GetGroupsIDInternalServerError) Error

func (*GetGroupsIDInternalServerError) GetPayload

func (*GetGroupsIDInternalServerError) IsClientError

func (o *GetGroupsIDInternalServerError) IsClientError() bool

IsClientError returns true when this get groups Id internal server error response has a 4xx status code

func (*GetGroupsIDInternalServerError) IsCode

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

IsCode returns true when this get groups Id internal server error response a status code equal to that given

func (*GetGroupsIDInternalServerError) IsRedirect

func (o *GetGroupsIDInternalServerError) IsRedirect() bool

IsRedirect returns true when this get groups Id internal server error response has a 3xx status code

func (*GetGroupsIDInternalServerError) IsServerError

func (o *GetGroupsIDInternalServerError) IsServerError() bool

IsServerError returns true when this get groups Id internal server error response has a 5xx status code

func (*GetGroupsIDInternalServerError) IsSuccess

func (o *GetGroupsIDInternalServerError) IsSuccess() bool

IsSuccess returns true when this get groups Id internal server error response has a 2xx status code

func (*GetGroupsIDInternalServerError) String

type GetGroupsIDNotFound

type GetGroupsIDNotFound struct {
	Payload *models.DtoErrorResponse
}

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

Not Found

func NewGetGroupsIDNotFound

func NewGetGroupsIDNotFound() *GetGroupsIDNotFound

NewGetGroupsIDNotFound creates a GetGroupsIDNotFound with default headers values

func (*GetGroupsIDNotFound) Code

func (o *GetGroupsIDNotFound) Code() int

Code gets the status code for the get groups Id not found response

func (*GetGroupsIDNotFound) Error

func (o *GetGroupsIDNotFound) Error() string

func (*GetGroupsIDNotFound) GetPayload

func (o *GetGroupsIDNotFound) GetPayload() *models.DtoErrorResponse

func (*GetGroupsIDNotFound) IsClientError

func (o *GetGroupsIDNotFound) IsClientError() bool

IsClientError returns true when this get groups Id not found response has a 4xx status code

func (*GetGroupsIDNotFound) IsCode

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

IsCode returns true when this get groups Id not found response a status code equal to that given

func (*GetGroupsIDNotFound) IsRedirect

func (o *GetGroupsIDNotFound) IsRedirect() bool

IsRedirect returns true when this get groups Id not found response has a 3xx status code

func (*GetGroupsIDNotFound) IsServerError

func (o *GetGroupsIDNotFound) IsServerError() bool

IsServerError returns true when this get groups Id not found response has a 5xx status code

func (*GetGroupsIDNotFound) IsSuccess

func (o *GetGroupsIDNotFound) IsSuccess() bool

IsSuccess returns true when this get groups Id not found response has a 2xx status code

func (*GetGroupsIDNotFound) String

func (o *GetGroupsIDNotFound) String() string

type GetGroupsIDOK

type GetGroupsIDOK struct {
	Payload *models.DtoStudentGroupResponse
}

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

OK

func NewGetGroupsIDOK

func NewGetGroupsIDOK() *GetGroupsIDOK

NewGetGroupsIDOK creates a GetGroupsIDOK with default headers values

func (*GetGroupsIDOK) Code

func (o *GetGroupsIDOK) Code() int

Code gets the status code for the get groups Id o k response

func (*GetGroupsIDOK) Error

func (o *GetGroupsIDOK) Error() string

func (*GetGroupsIDOK) GetPayload

func (o *GetGroupsIDOK) GetPayload() *models.DtoStudentGroupResponse

func (*GetGroupsIDOK) IsClientError

func (o *GetGroupsIDOK) IsClientError() bool

IsClientError returns true when this get groups Id o k response has a 4xx status code

func (*GetGroupsIDOK) IsCode

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

IsCode returns true when this get groups Id o k response a status code equal to that given

func (*GetGroupsIDOK) IsRedirect

func (o *GetGroupsIDOK) IsRedirect() bool

IsRedirect returns true when this get groups Id o k response has a 3xx status code

func (*GetGroupsIDOK) IsServerError

func (o *GetGroupsIDOK) IsServerError() bool

IsServerError returns true when this get groups Id o k response has a 5xx status code

func (*GetGroupsIDOK) IsSuccess

func (o *GetGroupsIDOK) IsSuccess() bool

IsSuccess returns true when this get groups Id o k response has a 2xx status code

func (*GetGroupsIDOK) String

func (o *GetGroupsIDOK) String() string

type GetGroupsIDParams

type GetGroupsIDParams struct {

	// ID.
	//
	// Group ID
	ID int64

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

GetGroupsIDParams contains all the parameters to send to the API endpoint

for the get groups ID operation.

Typically these are written to a http.Request.

func NewGetGroupsIDParams

func NewGetGroupsIDParams() *GetGroupsIDParams

NewGetGroupsIDParams creates a new GetGroupsIDParams 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 NewGetGroupsIDParamsWithContext deprecated

func NewGetGroupsIDParamsWithContext(ctx context.Context) *GetGroupsIDParams

NewGetGroupsIDParamsWithContext creates a new GetGroupsIDParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of GetGroupsIDParams.

func NewGetGroupsIDParamsWithHTTPClient

func NewGetGroupsIDParamsWithHTTPClient(client *http.Client) *GetGroupsIDParams

NewGetGroupsIDParamsWithHTTPClient creates a new GetGroupsIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetGroupsIDParamsWithTimeout

func NewGetGroupsIDParamsWithTimeout(timeout time.Duration) *GetGroupsIDParams

NewGetGroupsIDParamsWithTimeout creates a new GetGroupsIDParams object with the ability to set a timeout on a request.

func (*GetGroupsIDParams) SetContext deprecated

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

SetContext adds the context to the get groups ID params.

Deprecated: use the operation call with context to pass the context instead of GetGroupsIDParams.

func (*GetGroupsIDParams) SetDefaults

func (o *GetGroupsIDParams) SetDefaults()

SetDefaults hydrates default values in the get groups ID params (not the query body).

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

func (*GetGroupsIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get groups ID params.

func (*GetGroupsIDParams) SetID

func (o *GetGroupsIDParams) SetID(id int64)

SetID adds the id to the get groups ID params.

func (*GetGroupsIDParams) SetTimeout

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

SetTimeout adds the timeout to the get groups ID params.

func (*GetGroupsIDParams) WithContext deprecated

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

WithContext adds the context to the get groups ID params.

Deprecated: use the operation call with context to pass the context instead of GetGroupsIDParams.

func (*GetGroupsIDParams) WithDefaults

func (o *GetGroupsIDParams) WithDefaults() *GetGroupsIDParams

WithDefaults hydrates default values in the get groups ID params (not the query body).

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

func (*GetGroupsIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get groups ID params.

func (*GetGroupsIDParams) WithID

func (o *GetGroupsIDParams) WithID(id int64) *GetGroupsIDParams

WithID adds the id to the get groups ID params.

func (*GetGroupsIDParams) WithTimeout

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

WithTimeout adds the timeout to the get groups ID params.

func (*GetGroupsIDParams) WriteToRequest

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

WriteToRequest writes these params to a runtime.ClientRequest.

type GetGroupsIDReader

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

GetGroupsIDReader is a Reader for the GetGroupsID structure.

func (*GetGroupsIDReader) ReadResponse

func (o *GetGroupsIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, 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