organization_authentications

package
v1.0.100 Latest Latest
Warning

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

Go to latest
Published: May 29, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAcceptApplicationJSON

func WithAcceptApplicationJSON(r *runtime.ClientOperation)

WithAcceptApplicationJSON sets the Accept header to "application/json".

func WithAcceptApplicationVndCycloidIoV1JSON

func WithAcceptApplicationVndCycloidIoV1JSON(r *runtime.ClientOperation)

WithAcceptApplicationVndCycloidIoV1JSON sets the Accept header to "application/vnd.cycloid.io.v1+json".

func WithContentTypeApplicationJSON

func WithContentTypeApplicationJSON(r *runtime.ClientOperation)

WithContentTypeApplicationJSON sets the Content-Type header to "application/json".

func WithContentTypeApplicationVndCycloidIoV1JSON

func WithContentTypeApplicationVndCycloidIoV1JSON(r *runtime.ClientOperation)

WithContentTypeApplicationVndCycloidIoV1JSON sets the Content-Type header to "application/vnd.cycloid.io.v1+json".

func WithContentTypeApplicationxWwwFormUrlencoded

func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)

WithContentTypeApplicationxWwwFormUrlencoded sets the Content-Type header to "application/x-www-form-urlencoded".

Types

type Client

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

Client for organization authentications API

func (*Client) GetAuthentication

func (a *Client) GetAuthentication(params *GetAuthenticationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAuthenticationOK, error)

GetAuthentication Get the authentication available in the organization with a canonical

func (*Client) ListAuthentications

func (a *Client) ListAuthentications(params *ListAuthenticationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListAuthenticationsOK, error)

ListAuthentications List of authentications available in the organization.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateAuthentication

func (a *Client) UpdateAuthentication(params *UpdateAuthenticationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateAuthenticationOK, error)

UpdateAuthentication Update an existing authentication in the organization.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

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

func WithAccept

func WithAccept(mime string) ClientOption

WithAccept allows the client to force the Accept header to negotiate a specific Producer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

func WithContentType

func WithContentType(mime string) ClientOption

WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

type ClientService

