shared_snaps

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for shared snaps API.

func (*Client) ConsumeSharedSnapToBox

func (a *Client) ConsumeSharedSnapToBox(params *ConsumeSharedSnapToBoxParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ConsumeSharedSnapToBoxCreated, error)

ConsumeSharedSnapToBoxcreates a box from a shared snap.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.ConsumeSharedSnapToBoxContext instead.

func (*Client) ConsumeSharedSnapToBoxContext

func (a *Client) ConsumeSharedSnapToBoxContext(ctx context.Context, params *ConsumeSharedSnapToBoxParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ConsumeSharedSnapToBoxCreated, error)

ConsumeSharedSnapToBoxContextcreates a box from a shared snap.

Do not use the deprecated [ConsumeSharedSnapToBoxParams.Context] with this method: it would be ignored.

func (*Client) ConsumeSharedSnapToSnap

func (a *Client) ConsumeSharedSnapToSnap(params *ConsumeSharedSnapToSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ConsumeSharedSnapToSnapCreated, error)

ConsumeSharedSnapToSnapforks a private snap from a shared snap.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.ConsumeSharedSnapToSnapContext instead.

func (*Client) ConsumeSharedSnapToSnapContext

func (a *Client) ConsumeSharedSnapToSnapContext(ctx context.Context, params *ConsumeSharedSnapToSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ConsumeSharedSnapToSnapCreated, error)

ConsumeSharedSnapToSnapContextforks a private snap from a shared snap.

Do not use the deprecated [ConsumeSharedSnapToSnapParams.Context] with this method: it would be ignored.

func (*Client) DeleteSharedSnap

func (a *Client) DeleteSharedSnap(params *DeleteSharedSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSharedSnapOK, error)

DeleteSharedSnapdeletes a shared snap and all its versions.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.DeleteSharedSnapContext instead.

func (*Client) DeleteSharedSnapContext

func (a *Client) DeleteSharedSnapContext(ctx context.Context, params *DeleteSharedSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSharedSnapOK, error)

DeleteSharedSnapContextdeletes a shared snap and all its versions.

Do not use the deprecated [DeleteSharedSnapParams.Context] with this method: it would be ignored.

func (*Client) DeleteSharedSnapVersion

func (a *Client) DeleteSharedSnapVersion(params *DeleteSharedSnapVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSharedSnapVersionOK, error)

DeleteSharedSnapVersiondeletes one shared snap version.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.DeleteSharedSnapVersionContext instead.

func (*Client) DeleteSharedSnapVersionContext

func (a *Client) DeleteSharedSnapVersionContext(ctx context.Context, params *DeleteSharedSnapVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSharedSnapVersionOK, error)

DeleteSharedSnapVersionContextdeletes one shared snap version.

Do not use the deprecated [DeleteSharedSnapVersionParams.Context] with this method: it would be ignored.

func (*Client) GetSharedSnap

func (a *Client) GetSharedSnap(params *GetSharedSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSharedSnapOK, error)

GetSharedSnapgets a shared snap and its versions.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.GetSharedSnapContext instead.

func (*Client) GetSharedSnapContext

func (a *Client) GetSharedSnapContext(ctx context.Context, params *GetSharedSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSharedSnapOK, error)

GetSharedSnapContextgets a shared snap and its versions.

Do not use the deprecated [GetSharedSnapParams.Context] with this method: it would be ignored.

func (*Client) ListSharedSnaps

func (a *Client) ListSharedSnaps(params *ListSharedSnapsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSharedSnapsOK, error)

ListSharedSnapslists shared snaps in the org.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.ListSharedSnapsContext instead.

func (*Client) ListSharedSnapsContext

func (a *Client) ListSharedSnapsContext(ctx context.Context, params *ListSharedSnapsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSharedSnapsOK, error)

ListSharedSnapsContextlists shared snaps in the org.

Do not use the deprecated [ListSharedSnapsParams.Context] with this method: it would be ignored.

func (*Client) PublishSharedSnap

func (a *Client) PublishSharedSnap(params *PublishSharedSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PublishSharedSnapCreated, error)

PublishSharedSnappublishes a new shared snap version.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.PublishSharedSnapContext instead.

func (*Client) PublishSharedSnapContext

func (a *Client) PublishSharedSnapContext(ctx context.Context, params *PublishSharedSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PublishSharedSnapCreated, error)

PublishSharedSnapContextpublishes a new shared snap version.

Do not use the deprecated [PublishSharedSnapParams.Context] with this method: it would be ignored.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

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

type ClientService

type ClientService interface {

	// ConsumeSharedSnapToBox create a box from a shared snap.
	ConsumeSharedSnapToBox(params *ConsumeSharedSnapToBoxParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ConsumeSharedSnapToBoxCreated, error)

	// ConsumeSharedSnapToBoxContext create a box from a shared snap.
	ConsumeSharedSnapToBoxContext(ctx context.Context, params *ConsumeSharedSnapToBoxParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ConsumeSharedSnapToBoxCreated, error)

	// ConsumeSharedSnapToSnap fork a private snap from a shared snap.
	ConsumeSharedSnapToSnap(params *ConsumeSharedSnapToSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ConsumeSharedSnapToSnapCreated, error)

	// ConsumeSharedSnapToSnapContext fork a private snap from a shared snap.
	ConsumeSharedSnapToSnapContext(ctx context.Context, params *ConsumeSharedSnapToSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ConsumeSharedSnapToSnapCreated, error)

	// DeleteSharedSnap delete a shared snap and all its versions.
	DeleteSharedSnap(params *DeleteSharedSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSharedSnapOK, error)

	// DeleteSharedSnapContext delete a shared snap and all its versions.
	DeleteSharedSnapContext(ctx context.Context, params *DeleteSharedSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSharedSnapOK, error)

	// DeleteSharedSnapVersion delete one shared snap version.
	DeleteSharedSnapVersion(params *DeleteSharedSnapVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSharedSnapVersionOK, error)

	// DeleteSharedSnapVersionContext delete one shared snap version.
	DeleteSharedSnapVersionContext(ctx context.Context, params *DeleteSharedSnapVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSharedSnapVersionOK, error)

	// GetSharedSnap get a shared snap and its versions.
	GetSharedSnap(params *GetSharedSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSharedSnapOK, error)

	// GetSharedSnapContext get a shared snap and its versions.
	GetSharedSnapContext(ctx context.Context, params *GetSharedSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSharedSnapOK, error)

	// ListSharedSnaps list shared snaps in the org.
	ListSharedSnaps(params *ListSharedSnapsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSharedSnapsOK, error)

	// ListSharedSnapsContext list shared snaps in the org.
	ListSharedSnapsContext(ctx context.Context, params *ListSharedSnapsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSharedSnapsOK, error)

	// PublishSharedSnap publish a new shared snap version.
	PublishSharedSnap(params *PublishSharedSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PublishSharedSnapCreated, error)

	// PublishSharedSnapContext publish a new shared snap version.
	PublishSharedSnapContext(ctx context.Context, params *PublishSharedSnapParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PublishSharedSnapCreated, error)

	SetTransport(transport runtime.ContextualTransport)
}

ClientService is the interface for Client methods.

func New

New creates a new shared snaps API client.

func NewClientWithBasicAuth

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

New creates a new shared snaps 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 shared snaps 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 ConsumeSharedSnapToBoxBadRequest

type ConsumeSharedSnapToBoxBadRequest struct {
	Payload *models.Error
}

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

The request was invalid or could not be processed.

func NewConsumeSharedSnapToBoxBadRequest

func NewConsumeSharedSnapToBoxBadRequest() *ConsumeSharedSnapToBoxBadRequest

NewConsumeSharedSnapToBoxBadRequest creates a ConsumeSharedSnapToBoxBadRequest with default headers values

func (*ConsumeSharedSnapToBoxBadRequest) Code

Code gets the status code for the consume shared snap to box bad request response

func (*ConsumeSharedSnapToBoxBadRequest) Error

func (*ConsumeSharedSnapToBoxBadRequest) GetPayload

func (*ConsumeSharedSnapToBoxBadRequest) IsClientError

func (o *ConsumeSharedSnapToBoxBadRequest) IsClientError() bool

