graph_service

package
v4.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 10 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 graph service API

func (*Client) Recommend

func (a *Client) Recommend(params *RecommendParams, opts ...ClientOption) (*RecommendOK, error)

Recommend recommend API

func (*Client) Relation

func (a *Client) Relation(params *RelationParams, opts ...ClientOption) (*RelationOK, error)

Relation computes relation of context user with another user

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UserState

func (a *Client) UserState(params *UserStateParams, opts ...ClientOption) (*UserStateOK, error)

UserState computes accessible workspaces for a given user

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	Recommend(params *RecommendParams, opts ...ClientOption) (*RecommendOK, error)

	Relation(params *RelationParams, opts ...ClientOption) (*RelationOK, error)

	UserState(params *UserStateParams, opts ...ClientOption) (*UserStateOK, 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 graph service API client.

type RecommendForbidden

type RecommendForbidden struct {
	Payload *models.RestError
}

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

User has no permission to access this resource

func NewRecommendForbidden

func NewRecommendForbidden() *RecommendForbidden

NewRecommendForbidden creates a RecommendForbidden with default headers values

func (*RecommendForbidden) Code added in v4.0.1

func (o *RecommendForbidden) Code() int

Code gets the status code for the recommend forbidden response

func (*RecommendForbidden) Error

func (o *RecommendForbidden) Error() string

func (*RecommendForbidden) GetPayload

func (o *RecommendForbidden) GetPayload() *models.RestError

func (*RecommendForbidden) IsClientError

func (o *RecommendForbidden) IsClientError() bool

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

func (*RecommendForbidden) IsCode

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

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

func (*RecommendForbidden) IsRedirect

func (o *RecommendForbidden) IsRedirect() bool

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

func (*RecommendForbidden) IsServerError

func (o *RecommendForbidden) IsServerError() bool

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

func (*RecommendForbidden) IsSuccess

func (o *RecommendForbidden) IsSuccess() bool

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

func (*RecommendForbidden) String

func (o *RecommendForbidden) String() string

type RecommendInternalServerError

type RecommendInternalServerError struct {
	Payload *models.RestError
}

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

An internal error occurred in the backend

func NewRecommendInternalServerError

func NewRecommendInternalServerError() *RecommendInternalServerError

NewRecommendInternalServerError creates a RecommendInternalServerError with default headers values

func (*RecommendInternalServerError) Code added in v4.0.1

Code gets the status code for the recommend internal server error response

func (*RecommendInternalServerError) Error

func (*RecommendInternalServerError) GetPayload

func (*RecommendInternalServerError) IsClientError

func (o *RecommendInternalServerError) IsClientError() bool

IsClientError returns true when this recommend internal server error response has a 4xx status code

func (*RecommendInternalServerError) IsCode

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

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

func (*RecommendInternalServerError) IsRedirect

func (o *RecommendInternalServerError) IsRedirect() bool

IsRedirect returns true when this recommend internal server error response has a 3xx status code

func (*RecommendInternalServerError) IsServerError

func (o *RecommendInternalServerError) IsServerError() bool

IsServerError returns true when this recommend internal server error response has a 5xx status code

func (*RecommendInternalServerError) IsSuccess

func (o *RecommendInternalServerError) IsSuccess() bool

IsSuccess returns true when this recommend internal server error response has a 2xx status code

func (*RecommendInternalServerError) String

type RecommendNotFound

type RecommendNotFound struct {
	Payload *models.RestError
}

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

Resource does not exist in the system

func NewRecommendNotFound

func NewRecommendNotFound() *RecommendNotFound

NewRecommendNotFound creates a RecommendNotFound with default headers values

func (*RecommendNotFound) Code added in v4.0.1

func (o *RecommendNotFound) Code() int

Code gets the status code for the recommend not found response

func (*RecommendNotFound) Error

func (o *RecommendNotFound) Error() string

func (*RecommendNotFound) GetPayload

func (o *RecommendNotFound) GetPayload() *models.RestError

func (*RecommendNotFound) IsClientError

func (o *RecommendNotFound) IsClientError() bool

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

func (*RecommendNotFound) IsCode

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

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

func (*RecommendNotFound) IsRedirect

func (o *RecommendNotFound) IsRedirect() bool

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

func (*RecommendNotFound) IsServerError

func (o *RecommendNotFound) IsServerError() bool

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

func (*RecommendNotFound) IsSuccess

func (o *RecommendNotFound) IsSuccess() bool

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

func (*RecommendNotFound) String

func (o *RecommendNotFound) String() string

type RecommendOK

type RecommendOK struct {
	Payload *models.RestRecommendResponse
}

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

A successful response.

func NewRecommendOK

func NewRecommendOK() *RecommendOK

NewRecommendOK creates a RecommendOK with default headers values

func (*RecommendOK) Code added in v4.0.1

func (o *RecommendOK) Code() int

Code gets the status code for the recommend o k response

func (*RecommendOK) Error

func (o *RecommendOK) Error() string

func (*RecommendOK) GetPayload

func (o *RecommendOK) GetPayload() *models.RestRecommendResponse

func (*RecommendOK) IsClientError

func (o *RecommendOK) IsClientError() bool

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

func (*RecommendOK) IsCode

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

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

func (*RecommendOK) IsRedirect

func (o *RecommendOK) IsRedirect() bool

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

func (*RecommendOK) IsServerError

func (o *RecommendOK) IsServerError() bool

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

func (*RecommendOK) IsSuccess

func (o *RecommendOK) IsSuccess() bool

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

func (*RecommendOK) String

func (o *RecommendOK) String() string

type RecommendParams

type RecommendParams struct {

	// Body.
	Body *models.RestRecommendRequest

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

RecommendParams contains all the parameters to send to the API endpoint

for the recommend operation.

Typically these are written to a http.Request.

func NewRecommendParams

func NewRecommendParams() *RecommendParams

NewRecommendParams creates a new RecommendParams 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 NewRecommendParamsWithContext

func NewRecommendParamsWithContext(ctx context.Context) *RecommendParams

NewRecommendParamsWithContext creates a new RecommendParams object with the ability to set a context for a request.

func NewRecommendParamsWithHTTPClient

func NewRecommendParamsWithHTTPClient(client *http.Client) *RecommendParams

NewRecommendParamsWithHTTPClient creates a new RecommendParams object with the ability to set a custom HTTPClient for a request.

func NewRecommendParamsWithTimeout

func NewRecommendParamsWithTimeout(timeout time.Duration) *RecommendParams

NewRecommendParamsWithTimeout creates a new RecommendParams object with the ability to set a timeout on a request.

func (*RecommendParams) SetBody

func (o *RecommendParams) SetBody(body *models.RestRecommendRequest)

SetBody adds the body to the recommend params

func (*RecommendParams) SetContext

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

SetContext adds the context to the recommend params

func (*RecommendParams) SetDefaults

func (o *RecommendParams) SetDefaults()

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

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

func (*RecommendParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the recommend params

func (*RecommendParams) SetTimeout

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

SetTimeout adds the timeout to the recommend params

func (*RecommendParams) WithBody

WithBody adds the body to the recommend params

func (*RecommendParams) WithContext

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

WithContext adds the context to the recommend params

func (*RecommendParams) WithDefaults

func (o *RecommendParams) WithDefaults() *RecommendParams

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

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

func (*RecommendParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the recommend params

func (*RecommendParams) WithTimeout

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

WithTimeout adds the timeout to the recommend params

func (*RecommendParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RecommendReader

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

RecommendReader is a Reader for the Recommend structure.

func (*RecommendReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RecommendUnauthorized

type RecommendUnauthorized struct {
}

RecommendUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewRecommendUnauthorized

func NewRecommendUnauthorized() *RecommendUnauthorized

NewRecommendUnauthorized creates a RecommendUnauthorized with default headers values

func (*RecommendUnauthorized) Code added in v4.0.1

func (o *RecommendUnauthorized) Code() int

Code gets the status code for the recommend unauthorized response

func (*RecommendUnauthorized) Error

func (o *RecommendUnauthorized) Error() string

func (*RecommendUnauthorized) IsClientError

func (o *RecommendUnauthorized) IsClientError() bool

IsClientError returns true when this recommend unauthorized response has a 4xx status code

func (*RecommendUnauthorized) IsCode

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

IsCode returns true when this recommend unauthorized response a status code equal to that given

func (*RecommendUnauthorized) IsRedirect

func (o *RecommendUnauthorized) IsRedirect() bool

IsRedirect returns true when this recommend unauthorized response has a 3xx status code

func (*RecommendUnauthorized) IsServerError

func (o *RecommendUnauthorized) IsServerError() bool

IsServerError returns true when this recommend unauthorized response has a 5xx status code

func (*RecommendUnauthorized) IsSuccess

func (o *RecommendUnauthorized) IsSuccess() bool

IsSuccess returns true when this recommend unauthorized response has a 2xx status code

func (*RecommendUnauthorized) String

func (o *RecommendUnauthorized) String() string

type RelationForbidden

type RelationForbidden struct {
	Payload *models.RestError
}

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

User has no permission to access this resource

func NewRelationForbidden

func NewRelationForbidden() *RelationForbidden

NewRelationForbidden creates a RelationForbidden with default headers values

func (*RelationForbidden) Code added in v4.0.1

func (o *RelationForbidden) Code() int

Code gets the status code for the relation forbidden response

func (*RelationForbidden) Error

func (o *RelationForbidden) Error() string

func (*RelationForbidden) GetPayload

func (o *RelationForbidden) GetPayload() *models.RestError

func (*RelationForbidden) IsClientError

func (o *RelationForbidden) IsClientError() bool

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

func (*RelationForbidden) IsCode

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

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

func (*RelationForbidden) IsRedirect

func (o *RelationForbidden) IsRedirect() bool

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

func (*RelationForbidden) IsServerError

func (o *RelationForbidden) IsServerError() bool

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

func (*RelationForbidden) IsSuccess

func (o *RelationForbidden) IsSuccess() bool

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

func (*RelationForbidden) String

func (o *RelationForbidden) String() string

type RelationInternalServerError

type RelationInternalServerError struct {
	Payload *models.RestError
}

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

An internal error occurred in the backend

func NewRelationInternalServerError

func NewRelationInternalServerError() *RelationInternalServerError

NewRelationInternalServerError creates a RelationInternalServerError with default headers values

func (*RelationInternalServerError) Code added in v4.0.1

func (o *RelationInternalServerError) Code() int

Code gets the status code for the relation internal server error response

func (*RelationInternalServerError) Error

func (*RelationInternalServerError) GetPayload

func (o *RelationInternalServerError) GetPayload() *models.RestError

func (*RelationInternalServerError) IsClientError

func (o *RelationInternalServerError) IsClientError() bool

IsClientError returns true when this relation internal server error response has a 4xx status code

func (*RelationInternalServerError) IsCode

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

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

func (*RelationInternalServerError) IsRedirect

func (o *RelationInternalServerError) IsRedirect() bool

IsRedirect returns true when this relation internal server error response has a 3xx status code

func (*RelationInternalServerError) IsServerError

func (o *RelationInternalServerError) IsServerError() bool

IsServerError returns true when this relation internal server error response has a 5xx status code

func (*RelationInternalServerError) IsSuccess

func (o *RelationInternalServerError) IsSuccess() bool

IsSuccess returns true when this relation internal server error response has a 2xx status code

func (*RelationInternalServerError) String

func (o *RelationInternalServerError) String() string

type RelationNotFound

type RelationNotFound struct {
	Payload *models.RestError
}

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

Resource does not exist in the system

func NewRelationNotFound

func NewRelationNotFound() *RelationNotFound

NewRelationNotFound creates a RelationNotFound with default headers values

func (*RelationNotFound) Code added in v4.0.1

func (o *RelationNotFound) Code() int

Code gets the status code for the relation not found response

func (*RelationNotFound) Error

func (o *RelationNotFound) Error() string

func (*RelationNotFound) GetPayload

func (o *RelationNotFound) GetPayload() *models.RestError

func (*RelationNotFound) IsClientError

func (o *RelationNotFound) IsClientError() bool

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

func (*RelationNotFound) IsCode

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

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

func (*RelationNotFound) IsRedirect

func (o *RelationNotFound) IsRedirect() bool

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

func (*RelationNotFound) IsServerError

func (o *RelationNotFound) IsServerError() bool

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

func (*RelationNotFound) IsSuccess

func (o *RelationNotFound) IsSuccess() bool

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

func (*RelationNotFound) String

func (o *RelationNotFound) String() string

type RelationOK

type RelationOK struct {
	Payload *models.RestRelationResponse
}

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

A successful response.

func NewRelationOK

func NewRelationOK() *RelationOK

NewRelationOK creates a RelationOK with default headers values

func (*RelationOK) Code added in v4.0.1

func (o *RelationOK) Code() int

Code gets the status code for the relation o k response

func (*RelationOK) Error

func (o *RelationOK) Error() string

func (*RelationOK) GetPayload

func (o *RelationOK) GetPayload() *models.RestRelationResponse

func (*RelationOK) IsClientError

func (o *RelationOK) IsClientError() bool

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

func (*RelationOK) IsCode

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

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

func (*RelationOK) IsRedirect

func (o *RelationOK) IsRedirect() bool

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

func (*RelationOK) IsServerError

func (o *RelationOK) IsServerError() bool

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

func (*RelationOK) IsSuccess

func (o *RelationOK) IsSuccess() bool

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

func (*RelationOK) String

func (o *RelationOK) String() string

type RelationParams

type RelationParams struct {

	// UserID.
	UserID string

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

RelationParams contains all the parameters to send to the API endpoint

for the relation operation.

Typically these are written to a http.Request.

func NewRelationParams

func NewRelationParams() *RelationParams

NewRelationParams creates a new RelationParams 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 NewRelationParamsWithContext

func NewRelationParamsWithContext(ctx context.Context) *RelationParams

NewRelationParamsWithContext creates a new RelationParams object with the ability to set a context for a request.

func NewRelationParamsWithHTTPClient

func NewRelationParamsWithHTTPClient(client *http.Client) *RelationParams

NewRelationParamsWithHTTPClient creates a new RelationParams object with the ability to set a custom HTTPClient for a request.

func NewRelationParamsWithTimeout

func NewRelationParamsWithTimeout(timeout time.Duration) *RelationParams

NewRelationParamsWithTimeout creates a new RelationParams object with the ability to set a timeout on a request.

func (*RelationParams) SetContext

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

SetContext adds the context to the relation params

func (*RelationParams) SetDefaults

func (o *RelationParams) SetDefaults()

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

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

func (*RelationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the relation params

func (*RelationParams) SetTimeout

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

SetTimeout adds the timeout to the relation params

func (*RelationParams) SetUserID

func (o *RelationParams) SetUserID(userID string)

SetUserID adds the userId to the relation params

func (*RelationParams) WithContext

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

WithContext adds the context to the relation params

func (*RelationParams) WithDefaults

func (o *RelationParams) WithDefaults() *RelationParams

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

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

func (*RelationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the relation params

func (*RelationParams) WithTimeout

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

WithTimeout adds the timeout to the relation params

func (*RelationParams) WithUserID

func (o *RelationParams) WithUserID(userID string) *RelationParams

WithUserID adds the userID to the relation params

func (*RelationParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RelationReader

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

RelationReader is a Reader for the Relation structure.

func (*RelationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RelationUnauthorized

type RelationUnauthorized struct {
}

RelationUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewRelationUnauthorized

func NewRelationUnauthorized() *RelationUnauthorized

NewRelationUnauthorized creates a RelationUnauthorized with default headers values

func (*RelationUnauthorized) Code added in v4.0.1

func (o *RelationUnauthorized) Code() int

Code gets the status code for the relation unauthorized response

func (*RelationUnauthorized) Error

func (o *RelationUnauthorized) Error() string

func (*RelationUnauthorized) IsClientError

func (o *RelationUnauthorized) IsClientError() bool

IsClientError returns true when this relation unauthorized response has a 4xx status code

func (*RelationUnauthorized) IsCode

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

IsCode returns true when this relation unauthorized response a status code equal to that given

func (*RelationUnauthorized) IsRedirect

func (o *RelationUnauthorized) IsRedirect() bool

IsRedirect returns true when this relation unauthorized response has a 3xx status code

func (*RelationUnauthorized) IsServerError

func (o *RelationUnauthorized) IsServerError() bool

IsServerError returns true when this relation unauthorized response has a 5xx status code

func (*RelationUnauthorized) IsSuccess

func (o *RelationUnauthorized) IsSuccess() bool

IsSuccess returns true when this relation unauthorized response has a 2xx status code

func (*RelationUnauthorized) String

func (o *RelationUnauthorized) String() string

type UserStateForbidden

type UserStateForbidden struct {
	Payload *models.RestError
}

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

User has no permission to access this resource

func NewUserStateForbidden

func NewUserStateForbidden() *UserStateForbidden

NewUserStateForbidden creates a UserStateForbidden with default headers values

func (*UserStateForbidden) Code added in v4.0.1

func (o *UserStateForbidden) Code() int

Code gets the status code for the user state forbidden response

func (*UserStateForbidden) Error

func (o *UserStateForbidden) Error() string

func (*UserStateForbidden) GetPayload

func (o *UserStateForbidden) GetPayload() *models.RestError

func (*UserStateForbidden) IsClientError

func (o *UserStateForbidden) IsClientError() bool

IsClientError returns true when this user state forbidden response has a 4xx status code

func (*UserStateForbidden) IsCode

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

IsCode returns true when this user state forbidden response a status code equal to that given

func (*UserStateForbidden) IsRedirect

func (o *UserStateForbidden) IsRedirect() bool

IsRedirect returns true when this user state forbidden response has a 3xx status code

func (*UserStateForbidden) IsServerError

func (o *UserStateForbidden) IsServerError() bool

IsServerError returns true when this user state forbidden response has a 5xx status code

func (*UserStateForbidden) IsSuccess

func (o *UserStateForbidden) IsSuccess() bool

IsSuccess returns true when this user state forbidden response has a 2xx status code

func (*UserStateForbidden) String

func (o *UserStateForbidden) String() string

type UserStateInternalServerError

type UserStateInternalServerError struct {
	Payload *models.RestError
}

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

An internal error occurred in the backend

func NewUserStateInternalServerError

func NewUserStateInternalServerError() *UserStateInternalServerError

NewUserStateInternalServerError creates a UserStateInternalServerError with default headers values

func (*UserStateInternalServerError) Code added in v4.0.1

Code gets the status code for the user state internal server error response

func (*UserStateInternalServerError) Error

func (*UserStateInternalServerError) GetPayload

func (*UserStateInternalServerError) IsClientError

func (o *UserStateInternalServerError) IsClientError() bool

IsClientError returns true when this user state internal server error response has a 4xx status code

func (*UserStateInternalServerError) IsCode

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

IsCode returns true when this user state internal server error response a status code equal to that given

func (*UserStateInternalServerError) IsRedirect

func (o *UserStateInternalServerError) IsRedirect() bool

IsRedirect returns true when this user state internal server error response has a 3xx status code

func (*UserStateInternalServerError) IsServerError

func (o *UserStateInternalServerError) IsServerError() bool

IsServerError returns true when this user state internal server error response has a 5xx status code

func (*UserStateInternalServerError) IsSuccess

func (o *UserStateInternalServerError) IsSuccess() bool

IsSuccess returns true when this user state internal server error response has a 2xx status code

func (*UserStateInternalServerError) String

type UserStateNotFound

type UserStateNotFound struct {
	Payload *models.RestError
}

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

Resource does not exist in the system

func NewUserStateNotFound

func NewUserStateNotFound() *UserStateNotFound

NewUserStateNotFound creates a UserStateNotFound with default headers values

func (*UserStateNotFound) Code added in v4.0.1

func (o *UserStateNotFound) Code() int

Code gets the status code for the user state not found response

func (*UserStateNotFound) Error

func (o *UserStateNotFound) Error() string

func (*UserStateNotFound) GetPayload

func (o *UserStateNotFound) GetPayload() *models.RestError

func (*UserStateNotFound) IsClientError

func (o *UserStateNotFound) IsClientError() bool

IsClientError returns true when this user state not found response has a 4xx status code

func (*UserStateNotFound) IsCode

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

IsCode returns true when this user state not found response a status code equal to that given

func (*UserStateNotFound) IsRedirect

func (o *UserStateNotFound) IsRedirect() bool

IsRedirect returns true when this user state not found response has a 3xx status code

func (*UserStateNotFound) IsServerError

func (o *UserStateNotFound) IsServerError() bool

IsServerError returns true when this user state not found response has a 5xx status code

func (*UserStateNotFound) IsSuccess

func (o *UserStateNotFound) IsSuccess() bool

IsSuccess returns true when this user state not found response has a 2xx status code

func (*UserStateNotFound) String

func (o *UserStateNotFound) String() string

type UserStateOK

type UserStateOK struct {
	Payload *models.RestUserStateResponse
}

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

A successful response.

func NewUserStateOK

func NewUserStateOK() *UserStateOK

NewUserStateOK creates a UserStateOK with default headers values

func (*UserStateOK) Code added in v4.0.1

func (o *UserStateOK) Code() int

Code gets the status code for the user state o k response

func (*UserStateOK) Error

func (o *UserStateOK) Error() string

func (*UserStateOK) GetPayload

func (o *UserStateOK) GetPayload() *models.RestUserStateResponse

func (*UserStateOK) IsClientError

func (o *UserStateOK) IsClientError() bool

IsClientError returns true when this user state o k response has a 4xx status code

func (*UserStateOK) IsCode

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

IsCode returns true when this user state o k response a status code equal to that given

func (*UserStateOK) IsRedirect

func (o *UserStateOK) IsRedirect() bool

IsRedirect returns true when this user state o k response has a 3xx status code

func (*UserStateOK) IsServerError

func (o *UserStateOK) IsServerError() bool

IsServerError returns true when this user state o k response has a 5xx status code

func (*UserStateOK) IsSuccess

func (o *UserStateOK) IsSuccess() bool

IsSuccess returns true when this user state o k response has a 2xx status code

func (*UserStateOK) String

func (o *UserStateOK) String() string

type UserStateParams

type UserStateParams struct {

	// Segment.
	Segment string

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

UserStateParams contains all the parameters to send to the API endpoint

for the user state operation.

Typically these are written to a http.Request.

func NewUserStateParams

func NewUserStateParams() *UserStateParams

NewUserStateParams creates a new UserStateParams 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 NewUserStateParamsWithContext

func NewUserStateParamsWithContext(ctx context.Context) *UserStateParams

NewUserStateParamsWithContext creates a new UserStateParams object with the ability to set a context for a request.

func NewUserStateParamsWithHTTPClient

func NewUserStateParamsWithHTTPClient(client *http.Client) *UserStateParams

NewUserStateParamsWithHTTPClient creates a new UserStateParams object with the ability to set a custom HTTPClient for a request.

func NewUserStateParamsWithTimeout

func NewUserStateParamsWithTimeout(timeout time.Duration) *UserStateParams

NewUserStateParamsWithTimeout creates a new UserStateParams object with the ability to set a timeout on a request.

func (*UserStateParams) SetContext

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

SetContext adds the context to the user state params

func (*UserStateParams) SetDefaults

func (o *UserStateParams) SetDefaults()

SetDefaults hydrates default values in the user state params (not the query body).

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

func (*UserStateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user state params

func (*UserStateParams) SetSegment

func (o *UserStateParams) SetSegment(segment string)

SetSegment adds the segment to the user state params

func (*UserStateParams) SetTimeout

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

SetTimeout adds the timeout to the user state params

func (*UserStateParams) WithContext

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

WithContext adds the context to the user state params

func (*UserStateParams) WithDefaults

func (o *UserStateParams) WithDefaults() *UserStateParams

WithDefaults hydrates default values in the user state params (not the query body).

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

func (*UserStateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user state params

func (*UserStateParams) WithSegment

func (o *UserStateParams) WithSegment(segment string) *UserStateParams

WithSegment adds the segment to the user state params

func (*UserStateParams) WithTimeout

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

WithTimeout adds the timeout to the user state params

func (*UserStateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UserStateReader

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

UserStateReader is a Reader for the UserState structure.

func (*UserStateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserStateUnauthorized

type UserStateUnauthorized struct {
}

UserStateUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewUserStateUnauthorized

func NewUserStateUnauthorized() *UserStateUnauthorized

NewUserStateUnauthorized creates a UserStateUnauthorized with default headers values

func (*UserStateUnauthorized) Code added in v4.0.1

func (o *UserStateUnauthorized) Code() int

Code gets the status code for the user state unauthorized response

func (*UserStateUnauthorized) Error

func (o *UserStateUnauthorized) Error() string

func (*UserStateUnauthorized) IsClientError

func (o *UserStateUnauthorized) IsClientError() bool

IsClientError returns true when this user state unauthorized response has a 4xx status code

func (*UserStateUnauthorized) IsCode

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

IsCode returns true when this user state unauthorized response a status code equal to that given

func (*UserStateUnauthorized) IsRedirect

func (o *UserStateUnauthorized) IsRedirect() bool

IsRedirect returns true when this user state unauthorized response has a 3xx status code

func (*UserStateUnauthorized) IsServerError

func (o *UserStateUnauthorized) IsServerError() bool

IsServerError returns true when this user state unauthorized response has a 5xx status code

func (*UserStateUnauthorized) IsSuccess

func (o *UserStateUnauthorized) IsSuccess() bool

IsSuccess returns true when this user state unauthorized response has a 2xx status code

func (*UserStateUnauthorized) String

func (o *UserStateUnauthorized) String() string

Jump to

Keyboard shortcuts

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