member

package
v5.0.0-...-9d434bb Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for member API

func (*Client) CreateProjectMember

func (a *Client) CreateProjectMember(params *CreateProjectMemberParams, authInfo runtime.ClientAuthInfoWriter) (*CreateProjectMemberCreated, error)

CreateProjectMember creates project member

Create project member relationship, the member can be one of the user_member and group_member, The user_member need to specify user_id or username. If the user already exist in harbor DB, specify the user_id, If does not exist in harbor DB, it will SearchAndOnBoard the user. The group_member need to specify id or ldap_group_dn. If the group already exist in harbor DB. specify the user group's id, If does not exist, it will SearchAndOnBoard the group.

func (*Client) DeleteProjectMember

func (a *Client) DeleteProjectMember(params *DeleteProjectMemberParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteProjectMemberOK, error)

DeleteProjectMember deletes project member

func (*Client) GetProjectMember

func (a *Client) GetProjectMember(params *GetProjectMemberParams, authInfo runtime.ClientAuthInfoWriter) (*GetProjectMemberOK, error)

GetProjectMember gets the project member information

Get the project member information

func (*Client) ListProjectMembers

func (a *Client) ListProjectMembers(params *ListProjectMembersParams, authInfo runtime.ClientAuthInfoWriter) (*ListProjectMembersOK, error)

ListProjectMembers gets all project member information

Get all project member information

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateProjectMember

func (a *Client) UpdateProjectMember(params *UpdateProjectMemberParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateProjectMemberOK, error)

UpdateProjectMember updates project member

Update project member relationship

type ClientService