IsClientError returns true when this consume shared snap to box bad request response has a 4xx status code

func (*ConsumeSharedSnapToBoxBadRequest) IsCode

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

IsCode returns true when this consume shared snap to box bad request response a status code equal to that given

func (*ConsumeSharedSnapToBoxBadRequest) IsRedirect

func (o *ConsumeSharedSnapToBoxBadRequest) IsRedirect() bool

IsRedirect returns true when this consume shared snap to box bad request response has a 3xx status code

func (*ConsumeSharedSnapToBoxBadRequest) IsServerError

func (o *ConsumeSharedSnapToBoxBadRequest) IsServerError() bool

IsServerError returns true when this consume shared snap to box bad request response has a 5xx status code

func (*ConsumeSharedSnapToBoxBadRequest) IsSuccess

func (o *ConsumeSharedSnapToBoxBadRequest) IsSuccess() bool

IsSuccess returns true when this consume shared snap to box bad request response has a 2xx status code

func (*ConsumeSharedSnapToBoxBadRequest) String

type ConsumeSharedSnapToBoxCreated

type ConsumeSharedSnapToBoxCreated struct {
	Payload *models.APIBoxView
}

ConsumeSharedSnapToBoxCreated describes a response with status code 201, with default header values.

The created box.

func NewConsumeSharedSnapToBoxCreated

func NewConsumeSharedSnapToBoxCreated() *ConsumeSharedSnapToBoxCreated

NewConsumeSharedSnapToBoxCreated creates a ConsumeSharedSnapToBoxCreated with default headers values

func (*ConsumeSharedSnapToBoxCreated) Code

Code gets the status code for the consume shared snap to box created response

func (*ConsumeSharedSnapToBoxCreated) Error

func (*ConsumeSharedSnapToBoxCreated) GetPayload

func (*ConsumeSharedSnapToBoxCreated) IsClientError

func (o *ConsumeSharedSnapToBoxCreated) IsClientError() bool

IsClientError returns true when this consume shared snap to box created response has a 4xx status code

func (*ConsumeSharedSnapToBoxCreated) IsCode

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

IsCode returns true when this consume shared snap to box created response a status code equal to that given

func (*ConsumeSharedSnapToBoxCreated) IsRedirect

func (o *ConsumeSharedSnapToBoxCreated) IsRedirect() bool

IsRedirect returns true when this consume shared snap to box created response has a 3xx status code

func (*ConsumeSharedSnapToBoxCreated) IsServerError

func (o *ConsumeSharedSnapToBoxCreated) IsServerError() bool

IsServerError returns true when this consume shared snap to box created response has a 5xx status code

func (*ConsumeSharedSnapToBoxCreated) IsSuccess

func (o *ConsumeSharedSnapToBoxCreated) IsSuccess() bool

IsSuccess returns true when this consume shared snap to box created response has a 2xx status code

func (*ConsumeSharedSnapToBoxCreated) String

type ConsumeSharedSnapToBoxParams

