organization_roles

package
v1.0.84 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 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 roles API

func New

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

New creates a new organization roles API client.

func (*Client) CreateOrgRole added in v1.0.49

func (a *Client) CreateOrgRole(params *CreateOrgRoleParams, authInfo runtime.ClientAuthInfoWriter) (*CreateOrgRoleOK, error)

CreateOrgRole Create a new role available in the organization.

func (*Client) DeleteOrgRole added in v1.0.49

func (a *Client) DeleteOrgRole(params *DeleteOrgRoleParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteOrgRoleNoContent, error)

DeleteOrgRole Delete an existing role in the organization.

func (*Client) GetOrgRole added in v1.0.49

func (a *Client) GetOrgRole(params *GetOrgRoleParams, authInfo runtime.ClientAuthInfoWriter) (*GetOrgRoleOK, error)

GetOrgRole Get the role available in the organization with an canonical

func (*Client) GetOrgRoles added in v1.0.49

func (a *Client) GetOrgRoles(params *GetOrgRolesParams, authInfo runtime.ClientAuthInfoWriter) (*GetOrgRolesOK, error)

GetOrgRoles Get the list of roles available in the organization.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateOrgRole added in v1.0.49

func (a *Client) UpdateOrgRole(params *UpdateOrgRoleParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateOrgRoleOK, error)

UpdateOrgRole Update an existing role in the organization.

type CreateOrgRoleDefault added in v1.0.49

type CreateOrgRoleDefault struct {

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

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

CreateOrgRoleDefault handles this case with default header values.

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

func NewCreateOrgRoleDefault added in v1.0.49

func NewCreateOrgRoleDefault(code int) *CreateOrgRoleDefault

NewCreateOrgRoleDefault creates a CreateOrgRoleDefault with default headers values

func (*CreateOrgRoleDefault) Code added in v1.0.49

func (o *CreateOrgRoleDefault) Code() int

Code gets the status code for the create org role default response

func (*CreateOrgRoleDefault) Error added in v1.0.49

func (o *CreateOrgRoleDefault) Error() string

func (*CreateOrgRoleDefault) GetPayload added in v1.0.49

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

type CreateOrgRoleForbidden added in v1.0.49

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

	Payload *models.ErrorPayload
}

CreateOrgRoleForbidden handles this case with default header values.

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

func NewCreateOrgRoleForbidden added in v1.0.49

func NewCreateOrgRoleForbidden() *CreateOrgRoleForbidden

NewCreateOrgRoleForbidden creates a CreateOrgRoleForbidden with default headers values

func (*CreateOrgRoleForbidden) Error added in v1.0.49

func (o *CreateOrgRoleForbidden) Error() string

func (*CreateOrgRoleForbidden) GetPayload added in v1.0.49

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

type CreateOrgRoleNotFound added in v1.0.49

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

	Payload *models.ErrorPayload
}

CreateOrgRoleNotFound handles this case with default header values.

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

func NewCreateOrgRoleNotFound added in v1.0.49

func NewCreateOrgRoleNotFound() *CreateOrgRoleNotFound

NewCreateOrgRoleNotFound creates a CreateOrgRoleNotFound with default headers values

func (*CreateOrgRoleNotFound) Error added in v1.0.49

func (o *CreateOrgRoleNotFound) Error() string

func (*CreateOrgRoleNotFound) GetPayload added in v1.0.49

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

type CreateOrgRoleOK added in v1.0.49

type CreateOrgRoleOK struct {
	Payload *CreateOrgRoleOKBody
}

CreateOrgRoleOK handles this case with default header values.

New role created in the organization.

func NewCreateOrgRoleOK added in v1.0.49

func NewCreateOrgRoleOK() *CreateOrgRoleOK

NewCreateOrgRoleOK creates a CreateOrgRoleOK with default headers values

func (*CreateOrgRoleOK) Error added in v1.0.49

func (o *CreateOrgRoleOK) Error() string

func (*CreateOrgRoleOK) GetPayload added in v1.0.49

func (o *CreateOrgRoleOK) GetPayload() *CreateOrgRoleOKBody

type CreateOrgRoleOKBody added in v1.0.49