type ClientService interface {
	CreateProjectMember(params *CreateProjectMemberParams, authInfo runtime.ClientAuthInfoWriter) (*CreateProjectMemberCreated, error)

	DeleteProjectMember(params *DeleteProjectMemberParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteProjectMemberOK, error)

	GetProjectMember(params *GetProjectMemberParams, authInfo runtime.ClientAuthInfoWriter) (*GetProjectMemberOK, error)

	ListProjectMembers(params *ListProjectMembersParams, authInfo runtime.ClientAuthInfoWriter) (*ListProjectMembersOK, error)

	UpdateProjectMember(params *UpdateProjectMemberParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateProjectMemberOK, 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 member API client.

type CreateProjectMemberBadRequest

type CreateProjectMemberBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateProjectMemberBadRequest handles this case with default header values.

Bad request

func NewCreateProjectMemberBadRequest

func NewCreateProjectMemberBadRequest() *CreateProjectMemberBadRequest

NewCreateProjectMemberBadRequest creates a CreateProjectMemberBadRequest with default headers values

func (*CreateProjectMemberBadRequest) Error

func (*CreateProjectMemberBadRequest) GetPayload

func (o *CreateProjectMemberBadRequest) GetPayload() *model.Errors

type CreateProjectMemberConflict

type CreateProjectMemberConflict struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateProjectMemberConflict handles this case with default header values.

Conflict

func NewCreateProjectMemberConflict

func NewCreateProjectMemberConflict() *CreateProjectMemberConflict

NewCreateProjectMemberConflict creates a CreateProjectMemberConflict with default headers values

func (*CreateProjectMemberConflict) Error

func (*CreateProjectMemberConflict) GetPayload

func (o *CreateProjectMemberConflict) GetPayload() *model.Errors

type CreateProjectMemberCreated

type CreateProjectMemberCreated struct {
	/*The URL of the created resource
	 */
	Location string
}

CreateProjectMemberCreated handles this case with default header values.

Project member created successfully.

func NewCreateProjectMemberCreated

func NewCreateProjectMemberCreated() *CreateProjectMemberCreated

NewCreateProjectMemberCreated creates a CreateProjectMemberCreated with default headers values

func (*CreateProjectMemberCreated) Error

type CreateProjectMemberForbidden

type CreateProjectMemberForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateProjectMemberForbidden handles this case with default header values.

Forbidden

func NewCreateProjectMemberForbidden

func NewCreateProjectMemberForbidden() *CreateProjectMemberForbidden

NewCreateProjectMemberForbidden creates a CreateProjectMemberForbidden with default headers values

func (*CreateProjectMemberForbidden) Error

func (*CreateProjectMemberForbidden) GetPayload

func (o *CreateProjectMemberForbidden) GetPayload() *model.Errors

type CreateProjectMemberInternalServerError

type CreateProjectMemberInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateProjectMemberInternalServerError handles this case with default header values.

Internal server error

func NewCreateProjectMemberInternalServerError

func NewCreateProjectMemberInternalServerError() *CreateProjectMemberInternalServerError

NewCreateProjectMemberInternalServerError creates a CreateProjectMemberInternalServerError with default headers values

func (*CreateProjectMemberInternalServerError) Error

func (*CreateProjectMemberInternalServerError) GetPayload

type CreateProjectMemberParams

type CreateProjectMemberParams struct {

	/*XIsResourceName
	  The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name.

	*/
	XIsResourceName *bool
	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*ProjectMember*/
	ProjectMember *model.ProjectMember
	/*ProjectNameOrID
	  The name or id of the project

	*/
	ProjectNameOrID string

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

CreateProjectMemberParams contains all the parameters to send to the API endpoint for the create project member operation typically these are written to a http.Request

func NewCreateProjectMemberParams

func NewCreateProjectMemberParams() *CreateProjectMemberParams

NewCreateProjectMemberParams creates a new CreateProjectMemberParams object with the default values initialized.

func NewCreateProjectMemberParamsWithContext

func NewCreateProjectMemberParamsWithContext(ctx context.Context) *CreateProjectMemberParams

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

func NewCreateProjectMemberParamsWithHTTPClient

func NewCreateProjectMemberParamsWithHTTPClient(client *http.Client) *CreateProjectMemberParams

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

func NewCreateProjectMemberParamsWithTimeout

func NewCreateProjectMemberParamsWithTimeout(timeout time.Duration) *CreateProjectMemberParams

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

func (*CreateProjectMemberParams) SetContext

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

SetContext adds the context to the create project member params

func (*CreateProjectMemberParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create project member params

func (*CreateProjectMemberParams) SetProjectMember

func (o *CreateProjectMemberParams) SetProjectMember(projectMember *model.ProjectMember)

SetProjectMember adds the projectMember to the create project member params

func (*CreateProjectMemberParams) SetProjectNameOrID

func (o *CreateProjectMemberParams) SetProjectNameOrID(projectNameOrID string)

SetProjectNameOrID adds the projectNameOrId to the create project member params

func (*CreateProjectMemberParams) SetTimeout

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

SetTimeout adds the timeout to the create project member params

func (*CreateProjectMemberParams) SetXIsResourceName

func (o *CreateProjectMemberParams) SetXIsResourceName(xIsResourceName *bool)

SetXIsResourceName adds the xIsResourceName to the create project member params

func (*CreateProjectMemberParams) SetXRequestID

func (o *CreateProjectMemberParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the create project member params

func (*CreateProjectMemberParams) WithContext

WithContext adds the context to the create project member params

func (*CreateProjectMemberParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create project member params

func (*CreateProjectMemberParams) WithProjectMember

func (o *CreateProjectMemberParams) WithProjectMember(projectMember *model.ProjectMember) *CreateProjectMemberParams

WithProjectMember adds the projectMember to the create project member params

func (*CreateProjectMemberParams) WithProjectNameOrID

func (o *CreateProjectMemberParams) WithProjectNameOrID(projectNameOrID string) *CreateProjectMemberParams

WithProjectNameOrID adds the projectNameOrID to the create project member params

func (*CreateProjectMemberParams) WithTimeout

WithTimeout adds the timeout to the create project member params

func (*CreateProjectMemberParams) WithXIsResourceName

func (o *CreateProjectMemberParams) WithXIsResourceName(xIsResourceName *bool) *CreateProjectMemberParams

WithXIsResourceName adds the xIsResourceName to the create project member params

func (*CreateProjectMemberParams) WithXRequestID

func (o *CreateProjectMemberParams) WithXRequestID(xRequestID *string) *CreateProjectMemberParams

WithXRequestID adds the xRequestID to the create project member params

func (*CreateProjectMemberParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateProjectMemberReader

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

CreateProjectMemberReader is a Reader for the CreateProjectMember structure.

func (*CreateProjectMemberReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateProjectMemberUnauthorized

type CreateProjectMemberUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateProjectMemberUnauthorized handles this case with default header values.

Unauthorized

func NewCreateProjectMemberUnauthorized

func NewCreateProjectMemberUnauthorized() *CreateProjectMemberUnauthorized

NewCreateProjectMemberUnauthorized creates a CreateProjectMemberUnauthorized with default headers values

func (*CreateProjectMemberUnauthorized) Error

func (*CreateProjectMemberUnauthorized) GetPayload

func (o *CreateProjectMemberUnauthorized) GetPayload() *model.Errors

type DeleteProjectMemberBadRequest

type DeleteProjectMemberBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteProjectMemberBadRequest handles this case with default header values.

Bad request

func NewDeleteProjectMemberBadRequest

func NewDeleteProjectMemberBadRequest() *DeleteProjectMemberBadRequest

NewDeleteProjectMemberBadRequest creates a DeleteProjectMemberBadRequest with default headers values

func (*DeleteProjectMemberBadRequest) Error

func (*DeleteProjectMemberBadRequest) GetPayload

func (o *DeleteProjectMemberBadRequest) GetPayload() *model.Errors

type DeleteProjectMemberForbidden

type DeleteProjectMemberForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteProjectMemberForbidden handles this case with default header values.

Forbidden

func NewDeleteProjectMemberForbidden

func NewDeleteProjectMemberForbidden() *DeleteProjectMemberForbidden

NewDeleteProjectMemberForbidden creates a DeleteProjectMemberForbidden with default headers values

func (*DeleteProjectMemberForbidden) Error

func (*DeleteProjectMemberForbidden) GetPayload

func (o *DeleteProjectMemberForbidden) GetPayload() *model.Errors

type DeleteProjectMemberInternalServerError

type DeleteProjectMemberInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteProjectMemberInternalServerError handles this case with default header values.

Internal server error

func NewDeleteProjectMemberInternalServerError

func NewDeleteProjectMemberInternalServerError() *DeleteProjectMemberInternalServerError

NewDeleteProjectMemberInternalServerError creates a DeleteProjectMemberInternalServerError with default headers values

func (*DeleteProjectMemberInternalServerError) Error

func (*DeleteProjectMemberInternalServerError) GetPayload

type DeleteProjectMemberOK

type DeleteProjectMemberOK struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string
}

DeleteProjectMemberOK handles this case with default header values.

Success

func NewDeleteProjectMemberOK

func NewDeleteProjectMemberOK() *DeleteProjectMemberOK

NewDeleteProjectMemberOK creates a DeleteProjectMemberOK with default headers values

func (*DeleteProjectMemberOK) Error

func (o *DeleteProjectMemberOK) Error() string

type DeleteProjectMemberParams

type DeleteProjectMemberParams struct {

	/*XIsResourceName
	  The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name.

	*/
	XIsResourceName *bool
	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Mid
	  Member ID.

	*/
	Mid int64
	/*ProjectNameOrID
	  The name or id of the project

	*/
	ProjectNameOrID string

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

DeleteProjectMemberParams contains all the parameters to send to the API endpoint for the delete project member operation typically these are written to a http.Request

func NewDeleteProjectMemberParams

func NewDeleteProjectMemberParams() *DeleteProjectMemberParams

NewDeleteProjectMemberParams creates a new DeleteProjectMemberParams object with the default values initialized.

func NewDeleteProjectMemberParamsWithContext

func NewDeleteProjectMemberParamsWithContext(ctx context.Context) *DeleteProjectMemberParams

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

func NewDeleteProjectMemberParamsWithHTTPClient

func NewDeleteProjectMemberParamsWithHTTPClient(client *http.Client) *DeleteProjectMemberParams

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

func NewDeleteProjectMemberParamsWithTimeout

func NewDeleteProjectMemberParamsWithTimeout(timeout time.Duration) *DeleteProjectMemberParams

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

func (*DeleteProjectMemberParams) SetContext

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

SetContext adds the context to the delete project member params

func (*DeleteProjectMemberParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete project member params

func (*DeleteProjectMemberParams) SetMid

func (o *DeleteProjectMemberParams) SetMid(mid int64)

SetMid adds the mid to the delete project member params

func (*DeleteProjectMemberParams) SetProjectNameOrID

func (o *DeleteProjectMemberParams) SetProjectNameOrID(projectNameOrID string)

SetProjectNameOrID adds the projectNameOrId to the delete project member params

func (*DeleteProjectMemberParams) SetTimeout

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

SetTimeout adds the timeout to the delete project member params

func (*DeleteProjectMemberParams) SetXIsResourceName

func (o *DeleteProjectMemberParams) SetXIsResourceName(xIsResourceName *bool)

SetXIsResourceName adds the xIsResourceName to the delete project member params

func (*DeleteProjectMemberParams) SetXRequestID

func (o *DeleteProjectMemberParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the delete project member params

func (*DeleteProjectMemberParams) WithContext

WithContext adds the context to the delete project member params

func (*DeleteProjectMemberParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete project member params

func (*DeleteProjectMemberParams) WithMid

WithMid adds the mid to the delete project member params

func (*DeleteProjectMemberParams) WithProjectNameOrID

func (o *DeleteProjectMemberParams) WithProjectNameOrID(projectNameOrID string) *DeleteProjectMemberParams

WithProjectNameOrID adds the projectNameOrID to the delete project member params

func (*DeleteProjectMemberParams) WithTimeout

WithTimeout adds the timeout to the delete project member params

func (*DeleteProjectMemberParams) WithXIsResourceName

func (o *DeleteProjectMemberParams) WithXIsResourceName(xIsResourceName *bool) *DeleteProjectMemberParams

WithXIsResourceName adds the xIsResourceName to the delete project member params

func (*DeleteProjectMemberParams) WithXRequestID

func (o *DeleteProjectMemberParams) WithXRequestID(xRequestID *string) *DeleteProjectMemberParams

WithXRequestID adds the xRequestID to the delete project member params

func (*DeleteProjectMemberParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteProjectMemberReader

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

DeleteProjectMemberReader is a Reader for the DeleteProjectMember structure.

func (*DeleteProjectMemberReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteProjectMemberUnauthorized

type DeleteProjectMemberUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteProjectMemberUnauthorized handles this case with default header values.

Unauthorized

func NewDeleteProjectMemberUnauthorized

func NewDeleteProjectMemberUnauthorized() *DeleteProjectMemberUnauthorized

NewDeleteProjectMemberUnauthorized creates a DeleteProjectMemberUnauthorized with default headers values

func (*DeleteProjectMemberUnauthorized) Error

func (*DeleteProjectMemberUnauthorized) GetPayload

func (o *DeleteProjectMemberUnauthorized) GetPayload() *model.Errors

type GetProjectMemberBadRequest

type GetProjectMemberBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetProjectMemberBadRequest handles this case with default header values.

Bad request

func NewGetProjectMemberBadRequest

func NewGetProjectMemberBadRequest() *GetProjectMemberBadRequest

NewGetProjectMemberBadRequest creates a GetProjectMemberBadRequest with default headers values

func (*GetProjectMemberBadRequest) Error

func (*GetProjectMemberBadRequest) GetPayload

func (o *GetProjectMemberBadRequest) GetPayload() *model.Errors

type GetProjectMemberForbidden

type GetProjectMemberForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetProjectMemberForbidden handles this case with default header values.

Forbidden

func NewGetProjectMemberForbidden

func NewGetProjectMemberForbidden() *GetProjectMemberForbidden

NewGetProjectMemberForbidden creates a GetProjectMemberForbidden with default headers values

func (*GetProjectMemberForbidden) Error

func (o *GetProjectMemberForbidden) Error() string

func (*GetProjectMemberForbidden) GetPayload

func (o *GetProjectMemberForbidden) GetPayload() *model.Errors

type GetProjectMemberInternalServerError

type GetProjectMemberInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetProjectMemberInternalServerError handles this case with default header values.

Internal server error

func NewGetProjectMemberInternalServerError

func NewGetProjectMemberInternalServerError() *GetProjectMemberInternalServerError

NewGetProjectMemberInternalServerError creates a GetProjectMemberInternalServerError with default headers values

func (*GetProjectMemberInternalServerError) Error

func (*GetProjectMemberInternalServerError) GetPayload

type GetProjectMemberNotFound

type GetProjectMemberNotFound struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetProjectMemberNotFound handles this case with default header values.

Not found

func NewGetProjectMemberNotFound

func NewGetProjectMemberNotFound() *GetProjectMemberNotFound

NewGetProjectMemberNotFound creates a GetProjectMemberNotFound with default headers values

func (*GetProjectMemberNotFound) Error

func (o *GetProjectMemberNotFound) Error() string

func (*GetProjectMemberNotFound) GetPayload

func (o *GetProjectMemberNotFound) GetPayload() *model.Errors

type GetProjectMemberOK

type GetProjectMemberOK struct {
	Payload *model.ProjectMemberEntity
}

GetProjectMemberOK handles this case with default header values.

Project member retrieved successfully.

func NewGetProjectMemberOK

func NewGetProjectMemberOK() *GetProjectMemberOK

NewGetProjectMemberOK creates a GetProjectMemberOK with default headers values

func (*GetProjectMemberOK) Error

func (o *GetProjectMemberOK) Error() string

func (*GetProjectMemberOK) GetPayload

func (o *GetProjectMemberOK) GetPayload() *model.ProjectMemberEntity

type GetProjectMemberParams

type GetProjectMemberParams struct {

	/*XIsResourceName
	  The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name.

	*/
	XIsResourceName *bool
	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Mid
	  The member ID

	*/
	Mid int64
	/*ProjectNameOrID
	  The name or id of the project

	*/
	ProjectNameOrID string

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

GetProjectMemberParams contains all the parameters to send to the API endpoint for the get project member operation typically these are written to a http.Request

func NewGetProjectMemberParams

func NewGetProjectMemberParams() *GetProjectMemberParams

NewGetProjectMemberParams creates a new GetProjectMemberParams object with the default values initialized.

func NewGetProjectMemberParamsWithContext

func NewGetProjectMemberParamsWithContext(ctx context.Context) *GetProjectMemberParams

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

func NewGetProjectMemberParamsWithHTTPClient

func NewGetProjectMemberParamsWithHTTPClient(client *http.Client) *GetProjectMemberParams

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

func NewGetProjectMemberParamsWithTimeout

func NewGetProjectMemberParamsWithTimeout(timeout time.Duration) *GetProjectMemberParams

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

func (*GetProjectMemberParams) SetContext

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

SetContext adds the context to the get project member params

func (*GetProjectMemberParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get project member params

func (*GetProjectMemberParams) SetMid

func (o *GetProjectMemberParams) SetMid(mid int64)

SetMid adds the mid to the get project member params

func (*GetProjectMemberParams) SetProjectNameOrID

func (o *GetProjectMemberParams) SetProjectNameOrID(projectNameOrID string)

SetProjectNameOrID adds the projectNameOrId to the get project member params

func (*GetProjectMemberParams) SetTimeout

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

SetTimeout adds the timeout to the get project member params

func (*GetProjectMemberParams) SetXIsResourceName

func (o *GetProjectMemberParams) SetXIsResourceName(xIsResourceName *bool)

SetXIsResourceName adds the xIsResourceName to the get project member params

func (*GetProjectMemberParams) SetXRequestID

func (o *GetProjectMemberParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get project member params

func (*GetProjectMemberParams) WithContext

WithContext adds the context to the get project member params

func (*GetProjectMemberParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get project member params

func (*GetProjectMemberParams) WithMid

WithMid adds the mid to the get project member params

func (*GetProjectMemberParams) WithProjectNameOrID

func (o *GetProjectMemberParams) WithProjectNameOrID(projectNameOrID string) *GetProjectMemberParams

WithProjectNameOrID adds the projectNameOrID to the get project member params

func (*GetProjectMemberParams) WithTimeout

WithTimeout adds the timeout to the get project member params

func (*GetProjectMemberParams) WithXIsResourceName

func (o *GetProjectMemberParams) WithXIsResourceName(xIsResourceName *bool) *GetProjectMemberParams

WithXIsResourceName adds the xIsResourceName to the get project member params

func (*GetProjectMemberParams) WithXRequestID

func (o *GetProjectMemberParams) WithXRequestID(xRequestID *string) *GetProjectMemberParams

WithXRequestID adds the xRequestID to the get project member params

func (*GetProjectMemberParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetProjectMemberReader

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

GetProjectMemberReader is a Reader for the GetProjectMember structure.

func (*GetProjectMemberReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetProjectMemberUnauthorized

type GetProjectMemberUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetProjectMemberUnauthorized handles this case with default header values.

Unauthorized

func NewGetProjectMemberUnauthorized

func NewGetProjectMemberUnauthorized() *GetProjectMemberUnauthorized

NewGetProjectMemberUnauthorized creates a GetProjectMemberUnauthorized with default headers values

func (*GetProjectMemberUnauthorized) Error

func (*GetProjectMemberUnauthorized) GetPayload

func (o *GetProjectMemberUnauthorized) GetPayload() *model.Errors

type ListProjectMembersBadRequest

type ListProjectMembersBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListProjectMembersBadRequest handles this case with default header values.

Bad request

func NewListProjectMembersBadRequest

func NewListProjectMembersBadRequest() *ListProjectMembersBadRequest

NewListProjectMembersBadRequest creates a ListProjectMembersBadRequest with default headers values

func (*ListProjectMembersBadRequest) Error

func (*ListProjectMembersBadRequest) GetPayload

func (o *ListProjectMembersBadRequest) GetPayload() *model.Errors

type ListProjectMembersForbidden

type ListProjectMembersForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListProjectMembersForbidden handles this case with default header values.

Forbidden

func NewListProjectMembersForbidden

func NewListProjectMembersForbidden() *ListProjectMembersForbidden

NewListProjectMembersForbidden creates a ListProjectMembersForbidden with default headers values

func (*ListProjectMembersForbidden) Error

func (*ListProjectMembersForbidden) GetPayload

func (o *ListProjectMembersForbidden) GetPayload() *model.Errors

type ListProjectMembersInternalServerError

type ListProjectMembersInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListProjectMembersInternalServerError handles this case with default header values.

Internal server error

func NewListProjectMembersInternalServerError

func NewListProjectMembersInternalServerError() *ListProjectMembersInternalServerError

NewListProjectMembersInternalServerError creates a ListProjectMembersInternalServerError with default headers values

func (*ListProjectMembersInternalServerError) Error

func (*ListProjectMembersInternalServerError) GetPayload

type ListProjectMembersNotFound

type ListProjectMembersNotFound struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListProjectMembersNotFound handles this case with default header values.

Not found

func NewListProjectMembersNotFound

func NewListProjectMembersNotFound() *ListProjectMembersNotFound

NewListProjectMembersNotFound creates a ListProjectMembersNotFound with default headers values

func (*ListProjectMembersNotFound) Error

func (*ListProjectMembersNotFound) GetPayload

func (o *ListProjectMembersNotFound) GetPayload() *model.Errors

type ListProjectMembersOK

type ListProjectMembersOK struct {
	/*Link refers to the previous page and next page
	 */
	Link string
	/*The total count of members
	 */
	XTotalCount int64

	Payload []*model.ProjectMemberEntity
}

ListProjectMembersOK handles this case with default header values.

Get project members successfully.

func NewListProjectMembersOK

func NewListProjectMembersOK() *ListProjectMembersOK

NewListProjectMembersOK creates a ListProjectMembersOK with default headers values

func (*ListProjectMembersOK) Error

func (o *ListProjectMembersOK) Error() string

func (*ListProjectMembersOK) GetPayload

func (o *ListProjectMembersOK) GetPayload() []*model.ProjectMemberEntity

type ListProjectMembersParams

type ListProjectMembersParams struct {

	/*XIsResourceName
	  The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name.

	*/
	XIsResourceName *bool
	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Entityname
	  The entity name to search.

	*/
	Entityname *string
	/*Page
	  The page number

	*/
	Page *int64
	/*PageSize
	  The size of per page

	*/
	PageSize *int64
	/*ProjectNameOrID
	  The name or id of the project

	*/
	ProjectNameOrID string

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

ListProjectMembersParams contains all the parameters to send to the API endpoint for the list project members operation typically these are written to a http.Request

func NewListProjectMembersParams

func NewListProjectMembersParams() *ListProjectMembersParams

NewListProjectMembersParams creates a new ListProjectMembersParams object with the default values initialized.

func NewListProjectMembersParamsWithContext

func NewListProjectMembersParamsWithContext(ctx context.Context) *ListProjectMembersParams

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

func NewListProjectMembersParamsWithHTTPClient

func NewListProjectMembersParamsWithHTTPClient(client *http.Client) *ListProjectMembersParams

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

func NewListProjectMembersParamsWithTimeout

func NewListProjectMembersParamsWithTimeout(timeout time.Duration) *ListProjectMembersParams

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

func (*ListProjectMembersParams) SetContext

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

SetContext adds the context to the list project members params

func (*ListProjectMembersParams) SetEntityname

func (o *ListProjectMembersParams) SetEntityname(entityname *string)

SetEntityname adds the entityname to the list project members params

func (*ListProjectMembersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list project members params

func (*ListProjectMembersParams) SetPage

func (o *ListProjectMembersParams) SetPage(page *int64)

SetPage adds the page to the list project members params

func (*ListProjectMembersParams) SetPageSize

func (o *ListProjectMembersParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the list project members params

func (*ListProjectMembersParams) SetProjectNameOrID

func (o *ListProjectMembersParams) SetProjectNameOrID(projectNameOrID string)

SetProjectNameOrID adds the projectNameOrId to the list project members params

func (*ListProjectMembersParams) SetTimeout

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

SetTimeout adds the timeout to the list project members params

func (*ListProjectMembersParams) SetXIsResourceName

func (o *ListProjectMembersParams) SetXIsResourceName(xIsResourceName *bool)

SetXIsResourceName adds the xIsResourceName to the list project members params

func (*ListProjectMembersParams) SetXRequestID

func (o *ListProjectMembersParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the list project members params

func (*ListProjectMembersParams) WithContext

WithContext adds the context to the list project members params

func (*ListProjectMembersParams) WithEntityname

func (o *ListProjectMembersParams) WithEntityname(entityname *string) *ListProjectMembersParams

WithEntityname adds the entityname to the list project members params

func (*ListProjectMembersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list project members params

func (*ListProjectMembersParams) WithPage

WithPage adds the page to the list project members params

func (*ListProjectMembersParams) WithPageSize

func (o *ListProjectMembersParams) WithPageSize(pageSize *int64) *ListProjectMembersParams

WithPageSize adds the pageSize to the list project members params

func (*ListProjectMembersParams) WithProjectNameOrID

func (o *ListProjectMembersParams) WithProjectNameOrID(projectNameOrID string) *ListProjectMembersParams

WithProjectNameOrID adds the projectNameOrID to the list project members params

func (*ListProjectMembersParams) WithTimeout

WithTimeout adds the timeout to the list project members params

func (*ListProjectMembersParams) WithXIsResourceName

func (o *ListProjectMembersParams) WithXIsResourceName(xIsResourceName *bool) *ListProjectMembersParams

WithXIsResourceName adds the xIsResourceName to the list project members params

func (*ListProjectMembersParams) WithXRequestID

func (o *ListProjectMembersParams) WithXRequestID(xRequestID *string) *ListProjectMembersParams

WithXRequestID adds the xRequestID to the list project members params

func (*ListProjectMembersParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListProjectMembersReader

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

ListProjectMembersReader is a Reader for the ListProjectMembers structure.

func (*ListProjectMembersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListProjectMembersUnauthorized

type ListProjectMembersUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListProjectMembersUnauthorized handles this case with default header values.

Unauthorized

func NewListProjectMembersUnauthorized

func NewListProjectMembersUnauthorized() *ListProjectMembersUnauthorized

NewListProjectMembersUnauthorized creates a ListProjectMembersUnauthorized with default headers values

func (*ListProjectMembersUnauthorized) Error

func (*ListProjectMembersUnauthorized) GetPayload

func (o *ListProjectMembersUnauthorized) GetPayload() *model.Errors

type UpdateProjectMemberBadRequest

type UpdateProjectMemberBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateProjectMemberBadRequest handles this case with default header values.

Bad request

func NewUpdateProjectMemberBadRequest

func NewUpdateProjectMemberBadRequest() *UpdateProjectMemberBadRequest

NewUpdateProjectMemberBadRequest creates a UpdateProjectMemberBadRequest with default headers values

func (*UpdateProjectMemberBadRequest) Error

func (*UpdateProjectMemberBadRequest) GetPayload

func (o *UpdateProjectMemberBadRequest) GetPayload() *model.Errors

type UpdateProjectMemberForbidden

type UpdateProjectMemberForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateProjectMemberForbidden handles this case with default header values.

Forbidden

func NewUpdateProjectMemberForbidden

func NewUpdateProjectMemberForbidden() *UpdateProjectMemberForbidden

NewUpdateProjectMemberForbidden creates a UpdateProjectMemberForbidden with default headers values

func (*UpdateProjectMemberForbidden) Error

func (*UpdateProjectMemberForbidden) GetPayload

func (o *UpdateProjectMemberForbidden) GetPayload() *model.Errors

type UpdateProjectMemberInternalServerError

type UpdateProjectMemberInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateProjectMemberInternalServerError handles this case with default header values.

Internal server error

func NewUpdateProjectMemberInternalServerError

func NewUpdateProjectMemberInternalServerError() *UpdateProjectMemberInternalServerError

NewUpdateProjectMemberInternalServerError creates a UpdateProjectMemberInternalServerError with default headers values

func (*UpdateProjectMemberInternalServerError) Error

func (*UpdateProjectMemberInternalServerError) GetPayload

type UpdateProjectMemberNotFound

type UpdateProjectMemberNotFound struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateProjectMemberNotFound handles this case with default header values.

Not found

func NewUpdateProjectMemberNotFound

func NewUpdateProjectMemberNotFound() *UpdateProjectMemberNotFound

NewUpdateProjectMemberNotFound creates a UpdateProjectMemberNotFound with default headers values

func (*UpdateProjectMemberNotFound) Error

func (*UpdateProjectMemberNotFound) GetPayload

func (o *UpdateProjectMemberNotFound) GetPayload() *model.Errors

type UpdateProjectMemberOK

type UpdateProjectMemberOK struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string
}

UpdateProjectMemberOK handles this case with default header values.

Success

func NewUpdateProjectMemberOK

func NewUpdateProjectMemberOK() *UpdateProjectMemberOK

NewUpdateProjectMemberOK creates a UpdateProjectMemberOK with default headers values

func (*UpdateProjectMemberOK) Error

func (o *UpdateProjectMemberOK) Error() string

type UpdateProjectMemberParams

type UpdateProjectMemberParams struct {

	/*XIsResourceName
	  The flag to indicate whether the parameter which supports both name and id in the path is the name of the resource. When the X-Is-Resource-Name is false and the parameter can be converted to an integer, the parameter will be as an id, otherwise, it will be as a name.

	*/
	XIsResourceName *bool
	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Mid
	  Member ID.

	*/
	Mid int64
	/*ProjectNameOrID
	  The name or id of the project

	*/
	ProjectNameOrID string
	/*Role*/
	Role *model.RoleRequest

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

UpdateProjectMemberParams contains all the parameters to send to the API endpoint for the update project member operation typically these are written to a http.Request

func NewUpdateProjectMemberParams

func NewUpdateProjectMemberParams() *UpdateProjectMemberParams

NewUpdateProjectMemberParams creates a new UpdateProjectMemberParams object with the default values initialized.

func NewUpdateProjectMemberParamsWithContext

func NewUpdateProjectMemberParamsWithContext(ctx context.Context) *UpdateProjectMemberParams

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

func NewUpdateProjectMemberParamsWithHTTPClient

func NewUpdateProjectMemberParamsWithHTTPClient(client *http.Client) *UpdateProjectMemberParams

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

func NewUpdateProjectMemberParamsWithTimeout

func NewUpdateProjectMemberParamsWithTimeout(timeout time.Duration) *UpdateProjectMemberParams

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

func (*UpdateProjectMemberParams) SetContext

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

SetContext adds the context to the update project member params

func (*UpdateProjectMemberParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update project member params

func (*UpdateProjectMemberParams) SetMid

func (o *UpdateProjectMemberParams) SetMid(mid int64)

SetMid adds the mid to the update project member params

func (*UpdateProjectMemberParams) SetProjectNameOrID

func (o *UpdateProjectMemberParams) SetProjectNameOrID(projectNameOrID string)

SetProjectNameOrID adds the projectNameOrId to the update project member params

func (*UpdateProjectMemberParams) SetRole

func (o *UpdateProjectMemberParams) SetRole(role *model.RoleRequest)

SetRole adds the role to the update project member params

func (*UpdateProjectMemberParams) SetTimeout

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

SetTimeout adds the timeout to the update project member params

func (*UpdateProjectMemberParams) SetXIsResourceName

func (o *UpdateProjectMemberParams) SetXIsResourceName(xIsResourceName *bool)

SetXIsResourceName adds the xIsResourceName to the update project member params

func (*UpdateProjectMemberParams) SetXRequestID

func (o *UpdateProjectMemberParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the update project member params

func (*UpdateProjectMemberParams) WithContext

WithContext adds the context to the update project member params

func (*UpdateProjectMemberParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update project member params

func (*UpdateProjectMemberParams) WithMid

WithMid adds the mid to the update project member params

func (*UpdateProjectMemberParams) WithProjectNameOrID

func (o *UpdateProjectMemberParams) WithProjectNameOrID(projectNameOrID string) *UpdateProjectMemberParams

WithProjectNameOrID adds the projectNameOrID to the update project member params

func (*UpdateProjectMemberParams) WithRole

WithRole adds the role to the update project member params

func (*UpdateProjectMemberParams) WithTimeout

WithTimeout adds the timeout to the update project member params

func (*UpdateProjectMemberParams) WithXIsResourceName

func (o *UpdateProjectMemberParams) WithXIsResourceName(xIsResourceName *bool) *UpdateProjectMemberParams

WithXIsResourceName adds the xIsResourceName to the update project member params

func (*UpdateProjectMemberParams) WithXRequestID

func (o *UpdateProjectMemberParams) WithXRequestID(xRequestID *string) *UpdateProjectMemberParams

WithXRequestID adds the xRequestID to the update project member params

func (*UpdateProjectMemberParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateProjectMemberReader

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

UpdateProjectMemberReader is a Reader for the UpdateProjectMember structure.

func (*UpdateProjectMemberReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateProjectMemberUnauthorized

type UpdateProjectMemberUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateProjectMemberUnauthorized handles this case with default header values.

Unauthorized

func NewUpdateProjectMemberUnauthorized

func NewUpdateProjectMemberUnauthorized() *UpdateProjectMemberUnauthorized

NewUpdateProjectMemberUnauthorized creates a UpdateProjectMemberUnauthorized with default headers values

func (*UpdateProjectMemberUnauthorized) Error

func (*UpdateProjectMemberUnauthorized) GetPayload

func (o *UpdateProjectMemberUnauthorized) GetPayload() *model.Errors

Jump to

Keyboard shortcuts

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