personalities

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: BSD-2-Clause 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 personalities API

func (*Client) DeletePersonality

func (a *Client) DeletePersonality(params *DeletePersonalityParams, opts ...ClientOption) (*DeletePersonalityOK, error)

DeletePersonality deletes the personality based on either name or id

Delete the personality based on either name or id

func (*Client) GetPersonalities added in v0.1.1

func (a *Client) GetPersonalities(params *GetPersonalitiesParams, opts ...ClientOption) (*GetPersonalitiesOK, error)

GetPersonalities gets the personalities

Get the Personalities which are available via depot access.

func (*Client) GetPersonality added in v0.1.1

func (a *Client) GetPersonality(params *GetPersonalityParams, opts ...ClientOption) (*GetPersonalityOK, error)

GetPersonality gets personalities by Id

Get the Personality for id

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UploadPersonality

UploadPersonality uploads a personality

Upload Personality to SDDC Manager.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	DeletePersonality(params *DeletePersonalityParams, opts ...ClientOption) (*DeletePersonalityOK, error)

	GetPersonalities(params *GetPersonalitiesParams, opts ...ClientOption) (*GetPersonalitiesOK, error)

	GetPersonality(params *GetPersonalityParams, opts ...ClientOption) (*GetPersonalityOK, error)

	UploadPersonality(params *UploadPersonalityParams, opts ...ClientOption) (*UploadPersonalityOK, *UploadPersonalityAccepted, 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 personalities API client.

type DeletePersonalityInternalServerError

type DeletePersonalityInternalServerError struct {
	Payload *models.Error
}

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

Unexpected error

func NewDeletePersonalityInternalServerError

func NewDeletePersonalityInternalServerError() *DeletePersonalityInternalServerError

NewDeletePersonalityInternalServerError creates a DeletePersonalityInternalServerError with default headers values

func (*DeletePersonalityInternalServerError) Error

func (*DeletePersonalityInternalServerError) GetPayload

func (*DeletePersonalityInternalServerError) IsClientError

func (o *DeletePersonalityInternalServerError) IsClientError() bool

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

func (*DeletePersonalityInternalServerError) IsCode

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

func (*DeletePersonalityInternalServerError) IsRedirect

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

func (*DeletePersonalityInternalServerError) IsServerError

func (o *DeletePersonalityInternalServerError) IsServerError() bool

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

func (*DeletePersonalityInternalServerError) IsSuccess

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

func (*DeletePersonalityInternalServerError) String

type DeletePersonalityNotFound

type DeletePersonalityNotFound struct {
	Payload *models.Error
}

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

Personality by name or id not found

func NewDeletePersonalityNotFound

func NewDeletePersonalityNotFound() *DeletePersonalityNotFound

NewDeletePersonalityNotFound creates a DeletePersonalityNotFound with default headers values

func (*DeletePersonalityNotFound) Error

func (o *DeletePersonalityNotFound) Error() string

func (*DeletePersonalityNotFound) GetPayload

func (o *DeletePersonalityNotFound) GetPayload() *models.Error

func (*DeletePersonalityNotFound) IsClientError

func (o *DeletePersonalityNotFound) IsClientError() bool

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

func (*DeletePersonalityNotFound) IsCode

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

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

func (*DeletePersonalityNotFound) IsRedirect

func (o *DeletePersonalityNotFound) IsRedirect() bool

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

func (*DeletePersonalityNotFound) IsServerError

func (o *DeletePersonalityNotFound) IsServerError() bool

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

func (*DeletePersonalityNotFound) IsSuccess

func (o *DeletePersonalityNotFound) IsSuccess() bool

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

func (*DeletePersonalityNotFound) String

func (o *DeletePersonalityNotFound) String() string

type DeletePersonalityOK

type DeletePersonalityOK struct {
}

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

OK

func NewDeletePersonalityOK

func NewDeletePersonalityOK() *DeletePersonalityOK

NewDeletePersonalityOK creates a DeletePersonalityOK with default headers values

func (*DeletePersonalityOK) Error

func (o *DeletePersonalityOK) Error() string

func (*DeletePersonalityOK) IsClientError

func (o *DeletePersonalityOK) IsClientError() bool

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

func (*DeletePersonalityOK) IsCode

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

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

func (*DeletePersonalityOK) IsRedirect

func (o *DeletePersonalityOK) IsRedirect() bool

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

func (*DeletePersonalityOK) IsServerError

func (o *DeletePersonalityOK) IsServerError() bool

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

func (*DeletePersonalityOK) IsSuccess

func (o *DeletePersonalityOK) IsSuccess() bool

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

func (*DeletePersonalityOK) String

func (o *DeletePersonalityOK) String() string

type DeletePersonalityParams

type DeletePersonalityParams struct {

	/* PersonalityID.

	   The personality id
	*/
	PersonalityID *string

	/* PersonalityName.

	   The personality name
	*/
	PersonalityName *string

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

DeletePersonalityParams contains all the parameters to send to the API endpoint

for the delete personality operation.

Typically these are written to a http.Request.

func NewDeletePersonalityParams

func NewDeletePersonalityParams() *DeletePersonalityParams

NewDeletePersonalityParams creates a new DeletePersonalityParams 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 NewDeletePersonalityParamsWithContext

func NewDeletePersonalityParamsWithContext(ctx context.Context) *DeletePersonalityParams

NewDeletePersonalityParamsWithContext creates a new DeletePersonalityParams object with the ability to set a context for a request.

func NewDeletePersonalityParamsWithHTTPClient

func NewDeletePersonalityParamsWithHTTPClient(client *http.Client) *DeletePersonalityParams

NewDeletePersonalityParamsWithHTTPClient creates a new DeletePersonalityParams object with the ability to set a custom HTTPClient for a request.

func NewDeletePersonalityParamsWithTimeout

func NewDeletePersonalityParamsWithTimeout(timeout time.Duration) *DeletePersonalityParams

NewDeletePersonalityParamsWithTimeout creates a new DeletePersonalityParams object with the ability to set a timeout on a request.

func (*DeletePersonalityParams) SetContext

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

SetContext adds the context to the delete personality params

func (*DeletePersonalityParams) SetDefaults

func (o *DeletePersonalityParams) SetDefaults()

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

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

func (*DeletePersonalityParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete personality params

func (*DeletePersonalityParams) SetPersonalityID

func (o *DeletePersonalityParams) SetPersonalityID(personalityID *string)

SetPersonalityID adds the personalityId to the delete personality params

func (*DeletePersonalityParams) SetPersonalityName

func (o *DeletePersonalityParams) SetPersonalityName(personalityName *string)

SetPersonalityName adds the personalityName to the delete personality params

func (*DeletePersonalityParams) SetTimeout

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

SetTimeout adds the timeout to the delete personality params

func (*DeletePersonalityParams) WithContext

WithContext adds the context to the delete personality params

func (*DeletePersonalityParams) WithDefaults

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

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

func (*DeletePersonalityParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete personality params

func (*DeletePersonalityParams) WithPersonalityID

func (o *DeletePersonalityParams) WithPersonalityID(personalityID *string) *DeletePersonalityParams

WithPersonalityID adds the personalityID to the delete personality params

func (*DeletePersonalityParams) WithPersonalityName

func (o *DeletePersonalityParams) WithPersonalityName(personalityName *string) *DeletePersonalityParams

WithPersonalityName adds the personalityName to the delete personality params

func (*DeletePersonalityParams) WithTimeout

WithTimeout adds the timeout to the delete personality params

func (*DeletePersonalityParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeletePersonalityReader

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

DeletePersonalityReader is a Reader for the DeletePersonality structure.

func (*DeletePersonalityReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPersonalitiesInternalServerError added in v0.1.1

type GetPersonalitiesInternalServerError struct {
	Payload *models.Error
}

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

Internal Server Error

func NewGetPersonalitiesInternalServerError added in v0.1.1

func NewGetPersonalitiesInternalServerError() *GetPersonalitiesInternalServerError

NewGetPersonalitiesInternalServerError creates a GetPersonalitiesInternalServerError with default headers values

func (*GetPersonalitiesInternalServerError) Error added in v0.1.1

func (*GetPersonalitiesInternalServerError) GetPayload added in v0.1.1

func (*GetPersonalitiesInternalServerError) IsClientError added in v0.1.1

func (o *GetPersonalitiesInternalServerError) IsClientError() bool

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

func (*GetPersonalitiesInternalServerError) IsCode added in v0.1.1

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

func (*GetPersonalitiesInternalServerError) IsRedirect added in v0.1.1

func (o *GetPersonalitiesInternalServerError) IsRedirect() bool

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

func (*GetPersonalitiesInternalServerError) IsServerError added in v0.1.1

func (o *GetPersonalitiesInternalServerError) IsServerError() bool

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

func (*GetPersonalitiesInternalServerError) IsSuccess added in v0.1.1

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

func (*GetPersonalitiesInternalServerError) String added in v0.1.1

type GetPersonalitiesOK added in v0.1.1

type GetPersonalitiesOK struct {
	Payload *models.PageOfPersonality
}

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

Ok

func NewGetPersonalitiesOK added in v0.1.1

func NewGetPersonalitiesOK() *GetPersonalitiesOK

NewGetPersonalitiesOK creates a GetPersonalitiesOK with default headers values

func (*GetPersonalitiesOK) Error added in v0.1.1

func (o *GetPersonalitiesOK) Error() string

func (*GetPersonalitiesOK) GetPayload added in v0.1.1

func (o *GetPersonalitiesOK) GetPayload() *models.PageOfPersonality

func (*GetPersonalitiesOK) IsClientError added in v0.1.1

func (o *GetPersonalitiesOK) IsClientError() bool

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

func (*GetPersonalitiesOK) IsCode added in v0.1.1

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

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

func (*GetPersonalitiesOK) IsRedirect added in v0.1.1

func (o *GetPersonalitiesOK) IsRedirect() bool

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

func (*GetPersonalitiesOK) IsServerError added in v0.1.1

func (o *GetPersonalitiesOK) IsServerError() bool

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

func (*GetPersonalitiesOK) IsSuccess added in v0.1.1

func (o *GetPersonalitiesOK) IsSuccess() bool

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

func (*GetPersonalitiesOK) String added in v0.1.1

func (o *GetPersonalitiesOK) String() string

type GetPersonalitiesParams added in v0.1.1

type GetPersonalitiesParams struct {

	/* AddOnName.

	   The add on name
	*/
	AddOnName *string

	/* AddOnVendorName.

	   The add on vendor name
	*/
	AddOnVendorName *string

	/* BaseOSVersion.

	   The base OS version
	*/
	BaseOSVersion *string

	/* ComponentName.

	   The component name
	*/
	ComponentName *string

	/* ComponentVendorName.

	   The component vendor name
	*/
	ComponentVendorName *string

	/* PersonalityName.

	   personalityName
	*/
	PersonalityName *string

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

GetPersonalitiesParams contains all the parameters to send to the API endpoint

for the get personalities operation.

Typically these are written to a http.Request.

func NewGetPersonalitiesParams added in v0.1.1

func NewGetPersonalitiesParams() *GetPersonalitiesParams

NewGetPersonalitiesParams creates a new GetPersonalitiesParams 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 NewGetPersonalitiesParamsWithContext added in v0.1.1

func NewGetPersonalitiesParamsWithContext(ctx context.Context) *GetPersonalitiesParams

NewGetPersonalitiesParamsWithContext creates a new GetPersonalitiesParams object with the ability to set a context for a request.

func NewGetPersonalitiesParamsWithHTTPClient added in v0.1.1

func NewGetPersonalitiesParamsWithHTTPClient(client *http.Client) *GetPersonalitiesParams

NewGetPersonalitiesParamsWithHTTPClient creates a new GetPersonalitiesParams object with the ability to set a custom HTTPClient for a request.

func NewGetPersonalitiesParamsWithTimeout added in v0.1.1

func NewGetPersonalitiesParamsWithTimeout(timeout time.Duration) *GetPersonalitiesParams

NewGetPersonalitiesParamsWithTimeout creates a new GetPersonalitiesParams object with the ability to set a timeout on a request.

func (*GetPersonalitiesParams) SetAddOnName added in v0.1.1

func (o *GetPersonalitiesParams) SetAddOnName(addOnName *string)

SetAddOnName adds the addOnName to the get personalities params

func (*GetPersonalitiesParams) SetAddOnVendorName added in v0.1.1

func (o *GetPersonalitiesParams) SetAddOnVendorName(addOnVendorName *string)

SetAddOnVendorName adds the addOnVendorName to the get personalities params

func (*GetPersonalitiesParams) SetBaseOSVersion added in v0.1.1

func (o *GetPersonalitiesParams) SetBaseOSVersion(baseOSVersion *string)

SetBaseOSVersion adds the baseOSVersion to the get personalities params

func (*GetPersonalitiesParams) SetComponentName added in v0.1.1

func (o *GetPersonalitiesParams) SetComponentName(componentName *string)

SetComponentName adds the componentName to the get personalities params

func (*GetPersonalitiesParams) SetComponentVendorName added in v0.1.1

func (o *GetPersonalitiesParams) SetComponentVendorName(componentVendorName *string)

SetComponentVendorName adds the componentVendorName to the get personalities params

func (*GetPersonalitiesParams) SetContext added in v0.1.1

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

SetContext adds the context to the get personalities params

func (*GetPersonalitiesParams) SetDefaults added in v0.1.1

func (o *GetPersonalitiesParams) SetDefaults()

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

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

func (*GetPersonalitiesParams) SetHTTPClient added in v0.1.1

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

SetHTTPClient adds the HTTPClient to the get personalities params

func (*GetPersonalitiesParams) SetPersonalityName added in v0.1.1

func (o *GetPersonalitiesParams) SetPersonalityName(personalityName *string)

SetPersonalityName adds the personalityName to the get personalities params

func (*GetPersonalitiesParams) SetTimeout added in v0.1.1

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

SetTimeout adds the timeout to the get personalities params

func (*GetPersonalitiesParams) WithAddOnName added in v0.1.1

func (o *GetPersonalitiesParams) WithAddOnName(addOnName *string) *GetPersonalitiesParams

WithAddOnName adds the addOnName to the get personalities params

func (*GetPersonalitiesParams) WithAddOnVendorName added in v0.1.1

func (o *GetPersonalitiesParams) WithAddOnVendorName(addOnVendorName *string) *GetPersonalitiesParams

WithAddOnVendorName adds the addOnVendorName to the get personalities params

func (*GetPersonalitiesParams) WithBaseOSVersion added in v0.1.1

func (o *GetPersonalitiesParams) WithBaseOSVersion(baseOSVersion *string) *GetPersonalitiesParams

WithBaseOSVersion adds the baseOSVersion to the get personalities params

func (*GetPersonalitiesParams) WithComponentName added in v0.1.1

func (o *GetPersonalitiesParams) WithComponentName(componentName *string) *GetPersonalitiesParams

WithComponentName adds the componentName to the get personalities params

func (*GetPersonalitiesParams) WithComponentVendorName added in v0.1.1

func (o *GetPersonalitiesParams) WithComponentVendorName(componentVendorName *string) *GetPersonalitiesParams

WithComponentVendorName adds the componentVendorName to the get personalities params

func (*GetPersonalitiesParams) WithContext added in v0.1.1

WithContext adds the context to the get personalities params

func (*GetPersonalitiesParams) WithDefaults added in v0.1.1

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

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

func (*GetPersonalitiesParams) WithHTTPClient added in v0.1.1

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

WithHTTPClient adds the HTTPClient to the get personalities params

func (*GetPersonalitiesParams) WithPersonalityName added in v0.1.1

func (o *GetPersonalitiesParams) WithPersonalityName(personalityName *string) *GetPersonalitiesParams

WithPersonalityName adds the personalityName to the get personalities params

func (*GetPersonalitiesParams) WithTimeout added in v0.1.1

WithTimeout adds the timeout to the get personalities params

func (*GetPersonalitiesParams) WriteToRequest added in v0.1.1

WriteToRequest writes these params to a swagger request

type GetPersonalitiesReader added in v0.1.1

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

GetPersonalitiesReader is a Reader for the GetPersonalities structure.

func (*GetPersonalitiesReader) ReadResponse added in v0.1.1

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

ReadResponse reads a server response into the received o.

type GetPersonalityInternalServerError added in v0.1.1

type GetPersonalityInternalServerError struct {
	Payload *models.Error
}

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

Internal Server Error

func NewGetPersonalityInternalServerError added in v0.1.1

func NewGetPersonalityInternalServerError() *GetPersonalityInternalServerError

NewGetPersonalityInternalServerError creates a GetPersonalityInternalServerError with default headers values

func (*GetPersonalityInternalServerError) Error added in v0.1.1

func (*GetPersonalityInternalServerError) GetPayload added in v0.1.1

func (*GetPersonalityInternalServerError) IsClientError added in v0.1.1

func (o *GetPersonalityInternalServerError) IsClientError() bool

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

func (*GetPersonalityInternalServerError) IsCode added in v0.1.1

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

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

func (*GetPersonalityInternalServerError) IsRedirect added in v0.1.1

func (o *GetPersonalityInternalServerError) IsRedirect() bool

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

func (*GetPersonalityInternalServerError) IsServerError added in v0.1.1

func (o *GetPersonalityInternalServerError) IsServerError() bool

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

func (*GetPersonalityInternalServerError) IsSuccess added in v0.1.1

func (o *GetPersonalityInternalServerError) IsSuccess() bool

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

func (*GetPersonalityInternalServerError) String added in v0.1.1

type GetPersonalityNotFound added in v0.1.1

type GetPersonalityNotFound struct {
	Payload *models.Error
}

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

Personality not found

func NewGetPersonalityNotFound added in v0.1.1

func NewGetPersonalityNotFound() *GetPersonalityNotFound

NewGetPersonalityNotFound creates a GetPersonalityNotFound with default headers values

func (*GetPersonalityNotFound) Error added in v0.1.1

func (o *GetPersonalityNotFound) Error() string

func (*GetPersonalityNotFound) GetPayload added in v0.1.1

func (o *GetPersonalityNotFound) GetPayload() *models.Error

func (*GetPersonalityNotFound) IsClientError added in v0.1.1

func (o *GetPersonalityNotFound) IsClientError() bool

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

func (*GetPersonalityNotFound) IsCode added in v0.1.1

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

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

func (*GetPersonalityNotFound) IsRedirect added in v0.1.1

func (o *GetPersonalityNotFound) IsRedirect() bool

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

func (*GetPersonalityNotFound) IsServerError added in v0.1.1

func (o *GetPersonalityNotFound) IsServerError() bool

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

func (*GetPersonalityNotFound) IsSuccess added in v0.1.1

func (o *GetPersonalityNotFound) IsSuccess() bool

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

func (*GetPersonalityNotFound) String added in v0.1.1

func (o *GetPersonalityNotFound) String() string

type GetPersonalityOK added in v0.1.1

type GetPersonalityOK struct {
	Payload *models.Personality
}

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

OK

func NewGetPersonalityOK added in v0.1.1

func NewGetPersonalityOK() *GetPersonalityOK

NewGetPersonalityOK creates a GetPersonalityOK with default headers values

func (*GetPersonalityOK) Error added in v0.1.1

func (o *GetPersonalityOK) Error() string

func (*GetPersonalityOK) GetPayload added in v0.1.1

func (o *GetPersonalityOK) GetPayload() *models.Personality

func (*GetPersonalityOK) IsClientError added in v0.1.1

func (o *GetPersonalityOK) IsClientError() bool

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

func (*GetPersonalityOK) IsCode added in v0.1.1

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

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

func (*GetPersonalityOK) IsRedirect added in v0.1.1

func (o *GetPersonalityOK) IsRedirect() bool

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

func (*GetPersonalityOK) IsServerError added in v0.1.1

func (o *GetPersonalityOK) IsServerError() bool

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

func (*GetPersonalityOK) IsSuccess added in v0.1.1

func (o *GetPersonalityOK) IsSuccess() bool

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

func (*GetPersonalityOK) String added in v0.1.1

func (o *GetPersonalityOK) String() string

type GetPersonalityParams added in v0.1.1

type GetPersonalityParams struct {

	/* PersonalityID.

	   Personality ID
	*/
	PersonalityID string

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

GetPersonalityParams contains all the parameters to send to the API endpoint

for the get personality operation.

Typically these are written to a http.Request.

func NewGetPersonalityParams added in v0.1.1

func NewGetPersonalityParams() *GetPersonalityParams

NewGetPersonalityParams creates a new GetPersonalityParams 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 NewGetPersonalityParamsWithContext added in v0.1.1

func NewGetPersonalityParamsWithContext(ctx context.Context) *GetPersonalityParams

NewGetPersonalityParamsWithContext creates a new GetPersonalityParams object with the ability to set a context for a request.

func NewGetPersonalityParamsWithHTTPClient added in v0.1.1

func NewGetPersonalityParamsWithHTTPClient(client *http.Client) *GetPersonalityParams

NewGetPersonalityParamsWithHTTPClient creates a new GetPersonalityParams object with the ability to set a custom HTTPClient for a request.

func NewGetPersonalityParamsWithTimeout added in v0.1.1

func NewGetPersonalityParamsWithTimeout(timeout time.Duration) *GetPersonalityParams

NewGetPersonalityParamsWithTimeout creates a new GetPersonalityParams object with the ability to set a timeout on a request.

func (*GetPersonalityParams) SetContext added in v0.1.1

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

SetContext adds the context to the get personality params

func (*GetPersonalityParams) SetDefaults added in v0.1.1

func (o *GetPersonalityParams) SetDefaults()

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

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

func (*GetPersonalityParams) SetHTTPClient added in v0.1.1

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

SetHTTPClient adds the HTTPClient to the get personality params

func (*GetPersonalityParams) SetPersonalityID added in v0.1.1

func (o *GetPersonalityParams) SetPersonalityID(personalityID string)

SetPersonalityID adds the personalityId to the get personality params

func (*GetPersonalityParams) SetTimeout added in v0.1.1

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

SetTimeout adds the timeout to the get personality params

func (*GetPersonalityParams) WithContext added in v0.1.1

WithContext adds the context to the get personality params

func (*GetPersonalityParams) WithDefaults added in v0.1.1

func (o *GetPersonalityParams) WithDefaults() *GetPersonalityParams

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

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

func (*GetPersonalityParams) WithHTTPClient added in v0.1.1

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

WithHTTPClient adds the HTTPClient to the get personality params

func (*GetPersonalityParams) WithPersonalityID added in v0.1.1

func (o *GetPersonalityParams) WithPersonalityID(personalityID string) *GetPersonalityParams

WithPersonalityID adds the personalityID to the get personality params

func (*GetPersonalityParams) WithTimeout added in v0.1.1

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

WithTimeout adds the timeout to the get personality params

func (*GetPersonalityParams) WriteToRequest added in v0.1.1

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

WriteToRequest writes these params to a swagger request

type GetPersonalityReader added in v0.1.1

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

GetPersonalityReader is a Reader for the GetPersonality structure.

func (*GetPersonalityReader) ReadResponse added in v0.1.1

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

ReadResponse reads a server response into the received o.

type UploadPersonalityAccepted

type UploadPersonalityAccepted struct {
	Payload *models.Task
}

UploadPersonalityAccepted describes a response with status code 202, with default header values.

Accepted

func NewUploadPersonalityAccepted

func NewUploadPersonalityAccepted() *UploadPersonalityAccepted

NewUploadPersonalityAccepted creates a UploadPersonalityAccepted with default headers values

func (*UploadPersonalityAccepted) Error

func (o *UploadPersonalityAccepted) Error() string

func (*UploadPersonalityAccepted) GetPayload

func (o *UploadPersonalityAccepted) GetPayload() *models.Task

func (*UploadPersonalityAccepted) IsClientError

func (o *UploadPersonalityAccepted) IsClientError() bool

IsClientError returns true when this upload personality accepted response has a 4xx status code

func (*UploadPersonalityAccepted) IsCode

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

IsCode returns true when this upload personality accepted response a status code equal to that given

func (*UploadPersonalityAccepted) IsRedirect

func (o *UploadPersonalityAccepted) IsRedirect() bool

IsRedirect returns true when this upload personality accepted response has a 3xx status code

func (*UploadPersonalityAccepted) IsServerError

func (o *UploadPersonalityAccepted) IsServerError() bool

IsServerError returns true when this upload personality accepted response has a 5xx status code

func (*UploadPersonalityAccepted) IsSuccess

func (o *UploadPersonalityAccepted) IsSuccess() bool

IsSuccess returns true when this upload personality accepted response has a 2xx status code

func (*UploadPersonalityAccepted) String

func (o *UploadPersonalityAccepted) String() string

type UploadPersonalityBadRequest

type UploadPersonalityBadRequest struct {
	Payload *models.Error
}

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

Bad Request

func NewUploadPersonalityBadRequest

func NewUploadPersonalityBadRequest() *UploadPersonalityBadRequest

NewUploadPersonalityBadRequest creates a UploadPersonalityBadRequest with default headers values

func (*UploadPersonalityBadRequest) Error

func (*UploadPersonalityBadRequest) GetPayload

func (o *UploadPersonalityBadRequest) GetPayload() *models.Error

func (*UploadPersonalityBadRequest) IsClientError

func (o *UploadPersonalityBadRequest) IsClientError() bool

IsClientError returns true when this upload personality bad request response has a 4xx status code

func (*UploadPersonalityBadRequest) IsCode

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

IsCode returns true when this upload personality bad request response a status code equal to that given

func (*UploadPersonalityBadRequest) IsRedirect

func (o *UploadPersonalityBadRequest) IsRedirect() bool

IsRedirect returns true when this upload personality bad request response has a 3xx status code

func (*UploadPersonalityBadRequest) IsServerError

func (o *UploadPersonalityBadRequest) IsServerError() bool

IsServerError returns true when this upload personality bad request response has a 5xx status code

func (*UploadPersonalityBadRequest) IsSuccess

func (o *UploadPersonalityBadRequest) IsSuccess() bool

IsSuccess returns true when this upload personality bad request response has a 2xx status code

func (*UploadPersonalityBadRequest) String

func (o *UploadPersonalityBadRequest) String() string

type UploadPersonalityInternalServerError

type UploadPersonalityInternalServerError struct {
	Payload *models.Error
}

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

Internal Server Error

func NewUploadPersonalityInternalServerError

func NewUploadPersonalityInternalServerError() *UploadPersonalityInternalServerError

NewUploadPersonalityInternalServerError creates a UploadPersonalityInternalServerError with default headers values

func (*UploadPersonalityInternalServerError) Error

func (*UploadPersonalityInternalServerError) GetPayload

func (*UploadPersonalityInternalServerError) IsClientError

func (o *UploadPersonalityInternalServerError) IsClientError() bool

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

func (*UploadPersonalityInternalServerError) IsCode

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

func (*UploadPersonalityInternalServerError) IsRedirect

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

func (*UploadPersonalityInternalServerError) IsServerError

func (o *UploadPersonalityInternalServerError) IsServerError() bool

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

func (*UploadPersonalityInternalServerError) IsSuccess

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

func (*UploadPersonalityInternalServerError) String

type UploadPersonalityOK

type UploadPersonalityOK struct {
	Payload *models.Task
}

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

OK

func NewUploadPersonalityOK

func NewUploadPersonalityOK() *UploadPersonalityOK

NewUploadPersonalityOK creates a UploadPersonalityOK with default headers values

func (*UploadPersonalityOK) Error

func (o *UploadPersonalityOK) Error() string

func (*UploadPersonalityOK) GetPayload

func (o *UploadPersonalityOK) GetPayload() *models.Task

func (*UploadPersonalityOK) IsClientError

func (o *UploadPersonalityOK) IsClientError() bool

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

func (*UploadPersonalityOK) IsCode

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

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

func (*UploadPersonalityOK) IsRedirect

func (o *UploadPersonalityOK) IsRedirect() bool

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

func (*UploadPersonalityOK) IsServerError

func (o *UploadPersonalityOK) IsServerError() bool

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

func (*UploadPersonalityOK) IsSuccess

func (o *UploadPersonalityOK) IsSuccess() bool

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

func (*UploadPersonalityOK) String

func (o *UploadPersonalityOK) String() string

type UploadPersonalityParams

type UploadPersonalityParams struct {

	/* PersonalityUploadSpec.

	   Personality Upload Specification
	*/
	PersonalityUploadSpec *models.PersonalityUploadSpec

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

UploadPersonalityParams contains all the parameters to send to the API endpoint

for the upload personality operation.

Typically these are written to a http.Request.

func NewUploadPersonalityParams

func NewUploadPersonalityParams() *UploadPersonalityParams

NewUploadPersonalityParams creates a new UploadPersonalityParams 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 NewUploadPersonalityParamsWithContext

func NewUploadPersonalityParamsWithContext(ctx context.Context) *UploadPersonalityParams

NewUploadPersonalityParamsWithContext creates a new UploadPersonalityParams object with the ability to set a context for a request.

func NewUploadPersonalityParamsWithHTTPClient

func NewUploadPersonalityParamsWithHTTPClient(client *http.Client) *UploadPersonalityParams

NewUploadPersonalityParamsWithHTTPClient creates a new UploadPersonalityParams object with the ability to set a custom HTTPClient for a request.

func NewUploadPersonalityParamsWithTimeout

func NewUploadPersonalityParamsWithTimeout(timeout time.Duration) *UploadPersonalityParams

NewUploadPersonalityParamsWithTimeout creates a new UploadPersonalityParams object with the ability to set a timeout on a request.

func (*UploadPersonalityParams) SetContext

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

SetContext adds the context to the upload personality params

func (*UploadPersonalityParams) SetDefaults

func (o *UploadPersonalityParams) SetDefaults()

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

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

func (*UploadPersonalityParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the upload personality params

func (*UploadPersonalityParams) SetPersonalityUploadSpec

func (o *UploadPersonalityParams) SetPersonalityUploadSpec(personalityUploadSpec *models.PersonalityUploadSpec)

SetPersonalityUploadSpec adds the personalityUploadSpec to the upload personality params

func (*UploadPersonalityParams) SetTimeout

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

SetTimeout adds the timeout to the upload personality params

func (*UploadPersonalityParams) WithContext

WithContext adds the context to the upload personality params

func (*UploadPersonalityParams) WithDefaults

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

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

func (*UploadPersonalityParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the upload personality params

func (*UploadPersonalityParams) WithPersonalityUploadSpec

func (o *UploadPersonalityParams) WithPersonalityUploadSpec(personalityUploadSpec *models.PersonalityUploadSpec) *UploadPersonalityParams

WithPersonalityUploadSpec adds the personalityUploadSpec to the upload personality params

func (*UploadPersonalityParams) WithTimeout

WithTimeout adds the timeout to the upload personality params

func (*UploadPersonalityParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UploadPersonalityReader

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

UploadPersonalityReader is a Reader for the UploadPersonality structure.

func (*UploadPersonalityReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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