type CreateOrgRoleOKBody struct {

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

CreateOrgRoleOKBody create org role o k body swagger:model CreateOrgRoleOKBody

func (*CreateOrgRoleOKBody) MarshalBinary added in v1.0.49

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

MarshalBinary interface implementation

func (*CreateOrgRoleOKBody) UnmarshalBinary added in v1.0.49

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

UnmarshalBinary interface implementation

func (*CreateOrgRoleOKBody) Validate added in v1.0.49

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

Validate validates this create org role o k body

type CreateOrgRoleParams added in v1.0.49

type CreateOrgRoleParams struct {

	/*Body
	  The information of the organization's role to create.

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

	*/
	OrganizationCanonical string

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

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

func NewCreateOrgRoleParams added in v1.0.49

func NewCreateOrgRoleParams() *CreateOrgRoleParams

NewCreateOrgRoleParams creates a new CreateOrgRoleParams object with the default values initialized.

func NewCreateOrgRoleParamsWithContext added in v1.0.49

func NewCreateOrgRoleParamsWithContext(ctx context.Context) *CreateOrgRoleParams

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

func NewCreateOrgRoleParamsWithHTTPClient added in v1.0.49

func NewCreateOrgRoleParamsWithHTTPClient(client *http.Client) *CreateOrgRoleParams

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

func NewCreateOrgRoleParamsWithTimeout added in v1.0.49

func NewCreateOrgRoleParamsWithTimeout(timeout time.Duration) *CreateOrgRoleParams

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

func (*CreateOrgRoleParams) SetBody added in v1.0.49

func (o *CreateOrgRoleParams) SetBody(body *models.NewRole)

SetBody adds the body to the create org role params

func (*CreateOrgRoleParams) SetContext added in v1.0.49

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

SetContext adds the context to the create org role params

func (*CreateOrgRoleParams) SetHTTPClient added in v1.0.49

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

SetHTTPClient adds the HTTPClient to the create org role params

func (*CreateOrgRoleParams) SetOrganizationCanonical added in v1.0.49

func (o *CreateOrgRoleParams) SetOrganizationCanonical(organizationCanonical string)

SetOrganizationCanonical adds the organizationCanonical to the create org role params

func (*CreateOrgRoleParams) SetTimeout added in v1.0.49

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

SetTimeout adds the timeout to the create org role params

func (*CreateOrgRoleParams) WithBody added in v1.0.49

WithBody adds the body to the create org role params

func (*CreateOrgRoleParams) WithContext added in v1.0.49

WithContext adds the context to the create org role params

func (*CreateOrgRoleParams) WithHTTPClient added in v1.0.49

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

WithHTTPClient adds the HTTPClient to the create org role params

func (*CreateOrgRoleParams) WithOrganizationCanonical added in v1.0.49

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

WithOrganizationCanonical adds the organizationCanonical to the create org role params

func (*CreateOrgRoleParams) WithTimeout added in v1.0.49

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

WithTimeout adds the timeout to the create org role params

func (*CreateOrgRoleParams) WriteToRequest added in v1.0.49

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

WriteToRequest writes these params to a swagger request

type CreateOrgRoleReader added in v1.0.49

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

CreateOrgRoleReader is a Reader for the CreateOrgRole structure.

func (*CreateOrgRoleReader) ReadResponse added in v1.0.49

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

ReadResponse reads a server response into the received o.

type CreateOrgRoleUnprocessableEntity added in v1.0.49

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

	Payload *models.ErrorPayload
}

CreateOrgRoleUnprocessableEntity handles this case with default header values.

All the custom errors that are generated from the Cycloid API

func NewCreateOrgRoleUnprocessableEntity added in v1.0.49

func NewCreateOrgRoleUnprocessableEntity() *CreateOrgRoleUnprocessableEntity

NewCreateOrgRoleUnprocessableEntity creates a CreateOrgRoleUnprocessableEntity with default headers values

func (*CreateOrgRoleUnprocessableEntity) Error added in v1.0.49

func (*CreateOrgRoleUnprocessableEntity) GetPayload added in v1.0.49

type DeleteOrgRoleDefault added in v1.0.49

type DeleteOrgRoleDefault struct {

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

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

DeleteOrgRoleDefault handles this case with default header values.

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

func NewDeleteOrgRoleDefault added in v1.0.49

func NewDeleteOrgRoleDefault(code int) *DeleteOrgRoleDefault

NewDeleteOrgRoleDefault creates a DeleteOrgRoleDefault with default headers values

func (*DeleteOrgRoleDefault) Code added in v1.0.49

func (o *DeleteOrgRoleDefault) Code() int

Code gets the status code for the delete org role default response

func (*DeleteOrgRoleDefault) Error added in v1.0.49

func (o *DeleteOrgRoleDefault) Error() string

func (*DeleteOrgRoleDefault) GetPayload added in v1.0.49

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

type DeleteOrgRoleForbidden added in v1.0.49

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

	Payload *models.ErrorPayload
}

DeleteOrgRoleForbidden handles this case with default header values.

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

func NewDeleteOrgRoleForbidden added in v1.0.49

func NewDeleteOrgRoleForbidden() *DeleteOrgRoleForbidden

NewDeleteOrgRoleForbidden creates a DeleteOrgRoleForbidden with default headers values

func (*DeleteOrgRoleForbidden) Error added in v1.0.49

func (o *DeleteOrgRoleForbidden) Error() string

func (*DeleteOrgRoleForbidden) GetPayload added in v1.0.49

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

type DeleteOrgRoleNoContent added in v1.0.49

type DeleteOrgRoleNoContent struct {
}

DeleteOrgRoleNoContent handles this case with default header values.

Organization role has been deleted.

func NewDeleteOrgRoleNoContent added in v1.0.49

func NewDeleteOrgRoleNoContent() *DeleteOrgRoleNoContent

NewDeleteOrgRoleNoContent creates a DeleteOrgRoleNoContent with default headers values

func (*DeleteOrgRoleNoContent) Error added in v1.0.49

func (o *DeleteOrgRoleNoContent) Error() string

type DeleteOrgRoleNotFound added in v1.0.49

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

	Payload *models.ErrorPayload
}