type ConsumeSharedSnapToBoxParams struct {

	/* Name.

	   Shared snap name.
	*/
	Name string

	/* ProjectCid.

	   Project handle (`project_cid`).
	*/
	ProjectCid string

	/* Request.

	   Request body
	*/
	Request *models.ConsumeSharedSnapToBoxPayload

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

ConsumeSharedSnapToBoxParams contains all the parameters to send to the API endpoint

for the consume shared snap to box operation.

Typically these are written to a http.Request.

func NewConsumeSharedSnapToBoxParams

func NewConsumeSharedSnapToBoxParams() *ConsumeSharedSnapToBoxParams

NewConsumeSharedSnapToBoxParams creates a new ConsumeSharedSnapToBoxParams 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 NewConsumeSharedSnapToBoxParamsWithContext deprecated

func NewConsumeSharedSnapToBoxParamsWithContext(ctx context.Context) *ConsumeSharedSnapToBoxParams

NewConsumeSharedSnapToBoxParamsWithContext creates a new ConsumeSharedSnapToBoxParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of ConsumeSharedSnapToBoxParams.

func NewConsumeSharedSnapToBoxParamsWithHTTPClient

func NewConsumeSharedSnapToBoxParamsWithHTTPClient(client *http.Client) *ConsumeSharedSnapToBoxParams

NewConsumeSharedSnapToBoxParamsWithHTTPClient creates a new ConsumeSharedSnapToBoxParams object with the ability to set a custom HTTPClient for a request.

func NewConsumeSharedSnapToBoxParamsWithTimeout

func NewConsumeSharedSnapToBoxParamsWithTimeout(timeout time.Duration) *ConsumeSharedSnapToBoxParams

NewConsumeSharedSnapToBoxParamsWithTimeout creates a new ConsumeSharedSnapToBoxParams object with the ability to set a timeout on a request.

func (*ConsumeSharedSnapToBoxParams) SetContext deprecated

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

SetContext adds the context to the consume shared snap to box params.

Deprecated: use the operation call with context to pass the context instead of ConsumeSharedSnapToBoxParams.

func (*ConsumeSharedSnapToBoxParams) SetDefaults

func (o *ConsumeSharedSnapToBoxParams) SetDefaults()

SetDefaults hydrates default values in the consume shared snap to box params (not the query body).

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

func (*ConsumeSharedSnapToBoxParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the consume shared snap to box params.

func (*ConsumeSharedSnapToBoxParams) SetName

func (o *ConsumeSharedSnapToBoxParams) SetName(name string)

SetName adds the name to the consume shared snap to box params.

func (*ConsumeSharedSnapToBoxParams) SetProjectCid

func (o *ConsumeSharedSnapToBoxParams) SetProjectCid(projectCid string)

SetProjectCid adds the projectCid to the consume shared snap to box params.

func (*ConsumeSharedSnapToBoxParams) SetRequest

SetRequest adds the request to the consume shared snap to box params.

func (*ConsumeSharedSnapToBoxParams) SetTimeout

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

SetTimeout adds the timeout to the consume shared snap to box params.

func (*ConsumeSharedSnapToBoxParams) WithContext deprecated

WithContext adds the context to the consume shared snap to box params.

Deprecated: use the operation call with context to pass the context instead of ConsumeSharedSnapToBoxParams.

func (*ConsumeSharedSnapToBoxParams) WithDefaults

WithDefaults hydrates default values in the consume shared snap to box params (not the query body).

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

func (*ConsumeSharedSnapToBoxParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the consume shared snap to box params.

func (*ConsumeSharedSnapToBoxParams) WithName

WithName adds the name to the consume shared snap to box params.

func (*ConsumeSharedSnapToBoxParams) WithProjectCid

func (o *ConsumeSharedSnapToBoxParams) WithProjectCid(projectCid string) *ConsumeSharedSnapToBoxParams

WithProjectCid adds the projectCid to the consume shared snap to box params.

func (*ConsumeSharedSnapToBoxParams) WithRequest

WithRequest adds the request to the consume shared snap to box params.

func (*ConsumeSharedSnapToBoxParams) WithTimeout

WithTimeout adds the timeout to the consume shared snap to box params.

func (*ConsumeSharedSnapToBoxParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type ConsumeSharedSnapToBoxReader

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

ConsumeSharedSnapToBoxReader is a Reader for the ConsumeSharedSnapToBox structure.

func (*ConsumeSharedSnapToBoxReader) ReadResponse

func (o *ConsumeSharedSnapToBoxReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type ConsumeSharedSnapToBoxUnauthorized

type ConsumeSharedSnapToBoxUnauthorized struct {
	Payload *models.Error
}

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

Missing or invalid credentials.

func NewConsumeSharedSnapToBoxUnauthorized

func NewConsumeSharedSnapToBoxUnauthorized() *ConsumeSharedSnapToBoxUnauthorized

NewConsumeSharedSnapToBoxUnauthorized creates a ConsumeSharedSnapToBoxUnauthorized with default headers values

func (*ConsumeSharedSnapToBoxUnauthorized) Code

Code gets the status code for the consume shared snap to box unauthorized response

func (*ConsumeSharedSnapToBoxUnauthorized) Error

func (*ConsumeSharedSnapToBoxUnauthorized) GetPayload

func (*ConsumeSharedSnapToBoxUnauthorized) IsClientError

func (o *ConsumeSharedSnapToBoxUnauthorized) IsClientError() bool

IsClientError returns true when this consume shared snap to box unauthorized response has a 4xx status code

func (*ConsumeSharedSnapToBoxUnauthorized) IsCode

IsCode returns true when this consume shared snap to box unauthorized response a status code equal to that given

func (*ConsumeSharedSnapToBoxUnauthorized) IsRedirect

func (o *ConsumeSharedSnapToBoxUnauthorized) IsRedirect() bool

IsRedirect returns true when this consume shared snap to box unauthorized response has a 3xx status code

func (*ConsumeSharedSnapToBoxUnauthorized) IsServerError

func (o *ConsumeSharedSnapToBoxUnauthorized) IsServerError() bool

IsServerError returns true when this consume shared snap to box unauthorized response has a 5xx status code

func (*ConsumeSharedSnapToBoxUnauthorized) IsSuccess

IsSuccess returns true when this consume shared snap to box unauthorized response has a 2xx status code

func (*ConsumeSharedSnapToBoxUnauthorized) String

type ConsumeSharedSnapToSnapBadRequest

type ConsumeSharedSnapToSnapBadRequest struct {
	Payload *models.Error
}

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

The request was invalid or could not be processed.

func NewConsumeSharedSnapToSnapBadRequest

func NewConsumeSharedSnapToSnapBadRequest() *ConsumeSharedSnapToSnapBadRequest

NewConsumeSharedSnapToSnapBadRequest creates a ConsumeSharedSnapToSnapBadRequest with default headers values

func (*ConsumeSharedSnapToSnapBadRequest) Code

Code gets the status code for the consume shared snap to snap bad request response

func (*ConsumeSharedSnapToSnapBadRequest) Error

func (*ConsumeSharedSnapToSnapBadRequest) GetPayload

func (*ConsumeSharedSnapToSnapBadRequest) IsClientError

func (o *ConsumeSharedSnapToSnapBadRequest) IsClientError() bool

IsClientError returns true when this consume shared snap to snap bad request response has a 4xx status code

func (*ConsumeSharedSnapToSnapBadRequest) IsCode

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

IsCode returns true when this consume shared snap to snap bad request response a status code equal to that given

func (*ConsumeSharedSnapToSnapBadRequest) IsRedirect

func (o *ConsumeSharedSnapToSnapBadRequest) IsRedirect() bool

IsRedirect returns true when this consume shared snap to snap bad request response has a 3xx status code

func (*ConsumeSharedSnapToSnapBadRequest) IsServerError

func (o *ConsumeSharedSnapToSnapBadRequest) IsServerError() bool

IsServerError returns true when this consume shared snap to snap bad request response has a 5xx status code

func (*ConsumeSharedSnapToSnapBadRequest) IsSuccess

func (o *ConsumeSharedSnapToSnapBadRequest) IsSuccess() bool

IsSuccess returns true when this consume shared snap to snap bad request response has a 2xx status code

func (*ConsumeSharedSnapToSnapBadRequest) String

type ConsumeSharedSnapToSnapCreated

type ConsumeSharedSnapToSnapCreated struct {
	Payload *models.APISnapView
}

ConsumeSharedSnapToSnapCreated describes a response with status code 201, with default header values.

The new snap.

func NewConsumeSharedSnapToSnapCreated

func NewConsumeSharedSnapToSnapCreated() *ConsumeSharedSnapToSnapCreated

NewConsumeSharedSnapToSnapCreated creates a ConsumeSharedSnapToSnapCreated with default headers values

func (*ConsumeSharedSnapToSnapCreated) Code

Code gets the status code for the consume shared snap to snap created response

func (*ConsumeSharedSnapToSnapCreated) Error

func (*ConsumeSharedSnapToSnapCreated) GetPayload

func (*ConsumeSharedSnapToSnapCreated) IsClientError

func (o *ConsumeSharedSnapToSnapCreated) IsClientError() bool

IsClientError returns true when this consume shared snap to snap created response has a 4xx status code

func (*ConsumeSharedSnapToSnapCreated) IsCode

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

IsCode returns true when this consume shared snap to snap created response a status code equal to that given

func (*ConsumeSharedSnapToSnapCreated) IsRedirect

func (o *ConsumeSharedSnapToSnapCreated) IsRedirect() bool

IsRedirect returns true when this consume shared snap to snap created response has a 3xx status code

func (*ConsumeSharedSnapToSnapCreated) IsServerError

func (o *ConsumeSharedSnapToSnapCreated) IsServerError() bool

IsServerError returns true when this consume shared snap to snap created response has a 5xx status code

func (*ConsumeSharedSnapToSnapCreated) IsSuccess

func (o *ConsumeSharedSnapToSnapCreated) IsSuccess() bool

IsSuccess returns true when this consume shared snap to snap created response has a 2xx status code

func (*ConsumeSharedSnapToSnapCreated) String

type ConsumeSharedSnapToSnapParams

type ConsumeSharedSnapToSnapParams struct {

	/* Name.

	   Shared snap name.
	*/
	Name string

	/* ProjectCid.

	   Project handle (`project_cid`).
	*/
	ProjectCid string

	/* Request.

	   Request body
	*/
	Request *models.ConsumeSharedSnapToSnapPayload

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

ConsumeSharedSnapToSnapParams contains all the parameters to send to the API endpoint

for the consume shared snap to snap operation.

Typically these are written to a http.Request.

func NewConsumeSharedSnapToSnapParams

func NewConsumeSharedSnapToSnapParams() *ConsumeSharedSnapToSnapParams

NewConsumeSharedSnapToSnapParams creates a new ConsumeSharedSnapToSnapParams 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 NewConsumeSharedSnapToSnapParamsWithContext deprecated

func NewConsumeSharedSnapToSnapParamsWithContext(ctx context.Context) *ConsumeSharedSnapToSnapParams

NewConsumeSharedSnapToSnapParamsWithContext creates a new ConsumeSharedSnapToSnapParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of ConsumeSharedSnapToSnapParams.

func NewConsumeSharedSnapToSnapParamsWithHTTPClient

func NewConsumeSharedSnapToSnapParamsWithHTTPClient(client *http.Client) *ConsumeSharedSnapToSnapParams

NewConsumeSharedSnapToSnapParamsWithHTTPClient creates a new ConsumeSharedSnapToSnapParams object with the ability to set a custom HTTPClient for a request.

func NewConsumeSharedSnapToSnapParamsWithTimeout

func NewConsumeSharedSnapToSnapParamsWithTimeout(timeout time.Duration) *ConsumeSharedSnapToSnapParams

NewConsumeSharedSnapToSnapParamsWithTimeout creates a new ConsumeSharedSnapToSnapParams object with the ability to set a timeout on a request.

func (*ConsumeSharedSnapToSnapParams) SetContext deprecated

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

SetContext adds the context to the consume shared snap to snap params.

Deprecated: use the operation call with context to pass the context instead of ConsumeSharedSnapToSnapParams.

func (*ConsumeSharedSnapToSnapParams) SetDefaults

func (o *ConsumeSharedSnapToSnapParams) SetDefaults()

SetDefaults hydrates default values in the consume shared snap to snap params (not the query body).

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

func (*ConsumeSharedSnapToSnapParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the consume shared snap to snap params.

func (*ConsumeSharedSnapToSnapParams) SetName

func (o *ConsumeSharedSnapToSnapParams) SetName(name string)

SetName adds the name to the consume shared snap to snap params.

func (*ConsumeSharedSnapToSnapParams) SetProjectCid

func (o *ConsumeSharedSnapToSnapParams) SetProjectCid(projectCid string)

SetProjectCid adds the projectCid to the consume shared snap to snap params.

func (*ConsumeSharedSnapToSnapParams) SetRequest

SetRequest adds the request to the consume shared snap to snap params.

func (*ConsumeSharedSnapToSnapParams) SetTimeout

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

SetTimeout adds the timeout to the consume shared snap to snap params.

func (*ConsumeSharedSnapToSnapParams) WithContext deprecated

WithContext adds the context to the consume shared snap to snap params.

Deprecated: use the operation call with context to pass the context instead of ConsumeSharedSnapToSnapParams.

func (*ConsumeSharedSnapToSnapParams) WithDefaults

WithDefaults hydrates default values in the consume shared snap to snap params (not the query body).

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

func (*ConsumeSharedSnapToSnapParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the consume shared snap to snap params.

func (*ConsumeSharedSnapToSnapParams) WithName

WithName adds the name to the consume shared snap to snap params.

func (*ConsumeSharedSnapToSnapParams) WithProjectCid

WithProjectCid adds the projectCid to the consume shared snap to snap params.

func (*ConsumeSharedSnapToSnapParams) WithRequest

WithRequest adds the request to the consume shared snap to snap params.

func (*ConsumeSharedSnapToSnapParams) WithTimeout

WithTimeout adds the timeout to the consume shared snap to snap params.

func (*ConsumeSharedSnapToSnapParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type ConsumeSharedSnapToSnapReader

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

ConsumeSharedSnapToSnapReader is a Reader for the ConsumeSharedSnapToSnap structure.

func (*ConsumeSharedSnapToSnapReader) ReadResponse

func (o *ConsumeSharedSnapToSnapReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type ConsumeSharedSnapToSnapUnauthorized

type ConsumeSharedSnapToSnapUnauthorized struct {
	Payload *models.Error
}

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

Missing or invalid credentials.

func NewConsumeSharedSnapToSnapUnauthorized

func NewConsumeSharedSnapToSnapUnauthorized() *ConsumeSharedSnapToSnapUnauthorized

NewConsumeSharedSnapToSnapUnauthorized creates a ConsumeSharedSnapToSnapUnauthorized with default headers values

func (*ConsumeSharedSnapToSnapUnauthorized) Code

Code gets the status code for the consume shared snap to snap unauthorized response

func (*ConsumeSharedSnapToSnapUnauthorized) Error

func (*ConsumeSharedSnapToSnapUnauthorized) GetPayload

func (*ConsumeSharedSnapToSnapUnauthorized) IsClientError

func (o *ConsumeSharedSnapToSnapUnauthorized) IsClientError() bool

IsClientError returns true when this consume shared snap to snap unauthorized response has a 4xx status code

func (*ConsumeSharedSnapToSnapUnauthorized) IsCode

IsCode returns true when this consume shared snap to snap unauthorized response a status code equal to that given

func (*ConsumeSharedSnapToSnapUnauthorized) IsRedirect

func (o *ConsumeSharedSnapToSnapUnauthorized) IsRedirect() bool

IsRedirect returns true when this consume shared snap to snap unauthorized response has a 3xx status code

func (*ConsumeSharedSnapToSnapUnauthorized) IsServerError

func (o *ConsumeSharedSnapToSnapUnauthorized) IsServerError() bool

IsServerError returns true when this consume shared snap to snap unauthorized response has a 5xx status code

func (*ConsumeSharedSnapToSnapUnauthorized) IsSuccess

IsSuccess returns true when this consume shared snap to snap unauthorized response has a 2xx status code

func (*ConsumeSharedSnapToSnapUnauthorized) String

type DeleteSharedSnapBadRequest

type DeleteSharedSnapBadRequest struct {
	Payload *models.Error
}

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

The request was invalid or could not be processed.

func NewDeleteSharedSnapBadRequest

func NewDeleteSharedSnapBadRequest() *DeleteSharedSnapBadRequest

NewDeleteSharedSnapBadRequest creates a DeleteSharedSnapBadRequest with default headers values

func (*DeleteSharedSnapBadRequest) Code

func (o *DeleteSharedSnapBadRequest) Code() int

Code gets the status code for the delete shared snap bad request response

func (*DeleteSharedSnapBadRequest) Error

func (*DeleteSharedSnapBadRequest) GetPayload

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

func (*DeleteSharedSnapBadRequest) IsClientError

func (o *DeleteSharedSnapBadRequest) IsClientError() bool

IsClientError returns true when this delete shared snap bad request response has a 4xx status code

func (*DeleteSharedSnapBadRequest) IsCode

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

IsCode returns true when this delete shared snap bad request response a status code equal to that given

func (*DeleteSharedSnapBadRequest) IsRedirect

func (o *DeleteSharedSnapBadRequest) IsRedirect() bool

IsRedirect returns true when this delete shared snap bad request response has a 3xx status code

func (*DeleteSharedSnapBadRequest) IsServerError

func (o *DeleteSharedSnapBadRequest) IsServerError() bool

IsServerError returns true when this delete shared snap bad request response has a 5xx status code

func (*DeleteSharedSnapBadRequest) IsSuccess

func (o *DeleteSharedSnapBadRequest) IsSuccess() bool

IsSuccess returns true when this delete shared snap bad request response has a 2xx status code

func (*DeleteSharedSnapBadRequest) String

func (o *DeleteSharedSnapBadRequest) String() string

type DeleteSharedSnapOK

type DeleteSharedSnapOK struct {
	Payload *models.APIStatusResult
}

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

Deleted.

func NewDeleteSharedSnapOK

func NewDeleteSharedSnapOK() *DeleteSharedSnapOK

NewDeleteSharedSnapOK creates a DeleteSharedSnapOK with default headers values

func (*DeleteSharedSnapOK) Code

func (o *DeleteSharedSnapOK) Code() int

Code gets the status code for the delete shared snap o k response

func (*DeleteSharedSnapOK) Error

func (o *DeleteSharedSnapOK) Error() string

func (*DeleteSharedSnapOK) GetPayload

func (o *DeleteSharedSnapOK) GetPayload() *models.APIStatusResult

func (*DeleteSharedSnapOK) IsClientError

func (o *DeleteSharedSnapOK) IsClientError() bool

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

func (*DeleteSharedSnapOK) IsCode

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

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

func (*DeleteSharedSnapOK) IsRedirect

func (o *DeleteSharedSnapOK) IsRedirect() bool

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

func (*DeleteSharedSnapOK) IsServerError

func (o *DeleteSharedSnapOK) IsServerError() bool

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

func (*DeleteSharedSnapOK) IsSuccess

func (o *DeleteSharedSnapOK) IsSuccess() bool

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

func (*DeleteSharedSnapOK) String

func (o *DeleteSharedSnapOK) String() string

type DeleteSharedSnapParams

type DeleteSharedSnapParams struct {

	/* Name.

	   Shared snap name.
	*/
	Name string

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

DeleteSharedSnapParams contains all the parameters to send to the API endpoint

for the delete shared snap operation.

Typically these are written to a http.Request.

func NewDeleteSharedSnapParams

func NewDeleteSharedSnapParams() *DeleteSharedSnapParams

NewDeleteSharedSnapParams creates a new DeleteSharedSnapParams 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 NewDeleteSharedSnapParamsWithContext deprecated

func NewDeleteSharedSnapParamsWithContext(ctx context.Context) *DeleteSharedSnapParams

NewDeleteSharedSnapParamsWithContext creates a new DeleteSharedSnapParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of DeleteSharedSnapParams.

func NewDeleteSharedSnapParamsWithHTTPClient

func NewDeleteSharedSnapParamsWithHTTPClient(client *http.Client) *DeleteSharedSnapParams

NewDeleteSharedSnapParamsWithHTTPClient creates a new DeleteSharedSnapParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteSharedSnapParamsWithTimeout

func NewDeleteSharedSnapParamsWithTimeout(timeout time.Duration) *DeleteSharedSnapParams

NewDeleteSharedSnapParamsWithTimeout creates a new DeleteSharedSnapParams object with the ability to set a timeout on a request.

func (*DeleteSharedSnapParams) SetContext deprecated

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

SetContext adds the context to the delete shared snap params.

Deprecated: use the operation call with context to pass the context instead of DeleteSharedSnapParams.

func (*DeleteSharedSnapParams) SetDefaults

func (o *DeleteSharedSnapParams) SetDefaults()

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

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

func (*DeleteSharedSnapParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete shared snap params.

func (*DeleteSharedSnapParams) SetName

func (o *DeleteSharedSnapParams) SetName(name string)

SetName adds the name to the delete shared snap params.

func (*DeleteSharedSnapParams) SetTimeout

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

SetTimeout adds the timeout to the delete shared snap params.

func (*DeleteSharedSnapParams) WithContext deprecated

WithContext adds the context to the delete shared snap params.

Deprecated: use the operation call with context to pass the context instead of DeleteSharedSnapParams.

func (*DeleteSharedSnapParams) WithDefaults

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

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

func (*DeleteSharedSnapParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete shared snap params.

func (*DeleteSharedSnapParams) WithName

WithName adds the name to the delete shared snap params.

func (*DeleteSharedSnapParams) WithTimeout

WithTimeout adds the timeout to the delete shared snap params.

func (*DeleteSharedSnapParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type DeleteSharedSnapReader

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

DeleteSharedSnapReader is a Reader for the DeleteSharedSnap structure.

func (*DeleteSharedSnapReader) ReadResponse

func (o *DeleteSharedSnapReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type DeleteSharedSnapUnauthorized

type DeleteSharedSnapUnauthorized struct {
	Payload *models.Error
}

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

Missing or invalid credentials.

func NewDeleteSharedSnapUnauthorized

func NewDeleteSharedSnapUnauthorized() *DeleteSharedSnapUnauthorized

NewDeleteSharedSnapUnauthorized creates a DeleteSharedSnapUnauthorized with default headers values

func (*DeleteSharedSnapUnauthorized) Code

Code gets the status code for the delete shared snap unauthorized response

func (*DeleteSharedSnapUnauthorized) Error

func (*DeleteSharedSnapUnauthorized) GetPayload

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

func (*DeleteSharedSnapUnauthorized) IsClientError

func (o *DeleteSharedSnapUnauthorized) IsClientError() bool

IsClientError returns true when this delete shared snap unauthorized response has a 4xx status code

func (*DeleteSharedSnapUnauthorized) IsCode

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

IsCode returns true when this delete shared snap unauthorized response a status code equal to that given

func (*DeleteSharedSnapUnauthorized) IsRedirect

func (o *DeleteSharedSnapUnauthorized) IsRedirect() bool

IsRedirect returns true when this delete shared snap unauthorized response has a 3xx status code

func (*DeleteSharedSnapUnauthorized) IsServerError

func (o *DeleteSharedSnapUnauthorized) IsServerError() bool

IsServerError returns true when this delete shared snap unauthorized response has a 5xx status code

func (*DeleteSharedSnapUnauthorized) IsSuccess

func (o *DeleteSharedSnapUnauthorized) IsSuccess() bool

IsSuccess returns true when this delete shared snap unauthorized response has a 2xx status code

func (*DeleteSharedSnapUnauthorized) String

type DeleteSharedSnapVersionBadRequest

type DeleteSharedSnapVersionBadRequest struct {
	Payload *models.Error
}

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

The request was invalid or could not be processed.

func NewDeleteSharedSnapVersionBadRequest

func NewDeleteSharedSnapVersionBadRequest() *DeleteSharedSnapVersionBadRequest

NewDeleteSharedSnapVersionBadRequest creates a DeleteSharedSnapVersionBadRequest with default headers values

func (*DeleteSharedSnapVersionBadRequest) Code

Code gets the status code for the delete shared snap version bad request response

func (*DeleteSharedSnapVersionBadRequest) Error

func (*DeleteSharedSnapVersionBadRequest) GetPayload

func (*DeleteSharedSnapVersionBadRequest) IsClientError

func (o *DeleteSharedSnapVersionBadRequest) IsClientError() bool

IsClientError returns true when this delete shared snap version bad request response has a 4xx status code

func (*DeleteSharedSnapVersionBadRequest) IsCode

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

IsCode returns true when this delete shared snap version bad request response a status code equal to that given

func (*DeleteSharedSnapVersionBadRequest) IsRedirect

func (o *DeleteSharedSnapVersionBadRequest) IsRedirect() bool

IsRedirect returns true when this delete shared snap version bad request response has a 3xx status code

func (*DeleteSharedSnapVersionBadRequest) IsServerError

func (o *DeleteSharedSnapVersionBadRequest) IsServerError() bool

IsServerError returns true when this delete shared snap version bad request response has a 5xx status code

func (*DeleteSharedSnapVersionBadRequest) IsSuccess

func (o *DeleteSharedSnapVersionBadRequest) IsSuccess() bool

IsSuccess returns true when this delete shared snap version bad request response has a 2xx status code

func (*DeleteSharedSnapVersionBadRequest) String

type DeleteSharedSnapVersionOK

type DeleteSharedSnapVersionOK struct {
	Payload *models.APIStatusResult
}

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

Deleted.

func NewDeleteSharedSnapVersionOK

func NewDeleteSharedSnapVersionOK() *DeleteSharedSnapVersionOK

NewDeleteSharedSnapVersionOK creates a DeleteSharedSnapVersionOK with default headers values

func (*DeleteSharedSnapVersionOK) Code

func (o *DeleteSharedSnapVersionOK) Code() int

Code gets the status code for the delete shared snap version o k response

func (*DeleteSharedSnapVersionOK) Error

func (o *DeleteSharedSnapVersionOK) Error() string

func (*DeleteSharedSnapVersionOK) GetPayload

func (*DeleteSharedSnapVersionOK) IsClientError

func (o *DeleteSharedSnapVersionOK) IsClientError() bool

IsClientError returns true when this delete shared snap version o k response has a 4xx status code

func (*DeleteSharedSnapVersionOK) IsCode

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

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

func (*DeleteSharedSnapVersionOK) IsRedirect

func (o *DeleteSharedSnapVersionOK) IsRedirect() bool

IsRedirect returns true when this delete shared snap version o k response has a 3xx status code

func (*DeleteSharedSnapVersionOK) IsServerError

func (o *DeleteSharedSnapVersionOK) IsServerError() bool

IsServerError returns true when this delete shared snap version o k response has a 5xx status code

func (*DeleteSharedSnapVersionOK) IsSuccess

func (o *DeleteSharedSnapVersionOK) IsSuccess() bool

IsSuccess returns true when this delete shared snap version o k response has a 2xx status code

func (*DeleteSharedSnapVersionOK) String

func (o *DeleteSharedSnapVersionOK) String() string

type DeleteSharedSnapVersionParams

type DeleteSharedSnapVersionParams struct {

	/* Name.

	   Shared snap name.
	*/
	Name string

	/* Version.

	   version
	*/
	Version int64

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

DeleteSharedSnapVersionParams contains all the parameters to send to the API endpoint

for the delete shared snap version operation.

Typically these are written to a http.Request.

func NewDeleteSharedSnapVersionParams

func NewDeleteSharedSnapVersionParams() *DeleteSharedSnapVersionParams

NewDeleteSharedSnapVersionParams creates a new DeleteSharedSnapVersionParams 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 NewDeleteSharedSnapVersionParamsWithContext deprecated

func NewDeleteSharedSnapVersionParamsWithContext(ctx context.Context) *DeleteSharedSnapVersionParams

NewDeleteSharedSnapVersionParamsWithContext creates a new DeleteSharedSnapVersionParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of DeleteSharedSnapVersionParams.

func NewDeleteSharedSnapVersionParamsWithHTTPClient

func NewDeleteSharedSnapVersionParamsWithHTTPClient(client *http.Client) *DeleteSharedSnapVersionParams

NewDeleteSharedSnapVersionParamsWithHTTPClient creates a new DeleteSharedSnapVersionParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteSharedSnapVersionParamsWithTimeout

func NewDeleteSharedSnapVersionParamsWithTimeout(timeout time.Duration) *DeleteSharedSnapVersionParams

NewDeleteSharedSnapVersionParamsWithTimeout creates a new DeleteSharedSnapVersionParams object with the ability to set a timeout on a request.

func (*DeleteSharedSnapVersionParams) SetContext deprecated

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

SetContext adds the context to the delete shared snap version params.

Deprecated: use the operation call with context to pass the context instead of DeleteSharedSnapVersionParams.

func (*DeleteSharedSnapVersionParams) SetDefaults

func (o *DeleteSharedSnapVersionParams) SetDefaults()

SetDefaults hydrates default values in the delete shared snap version params (not the query body).

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

func (*DeleteSharedSnapVersionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete shared snap version params.

func (*DeleteSharedSnapVersionParams) SetName

func (o *DeleteSharedSnapVersionParams) SetName(name string)

SetName adds the name to the delete shared snap version params.

func (*DeleteSharedSnapVersionParams) SetTimeout

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

SetTimeout adds the timeout to the delete shared snap version params.

func (*DeleteSharedSnapVersionParams) SetVersion

func (o *DeleteSharedSnapVersionParams) SetVersion(version int64)

SetVersion adds the version to the delete shared snap version params.

func (*DeleteSharedSnapVersionParams) WithContext deprecated

WithContext adds the context to the delete shared snap version params.

Deprecated: use the operation call with context to pass the context instead of DeleteSharedSnapVersionParams.

func (*DeleteSharedSnapVersionParams) WithDefaults

WithDefaults hydrates default values in the delete shared snap version params (not the query body).

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

func (*DeleteSharedSnapVersionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete shared snap version params.

func (*DeleteSharedSnapVersionParams) WithName

WithName adds the name to the delete shared snap version params.

func (*DeleteSharedSnapVersionParams) WithTimeout

WithTimeout adds the timeout to the delete shared snap version params.

func (*DeleteSharedSnapVersionParams) WithVersion

WithVersion adds the version to the delete shared snap version params.

func (*DeleteSharedSnapVersionParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type DeleteSharedSnapVersionReader

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

DeleteSharedSnapVersionReader is a Reader for the DeleteSharedSnapVersion structure.

func (*DeleteSharedSnapVersionReader) ReadResponse

func (o *DeleteSharedSnapVersionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type DeleteSharedSnapVersionUnauthorized

type DeleteSharedSnapVersionUnauthorized struct {
	Payload *models.Error
}

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

Missing or invalid credentials.

func NewDeleteSharedSnapVersionUnauthorized

func NewDeleteSharedSnapVersionUnauthorized() *DeleteSharedSnapVersionUnauthorized

NewDeleteSharedSnapVersionUnauthorized creates a DeleteSharedSnapVersionUnauthorized with default headers values

func (*DeleteSharedSnapVersionUnauthorized) Code

Code gets the status code for the delete shared snap version unauthorized response

func (*DeleteSharedSnapVersionUnauthorized) Error

func (*DeleteSharedSnapVersionUnauthorized) GetPayload

func (*DeleteSharedSnapVersionUnauthorized) IsClientError

func (o *DeleteSharedSnapVersionUnauthorized) IsClientError() bool

IsClientError returns true when this delete shared snap version unauthorized response has a 4xx status code

func (*DeleteSharedSnapVersionUnauthorized) IsCode

IsCode returns true when this delete shared snap version unauthorized response a status code equal to that given

func (*DeleteSharedSnapVersionUnauthorized) IsRedirect

func (o *DeleteSharedSnapVersionUnauthorized) IsRedirect() bool

IsRedirect returns true when this delete shared snap version unauthorized response has a 3xx status code

func (*DeleteSharedSnapVersionUnauthorized) IsServerError

func (o *DeleteSharedSnapVersionUnauthorized) IsServerError() bool

IsServerError returns true when this delete shared snap version unauthorized response has a 5xx status code

func (*DeleteSharedSnapVersionUnauthorized) IsSuccess

IsSuccess returns true when this delete shared snap version unauthorized response has a 2xx status code

func (*DeleteSharedSnapVersionUnauthorized) String

type GetSharedSnapBadRequest

type GetSharedSnapBadRequest struct {
	Payload *models.Error
}

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

The request was invalid or could not be processed.

func NewGetSharedSnapBadRequest

func NewGetSharedSnapBadRequest() *GetSharedSnapBadRequest

NewGetSharedSnapBadRequest creates a GetSharedSnapBadRequest with default headers values

func (*GetSharedSnapBadRequest) Code

func (o *GetSharedSnapBadRequest) Code() int

Code gets the status code for the get shared snap bad request response

func (*GetSharedSnapBadRequest) Error

func (o *GetSharedSnapBadRequest) Error() string

func (*GetSharedSnapBadRequest) GetPayload

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

func (*GetSharedSnapBadRequest) IsClientError

func (o *GetSharedSnapBadRequest) IsClientError() bool

IsClientError returns true when this get shared snap bad request response has a 4xx status code

func (*GetSharedSnapBadRequest) IsCode

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

IsCode returns true when this get shared snap bad request response a status code equal to that given

func (*GetSharedSnapBadRequest) IsRedirect

func (o *GetSharedSnapBadRequest) IsRedirect() bool

IsRedirect returns true when this get shared snap bad request response has a 3xx status code

func (*GetSharedSnapBadRequest) IsServerError

func (o *GetSharedSnapBadRequest) IsServerError() bool

IsServerError returns true when this get shared snap bad request response has a 5xx status code

func (*GetSharedSnapBadRequest) IsSuccess

func (o *GetSharedSnapBadRequest) IsSuccess() bool

IsSuccess returns true when this get shared snap bad request response has a 2xx status code

func (*GetSharedSnapBadRequest) String

func (o *GetSharedSnapBadRequest) String() string

type GetSharedSnapOK

type GetSharedSnapOK struct {
	Payload *models.APISharedSnapDetailView
}

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

The shared snap detail.

func NewGetSharedSnapOK

func NewGetSharedSnapOK() *GetSharedSnapOK

NewGetSharedSnapOK creates a GetSharedSnapOK with default headers values

func (*GetSharedSnapOK) Code

func (o *GetSharedSnapOK) Code() int

Code gets the status code for the get shared snap o k response

func (*GetSharedSnapOK) Error

func (o *GetSharedSnapOK) Error() string

func (*GetSharedSnapOK) GetPayload

func (*GetSharedSnapOK) IsClientError

func (o *GetSharedSnapOK) IsClientError() bool

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

func (*GetSharedSnapOK) IsCode

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

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

func (*GetSharedSnapOK) IsRedirect

func (o *GetSharedSnapOK) IsRedirect() bool

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

func (*GetSharedSnapOK) IsServerError

func (o *GetSharedSnapOK) IsServerError() bool

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

func (*GetSharedSnapOK) IsSuccess

func (o *GetSharedSnapOK) IsSuccess() bool

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

func (*GetSharedSnapOK) String

func (o *GetSharedSnapOK) String() string

type GetSharedSnapParams

type GetSharedSnapParams struct {

	/* Name.

	   Shared snap name.
	*/
	Name string

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

GetSharedSnapParams contains all the parameters to send to the API endpoint

for the get shared snap operation.

Typically these are written to a http.Request.

func NewGetSharedSnapParams

func NewGetSharedSnapParams() *GetSharedSnapParams

NewGetSharedSnapParams creates a new GetSharedSnapParams 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 NewGetSharedSnapParamsWithContext deprecated

func NewGetSharedSnapParamsWithContext(ctx context.Context) *GetSharedSnapParams

NewGetSharedSnapParamsWithContext creates a new GetSharedSnapParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of GetSharedSnapParams.

func NewGetSharedSnapParamsWithHTTPClient

func NewGetSharedSnapParamsWithHTTPClient(client *http.Client) *GetSharedSnapParams

NewGetSharedSnapParamsWithHTTPClient creates a new GetSharedSnapParams object with the ability to set a custom HTTPClient for a request.

func NewGetSharedSnapParamsWithTimeout

func NewGetSharedSnapParamsWithTimeout(timeout time.Duration) *GetSharedSnapParams

NewGetSharedSnapParamsWithTimeout creates a new GetSharedSnapParams object with the ability to set a timeout on a request.

func (*GetSharedSnapParams) SetContext deprecated

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

SetContext adds the context to the get shared snap params.

Deprecated: use the operation call with context to pass the context instead of GetSharedSnapParams.

func (*GetSharedSnapParams) SetDefaults

func (o *GetSharedSnapParams) SetDefaults()

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

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

func (*GetSharedSnapParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get shared snap params.

func (*GetSharedSnapParams) SetName

func (o *GetSharedSnapParams) SetName(name string)

SetName adds the name to the get shared snap params.

func (*GetSharedSnapParams) SetTimeout

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

SetTimeout adds the timeout to the get shared snap params.

func (*GetSharedSnapParams) WithContext deprecated

WithContext adds the context to the get shared snap params.

Deprecated: use the operation call with context to pass the context instead of GetSharedSnapParams.

func (*GetSharedSnapParams) WithDefaults

func (o *GetSharedSnapParams) WithDefaults() *GetSharedSnapParams

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

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

func (*GetSharedSnapParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get shared snap params.

func (*GetSharedSnapParams) WithName

func (o *GetSharedSnapParams) WithName(name string) *GetSharedSnapParams

WithName adds the name to the get shared snap params.

func (*GetSharedSnapParams) WithTimeout

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

WithTimeout adds the timeout to the get shared snap params.

func (*GetSharedSnapParams) WriteToRequest

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

WriteToRequest writes these params to a runtime.ClientRequest.

type GetSharedSnapReader

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

GetSharedSnapReader is a Reader for the GetSharedSnap structure.

func (*GetSharedSnapReader) ReadResponse

func (o *GetSharedSnapReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type GetSharedSnapUnauthorized

type GetSharedSnapUnauthorized struct {
	Payload *models.Error
}

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

Missing or invalid credentials.

func NewGetSharedSnapUnauthorized

func NewGetSharedSnapUnauthorized() *GetSharedSnapUnauthorized

NewGetSharedSnapUnauthorized creates a GetSharedSnapUnauthorized with default headers values

func (*GetSharedSnapUnauthorized) Code

func (o *GetSharedSnapUnauthorized) Code() int

Code gets the status code for the get shared snap unauthorized response

func (*GetSharedSnapUnauthorized) Error

func (o *GetSharedSnapUnauthorized) Error() string

func (*GetSharedSnapUnauthorized) GetPayload

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

func (*GetSharedSnapUnauthorized) IsClientError

func (o *GetSharedSnapUnauthorized) IsClientError() bool

IsClientError returns true when this get shared snap unauthorized response has a 4xx status code

func (*GetSharedSnapUnauthorized) IsCode

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

IsCode returns true when this get shared snap unauthorized response a status code equal to that given

func (*GetSharedSnapUnauthorized) IsRedirect

func (o *GetSharedSnapUnauthorized) IsRedirect() bool

IsRedirect returns true when this get shared snap unauthorized response has a 3xx status code

func (*GetSharedSnapUnauthorized) IsServerError

func (o *GetSharedSnapUnauthorized) IsServerError() bool

IsServerError returns true when this get shared snap unauthorized response has a 5xx status code

func (*GetSharedSnapUnauthorized) IsSuccess

func (o *GetSharedSnapUnauthorized) IsSuccess() bool

IsSuccess returns true when this get shared snap unauthorized response has a 2xx status code

func (*GetSharedSnapUnauthorized) String

func (o *GetSharedSnapUnauthorized) String() string

type ListSharedSnapsOK

type ListSharedSnapsOK struct {
	Payload []*models.APISharedSnapLineView
}

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

Shared snaps.

func NewListSharedSnapsOK

func NewListSharedSnapsOK() *ListSharedSnapsOK

NewListSharedSnapsOK creates a ListSharedSnapsOK with default headers values

func (*ListSharedSnapsOK) Code

func (o *ListSharedSnapsOK) Code() int

Code gets the status code for the list shared snaps o k response

func (*ListSharedSnapsOK) Error

func (o *ListSharedSnapsOK) Error() string

func (*ListSharedSnapsOK) GetPayload

func (o *ListSharedSnapsOK) GetPayload() []*models.APISharedSnapLineView

func (*ListSharedSnapsOK) IsClientError

func (o *ListSharedSnapsOK) IsClientError() bool

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

func (*ListSharedSnapsOK) IsCode

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

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

func (*ListSharedSnapsOK) IsRedirect

func (o *ListSharedSnapsOK) IsRedirect() bool

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

func (*ListSharedSnapsOK) IsServerError

func (o *ListSharedSnapsOK) IsServerError() bool

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

func (*ListSharedSnapsOK) IsSuccess

func (o *ListSharedSnapsOK) IsSuccess() bool

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

func (*ListSharedSnapsOK) String

func (o *ListSharedSnapsOK) String() string

type ListSharedSnapsParams

type ListSharedSnapsParams struct {
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListSharedSnapsParams contains all the parameters to send to the API endpoint

for the list shared snaps operation.

Typically these are written to a http.Request.

func NewListSharedSnapsParams

func NewListSharedSnapsParams() *ListSharedSnapsParams

NewListSharedSnapsParams creates a new ListSharedSnapsParams 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 NewListSharedSnapsParamsWithContext deprecated

func NewListSharedSnapsParamsWithContext(ctx context.Context) *ListSharedSnapsParams

NewListSharedSnapsParamsWithContext creates a new ListSharedSnapsParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of ListSharedSnapsParams.

func NewListSharedSnapsParamsWithHTTPClient

func NewListSharedSnapsParamsWithHTTPClient(client *http.Client) *ListSharedSnapsParams

NewListSharedSnapsParamsWithHTTPClient creates a new ListSharedSnapsParams object with the ability to set a custom HTTPClient for a request.

func NewListSharedSnapsParamsWithTimeout

func NewListSharedSnapsParamsWithTimeout(timeout time.Duration) *ListSharedSnapsParams

NewListSharedSnapsParamsWithTimeout creates a new ListSharedSnapsParams object with the ability to set a timeout on a request.

func (*ListSharedSnapsParams) SetContext deprecated

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

SetContext adds the context to the list shared snaps params.

Deprecated: use the operation call with context to pass the context instead of ListSharedSnapsParams.

func (*ListSharedSnapsParams) SetDefaults

func (o *ListSharedSnapsParams) SetDefaults()

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

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

func (*ListSharedSnapsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list shared snaps params.

func (*ListSharedSnapsParams) SetTimeout

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

SetTimeout adds the timeout to the list shared snaps params.

func (*ListSharedSnapsParams) WithContext deprecated

WithContext adds the context to the list shared snaps params.

Deprecated: use the operation call with context to pass the context instead of ListSharedSnapsParams.

func (*ListSharedSnapsParams) WithDefaults

func (o *ListSharedSnapsParams) WithDefaults() *ListSharedSnapsParams

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

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

func (*ListSharedSnapsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list shared snaps params.

func (*ListSharedSnapsParams) WithTimeout

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

WithTimeout adds the timeout to the list shared snaps params.

func (*ListSharedSnapsParams) WriteToRequest

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

WriteToRequest writes these params to a runtime.ClientRequest.

type ListSharedSnapsReader

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

ListSharedSnapsReader is a Reader for the ListSharedSnaps structure.

func (*ListSharedSnapsReader) ReadResponse

func (o *ListSharedSnapsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type ListSharedSnapsUnauthorized

type ListSharedSnapsUnauthorized struct {
	Payload *models.Error
}

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

Missing or invalid credentials.

func NewListSharedSnapsUnauthorized

func NewListSharedSnapsUnauthorized() *ListSharedSnapsUnauthorized

NewListSharedSnapsUnauthorized creates a ListSharedSnapsUnauthorized with default headers values

func (*ListSharedSnapsUnauthorized) Code

func (o *ListSharedSnapsUnauthorized) Code() int

Code gets the status code for the list shared snaps unauthorized response

func (*ListSharedSnapsUnauthorized) Error

func (*ListSharedSnapsUnauthorized) GetPayload

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

func (*ListSharedSnapsUnauthorized) IsClientError

func (o *ListSharedSnapsUnauthorized) IsClientError() bool

IsClientError returns true when this list shared snaps unauthorized response has a 4xx status code

func (*ListSharedSnapsUnauthorized) IsCode

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

IsCode returns true when this list shared snaps unauthorized response a status code equal to that given

func (*ListSharedSnapsUnauthorized) IsRedirect

func (o *ListSharedSnapsUnauthorized) IsRedirect() bool

IsRedirect returns true when this list shared snaps unauthorized response has a 3xx status code

func (*ListSharedSnapsUnauthorized) IsServerError

func (o *ListSharedSnapsUnauthorized) IsServerError() bool

IsServerError returns true when this list shared snaps unauthorized response has a 5xx status code

func (*ListSharedSnapsUnauthorized) IsSuccess

func (o *ListSharedSnapsUnauthorized) IsSuccess() bool

IsSuccess returns true when this list shared snaps unauthorized response has a 2xx status code

func (*ListSharedSnapsUnauthorized) String

func (o *ListSharedSnapsUnauthorized) String() string

type PublishSharedSnapBadRequest

type PublishSharedSnapBadRequest struct {
	Payload *models.Error
}

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

The request was invalid or could not be processed.

func NewPublishSharedSnapBadRequest

func NewPublishSharedSnapBadRequest() *PublishSharedSnapBadRequest

NewPublishSharedSnapBadRequest creates a PublishSharedSnapBadRequest with default headers values

func (*PublishSharedSnapBadRequest) Code

func (o *PublishSharedSnapBadRequest) Code() int

Code gets the status code for the publish shared snap bad request response

func (*PublishSharedSnapBadRequest) Error

func (*PublishSharedSnapBadRequest) GetPayload

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

func (*PublishSharedSnapBadRequest) IsClientError

func (o *PublishSharedSnapBadRequest) IsClientError() bool

IsClientError returns true when this publish shared snap bad request response has a 4xx status code

func (*PublishSharedSnapBadRequest) IsCode

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

IsCode returns true when this publish shared snap bad request response a status code equal to that given

func (*PublishSharedSnapBadRequest) IsRedirect

func (o *PublishSharedSnapBadRequest) IsRedirect() bool

IsRedirect returns true when this publish shared snap bad request response has a 3xx status code

func (*PublishSharedSnapBadRequest) IsServerError

func (o *PublishSharedSnapBadRequest) IsServerError() bool

IsServerError returns true when this publish shared snap bad request response has a 5xx status code

func (*PublishSharedSnapBadRequest) IsSuccess

func (o *PublishSharedSnapBadRequest) IsSuccess() bool

IsSuccess returns true when this publish shared snap bad request response has a 2xx status code

func (*PublishSharedSnapBadRequest) String

func (o *PublishSharedSnapBadRequest) String() string

type PublishSharedSnapCreated

type PublishSharedSnapCreated struct {
	Payload *models.APISharedSnapVersionView
}

PublishSharedSnapCreated describes a response with status code 201, with default header values.

The published shared snap version.

func NewPublishSharedSnapCreated

func NewPublishSharedSnapCreated() *PublishSharedSnapCreated

NewPublishSharedSnapCreated creates a PublishSharedSnapCreated with default headers values

func (*PublishSharedSnapCreated) Code

func (o *PublishSharedSnapCreated) Code() int

Code gets the status code for the publish shared snap created response

func (*PublishSharedSnapCreated) Error

func (o *PublishSharedSnapCreated) Error() string

func (*PublishSharedSnapCreated) GetPayload

func (*PublishSharedSnapCreated) IsClientError

func (o *PublishSharedSnapCreated) IsClientError() bool

IsClientError returns true when this publish shared snap created response has a 4xx status code

func (*PublishSharedSnapCreated) IsCode

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

IsCode returns true when this publish shared snap created response a status code equal to that given

func (*PublishSharedSnapCreated) IsRedirect

func (o *PublishSharedSnapCreated) IsRedirect() bool

IsRedirect returns true when this publish shared snap created response has a 3xx status code

func (*PublishSharedSnapCreated) IsServerError

func (o *PublishSharedSnapCreated) IsServerError() bool

IsServerError returns true when this publish shared snap created response has a 5xx status code

func (*PublishSharedSnapCreated) IsSuccess

func (o *PublishSharedSnapCreated) IsSuccess() bool

IsSuccess returns true when this publish shared snap created response has a 2xx status code

func (*PublishSharedSnapCreated) String

func (o *PublishSharedSnapCreated) String() string

type PublishSharedSnapParams

type PublishSharedSnapParams struct {

	/* Request.

	   Request body
	*/
	Request *models.PublishSharedSnapPayload

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

PublishSharedSnapParams contains all the parameters to send to the API endpoint

for the publish shared snap operation.

Typically these are written to a http.Request.

func NewPublishSharedSnapParams

func NewPublishSharedSnapParams() *PublishSharedSnapParams

NewPublishSharedSnapParams creates a new PublishSharedSnapParams 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 NewPublishSharedSnapParamsWithContext deprecated

func NewPublishSharedSnapParamsWithContext(ctx context.Context) *PublishSharedSnapParams

NewPublishSharedSnapParamsWithContext creates a new PublishSharedSnapParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of PublishSharedSnapParams.

func NewPublishSharedSnapParamsWithHTTPClient

func NewPublishSharedSnapParamsWithHTTPClient(client *http.Client) *PublishSharedSnapParams

NewPublishSharedSnapParamsWithHTTPClient creates a new PublishSharedSnapParams object with the ability to set a custom HTTPClient for a request.

func NewPublishSharedSnapParamsWithTimeout

func NewPublishSharedSnapParamsWithTimeout(timeout time.Duration) *PublishSharedSnapParams

NewPublishSharedSnapParamsWithTimeout creates a new PublishSharedSnapParams object with the ability to set a timeout on a request.

func (*PublishSharedSnapParams) SetContext deprecated

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

SetContext adds the context to the publish shared snap params.

Deprecated: use the operation call with context to pass the context instead of PublishSharedSnapParams.

func (*PublishSharedSnapParams) SetDefaults

func (o *PublishSharedSnapParams) SetDefaults()

SetDefaults hydrates default values in the publish shared snap params (not the query body).

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

func (*PublishSharedSnapParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the publish shared snap params.

func (*PublishSharedSnapParams) SetRequest

SetRequest adds the request to the publish shared snap params.

func (*PublishSharedSnapParams) SetTimeout

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

SetTimeout adds the timeout to the publish shared snap params.

func (*PublishSharedSnapParams) WithContext deprecated

WithContext adds the context to the publish shared snap params.

Deprecated: use the operation call with context to pass the context instead of PublishSharedSnapParams.

func (*PublishSharedSnapParams) WithDefaults

WithDefaults hydrates default values in the publish shared snap params (not the query body).

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

func (*PublishSharedSnapParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the publish shared snap params.

func (*PublishSharedSnapParams) WithRequest

WithRequest adds the request to the publish shared snap params.

func (*PublishSharedSnapParams) WithTimeout

WithTimeout adds the timeout to the publish shared snap params.

func (*PublishSharedSnapParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type PublishSharedSnapReader

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

PublishSharedSnapReader is a Reader for the PublishSharedSnap structure.

func (*PublishSharedSnapReader) ReadResponse

func (o *PublishSharedSnapReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type PublishSharedSnapUnauthorized

type PublishSharedSnapUnauthorized struct {
	Payload *models.Error
}

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

Missing or invalid credentials.

func NewPublishSharedSnapUnauthorized

func NewPublishSharedSnapUnauthorized() *PublishSharedSnapUnauthorized

NewPublishSharedSnapUnauthorized creates a PublishSharedSnapUnauthorized with default headers values

func (*PublishSharedSnapUnauthorized) Code

Code gets the status code for the publish shared snap unauthorized response

func (*PublishSharedSnapUnauthorized) Error

func (*PublishSharedSnapUnauthorized) GetPayload

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

func (*PublishSharedSnapUnauthorized) IsClientError

func (o *PublishSharedSnapUnauthorized) IsClientError() bool

IsClientError returns true when this publish shared snap unauthorized response has a 4xx status code

func (*PublishSharedSnapUnauthorized) IsCode

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

IsCode returns true when this publish shared snap unauthorized response a status code equal to that given

func (*PublishSharedSnapUnauthorized) IsRedirect

func (o *PublishSharedSnapUnauthorized) IsRedirect() bool

IsRedirect returns true when this publish shared snap unauthorized response has a 3xx status code

func (*PublishSharedSnapUnauthorized) IsServerError

func (o *PublishSharedSnapUnauthorized) IsServerError() bool

IsServerError returns true when this publish shared snap unauthorized response has a 5xx status code

func (*PublishSharedSnapUnauthorized) IsSuccess

func (o *PublishSharedSnapUnauthorized) IsSuccess() bool

IsSuccess returns true when this publish shared snap unauthorized response has a 2xx status code

func (*PublishSharedSnapUnauthorized) String

Jump to

Keyboard shortcuts

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