type ClientService interface {
	GetAuthentication(params *GetAuthenticationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAuthenticationOK, error)

	ListAuthentications(params *ListAuthenticationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListAuthenticationsOK, error)

	UpdateAuthentication(params *UpdateAuthenticationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateAuthenticationOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new organization authentications API client.

func NewClientWithBasicAuth

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

New creates a new organization authentications API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

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

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

type GetAuthenticationDefault

type GetAuthenticationDefault struct {

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

	   Format: uint64
	*/
	ContentLength uint64

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

GetAuthenticationDefault describes a response with status code -1, with default header values.

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

func NewGetAuthenticationDefault

func NewGetAuthenticationDefault(code int) *GetAuthenticationDefault

NewGetAuthenticationDefault creates a GetAuthenticationDefault with default headers values

func (*GetAuthenticationDefault) Code

func (o *GetAuthenticationDefault) Code() int

Code gets the status code for the get authentication default response

func (*GetAuthenticationDefault) Error

func (o *GetAuthenticationDefault) Error() string

func (*GetAuthenticationDefault) GetPayload

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

func (*GetAuthenticationDefault) IsClientError

func (o *GetAuthenticationDefault) IsClientError() bool

IsClientError returns true when this get authentication default response has a 4xx status code

func (*GetAuthenticationDefault) IsCode

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

IsCode returns true when this get authentication default response a status code equal to that given

func (*GetAuthenticationDefault) IsRedirect

func (o *GetAuthenticationDefault) IsRedirect() bool

IsRedirect returns true when this get authentication default response has a 3xx status code

func (*GetAuthenticationDefault) IsServerError

func (o *GetAuthenticationDefault) IsServerError() bool

IsServerError returns true when this get authentication default response has a 5xx status code

func (*GetAuthenticationDefault) IsSuccess

func (o *GetAuthenticationDefault) IsSuccess() bool

IsSuccess returns true when this get authentication default response has a 2xx status code

func (*GetAuthenticationDefault) String

func (o *GetAuthenticationDefault) String() string

type GetAuthenticationForbidden

type GetAuthenticationForbidden struct {

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

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

GetAuthenticationForbidden describes a response with status code 403, with default header values.

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

func NewGetAuthenticationForbidden

func NewGetAuthenticationForbidden() *GetAuthenticationForbidden

NewGetAuthenticationForbidden creates a GetAuthenticationForbidden with default headers values

func (*GetAuthenticationForbidden) Code

func (o *GetAuthenticationForbidden) Code() int

Code gets the status code for the get authentication forbidden response

func (*GetAuthenticationForbidden) Error

func (*GetAuthenticationForbidden) GetPayload

func (*GetAuthenticationForbidden) IsClientError

func (o *GetAuthenticationForbidden) IsClientError() bool

IsClientError returns true when this get authentication forbidden response has a 4xx status code

func (*GetAuthenticationForbidden) IsCode

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

IsCode returns true when this get authentication forbidden response a status code equal to that given

func (*GetAuthenticationForbidden) IsRedirect

func (o *GetAuthenticationForbidden) IsRedirect() bool

IsRedirect returns true when this get authentication forbidden response has a 3xx status code

func (*GetAuthenticationForbidden) IsServerError

func (o *GetAuthenticationForbidden) IsServerError() bool

IsServerError returns true when this get authentication forbidden response has a 5xx status code

func (*GetAuthenticationForbidden) IsSuccess

func (o *GetAuthenticationForbidden) IsSuccess() bool

IsSuccess returns true when this get authentication forbidden response has a 2xx status code

func (*GetAuthenticationForbidden) String

func (o *GetAuthenticationForbidden) String() string

type GetAuthenticationNotFound

type GetAuthenticationNotFound struct {

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

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

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

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

func NewGetAuthenticationNotFound

func NewGetAuthenticationNotFound() *GetAuthenticationNotFound

NewGetAuthenticationNotFound creates a GetAuthenticationNotFound with default headers values

func (*GetAuthenticationNotFound) Code

func (o *GetAuthenticationNotFound) Code() int

Code gets the status code for the get authentication not found response

func (*GetAuthenticationNotFound) Error

func (o *GetAuthenticationNotFound) Error() string

func (*GetAuthenticationNotFound) GetPayload

func (*GetAuthenticationNotFound) IsClientError

func (o *GetAuthenticationNotFound) IsClientError() bool

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

func (*GetAuthenticationNotFound) IsCode

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

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

func (*GetAuthenticationNotFound) IsRedirect

func (o *GetAuthenticationNotFound) IsRedirect() bool

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

func (*GetAuthenticationNotFound) IsServerError

func (o *GetAuthenticationNotFound) IsServerError() bool

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

func (*GetAuthenticationNotFound) IsSuccess

func (o *GetAuthenticationNotFound) IsSuccess() bool

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

func (*GetAuthenticationNotFound) String

func (o *GetAuthenticationNotFound) String() string

type GetAuthenticationOK

type GetAuthenticationOK struct {
	Payload *GetAuthenticationOKBody
}

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

Authentication available in the organization with such canonical.

func NewGetAuthenticationOK

func NewGetAuthenticationOK() *GetAuthenticationOK

NewGetAuthenticationOK creates a GetAuthenticationOK with default headers values

func (*GetAuthenticationOK) Code

func (o *GetAuthenticationOK) Code() int

Code gets the status code for the get authentication o k response

func (*GetAuthenticationOK) Error

func (o *GetAuthenticationOK) Error() string

func (*GetAuthenticationOK) GetPayload

func (*GetAuthenticationOK) IsClientError

func (o *GetAuthenticationOK) IsClientError() bool

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

func (*GetAuthenticationOK) IsCode

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

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

func (*GetAuthenticationOK) IsRedirect

func (o *GetAuthenticationOK) IsRedirect() bool

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

func (*GetAuthenticationOK) IsServerError

func (o *GetAuthenticationOK) IsServerError() bool

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

func (*GetAuthenticationOK) IsSuccess

func (o *GetAuthenticationOK) IsSuccess() bool

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

func (*GetAuthenticationOK) String

func (o *GetAuthenticationOK) String() string

type GetAuthenticationOKBody

type GetAuthenticationOKBody struct {

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

GetAuthenticationOKBody get authentication o k body swagger:model GetAuthenticationOKBody

func (*GetAuthenticationOKBody) ContextValidate

func (o *GetAuthenticationOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get authentication o k body based on the context it is used

func (*GetAuthenticationOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetAuthenticationOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetAuthenticationOKBody) Validate

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

Validate validates this get authentication o k body

type GetAuthenticationParams

type GetAuthenticationParams struct {

	/* AuthenticationType.

	   The type of the Authentication
	*/
	AuthenticationType string

	/* OrganizationCanonical.

	   A canonical of an organization.
	*/
	OrganizationCanonical string

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

GetAuthenticationParams contains all the parameters to send to the API endpoint

for the get authentication operation.

Typically these are written to a http.Request.

func NewGetAuthenticationParams

func NewGetAuthenticationParams() *GetAuthenticationParams

NewGetAuthenticationParams creates a new GetAuthenticationParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetAuthenticationParamsWithContext

func NewGetAuthenticationParamsWithContext(ctx context.Context) *GetAuthenticationParams

NewGetAuthenticationParamsWithContext creates a new GetAuthenticationParams object with the ability to set a context for a request.

func NewGetAuthenticationParamsWithHTTPClient

func NewGetAuthenticationParamsWithHTTPClient(client *http.Client) *GetAuthenticationParams

NewGetAuthenticationParamsWithHTTPClient creates a new GetAuthenticationParams object with the ability to set a custom HTTPClient for a request.

func NewGetAuthenticationParamsWithTimeout

func NewGetAuthenticationParamsWithTimeout(timeout time.Duration) *GetAuthenticationParams

NewGetAuthenticationParamsWithTimeout creates a new GetAuthenticationParams object with the ability to set a timeout on a request.

func (*GetAuthenticationParams) SetAuthenticationType

func (o *GetAuthenticationParams) SetAuthenticationType(authenticationType string)

SetAuthenticationType adds the authenticationType to the get authentication params

func (*GetAuthenticationParams) SetContext

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

SetContext adds the context to the get authentication params

func (*GetAuthenticationParams) SetDefaults

func (o *GetAuthenticationParams) SetDefaults()

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

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

func (*GetAuthenticationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get authentication params

func (*GetAuthenticationParams) SetOrganizationCanonical

func (o *GetAuthenticationParams) SetOrganizationCanonical(organizationCanonical string)

SetOrganizationCanonical adds the organizationCanonical to the get authentication params

func (*GetAuthenticationParams) SetTimeout

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

SetTimeout adds the timeout to the get authentication params

func (*GetAuthenticationParams) WithAuthenticationType

func (o *GetAuthenticationParams) WithAuthenticationType(authenticationType string) *GetAuthenticationParams

WithAuthenticationType adds the authenticationType to the get authentication params

func (*GetAuthenticationParams) WithContext

WithContext adds the context to the get authentication params

func (*GetAuthenticationParams) WithDefaults

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

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

func (*GetAuthenticationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get authentication params

func (*GetAuthenticationParams) WithOrganizationCanonical

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

WithOrganizationCanonical adds the organizationCanonical to the get authentication params

func (*GetAuthenticationParams) WithTimeout

WithTimeout adds the timeout to the get authentication params

func (*GetAuthenticationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAuthenticationReader

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

GetAuthenticationReader is a Reader for the GetAuthentication structure.

func (*GetAuthenticationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListAuthenticationsDefault

type ListAuthenticationsDefault struct {

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

	   Format: uint64
	*/
	ContentLength uint64

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

ListAuthenticationsDefault describes a response with status code -1, with default header values.

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

func NewListAuthenticationsDefault

func NewListAuthenticationsDefault(code int) *ListAuthenticationsDefault

NewListAuthenticationsDefault creates a ListAuthenticationsDefault with default headers values

func (*ListAuthenticationsDefault) Code

func (o *ListAuthenticationsDefault) Code() int

Code gets the status code for the list authentications default response

func (*ListAuthenticationsDefault) Error

func (*ListAuthenticationsDefault) GetPayload

func (*ListAuthenticationsDefault) IsClientError

func (o *ListAuthenticationsDefault) IsClientError() bool

IsClientError returns true when this list authentications default response has a 4xx status code

func (*ListAuthenticationsDefault) IsCode

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

IsCode returns true when this list authentications default response a status code equal to that given

func (*ListAuthenticationsDefault) IsRedirect

func (o *ListAuthenticationsDefault) IsRedirect() bool

IsRedirect returns true when this list authentications default response has a 3xx status code

func (*ListAuthenticationsDefault) IsServerError

func (o *ListAuthenticationsDefault) IsServerError() bool

IsServerError returns true when this list authentications default response has a 5xx status code

func (*ListAuthenticationsDefault) IsSuccess

func (o *ListAuthenticationsDefault) IsSuccess() bool

IsSuccess returns true when this list authentications default response has a 2xx status code

func (*ListAuthenticationsDefault) String

func (o *ListAuthenticationsDefault) String() string

type ListAuthenticationsForbidden

type ListAuthenticationsForbidden struct {

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

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

ListAuthenticationsForbidden describes a response with status code 403, with default header values.

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

func NewListAuthenticationsForbidden

func NewListAuthenticationsForbidden() *ListAuthenticationsForbidden

NewListAuthenticationsForbidden creates a ListAuthenticationsForbidden with default headers values

func (*ListAuthenticationsForbidden) Code

Code gets the status code for the list authentications forbidden response

func (*ListAuthenticationsForbidden) Error

func (*ListAuthenticationsForbidden) GetPayload

func (*ListAuthenticationsForbidden) IsClientError

func (o *ListAuthenticationsForbidden) IsClientError() bool

IsClientError returns true when this list authentications forbidden response has a 4xx status code

func (*ListAuthenticationsForbidden) IsCode

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

IsCode returns true when this list authentications forbidden response a status code equal to that given

func (*ListAuthenticationsForbidden) IsRedirect

func (o *ListAuthenticationsForbidden) IsRedirect() bool

IsRedirect returns true when this list authentications forbidden response has a 3xx status code

func (*ListAuthenticationsForbidden) IsServerError

func (o *ListAuthenticationsForbidden) IsServerError() bool

IsServerError returns true when this list authentications forbidden response has a 5xx status code

func (*ListAuthenticationsForbidden) IsSuccess

func (o *ListAuthenticationsForbidden) IsSuccess() bool

IsSuccess returns true when this list authentications forbidden response has a 2xx status code

func (*ListAuthenticationsForbidden) String

type ListAuthenticationsNotFound

type ListAuthenticationsNotFound struct {

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

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

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

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

func NewListAuthenticationsNotFound

func NewListAuthenticationsNotFound() *ListAuthenticationsNotFound

NewListAuthenticationsNotFound creates a ListAuthenticationsNotFound with default headers values

func (*ListAuthenticationsNotFound) Code

func (o *ListAuthenticationsNotFound) Code() int

Code gets the status code for the list authentications not found response

func (*ListAuthenticationsNotFound) Error

func (*ListAuthenticationsNotFound) GetPayload

func (*ListAuthenticationsNotFound) IsClientError

func (o *ListAuthenticationsNotFound) IsClientError() bool

IsClientError returns true when this list authentications not found response has a 4xx status code

func (*ListAuthenticationsNotFound) IsCode

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

IsCode returns true when this list authentications not found response a status code equal to that given

func (*ListAuthenticationsNotFound) IsRedirect

func (o *ListAuthenticationsNotFound) IsRedirect() bool

IsRedirect returns true when this list authentications not found response has a 3xx status code

func (*ListAuthenticationsNotFound) IsServerError

func (o *ListAuthenticationsNotFound) IsServerError() bool

IsServerError returns true when this list authentications not found response has a 5xx status code

func (*ListAuthenticationsNotFound) IsSuccess

func (o *ListAuthenticationsNotFound) IsSuccess() bool

IsSuccess returns true when this list authentications not found response has a 2xx status code

func (*ListAuthenticationsNotFound) String

func (o *ListAuthenticationsNotFound) String() string

type ListAuthenticationsOK

type ListAuthenticationsOK struct {
	Payload *ListAuthenticationsOKBody
}

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

List of authentications which are available in the organization.

func NewListAuthenticationsOK

func NewListAuthenticationsOK() *ListAuthenticationsOK

NewListAuthenticationsOK creates a ListAuthenticationsOK with default headers values

func (*ListAuthenticationsOK) Code

func (o *ListAuthenticationsOK) Code() int

Code gets the status code for the list authentications o k response

func (*ListAuthenticationsOK) Error

func (o *ListAuthenticationsOK) Error() string

func (*ListAuthenticationsOK) GetPayload

func (*ListAuthenticationsOK) IsClientError

func (o *ListAuthenticationsOK) IsClientError() bool

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

func (*ListAuthenticationsOK) IsCode

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

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

func (*ListAuthenticationsOK) IsRedirect

func (o *ListAuthenticationsOK) IsRedirect() bool

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

func (*ListAuthenticationsOK) IsServerError

func (o *ListAuthenticationsOK) IsServerError() bool

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

func (*ListAuthenticationsOK) IsSuccess

func (o *ListAuthenticationsOK) IsSuccess() bool

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

func (*ListAuthenticationsOK) String

func (o *ListAuthenticationsOK) String() string

type ListAuthenticationsOKBody

type ListAuthenticationsOKBody struct {

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

ListAuthenticationsOKBody list authentications o k body swagger:model ListAuthenticationsOKBody

func (*ListAuthenticationsOKBody) ContextValidate

func (o *ListAuthenticationsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this list authentications o k body based on the context it is used

func (*ListAuthenticationsOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListAuthenticationsOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListAuthenticationsOKBody) Validate

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

Validate validates this list authentications o k body

type ListAuthenticationsParams

type ListAuthenticationsParams struct {

	/* OrganizationCanonical.

	   A canonical of an organization.
	*/
	OrganizationCanonical string

	/* PageIndex.

	   The page number to request. The first page is 1.

	   Format: uint32
	   Default: 1
	*/
	PageIndex *uint32

	/* PageSize.

	   The number of items at most which the response can have.

	   Format: uint32
	   Default: 1000
	*/
	PageSize *uint32

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

ListAuthenticationsParams contains all the parameters to send to the API endpoint

for the list authentications operation.

Typically these are written to a http.Request.

func NewListAuthenticationsParams

func NewListAuthenticationsParams() *ListAuthenticationsParams

NewListAuthenticationsParams creates a new ListAuthenticationsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListAuthenticationsParamsWithContext

func NewListAuthenticationsParamsWithContext(ctx context.Context) *ListAuthenticationsParams

NewListAuthenticationsParamsWithContext creates a new ListAuthenticationsParams object with the ability to set a context for a request.

func NewListAuthenticationsParamsWithHTTPClient

func NewListAuthenticationsParamsWithHTTPClient(client *http.Client) *ListAuthenticationsParams

NewListAuthenticationsParamsWithHTTPClient creates a new ListAuthenticationsParams object with the ability to set a custom HTTPClient for a request.

func NewListAuthenticationsParamsWithTimeout

func NewListAuthenticationsParamsWithTimeout(timeout time.Duration) *ListAuthenticationsParams

NewListAuthenticationsParamsWithTimeout creates a new ListAuthenticationsParams object with the ability to set a timeout on a request.

func (*ListAuthenticationsParams) SetContext

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

SetContext adds the context to the list authentications params

func (*ListAuthenticationsParams) SetDefaults

func (o *ListAuthenticationsParams) SetDefaults()

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

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

func (*ListAuthenticationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list authentications params

func (*ListAuthenticationsParams) SetOrganizationCanonical

func (o *ListAuthenticationsParams) SetOrganizationCanonical(organizationCanonical string)

SetOrganizationCanonical adds the organizationCanonical to the list authentications params

func (*ListAuthenticationsParams) SetPageIndex

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

SetPageIndex adds the pageIndex to the list authentications params

func (*ListAuthenticationsParams) SetPageSize

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

SetPageSize adds the pageSize to the list authentications params

func (*ListAuthenticationsParams) SetTimeout

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

SetTimeout adds the timeout to the list authentications params

func (*ListAuthenticationsParams) WithContext

WithContext adds the context to the list authentications params

func (*ListAuthenticationsParams) WithDefaults

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

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

func (*ListAuthenticationsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list authentications params

func (*ListAuthenticationsParams) WithOrganizationCanonical

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

WithOrganizationCanonical adds the organizationCanonical to the list authentications params

func (*ListAuthenticationsParams) WithPageIndex

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

WithPageIndex adds the pageIndex to the list authentications params

func (*ListAuthenticationsParams) WithPageSize

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

WithPageSize adds the pageSize to the list authentications params

func (*ListAuthenticationsParams) WithTimeout

WithTimeout adds the timeout to the list authentications params

func (*ListAuthenticationsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListAuthenticationsReader

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

ListAuthenticationsReader is a Reader for the ListAuthentications structure.

func (*ListAuthenticationsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateAuthenticationDefault

type UpdateAuthenticationDefault struct {

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

	   Format: uint64
	*/
	ContentLength uint64

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

UpdateAuthenticationDefault describes a response with status code -1, with default header values.

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

func NewUpdateAuthenticationDefault

func NewUpdateAuthenticationDefault(code int) *UpdateAuthenticationDefault

NewUpdateAuthenticationDefault creates a UpdateAuthenticationDefault with default headers values

func (*UpdateAuthenticationDefault) Code

func (o *UpdateAuthenticationDefault) Code() int

Code gets the status code for the update authentication default response

func (*UpdateAuthenticationDefault) Error

func (*UpdateAuthenticationDefault) GetPayload

func (*UpdateAuthenticationDefault) IsClientError

func (o *UpdateAuthenticationDefault) IsClientError() bool

IsClientError returns true when this update authentication default response has a 4xx status code

func (*UpdateAuthenticationDefault) IsCode

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

IsCode returns true when this update authentication default response a status code equal to that given

func (*UpdateAuthenticationDefault) IsRedirect

func (o *UpdateAuthenticationDefault) IsRedirect() bool

IsRedirect returns true when this update authentication default response has a 3xx status code

func (*UpdateAuthenticationDefault) IsServerError

func (o *UpdateAuthenticationDefault) IsServerError() bool

IsServerError returns true when this update authentication default response has a 5xx status code

func (*UpdateAuthenticationDefault) IsSuccess

func (o *UpdateAuthenticationDefault) IsSuccess() bool

IsSuccess returns true when this update authentication default response has a 2xx status code

func (*UpdateAuthenticationDefault) String

func (o *UpdateAuthenticationDefault) String() string

type UpdateAuthenticationForbidden

type UpdateAuthenticationForbidden struct {

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

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

UpdateAuthenticationForbidden describes a response with status code 403, with default header values.

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

func NewUpdateAuthenticationForbidden

func NewUpdateAuthenticationForbidden() *UpdateAuthenticationForbidden

NewUpdateAuthenticationForbidden creates a UpdateAuthenticationForbidden with default headers values

func (*UpdateAuthenticationForbidden) Code

Code gets the status code for the update authentication forbidden response

func (*UpdateAuthenticationForbidden) Error

func (*UpdateAuthenticationForbidden) GetPayload

func (*UpdateAuthenticationForbidden) IsClientError

func (o *UpdateAuthenticationForbidden) IsClientError() bool

IsClientError returns true when this update authentication forbidden response has a 4xx status code

func (*UpdateAuthenticationForbidden) IsCode

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

IsCode returns true when this update authentication forbidden response a status code equal to that given

func (*UpdateAuthenticationForbidden) IsRedirect

func (o *UpdateAuthenticationForbidden) IsRedirect() bool

IsRedirect returns true when this update authentication forbidden response has a 3xx status code

func (*UpdateAuthenticationForbidden) IsServerError

func (o *UpdateAuthenticationForbidden) IsServerError() bool

IsServerError returns true when this update authentication forbidden response has a 5xx status code

func (*UpdateAuthenticationForbidden) IsSuccess

func (o *UpdateAuthenticationForbidden) IsSuccess() bool

IsSuccess returns true when this update authentication forbidden response has a 2xx status code

func (*UpdateAuthenticationForbidden) String

type UpdateAuthenticationNotFound

type UpdateAuthenticationNotFound struct {

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

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

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

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

func NewUpdateAuthenticationNotFound

func NewUpdateAuthenticationNotFound() *UpdateAuthenticationNotFound

NewUpdateAuthenticationNotFound creates a UpdateAuthenticationNotFound with default headers values

func (*UpdateAuthenticationNotFound) Code

Code gets the status code for the update authentication not found response

func (*UpdateAuthenticationNotFound) Error

func (*UpdateAuthenticationNotFound) GetPayload

func (*UpdateAuthenticationNotFound) IsClientError

func (o *UpdateAuthenticationNotFound) IsClientError() bool

IsClientError returns true when this update authentication not found response has a 4xx status code

func (*UpdateAuthenticationNotFound) IsCode

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

IsCode returns true when this update authentication not found response a status code equal to that given

func (*UpdateAuthenticationNotFound) IsRedirect

func (o *UpdateAuthenticationNotFound) IsRedirect() bool

IsRedirect returns true when this update authentication not found response has a 3xx status code

func (*UpdateAuthenticationNotFound) IsServerError

func (o *UpdateAuthenticationNotFound) IsServerError() bool

IsServerError returns true when this update authentication not found response has a 5xx status code

func (*UpdateAuthenticationNotFound) IsSuccess

func (o *UpdateAuthenticationNotFound) IsSuccess() bool

IsSuccess returns true when this update authentication not found response has a 2xx status code

func (*UpdateAuthenticationNotFound) String

type UpdateAuthenticationOK

type UpdateAuthenticationOK struct {
	Payload *UpdateAuthenticationOKBody
}

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

Updated authentication belonging to the organization.

func NewUpdateAuthenticationOK

func NewUpdateAuthenticationOK() *UpdateAuthenticationOK

NewUpdateAuthenticationOK creates a UpdateAuthenticationOK with default headers values

func (*UpdateAuthenticationOK) Code

func (o *UpdateAuthenticationOK) Code() int

Code gets the status code for the update authentication o k response

func (*UpdateAuthenticationOK) Error

func (o *UpdateAuthenticationOK) Error() string

func (*UpdateAuthenticationOK) GetPayload

func (*UpdateAuthenticationOK) IsClientError

func (o *UpdateAuthenticationOK) IsClientError() bool

IsClientError returns true when this update authentication o k response has a 4xx status code

func (*UpdateAuthenticationOK) IsCode

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

IsCode returns true when this update authentication o k response a status code equal to that given

func (*UpdateAuthenticationOK) IsRedirect

func (o *UpdateAuthenticationOK) IsRedirect() bool

IsRedirect returns true when this update authentication o k response has a 3xx status code

func (*UpdateAuthenticationOK) IsServerError

func (o *UpdateAuthenticationOK) IsServerError() bool

IsServerError returns true when this update authentication o k response has a 5xx status code

func (*UpdateAuthenticationOK) IsSuccess

func (o *UpdateAuthenticationOK) IsSuccess() bool

IsSuccess returns true when this update authentication o k response has a 2xx status code

func (*UpdateAuthenticationOK) String

func (o *UpdateAuthenticationOK) String() string

type UpdateAuthenticationOKBody

type UpdateAuthenticationOKBody struct {

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

UpdateAuthenticationOKBody update authentication o k body swagger:model UpdateAuthenticationOKBody

func (*UpdateAuthenticationOKBody) ContextValidate

func (o *UpdateAuthenticationOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update authentication o k body based on the context it is used

func (*UpdateAuthenticationOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*UpdateAuthenticationOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UpdateAuthenticationOKBody) Validate

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

Validate validates this update authentication o k body

type UpdateAuthenticationParams

type UpdateAuthenticationParams struct {

	/* AuthenticationType.

	   The type of the Authentication
	*/
	AuthenticationType string

	/* Body.

	   The information of the organization's authentication to update.
	*/
	Body *models.Authentication

	/* OrganizationCanonical.

	   A canonical of an organization.
	*/
	OrganizationCanonical string

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

UpdateAuthenticationParams contains all the parameters to send to the API endpoint

for the update authentication operation.

Typically these are written to a http.Request.

func NewUpdateAuthenticationParams

func NewUpdateAuthenticationParams() *UpdateAuthenticationParams

NewUpdateAuthenticationParams creates a new UpdateAuthenticationParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewUpdateAuthenticationParamsWithContext

func NewUpdateAuthenticationParamsWithContext(ctx context.Context) *UpdateAuthenticationParams

NewUpdateAuthenticationParamsWithContext creates a new UpdateAuthenticationParams object with the ability to set a context for a request.

func NewUpdateAuthenticationParamsWithHTTPClient

func NewUpdateAuthenticationParamsWithHTTPClient(client *http.Client) *UpdateAuthenticationParams

NewUpdateAuthenticationParamsWithHTTPClient creates a new UpdateAuthenticationParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateAuthenticationParamsWithTimeout

func NewUpdateAuthenticationParamsWithTimeout(timeout time.Duration) *UpdateAuthenticationParams

NewUpdateAuthenticationParamsWithTimeout creates a new UpdateAuthenticationParams object with the ability to set a timeout on a request.

func (*UpdateAuthenticationParams) SetAuthenticationType

func (o *UpdateAuthenticationParams) SetAuthenticationType(authenticationType string)

SetAuthenticationType adds the authenticationType to the update authentication params

func (*UpdateAuthenticationParams) SetBody

SetBody adds the body to the update authentication params

func (*UpdateAuthenticationParams) SetContext

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

SetContext adds the context to the update authentication params

func (*UpdateAuthenticationParams) SetDefaults

func (o *UpdateAuthenticationParams) SetDefaults()

SetDefaults hydrates default values in the update authentication params (not the query body).

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

func (*UpdateAuthenticationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update authentication params

func (*UpdateAuthenticationParams) SetOrganizationCanonical

func (o *UpdateAuthenticationParams) SetOrganizationCanonical(organizationCanonical string)

SetOrganizationCanonical adds the organizationCanonical to the update authentication params

func (*UpdateAuthenticationParams) SetTimeout

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

SetTimeout adds the timeout to the update authentication params

func (*UpdateAuthenticationParams) WithAuthenticationType

func (o *UpdateAuthenticationParams) WithAuthenticationType(authenticationType string) *UpdateAuthenticationParams

WithAuthenticationType adds the authenticationType to the update authentication params

func (*UpdateAuthenticationParams) WithBody

WithBody adds the body to the update authentication params

func (*UpdateAuthenticationParams) WithContext

WithContext adds the context to the update authentication params

func (*UpdateAuthenticationParams) WithDefaults

WithDefaults hydrates default values in the update authentication params (not the query body).

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

func (*UpdateAuthenticationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update authentication params

func (*UpdateAuthenticationParams) WithOrganizationCanonical

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

WithOrganizationCanonical adds the organizationCanonical to the update authentication params

func (*UpdateAuthenticationParams) WithTimeout

WithTimeout adds the timeout to the update authentication params

func (*UpdateAuthenticationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateAuthenticationReader

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

UpdateAuthenticationReader is a Reader for the UpdateAuthentication structure.

func (*UpdateAuthenticationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateAuthenticationUnprocessableEntity

type UpdateAuthenticationUnprocessableEntity struct {

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

	   Format: uint64
	*/
	ContentLength uint64

	Payload *models.ErrorPayload
}

UpdateAuthenticationUnprocessableEntity describes a response with status code 422, with default header values.

All the custom errors that are generated from the Cycloid API

func NewUpdateAuthenticationUnprocessableEntity

func NewUpdateAuthenticationUnprocessableEntity() *UpdateAuthenticationUnprocessableEntity

NewUpdateAuthenticationUnprocessableEntity creates a UpdateAuthenticationUnprocessableEntity with default headers values

func (*UpdateAuthenticationUnprocessableEntity) Code

Code gets the status code for the update authentication unprocessable entity response

func (*UpdateAuthenticationUnprocessableEntity) Error

func (*UpdateAuthenticationUnprocessableEntity) GetPayload

func (*UpdateAuthenticationUnprocessableEntity) IsClientError

func (o *UpdateAuthenticationUnprocessableEntity) IsClientError() bool

IsClientError returns true when this update authentication unprocessable entity response has a 4xx status code

func (*UpdateAuthenticationUnprocessableEntity) IsCode

IsCode returns true when this update authentication unprocessable entity response a status code equal to that given

func (*UpdateAuthenticationUnprocessableEntity) IsRedirect

IsRedirect returns true when this update authentication unprocessable entity response has a 3xx status code

func (*UpdateAuthenticationUnprocessableEntity) IsServerError

func (o *UpdateAuthenticationUnprocessableEntity) IsServerError() bool

IsServerError returns true when this update authentication unprocessable entity response has a 5xx status code

func (*UpdateAuthenticationUnprocessableEntity) IsSuccess

IsSuccess returns true when this update authentication unprocessable entity response has a 2xx status code

func (*UpdateAuthenticationUnprocessableEntity) String

Jump to

Keyboard shortcuts

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