DeleteOrgRoleNotFound handles this case with default header values.

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

func NewDeleteOrgRoleNotFound added in v1.0.49

func NewDeleteOrgRoleNotFound() *DeleteOrgRoleNotFound

NewDeleteOrgRoleNotFound creates a DeleteOrgRoleNotFound with default headers values

func (*DeleteOrgRoleNotFound) Error added in v1.0.49

func (o *DeleteOrgRoleNotFound) Error() string

func (*DeleteOrgRoleNotFound) GetPayload added in v1.0.49

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

type DeleteOrgRoleParams added in v1.0.49

type DeleteOrgRoleParams struct {

	/*OrganizationCanonical
	  A canonical of an organization.

	*/
	OrganizationCanonical string
	/*RoleCanonical
	  Organization Role canonical

	*/
	RoleCanonical string

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

DeleteOrgRoleParams contains all the parameters to send to the API endpoint for the delete org role operation typically these are written to a http.Request

func NewDeleteOrgRoleParams added in v1.0.49

func NewDeleteOrgRoleParams() *DeleteOrgRoleParams

NewDeleteOrgRoleParams creates a new DeleteOrgRoleParams object with the default values initialized.

func NewDeleteOrgRoleParamsWithContext added in v1.0.49

func NewDeleteOrgRoleParamsWithContext(ctx context.Context) *DeleteOrgRoleParams

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

func NewDeleteOrgRoleParamsWithHTTPClient added in v1.0.49

func NewDeleteOrgRoleParamsWithHTTPClient(client *http.Client) *DeleteOrgRoleParams

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

func NewDeleteOrgRoleParamsWithTimeout added in v1.0.49

func NewDeleteOrgRoleParamsWithTimeout(timeout time.Duration) *DeleteOrgRoleParams

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

func (*DeleteOrgRoleParams) SetContext added in v1.0.49

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

SetContext adds the context to the delete org role params

func (*DeleteOrgRoleParams) SetHTTPClient added in v1.0.49

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

SetHTTPClient adds the HTTPClient to the delete org role params

func (*DeleteOrgRoleParams) SetOrganizationCanonical added in v1.0.49

func (o *DeleteOrgRoleParams) SetOrganizationCanonical(organizationCanonical string)

SetOrganizationCanonical adds the organizationCanonical to the delete org role params

func (*DeleteOrgRoleParams) SetRoleCanonical added in v1.0.58

func (o *DeleteOrgRoleParams) SetRoleCanonical(roleCanonical string)

SetRoleCanonical adds the roleCanonical to the delete org role params

func (*DeleteOrgRoleParams) SetTimeout added in v1.0.49

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

SetTimeout adds the timeout to the delete org role params

func (*DeleteOrgRoleParams) WithContext added in v1.0.49

WithContext adds the context to the delete org role params

func (*DeleteOrgRoleParams) WithHTTPClient added in v1.0.49

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

WithHTTPClient adds the HTTPClient to the delete org role params

func (*DeleteOrgRoleParams) WithOrganizationCanonical added in v1.0.49

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

WithOrganizationCanonical adds the organizationCanonical to the delete org role params

func (*DeleteOrgRoleParams) WithRoleCanonical added in v1.0.58

func (o *DeleteOrgRoleParams) WithRoleCanonical(roleCanonical string) *DeleteOrgRoleParams

WithRoleCanonical adds the roleCanonical to the delete org role params

func (*DeleteOrgRoleParams) WithTimeout added in v1.0.49

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

WithTimeout adds the timeout to the delete org role params

func (*DeleteOrgRoleParams) WriteToRequest added in v1.0.49

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

WriteToRequest writes these params to a swagger request

type DeleteOrgRoleReader added in v1.0.49

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

DeleteOrgRoleReader is a Reader for the DeleteOrgRole structure.

func (*DeleteOrgRoleReader) ReadResponse added in v1.0.49

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

ReadResponse reads a server response into the received o.

type GetOrgRoleDefault added in v1.0.49

type GetOrgRoleDefault struct {

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

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

GetOrgRoleDefault handles this case with default header values.

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

func NewGetOrgRoleDefault added in v1.0.49

func NewGetOrgRoleDefault(code int) *GetOrgRoleDefault

NewGetOrgRoleDefault creates a GetOrgRoleDefault with default headers values

func (*GetOrgRoleDefault) Code added in v1.0.49

func (o *GetOrgRoleDefault) Code() int

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

func (*GetOrgRoleDefault) Error added in v1.0.49

func (o *GetOrgRoleDefault) Error() string

func (*GetOrgRoleDefault) GetPayload added in v1.0.49

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

type GetOrgRoleForbidden added in v1.0.49

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

	Payload *models.ErrorPayload
}

GetOrgRoleForbidden handles this case with default header values.

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

func NewGetOrgRoleForbidden added in v1.0.49

func NewGetOrgRoleForbidden() *GetOrgRoleForbidden

NewGetOrgRoleForbidden creates a GetOrgRoleForbidden with default headers values

func (*GetOrgRoleForbidden) Error added in v1.0.49

func (o *GetOrgRoleForbidden) Error() string

func (*GetOrgRoleForbidden) GetPayload added in v1.0.49

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

type GetOrgRoleNotFound added in v1.0.49

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

	Payload *models.ErrorPayload
}

GetOrgRoleNotFound handles this case with default header values.

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

func NewGetOrgRoleNotFound added in v1.0.49

func NewGetOrgRoleNotFound() *GetOrgRoleNotFound

NewGetOrgRoleNotFound creates a GetOrgRoleNotFound with default headers values

func (*GetOrgRoleNotFound) Error added in v1.0.49

func (o *GetOrgRoleNotFound) Error() string

func (*GetOrgRoleNotFound) GetPayload added in v1.0.49

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

type GetOrgRoleOK added in v1.0.49

type GetOrgRoleOK struct {
	Payload *GetOrgRoleOKBody
}

GetOrgRoleOK handles this case with default header values.

Role available in the organization with such canonical.

func NewGetOrgRoleOK added in v1.0.49

func NewGetOrgRoleOK() *GetOrgRoleOK

NewGetOrgRoleOK creates a GetOrgRoleOK with default headers values

func (*GetOrgRoleOK) Error added in v1.0.49

func (o *GetOrgRoleOK) Error() string

func (*GetOrgRoleOK) GetPayload added in v1.0.49

func (o *GetOrgRoleOK) GetPayload() *GetOrgRoleOKBody

type GetOrgRoleOKBody added in v1.0.49

type GetOrgRoleOKBody struct {

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

GetOrgRoleOKBody get org role o k body swagger:model GetOrgRoleOKBody

func (*GetOrgRoleOKBody) MarshalBinary added in v1.0.49

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

MarshalBinary interface implementation

func (*GetOrgRoleOKBody) UnmarshalBinary added in v1.0.49

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

UnmarshalBinary interface implementation

func (*GetOrgRoleOKBody) Validate added in v1.0.49

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

Validate validates this get org role o k body

type GetOrgRoleParams added in v1.0.49

type GetOrgRoleParams struct {

	/*OrganizationCanonical
	  A canonical of an organization.

	*/
	OrganizationCanonical string
	/*RoleCanonical
	  Organization Role canonical

	*/
	RoleCanonical string

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

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

func NewGetOrgRoleParams added in v1.0.49

func NewGetOrgRoleParams() *GetOrgRoleParams

NewGetOrgRoleParams creates a new GetOrgRoleParams object with the default values initialized.

func NewGetOrgRoleParamsWithContext added in v1.0.49

func NewGetOrgRoleParamsWithContext(ctx context.Context) *GetOrgRoleParams

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

func NewGetOrgRoleParamsWithHTTPClient added in v1.0.49

func NewGetOrgRoleParamsWithHTTPClient(client *http.Client) *GetOrgRoleParams

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

func NewGetOrgRoleParamsWithTimeout added in v1.0.49

func NewGetOrgRoleParamsWithTimeout(timeout time.Duration) *GetOrgRoleParams

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

func (*GetOrgRoleParams) SetContext added in v1.0.49

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

SetContext adds the context to the get org role params

func (*GetOrgRoleParams) SetHTTPClient added in v1.0.49

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

SetHTTPClient adds the HTTPClient to the get org role params

func (*GetOrgRoleParams) SetOrganizationCanonical added in v1.0.49

func (o *GetOrgRoleParams) SetOrganizationCanonical(organizationCanonical string)

SetOrganizationCanonical adds the organizationCanonical to the get org role params

func (*GetOrgRoleParams) SetRoleCanonical added in v1.0.58

func (o *GetOrgRoleParams) SetRoleCanonical(roleCanonical string)

SetRoleCanonical adds the roleCanonical to the get org role params

func (*GetOrgRoleParams) SetTimeout added in v1.0.49

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

SetTimeout adds the timeout to the get org role params

func (*GetOrgRoleParams) WithContext added in v1.0.49

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

WithContext adds the context to the get org role params

func (*GetOrgRoleParams) WithHTTPClient added in v1.0.49

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

WithHTTPClient adds the HTTPClient to the get org role params

func (*GetOrgRoleParams) WithOrganizationCanonical added in v1.0.49

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

WithOrganizationCanonical adds the organizationCanonical to the get org role params

func (*GetOrgRoleParams) WithRoleCanonical added in v1.0.58

func (o *GetOrgRoleParams) WithRoleCanonical(roleCanonical string) *GetOrgRoleParams

WithRoleCanonical adds the roleCanonical to the get org role params

func (*GetOrgRoleParams) WithTimeout added in v1.0.49

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

WithTimeout adds the timeout to the get org role params

func (*GetOrgRoleParams) WriteToRequest added in v1.0.49

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

WriteToRequest writes these params to a swagger request

type GetOrgRoleReader added in v1.0.49

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

GetOrgRoleReader is a Reader for the GetOrgRole structure.

func (*GetOrgRoleReader) ReadResponse added in v1.0.49

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

ReadResponse reads a server response into the received o.

type GetOrgRolesDefault added in v1.0.49

type GetOrgRolesDefault struct {

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

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

GetOrgRolesDefault handles this case with default header values.

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

func NewGetOrgRolesDefault added in v1.0.49

func NewGetOrgRolesDefault(code int) *GetOrgRolesDefault

NewGetOrgRolesDefault creates a GetOrgRolesDefault with default headers values

func (*GetOrgRolesDefault) Code added in v1.0.49

func (o *GetOrgRolesDefault) Code() int

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

func (*GetOrgRolesDefault) Error added in v1.0.49

func (o *GetOrgRolesDefault) Error() string

func (*GetOrgRolesDefault) GetPayload added in v1.0.49

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

type GetOrgRolesForbidden added in v1.0.49

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

	Payload *models.ErrorPayload
}

GetOrgRolesForbidden handles this case with default header values.

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

func NewGetOrgRolesForbidden added in v1.0.49

func NewGetOrgRolesForbidden() *GetOrgRolesForbidden

NewGetOrgRolesForbidden creates a GetOrgRolesForbidden with default headers values

func (*GetOrgRolesForbidden) Error added in v1.0.49

func (o *GetOrgRolesForbidden) Error() string

func (*GetOrgRolesForbidden) GetPayload added in v1.0.49

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

type GetOrgRolesNotFound added in v1.0.49

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

	Payload *models.ErrorPayload
}

GetOrgRolesNotFound handles this case with default header values.

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

func NewGetOrgRolesNotFound added in v1.0.49

func NewGetOrgRolesNotFound() *GetOrgRolesNotFound

NewGetOrgRolesNotFound creates a GetOrgRolesNotFound with default headers values

func (*GetOrgRolesNotFound) Error added in v1.0.49

func (o *GetOrgRolesNotFound) Error() string

func (*GetOrgRolesNotFound) GetPayload added in v1.0.49

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

type GetOrgRolesOK added in v1.0.49

type GetOrgRolesOK struct {
	Payload *GetOrgRolesOKBody
}

GetOrgRolesOK handles this case with default header values.

List of roles which are available in the organization.

func NewGetOrgRolesOK added in v1.0.49

func NewGetOrgRolesOK() *GetOrgRolesOK

NewGetOrgRolesOK creates a GetOrgRolesOK with default headers values

func (*GetOrgRolesOK) Error added in v1.0.49

func (o *GetOrgRolesOK) Error() string

func (*GetOrgRolesOK) GetPayload added in v1.0.49

func (o *GetOrgRolesOK) GetPayload() *GetOrgRolesOKBody

type GetOrgRolesOKBody added in v1.0.49

type GetOrgRolesOKBody struct {

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

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

GetOrgRolesOKBody get org roles o k body swagger:model GetOrgRolesOKBody

func (*GetOrgRolesOKBody) MarshalBinary added in v1.0.49

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

MarshalBinary interface implementation

func (*GetOrgRolesOKBody) UnmarshalBinary added in v1.0.49

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

UnmarshalBinary interface implementation

func (*GetOrgRolesOKBody) Validate added in v1.0.49

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

Validate validates this get org roles o k body

type GetOrgRolesParams added in v1.0.49

type GetOrgRolesParams struct {

	/*OrganizationCanonical
	  A canonical of an organization.

	*/
	OrganizationCanonical 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
}

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

func NewGetOrgRolesParams added in v1.0.49

func NewGetOrgRolesParams() *GetOrgRolesParams

NewGetOrgRolesParams creates a new GetOrgRolesParams object with the default values initialized.

func NewGetOrgRolesParamsWithContext added in v1.0.49

func NewGetOrgRolesParamsWithContext(ctx context.Context) *GetOrgRolesParams

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

func NewGetOrgRolesParamsWithHTTPClient added in v1.0.49

func NewGetOrgRolesParamsWithHTTPClient(client *http.Client) *GetOrgRolesParams

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

func NewGetOrgRolesParamsWithTimeout added in v1.0.49

func NewGetOrgRolesParamsWithTimeout(timeout time.Duration) *GetOrgRolesParams

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

func (*GetOrgRolesParams) SetContext added in v1.0.49

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

SetContext adds the context to the get org roles params

func (*GetOrgRolesParams) SetHTTPClient added in v1.0.49

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

SetHTTPClient adds the HTTPClient to the get org roles params

func (*GetOrgRolesParams) SetOrganizationCanonical added in v1.0.49

func (o *GetOrgRolesParams) SetOrganizationCanonical(organizationCanonical string)

SetOrganizationCanonical adds the organizationCanonical to the get org roles params

func (*GetOrgRolesParams) SetPageIndex added in v1.0.49

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

SetPageIndex adds the pageIndex to the get org roles params

func (*GetOrgRolesParams) SetPageSize added in v1.0.49

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

SetPageSize adds the pageSize to the get org roles params

func (*GetOrgRolesParams) SetTimeout added in v1.0.49

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

SetTimeout adds the timeout to the get org roles params

func (*GetOrgRolesParams) WithContext added in v1.0.49

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

WithContext adds the context to the get org roles params

func (*GetOrgRolesParams) WithHTTPClient added in v1.0.49

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

WithHTTPClient adds the HTTPClient to the get org roles params

func (*GetOrgRolesParams) WithOrganizationCanonical added in v1.0.49

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

WithOrganizationCanonical adds the organizationCanonical to the get org roles params

func (*GetOrgRolesParams) WithPageIndex added in v1.0.49

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

WithPageIndex adds the pageIndex to the get org roles params

func (*GetOrgRolesParams) WithPageSize added in v1.0.49

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

WithPageSize adds the pageSize to the get org roles params

func (*GetOrgRolesParams) WithTimeout added in v1.0.49

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

WithTimeout adds the timeout to the get org roles params

func (*GetOrgRolesParams) WriteToRequest added in v1.0.49

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

WriteToRequest writes these params to a swagger request

type GetOrgRolesReader added in v1.0.49

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

GetOrgRolesReader is a Reader for the GetOrgRoles structure.

func (*GetOrgRolesReader) ReadResponse added in v1.0.49

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

ReadResponse reads a server response into the received o.

type UpdateOrgRoleDefault added in v1.0.49

type UpdateOrgRoleDefault struct {

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

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

UpdateOrgRoleDefault handles this case with default header values.

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

func NewUpdateOrgRoleDefault added in v1.0.49

func NewUpdateOrgRoleDefault(code int) *UpdateOrgRoleDefault

NewUpdateOrgRoleDefault creates a UpdateOrgRoleDefault with default headers values

func (*UpdateOrgRoleDefault) Code added in v1.0.49

func (o *UpdateOrgRoleDefault) Code() int

Code gets the status code for the update org role default response

func (*UpdateOrgRoleDefault) Error added in v1.0.49

func (o *UpdateOrgRoleDefault) Error() string

func (*UpdateOrgRoleDefault) GetPayload added in v1.0.49

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

type UpdateOrgRoleForbidden added in v1.0.49

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

	Payload *models.ErrorPayload
}

UpdateOrgRoleForbidden handles this case with default header values.

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

func NewUpdateOrgRoleForbidden added in v1.0.49

func NewUpdateOrgRoleForbidden() *UpdateOrgRoleForbidden

NewUpdateOrgRoleForbidden creates a UpdateOrgRoleForbidden with default headers values

func (*UpdateOrgRoleForbidden) Error added in v1.0.49

func (o *UpdateOrgRoleForbidden) Error() string

func (*UpdateOrgRoleForbidden) GetPayload added in v1.0.49

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

type UpdateOrgRoleNotFound added in v1.0.49

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

	Payload *models.ErrorPayload
}

UpdateOrgRoleNotFound handles this case with default header values.

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

func NewUpdateOrgRoleNotFound added in v1.0.49

func NewUpdateOrgRoleNotFound() *UpdateOrgRoleNotFound

NewUpdateOrgRoleNotFound creates a UpdateOrgRoleNotFound with default headers values

func (*UpdateOrgRoleNotFound) Error added in v1.0.49

func (o *UpdateOrgRoleNotFound) Error() string

func (*UpdateOrgRoleNotFound) GetPayload added in v1.0.49

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

type UpdateOrgRoleOK added in v1.0.49

type UpdateOrgRoleOK struct {
	Payload *UpdateOrgRoleOKBody
}

UpdateOrgRoleOK handles this case with default header values.

Updated role belonging to the organization.

func NewUpdateOrgRoleOK added in v1.0.49

func NewUpdateOrgRoleOK() *UpdateOrgRoleOK

NewUpdateOrgRoleOK creates a UpdateOrgRoleOK with default headers values

func (*UpdateOrgRoleOK) Error added in v1.0.49

func (o *UpdateOrgRoleOK) Error() string

func (*UpdateOrgRoleOK) GetPayload added in v1.0.49

func (o *UpdateOrgRoleOK) GetPayload() *UpdateOrgRoleOKBody

type UpdateOrgRoleOKBody added in v1.0.49

type UpdateOrgRoleOKBody struct {

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

UpdateOrgRoleOKBody update org role o k body swagger:model UpdateOrgRoleOKBody

func (*UpdateOrgRoleOKBody) MarshalBinary added in v1.0.49

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

MarshalBinary interface implementation

func (*UpdateOrgRoleOKBody) UnmarshalBinary added in v1.0.49

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

UnmarshalBinary interface implementation

func (*UpdateOrgRoleOKBody) Validate added in v1.0.49

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

Validate validates this update org role o k body

type UpdateOrgRoleParams added in v1.0.49

type UpdateOrgRoleParams struct {

	/*Body
	  The information of the organization's role to update.

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

	*/
	OrganizationCanonical string
	/*RoleCanonical
	  Organization Role canonical

	*/
	RoleCanonical string

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

UpdateOrgRoleParams contains all the parameters to send to the API endpoint for the update org role operation typically these are written to a http.Request

func NewUpdateOrgRoleParams added in v1.0.49

func NewUpdateOrgRoleParams() *UpdateOrgRoleParams

NewUpdateOrgRoleParams creates a new UpdateOrgRoleParams object with the default values initialized.

func NewUpdateOrgRoleParamsWithContext added in v1.0.49

func NewUpdateOrgRoleParamsWithContext(ctx context.Context) *UpdateOrgRoleParams

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

func NewUpdateOrgRoleParamsWithHTTPClient added in v1.0.49

func NewUpdateOrgRoleParamsWithHTTPClient(client *http.Client) *UpdateOrgRoleParams

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

func NewUpdateOrgRoleParamsWithTimeout added in v1.0.49

func NewUpdateOrgRoleParamsWithTimeout(timeout time.Duration) *UpdateOrgRoleParams

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

func (*UpdateOrgRoleParams) SetBody added in v1.0.49

func (o *UpdateOrgRoleParams) SetBody(body *models.NewRole)

SetBody adds the body to the update org role params

func (*UpdateOrgRoleParams) SetContext added in v1.0.49

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

SetContext adds the context to the update org role params

func (*UpdateOrgRoleParams) SetHTTPClient added in v1.0.49

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

SetHTTPClient adds the HTTPClient to the update org role params

func (*UpdateOrgRoleParams) SetOrganizationCanonical added in v1.0.49

func (o *UpdateOrgRoleParams) SetOrganizationCanonical(organizationCanonical string)

SetOrganizationCanonical adds the organizationCanonical to the update org role params

func (*UpdateOrgRoleParams) SetRoleCanonical added in v1.0.58

func (o *UpdateOrgRoleParams) SetRoleCanonical(roleCanonical string)

SetRoleCanonical adds the roleCanonical to the update org role params

func (*UpdateOrgRoleParams) SetTimeout added in v1.0.49

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

SetTimeout adds the timeout to the update org role params

func (*UpdateOrgRoleParams) WithBody added in v1.0.49

WithBody adds the body to the update org role params

func (*UpdateOrgRoleParams) WithContext added in v1.0.49

WithContext adds the context to the update org role params

func (*UpdateOrgRoleParams) WithHTTPClient added in v1.0.49

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

WithHTTPClient adds the HTTPClient to the update org role params

func (*UpdateOrgRoleParams) WithOrganizationCanonical added in v1.0.49

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

WithOrganizationCanonical adds the organizationCanonical to the update org role params

func (*UpdateOrgRoleParams) WithRoleCanonical added in v1.0.58

func (o *UpdateOrgRoleParams) WithRoleCanonical(roleCanonical string) *UpdateOrgRoleParams

WithRoleCanonical adds the roleCanonical to the update org role params

func (*UpdateOrgRoleParams) WithTimeout added in v1.0.49

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

WithTimeout adds the timeout to the update org role params

func (*UpdateOrgRoleParams) WriteToRequest added in v1.0.49

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

WriteToRequest writes these params to a swagger request

type UpdateOrgRoleReader added in v1.0.49

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

UpdateOrgRoleReader is a Reader for the UpdateOrgRole structure.

func (*UpdateOrgRoleReader) ReadResponse added in v1.0.49

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

ReadResponse reads a server response into the received o.

type UpdateOrgRoleUnprocessableEntity added in v1.0.49

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

	Payload *models.ErrorPayload
}

UpdateOrgRoleUnprocessableEntity handles this case with default header values.

All the custom errors that are generated from the Cycloid API

func NewUpdateOrgRoleUnprocessableEntity added in v1.0.49

func NewUpdateOrgRoleUnprocessableEntity() *UpdateOrgRoleUnprocessableEntity

NewUpdateOrgRoleUnprocessableEntity creates a UpdateOrgRoleUnprocessableEntity with default headers values

func (*UpdateOrgRoleUnprocessableEntity) Error added in v1.0.49

func (*UpdateOrgRoleUnprocessableEntity) GetPayload added in v1.0.49

Jump to

Keyboard shortcuts

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