share

package
v0.4.27 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessCreated

type AccessCreated struct {
	Payload *rest_model_zrok.AccessResponse
}

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

access created

func NewAccessCreated

func NewAccessCreated() *AccessCreated

NewAccessCreated creates a AccessCreated with default headers values

func (*AccessCreated) Code added in v0.4.19

func (o *AccessCreated) Code() int

Code gets the status code for the access created response

func (*AccessCreated) Error

func (o *AccessCreated) Error() string

func (*AccessCreated) GetPayload

func (o *AccessCreated) GetPayload() *rest_model_zrok.AccessResponse

func (*AccessCreated) IsClientError

func (o *AccessCreated) IsClientError() bool

IsClientError returns true when this access created response has a 4xx status code

func (*AccessCreated) IsCode

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

IsCode returns true when this access created response a status code equal to that given

func (*AccessCreated) IsRedirect

func (o *AccessCreated) IsRedirect() bool

IsRedirect returns true when this access created response has a 3xx status code

func (*AccessCreated) IsServerError

func (o *AccessCreated) IsServerError() bool

IsServerError returns true when this access created response has a 5xx status code

func (*AccessCreated) IsSuccess

func (o *AccessCreated) IsSuccess() bool

IsSuccess returns true when this access created response has a 2xx status code

func (*AccessCreated) String

func (o *AccessCreated) String() string

type AccessInternalServerError

type AccessInternalServerError struct {
}

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

internal server error

func NewAccessInternalServerError

func NewAccessInternalServerError() *AccessInternalServerError

NewAccessInternalServerError creates a AccessInternalServerError with default headers values

func (*AccessInternalServerError) Code added in v0.4.19

func (o *AccessInternalServerError) Code() int

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

func (*AccessInternalServerError) Error

func (o *AccessInternalServerError) Error() string

func (*AccessInternalServerError) IsClientError

func (o *AccessInternalServerError) IsClientError() bool

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

func (*AccessInternalServerError) IsCode

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

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

func (*AccessInternalServerError) IsRedirect

func (o *AccessInternalServerError) IsRedirect() bool

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

func (*AccessInternalServerError) IsServerError

func (o *AccessInternalServerError) IsServerError() bool

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

func (*AccessInternalServerError) IsSuccess

func (o *AccessInternalServerError) IsSuccess() bool

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

func (*AccessInternalServerError) String

func (o *AccessInternalServerError) String() string

type AccessNotFound

type AccessNotFound struct {
}

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

not found

func NewAccessNotFound

func NewAccessNotFound() *AccessNotFound

NewAccessNotFound creates a AccessNotFound with default headers values

func (*AccessNotFound) Code added in v0.4.19

func (o *AccessNotFound) Code() int

Code gets the status code for the access not found response

func (*AccessNotFound) Error

func (o *AccessNotFound) Error() string

func (*AccessNotFound) IsClientError

func (o *AccessNotFound) IsClientError() bool

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

func (*AccessNotFound) IsCode

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

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

func (*AccessNotFound) IsRedirect

func (o *AccessNotFound) IsRedirect() bool

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

func (*AccessNotFound) IsServerError

func (o *AccessNotFound) IsServerError() bool

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

func (*AccessNotFound) IsSuccess

func (o *AccessNotFound) IsSuccess() bool

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

func (*AccessNotFound) String

func (o *AccessNotFound) String() string

type AccessParams

type AccessParams struct {

	// Body.
	Body *rest_model_zrok.AccessRequest

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

AccessParams contains all the parameters to send to the API endpoint

for the access operation.

Typically these are written to a http.Request.

func NewAccessParams

func NewAccessParams() *AccessParams

NewAccessParams creates a new AccessParams 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 NewAccessParamsWithContext

func NewAccessParamsWithContext(ctx context.Context) *AccessParams

NewAccessParamsWithContext creates a new AccessParams object with the ability to set a context for a request.

func NewAccessParamsWithHTTPClient

func NewAccessParamsWithHTTPClient(client *http.Client) *AccessParams

NewAccessParamsWithHTTPClient creates a new AccessParams object with the ability to set a custom HTTPClient for a request.

func NewAccessParamsWithTimeout

func NewAccessParamsWithTimeout(timeout time.Duration) *AccessParams

NewAccessParamsWithTimeout creates a new AccessParams object with the ability to set a timeout on a request.

func (*AccessParams) SetBody

func (o *AccessParams) SetBody(body *rest_model_zrok.AccessRequest)

SetBody adds the body to the access params

func (*AccessParams) SetContext

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

SetContext adds the context to the access params

func (*AccessParams) SetDefaults

func (o *AccessParams) SetDefaults()

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

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

func (*AccessParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the access params

func (*AccessParams) SetTimeout

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

SetTimeout adds the timeout to the access params

func (*AccessParams) WithBody

WithBody adds the body to the access params

func (*AccessParams) WithContext

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

WithContext adds the context to the access params

func (*AccessParams) WithDefaults

func (o *AccessParams) WithDefaults() *AccessParams

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

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

func (*AccessParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the access params

func (*AccessParams) WithTimeout

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

WithTimeout adds the timeout to the access params

func (*AccessParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AccessReader

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

AccessReader is a Reader for the Access structure.

func (*AccessReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AccessUnauthorized

type AccessUnauthorized struct {
}

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

unauthorized

func NewAccessUnauthorized

func NewAccessUnauthorized() *AccessUnauthorized

NewAccessUnauthorized creates a AccessUnauthorized with default headers values

func (*AccessUnauthorized) Code added in v0.4.19

func (o *AccessUnauthorized) Code() int

Code gets the status code for the access unauthorized response

func (*AccessUnauthorized) Error

func (o *AccessUnauthorized) Error() string

func (*AccessUnauthorized) IsClientError

func (o *AccessUnauthorized) IsClientError() bool

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

func (*AccessUnauthorized) IsCode

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

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

func (*AccessUnauthorized) IsRedirect

func (o *AccessUnauthorized) IsRedirect() bool

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

func (*AccessUnauthorized) IsServerError

func (o *AccessUnauthorized) IsServerError() bool

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

func (*AccessUnauthorized) IsSuccess

func (o *AccessUnauthorized) IsSuccess() bool

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

func (*AccessUnauthorized) String

func (o *AccessUnauthorized) String() string

type Client

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

Client for share API

func (*Client) Access

func (a *Client) Access(params *AccessParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AccessCreated, error)

Access access API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) Share

func (a *Client) Share(params *ShareParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ShareCreated, error)

Share share API

func (*Client) Unaccess

func (a *Client) Unaccess(params *UnaccessParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UnaccessOK, error)

Unaccess unaccess API

func (*Client) Unshare

func (a *Client) Unshare(params *UnshareParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UnshareOK, error)

Unshare unshare API

func (*Client) UpdateShare

func (a *Client) UpdateShare(params *UpdateShareParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateShareOK, error)

UpdateShare update share API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	Access(params *AccessParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AccessCreated, error)

	Share(params *ShareParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ShareCreated, error)

	Unaccess(params *UnaccessParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UnaccessOK, error)

	Unshare(params *UnshareParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UnshareOK, error)

	UpdateShare(params *UpdateShareParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateShareOK, 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 share API client.

type OauthAuthenticateFound added in v0.4.7

type OauthAuthenticateFound struct {

	/* Redirect URL
	 */
	Location string
}

OauthAuthenticateFound describes a response with status code 302, with default header values.

redirect back to share

func NewOauthAuthenticateFound added in v0.4.7

func NewOauthAuthenticateFound() *OauthAuthenticateFound

NewOauthAuthenticateFound creates a OauthAuthenticateFound with default headers values

func (*OauthAuthenticateFound) Error added in v0.4.7

func (o *OauthAuthenticateFound) Error() string

func (*OauthAuthenticateFound) IsClientError added in v0.4.7

func (o *OauthAuthenticateFound) IsClientError() bool

IsClientError returns true when this oauth authenticate found response has a 4xx status code

func (*OauthAuthenticateFound) IsCode added in v0.4.7

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

IsCode returns true when this oauth authenticate found response a status code equal to that given

func (*OauthAuthenticateFound) IsRedirect added in v0.4.7

func (o *OauthAuthenticateFound) IsRedirect() bool

IsRedirect returns true when this oauth authenticate found response has a 3xx status code

func (*OauthAuthenticateFound) IsServerError added in v0.4.7

func (o *OauthAuthenticateFound) IsServerError() bool

IsServerError returns true when this oauth authenticate found response has a 5xx status code

func (*OauthAuthenticateFound) IsSuccess added in v0.4.7

func (o *OauthAuthenticateFound) IsSuccess() bool

IsSuccess returns true when this oauth authenticate found response has a 2xx status code

func (*OauthAuthenticateFound) String added in v0.4.7

func (o *OauthAuthenticateFound) String() string

type OauthAuthenticateInternalServerError added in v0.4.7

type OauthAuthenticateInternalServerError struct {
}

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

internal server error

func NewOauthAuthenticateInternalServerError added in v0.4.7

func NewOauthAuthenticateInternalServerError() *OauthAuthenticateInternalServerError

NewOauthAuthenticateInternalServerError creates a OauthAuthenticateInternalServerError with default headers values

func (*OauthAuthenticateInternalServerError) Error added in v0.4.7

func (*OauthAuthenticateInternalServerError) IsClientError added in v0.4.7

func (o *OauthAuthenticateInternalServerError) IsClientError() bool

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

func (*OauthAuthenticateInternalServerError) IsCode added in v0.4.7

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

func (*OauthAuthenticateInternalServerError) IsRedirect added in v0.4.7

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

func (*OauthAuthenticateInternalServerError) IsServerError added in v0.4.7

func (o *OauthAuthenticateInternalServerError) IsServerError() bool

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

func (*OauthAuthenticateInternalServerError) IsSuccess added in v0.4.7

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

func (*OauthAuthenticateInternalServerError) String added in v0.4.7

type OauthAuthenticateOK added in v0.4.7

type OauthAuthenticateOK struct {
}

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

testing

func NewOauthAuthenticateOK added in v0.4.7

func NewOauthAuthenticateOK() *OauthAuthenticateOK

NewOauthAuthenticateOK creates a OauthAuthenticateOK with default headers values

func (*OauthAuthenticateOK) Error added in v0.4.7

func (o *OauthAuthenticateOK) Error() string

func (*OauthAuthenticateOK) IsClientError added in v0.4.7

func (o *OauthAuthenticateOK) IsClientError() bool

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

func (*OauthAuthenticateOK) IsCode added in v0.4.7

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

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

func (*OauthAuthenticateOK) IsRedirect added in v0.4.7

func (o *OauthAuthenticateOK) IsRedirect() bool

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

func (*OauthAuthenticateOK) IsServerError added in v0.4.7

func (o *OauthAuthenticateOK) IsServerError() bool

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

func (*OauthAuthenticateOK) IsSuccess added in v0.4.7

func (o *OauthAuthenticateOK) IsSuccess() bool

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

func (*OauthAuthenticateOK) String added in v0.4.7

func (o *OauthAuthenticateOK) String() string

type OauthAuthenticateParams added in v0.4.7

type OauthAuthenticateParams struct {

	// Code.
	Code string

	// State.
	State *string

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

OauthAuthenticateParams contains all the parameters to send to the API endpoint

for the oauth authenticate operation.

Typically these are written to a http.Request.

func NewOauthAuthenticateParams added in v0.4.7

func NewOauthAuthenticateParams() *OauthAuthenticateParams

NewOauthAuthenticateParams creates a new OauthAuthenticateParams 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 NewOauthAuthenticateParamsWithContext added in v0.4.7

func NewOauthAuthenticateParamsWithContext(ctx context.Context) *OauthAuthenticateParams

NewOauthAuthenticateParamsWithContext creates a new OauthAuthenticateParams object with the ability to set a context for a request.

func NewOauthAuthenticateParamsWithHTTPClient added in v0.4.7

func NewOauthAuthenticateParamsWithHTTPClient(client *http.Client) *OauthAuthenticateParams

NewOauthAuthenticateParamsWithHTTPClient creates a new OauthAuthenticateParams object with the ability to set a custom HTTPClient for a request.

func NewOauthAuthenticateParamsWithTimeout added in v0.4.7

func NewOauthAuthenticateParamsWithTimeout(timeout time.Duration) *OauthAuthenticateParams

NewOauthAuthenticateParamsWithTimeout creates a new OauthAuthenticateParams object with the ability to set a timeout on a request.

func (*OauthAuthenticateParams) SetCode added in v0.4.7

func (o *OauthAuthenticateParams) SetCode(code string)

SetCode adds the code to the oauth authenticate params

func (*OauthAuthenticateParams) SetContext added in v0.4.7

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

SetContext adds the context to the oauth authenticate params

func (*OauthAuthenticateParams) SetDefaults added in v0.4.7

func (o *OauthAuthenticateParams) SetDefaults()

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

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

func (*OauthAuthenticateParams) SetHTTPClient added in v0.4.7

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

SetHTTPClient adds the HTTPClient to the oauth authenticate params

func (*OauthAuthenticateParams) SetState added in v0.4.7

func (o *OauthAuthenticateParams) SetState(state *string)

SetState adds the state to the oauth authenticate params

func (*OauthAuthenticateParams) SetTimeout added in v0.4.7

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

SetTimeout adds the timeout to the oauth authenticate params

func (*OauthAuthenticateParams) WithCode added in v0.4.7

WithCode adds the code to the oauth authenticate params

func (*OauthAuthenticateParams) WithContext added in v0.4.7

WithContext adds the context to the oauth authenticate params

func (*OauthAuthenticateParams) WithDefaults added in v0.4.7

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

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

func (*OauthAuthenticateParams) WithHTTPClient added in v0.4.7

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

WithHTTPClient adds the HTTPClient to the oauth authenticate params

func (*OauthAuthenticateParams) WithState added in v0.4.7

WithState adds the state to the oauth authenticate params

func (*OauthAuthenticateParams) WithTimeout added in v0.4.7

WithTimeout adds the timeout to the oauth authenticate params

func (*OauthAuthenticateParams) WriteToRequest added in v0.4.7

WriteToRequest writes these params to a swagger request

type OauthAuthenticateReader added in v0.4.7

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

OauthAuthenticateReader is a Reader for the OauthAuthenticate structure.

func (*OauthAuthenticateReader) ReadResponse added in v0.4.7

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

ReadResponse reads a server response into the received o.

type ShareConflict added in v0.4.25

type ShareConflict struct {
}

ShareConflict describes a response with status code 409, with default header values.

conflict

func NewShareConflict added in v0.4.25

func NewShareConflict() *ShareConflict

NewShareConflict creates a ShareConflict with default headers values

func (*ShareConflict) Code added in v0.4.25

func (o *ShareConflict) Code() int

Code gets the status code for the share conflict response

func (*ShareConflict) Error added in v0.4.25

func (o *ShareConflict) Error() string

func (*ShareConflict) IsClientError added in v0.4.25

func (o *ShareConflict) IsClientError() bool

IsClientError returns true when this share conflict response has a 4xx status code

func (*ShareConflict) IsCode added in v0.4.25

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

IsCode returns true when this share conflict response a status code equal to that given

func (*ShareConflict) IsRedirect added in v0.4.25

func (o *ShareConflict) IsRedirect() bool

IsRedirect returns true when this share conflict response has a 3xx status code

func (*ShareConflict) IsServerError added in v0.4.25

func (o *ShareConflict) IsServerError() bool

IsServerError returns true when this share conflict response has a 5xx status code

func (*ShareConflict) IsSuccess added in v0.4.25

func (o *ShareConflict) IsSuccess() bool

IsSuccess returns true when this share conflict response has a 2xx status code

func (*ShareConflict) String added in v0.4.25

func (o *ShareConflict) String() string

type ShareCreated

type ShareCreated struct {
	Payload *rest_model_zrok.ShareResponse
}

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

share created

func NewShareCreated

func NewShareCreated() *ShareCreated

NewShareCreated creates a ShareCreated with default headers values

func (*ShareCreated) Code added in v0.4.19

func (o *ShareCreated) Code() int

Code gets the status code for the share created response

func (*ShareCreated) Error

func (o *ShareCreated) Error() string

func (*ShareCreated) GetPayload

func (o *ShareCreated) GetPayload() *rest_model_zrok.ShareResponse

func (*ShareCreated) IsClientError

func (o *ShareCreated) IsClientError() bool

IsClientError returns true when this share created response has a 4xx status code

func (*ShareCreated) IsCode

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

IsCode returns true when this share created response a status code equal to that given

func (*ShareCreated) IsRedirect

func (o *ShareCreated) IsRedirect() bool

IsRedirect returns true when this share created response has a 3xx status code

func (*ShareCreated) IsServerError

func (o *ShareCreated) IsServerError() bool

IsServerError returns true when this share created response has a 5xx status code

func (*ShareCreated) IsSuccess

func (o *ShareCreated) IsSuccess() bool

IsSuccess returns true when this share created response has a 2xx status code

func (*ShareCreated) String

func (o *ShareCreated) String() string

type ShareInternalServerError

type ShareInternalServerError struct {
	Payload rest_model_zrok.ErrorMessage
}

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

internal server error

func NewShareInternalServerError

func NewShareInternalServerError() *ShareInternalServerError

NewShareInternalServerError creates a ShareInternalServerError with default headers values

func (*ShareInternalServerError) Code added in v0.4.19

func (o *ShareInternalServerError) Code() int

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

func (*ShareInternalServerError) Error

func (o *ShareInternalServerError) Error() string

func (*ShareInternalServerError) GetPayload

func (*ShareInternalServerError) IsClientError

func (o *ShareInternalServerError) IsClientError() bool

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

func (*ShareInternalServerError) IsCode

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

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

func (*ShareInternalServerError) IsRedirect

func (o *ShareInternalServerError) IsRedirect() bool

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

func (*ShareInternalServerError) IsServerError

func (o *ShareInternalServerError) IsServerError() bool

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

func (*ShareInternalServerError) IsSuccess

func (o *ShareInternalServerError) IsSuccess() bool

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

func (*ShareInternalServerError) String

func (o *ShareInternalServerError) String() string

type ShareNotFound

type ShareNotFound struct {
}

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

not found

func NewShareNotFound

func NewShareNotFound() *ShareNotFound

NewShareNotFound creates a ShareNotFound with default headers values

func (*ShareNotFound) Code added in v0.4.19

func (o *ShareNotFound) Code() int

Code gets the status code for the share not found response

func (*ShareNotFound) Error

func (o *ShareNotFound) Error() string

func (*ShareNotFound) IsClientError

func (o *ShareNotFound) IsClientError() bool

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

func (*ShareNotFound) IsCode

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

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

func (*ShareNotFound) IsRedirect

func (o *ShareNotFound) IsRedirect() bool

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

func (*ShareNotFound) IsServerError

func (o *ShareNotFound) IsServerError() bool

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

func (*ShareNotFound) IsSuccess

func (o *ShareNotFound) IsSuccess() bool

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

func (*ShareNotFound) String

func (o *ShareNotFound) String() string

type ShareParams

type ShareParams struct {

	// Body.
	Body *rest_model_zrok.ShareRequest

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

ShareParams contains all the parameters to send to the API endpoint

for the share operation.

Typically these are written to a http.Request.

func NewShareParams

func NewShareParams() *ShareParams

NewShareParams creates a new ShareParams 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 NewShareParamsWithContext

func NewShareParamsWithContext(ctx context.Context) *ShareParams

NewShareParamsWithContext creates a new ShareParams object with the ability to set a context for a request.

func NewShareParamsWithHTTPClient

func NewShareParamsWithHTTPClient(client *http.Client) *ShareParams

NewShareParamsWithHTTPClient creates a new ShareParams object with the ability to set a custom HTTPClient for a request.

func NewShareParamsWithTimeout

func NewShareParamsWithTimeout(timeout time.Duration) *ShareParams

NewShareParamsWithTimeout creates a new ShareParams object with the ability to set a timeout on a request.

func (*ShareParams) SetBody

func (o *ShareParams) SetBody(body *rest_model_zrok.ShareRequest)

SetBody adds the body to the share params

func (*ShareParams) SetContext

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

SetContext adds the context to the share params

func (*ShareParams) SetDefaults

func (o *ShareParams) SetDefaults()

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

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

func (*ShareParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the share params

func (*ShareParams) SetTimeout

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

SetTimeout adds the timeout to the share params

func (*ShareParams) WithBody

WithBody adds the body to the share params

func (*ShareParams) WithContext

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

WithContext adds the context to the share params

func (*ShareParams) WithDefaults

func (o *ShareParams) WithDefaults() *ShareParams

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

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

func (*ShareParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the share params

func (*ShareParams) WithTimeout

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

WithTimeout adds the timeout to the share params

func (*ShareParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ShareReader

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

ShareReader is a Reader for the Share structure.

func (*ShareReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ShareUnauthorized

type ShareUnauthorized struct {
}

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

unauthorized

func NewShareUnauthorized

func NewShareUnauthorized() *ShareUnauthorized

NewShareUnauthorized creates a ShareUnauthorized with default headers values

func (*ShareUnauthorized) Code added in v0.4.19

func (o *ShareUnauthorized) Code() int

Code gets the status code for the share unauthorized response

func (*ShareUnauthorized) Error

func (o *ShareUnauthorized) Error() string

func (*ShareUnauthorized) IsClientError

func (o *ShareUnauthorized) IsClientError() bool

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

func (*ShareUnauthorized) IsCode

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

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

func (*ShareUnauthorized) IsRedirect

func (o *ShareUnauthorized) IsRedirect() bool

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

func (*ShareUnauthorized) IsServerError

func (o *ShareUnauthorized) IsServerError() bool

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

func (*ShareUnauthorized) IsSuccess

func (o *ShareUnauthorized) IsSuccess() bool

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

func (*ShareUnauthorized) String

func (o *ShareUnauthorized) String() string

type ShareUnprocessableEntity added in v0.4.7

type ShareUnprocessableEntity struct {
}

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

unprocessable

func NewShareUnprocessableEntity added in v0.4.7

func NewShareUnprocessableEntity() *ShareUnprocessableEntity

NewShareUnprocessableEntity creates a ShareUnprocessableEntity with default headers values

func (*ShareUnprocessableEntity) Code added in v0.4.19

func (o *ShareUnprocessableEntity) Code() int

Code gets the status code for the share unprocessable entity response

func (*ShareUnprocessableEntity) Error added in v0.4.7

func (o *ShareUnprocessableEntity) Error() string

func (*ShareUnprocessableEntity) IsClientError added in v0.4.7

func (o *ShareUnprocessableEntity) IsClientError() bool

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

func (*ShareUnprocessableEntity) IsCode added in v0.4.7

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

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

func (*ShareUnprocessableEntity) IsRedirect added in v0.4.7

func (o *ShareUnprocessableEntity) IsRedirect() bool

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

func (*ShareUnprocessableEntity) IsServerError added in v0.4.7

func (o *ShareUnprocessableEntity) IsServerError() bool

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

func (*ShareUnprocessableEntity) IsSuccess added in v0.4.7

func (o *ShareUnprocessableEntity) IsSuccess() bool

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

func (*ShareUnprocessableEntity) String added in v0.4.7

func (o *ShareUnprocessableEntity) String() string

type UnaccessInternalServerError

type UnaccessInternalServerError struct {
}

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

internal server error

func NewUnaccessInternalServerError

func NewUnaccessInternalServerError() *UnaccessInternalServerError

NewUnaccessInternalServerError creates a UnaccessInternalServerError with default headers values

func (*UnaccessInternalServerError) Code added in v0.4.19

func (o *UnaccessInternalServerError) Code() int

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

func (*UnaccessInternalServerError) Error

func (*UnaccessInternalServerError) IsClientError

func (o *UnaccessInternalServerError) IsClientError() bool

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

func (*UnaccessInternalServerError) IsCode

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

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

func (*UnaccessInternalServerError) IsRedirect

func (o *UnaccessInternalServerError) IsRedirect() bool

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

func (*UnaccessInternalServerError) IsServerError

func (o *UnaccessInternalServerError) IsServerError() bool

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

func (*UnaccessInternalServerError) IsSuccess

func (o *UnaccessInternalServerError) IsSuccess() bool

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

func (*UnaccessInternalServerError) String

func (o *UnaccessInternalServerError) String() string

type UnaccessNotFound

type UnaccessNotFound struct {
}

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

not found

func NewUnaccessNotFound

func NewUnaccessNotFound() *UnaccessNotFound

NewUnaccessNotFound creates a UnaccessNotFound with default headers values

func (*UnaccessNotFound) Code added in v0.4.19

func (o *UnaccessNotFound) Code() int

Code gets the status code for the unaccess not found response

func (*UnaccessNotFound) Error

func (o *UnaccessNotFound) Error() string

func (*UnaccessNotFound) IsClientError

func (o *UnaccessNotFound) IsClientError() bool

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

func (*UnaccessNotFound) IsCode

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

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

func (*UnaccessNotFound) IsRedirect

func (o *UnaccessNotFound) IsRedirect() bool

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

func (*UnaccessNotFound) IsServerError

func (o *UnaccessNotFound) IsServerError() bool

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

func (*UnaccessNotFound) IsSuccess

func (o *UnaccessNotFound) IsSuccess() bool

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

func (*UnaccessNotFound) String

func (o *UnaccessNotFound) String() string

type UnaccessOK

type UnaccessOK struct {
}

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

access removed

func NewUnaccessOK

func NewUnaccessOK() *UnaccessOK

NewUnaccessOK creates a UnaccessOK with default headers values

func (*UnaccessOK) Code added in v0.4.19

func (o *UnaccessOK) Code() int

Code gets the status code for the unaccess o k response

func (*UnaccessOK) Error

func (o *UnaccessOK) Error() string

func (*UnaccessOK) IsClientError

func (o *UnaccessOK) IsClientError() bool

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

func (*UnaccessOK) IsCode

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

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

func (*UnaccessOK) IsRedirect

func (o *UnaccessOK) IsRedirect() bool

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

func (*UnaccessOK) IsServerError

func (o *UnaccessOK) IsServerError() bool

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

func (*UnaccessOK) IsSuccess

func (o *UnaccessOK) IsSuccess() bool

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

func (*UnaccessOK) String

func (o *UnaccessOK) String() string

type UnaccessParams

type UnaccessParams struct {

	// Body.
	Body *rest_model_zrok.UnaccessRequest

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

UnaccessParams contains all the parameters to send to the API endpoint

for the unaccess operation.

Typically these are written to a http.Request.

func NewUnaccessParams

func NewUnaccessParams() *UnaccessParams

NewUnaccessParams creates a new UnaccessParams 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 NewUnaccessParamsWithContext

func NewUnaccessParamsWithContext(ctx context.Context) *UnaccessParams

NewUnaccessParamsWithContext creates a new UnaccessParams object with the ability to set a context for a request.

func NewUnaccessParamsWithHTTPClient

func NewUnaccessParamsWithHTTPClient(client *http.Client) *UnaccessParams

NewUnaccessParamsWithHTTPClient creates a new UnaccessParams object with the ability to set a custom HTTPClient for a request.

func NewUnaccessParamsWithTimeout

func NewUnaccessParamsWithTimeout(timeout time.Duration) *UnaccessParams

NewUnaccessParamsWithTimeout creates a new UnaccessParams object with the ability to set a timeout on a request.

func (*UnaccessParams) SetBody

SetBody adds the body to the unaccess params

func (*UnaccessParams) SetContext

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

SetContext adds the context to the unaccess params

func (*UnaccessParams) SetDefaults

func (o *UnaccessParams) SetDefaults()

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

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

func (*UnaccessParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the unaccess params

func (*UnaccessParams) SetTimeout

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

SetTimeout adds the timeout to the unaccess params

func (*UnaccessParams) WithBody

WithBody adds the body to the unaccess params

func (*UnaccessParams) WithContext

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

WithContext adds the context to the unaccess params

func (*UnaccessParams) WithDefaults

func (o *UnaccessParams) WithDefaults() *UnaccessParams

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

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

func (*UnaccessParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the unaccess params

func (*UnaccessParams) WithTimeout

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

WithTimeout adds the timeout to the unaccess params

func (*UnaccessParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UnaccessReader

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

UnaccessReader is a Reader for the Unaccess structure.

func (*UnaccessReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UnaccessUnauthorized

type UnaccessUnauthorized struct {
}

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

unauthorized

func NewUnaccessUnauthorized

func NewUnaccessUnauthorized() *UnaccessUnauthorized

NewUnaccessUnauthorized creates a UnaccessUnauthorized with default headers values

func (*UnaccessUnauthorized) Code added in v0.4.19

func (o *UnaccessUnauthorized) Code() int

Code gets the status code for the unaccess unauthorized response

func (*UnaccessUnauthorized) Error

func (o *UnaccessUnauthorized) Error() string

func (*UnaccessUnauthorized) IsClientError

func (o *UnaccessUnauthorized) IsClientError() bool

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

func (*UnaccessUnauthorized) IsCode

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

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

func (*UnaccessUnauthorized) IsRedirect

func (o *UnaccessUnauthorized) IsRedirect() bool

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

func (*UnaccessUnauthorized) IsServerError

func (o *UnaccessUnauthorized) IsServerError() bool

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

func (*UnaccessUnauthorized) IsSuccess

func (o *UnaccessUnauthorized) IsSuccess() bool

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

func (*UnaccessUnauthorized) String

func (o *UnaccessUnauthorized) String() string

type UnshareInternalServerError

type UnshareInternalServerError struct {
	Payload rest_model_zrok.ErrorMessage
}

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

internal server error

func NewUnshareInternalServerError

func NewUnshareInternalServerError() *UnshareInternalServerError

NewUnshareInternalServerError creates a UnshareInternalServerError with default headers values

func (*UnshareInternalServerError) Code added in v0.4.19

func (o *UnshareInternalServerError) Code() int

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

func (*UnshareInternalServerError) Error

func (*UnshareInternalServerError) GetPayload

func (*UnshareInternalServerError) IsClientError

func (o *UnshareInternalServerError) IsClientError() bool

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

func (*UnshareInternalServerError) IsCode

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

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

func (*UnshareInternalServerError) IsRedirect

func (o *UnshareInternalServerError) IsRedirect() bool

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

func (*UnshareInternalServerError) IsServerError

func (o *UnshareInternalServerError) IsServerError() bool

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

func (*UnshareInternalServerError) IsSuccess

func (o *UnshareInternalServerError) IsSuccess() bool

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

func (*UnshareInternalServerError) String

func (o *UnshareInternalServerError) String() string

type UnshareNotFound

type UnshareNotFound struct {
}

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

not found

func NewUnshareNotFound

func NewUnshareNotFound() *UnshareNotFound

NewUnshareNotFound creates a UnshareNotFound with default headers values

func (*UnshareNotFound) Code added in v0.4.19

func (o *UnshareNotFound) Code() int

Code gets the status code for the unshare not found response

func (*UnshareNotFound) Error

func (o *UnshareNotFound) Error() string

func (*UnshareNotFound) IsClientError

func (o *UnshareNotFound) IsClientError() bool

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

func (*UnshareNotFound) IsCode

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

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

func (*UnshareNotFound) IsRedirect

func (o *UnshareNotFound) IsRedirect() bool

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

func (*UnshareNotFound) IsServerError

func (o *UnshareNotFound) IsServerError() bool

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

func (*UnshareNotFound) IsSuccess

func (o *UnshareNotFound) IsSuccess() bool

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

func (*UnshareNotFound) String

func (o *UnshareNotFound) String() string

type UnshareOK

type UnshareOK struct {
}

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

share removed

func NewUnshareOK

func NewUnshareOK() *UnshareOK

NewUnshareOK creates a UnshareOK with default headers values

func (*UnshareOK) Code added in v0.4.19

func (o *UnshareOK) Code() int

Code gets the status code for the unshare o k response

func (*UnshareOK) Error

func (o *UnshareOK) Error() string

func (*UnshareOK) IsClientError

func (o *UnshareOK) IsClientError() bool

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

func (*UnshareOK) IsCode

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

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

func (*UnshareOK) IsRedirect

func (o *UnshareOK) IsRedirect() bool

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

func (*UnshareOK) IsServerError

func (o *UnshareOK) IsServerError() bool

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

func (*UnshareOK) IsSuccess

func (o *UnshareOK) IsSuccess() bool

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

func (*UnshareOK) String

func (o *UnshareOK) String() string

type UnshareParams

type UnshareParams struct {

	// Body.
	Body *rest_model_zrok.UnshareRequest

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

UnshareParams contains all the parameters to send to the API endpoint

for the unshare operation.

Typically these are written to a http.Request.

func NewUnshareParams

func NewUnshareParams() *UnshareParams

NewUnshareParams creates a new UnshareParams 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 NewUnshareParamsWithContext

func NewUnshareParamsWithContext(ctx context.Context) *UnshareParams

NewUnshareParamsWithContext creates a new UnshareParams object with the ability to set a context for a request.

func NewUnshareParamsWithHTTPClient

func NewUnshareParamsWithHTTPClient(client *http.Client) *UnshareParams

NewUnshareParamsWithHTTPClient creates a new UnshareParams object with the ability to set a custom HTTPClient for a request.

func NewUnshareParamsWithTimeout

func NewUnshareParamsWithTimeout(timeout time.Duration) *UnshareParams

NewUnshareParamsWithTimeout creates a new UnshareParams object with the ability to set a timeout on a request.

func (*UnshareParams) SetBody

func (o *UnshareParams) SetBody(body *rest_model_zrok.UnshareRequest)

SetBody adds the body to the unshare params

func (*UnshareParams) SetContext

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

SetContext adds the context to the unshare params

func (*UnshareParams) SetDefaults

func (o *UnshareParams) SetDefaults()

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

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

func (*UnshareParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the unshare params

func (*UnshareParams) SetTimeout

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

SetTimeout adds the timeout to the unshare params

func (*UnshareParams) WithBody

WithBody adds the body to the unshare params

func (*UnshareParams) WithContext

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

WithContext adds the context to the unshare params

func (*UnshareParams) WithDefaults

func (o *UnshareParams) WithDefaults() *UnshareParams

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

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

func (*UnshareParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the unshare params

func (*UnshareParams) WithTimeout

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

WithTimeout adds the timeout to the unshare params

func (*UnshareParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UnshareReader

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

UnshareReader is a Reader for the Unshare structure.

func (*UnshareReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UnshareUnauthorized

type UnshareUnauthorized struct {
}

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

unauthorized

func NewUnshareUnauthorized

func NewUnshareUnauthorized() *UnshareUnauthorized

NewUnshareUnauthorized creates a UnshareUnauthorized with default headers values

func (*UnshareUnauthorized) Code added in v0.4.19

func (o *UnshareUnauthorized) Code() int

Code gets the status code for the unshare unauthorized response

func (*UnshareUnauthorized) Error

func (o *UnshareUnauthorized) Error() string

func (*UnshareUnauthorized) IsClientError

func (o *UnshareUnauthorized) IsClientError() bool

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

func (*UnshareUnauthorized) IsCode

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

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

func (*UnshareUnauthorized) IsRedirect

func (o *UnshareUnauthorized) IsRedirect() bool

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

func (*UnshareUnauthorized) IsServerError

func (o *UnshareUnauthorized) IsServerError() bool

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

func (*UnshareUnauthorized) IsSuccess

func (o *UnshareUnauthorized) IsSuccess() bool

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

func (*UnshareUnauthorized) String

func (o *UnshareUnauthorized) String() string

type UpdateShareBadRequest added in v0.4.26

type UpdateShareBadRequest struct {
}

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

bad request

func NewUpdateShareBadRequest added in v0.4.26

func NewUpdateShareBadRequest() *UpdateShareBadRequest

NewUpdateShareBadRequest creates a UpdateShareBadRequest with default headers values

func (*UpdateShareBadRequest) Code added in v0.4.26

func (o *UpdateShareBadRequest) Code() int

Code gets the status code for the update share bad request response

func (*UpdateShareBadRequest) Error added in v0.4.26

func (o *UpdateShareBadRequest) Error() string

func (*UpdateShareBadRequest) IsClientError added in v0.4.26

func (o *UpdateShareBadRequest) IsClientError() bool

IsClientError returns true when this update share bad request response has a 4xx status code

func (*UpdateShareBadRequest) IsCode added in v0.4.26

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

IsCode returns true when this update share bad request response a status code equal to that given

func (*UpdateShareBadRequest) IsRedirect added in v0.4.26

func (o *UpdateShareBadRequest) IsRedirect() bool

IsRedirect returns true when this update share bad request response has a 3xx status code

func (*UpdateShareBadRequest) IsServerError added in v0.4.26

func (o *UpdateShareBadRequest) IsServerError() bool

IsServerError returns true when this update share bad request response has a 5xx status code

func (*UpdateShareBadRequest) IsSuccess added in v0.4.26

func (o *UpdateShareBadRequest) IsSuccess() bool

IsSuccess returns true when this update share bad request response has a 2xx status code

func (*UpdateShareBadRequest) String added in v0.4.26

func (o *UpdateShareBadRequest) String() string

type UpdateShareInternalServerError

type UpdateShareInternalServerError struct {
}

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

internal server error

func NewUpdateShareInternalServerError

func NewUpdateShareInternalServerError() *UpdateShareInternalServerError

NewUpdateShareInternalServerError creates a UpdateShareInternalServerError with default headers values

func (*UpdateShareInternalServerError) Code added in v0.4.19

Code gets the status code for the update share internal server error response

func (*UpdateShareInternalServerError) Error

func (*UpdateShareInternalServerError) IsClientError

func (o *UpdateShareInternalServerError) IsClientError() bool

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

func (*UpdateShareInternalServerError) IsCode

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

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

func (*UpdateShareInternalServerError) IsRedirect

func (o *UpdateShareInternalServerError) IsRedirect() bool

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

func (*UpdateShareInternalServerError) IsServerError

func (o *UpdateShareInternalServerError) IsServerError() bool

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

func (*UpdateShareInternalServerError) IsSuccess

func (o *UpdateShareInternalServerError) IsSuccess() bool

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

func (*UpdateShareInternalServerError) String

type UpdateShareNotFound

type UpdateShareNotFound struct {
}

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

not found

func NewUpdateShareNotFound

func NewUpdateShareNotFound() *UpdateShareNotFound

NewUpdateShareNotFound creates a UpdateShareNotFound with default headers values

func (*UpdateShareNotFound) Code added in v0.4.19

func (o *UpdateShareNotFound) Code() int

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

func (*UpdateShareNotFound) Error

func (o *UpdateShareNotFound) Error() string

func (*UpdateShareNotFound) IsClientError

func (o *UpdateShareNotFound) IsClientError() bool

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

func (*UpdateShareNotFound) IsCode

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

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

func (*UpdateShareNotFound) IsRedirect

func (o *UpdateShareNotFound) IsRedirect() bool

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

func (*UpdateShareNotFound) IsServerError

func (o *UpdateShareNotFound) IsServerError() bool

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

func (*UpdateShareNotFound) IsSuccess

func (o *UpdateShareNotFound) IsSuccess() bool

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

func (*UpdateShareNotFound) String

func (o *UpdateShareNotFound) String() string

type UpdateShareOK

type UpdateShareOK struct {
}

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

share updated

func NewUpdateShareOK

func NewUpdateShareOK() *UpdateShareOK

NewUpdateShareOK creates a UpdateShareOK with default headers values

func (*UpdateShareOK) Code added in v0.4.19

func (o *UpdateShareOK) Code() int

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

func (*UpdateShareOK) Error

func (o *UpdateShareOK) Error() string

func (*UpdateShareOK) IsClientError

func (o *UpdateShareOK) IsClientError() bool

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

func (*UpdateShareOK) IsCode

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

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

func (*UpdateShareOK) IsRedirect

func (o *UpdateShareOK) IsRedirect() bool

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

func (*UpdateShareOK) IsServerError

func (o *UpdateShareOK) IsServerError() bool

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

func (*UpdateShareOK) IsSuccess

func (o *UpdateShareOK) IsSuccess() bool

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

func (*UpdateShareOK) String

func (o *UpdateShareOK) String() string

type UpdateShareParams

type UpdateShareParams struct {

	// Body.
	Body *rest_model_zrok.UpdateShareRequest

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

UpdateShareParams contains all the parameters to send to the API endpoint

for the update share operation.

Typically these are written to a http.Request.

func NewUpdateShareParams

func NewUpdateShareParams() *UpdateShareParams

NewUpdateShareParams creates a new UpdateShareParams 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 NewUpdateShareParamsWithContext

func NewUpdateShareParamsWithContext(ctx context.Context) *UpdateShareParams

NewUpdateShareParamsWithContext creates a new UpdateShareParams object with the ability to set a context for a request.

func NewUpdateShareParamsWithHTTPClient

func NewUpdateShareParamsWithHTTPClient(client *http.Client) *UpdateShareParams

NewUpdateShareParamsWithHTTPClient creates a new UpdateShareParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateShareParamsWithTimeout

func NewUpdateShareParamsWithTimeout(timeout time.Duration) *UpdateShareParams

NewUpdateShareParamsWithTimeout creates a new UpdateShareParams object with the ability to set a timeout on a request.

func (*UpdateShareParams) SetBody

SetBody adds the body to the update share params

func (*UpdateShareParams) SetContext

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

SetContext adds the context to the update share params

func (*UpdateShareParams) SetDefaults

func (o *UpdateShareParams) SetDefaults()

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

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

func (*UpdateShareParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update share params

func (*UpdateShareParams) SetTimeout

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

SetTimeout adds the timeout to the update share params

func (*UpdateShareParams) WithBody

WithBody adds the body to the update share params

func (*UpdateShareParams) WithContext

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

WithContext adds the context to the update share params

func (*UpdateShareParams) WithDefaults

func (o *UpdateShareParams) WithDefaults() *UpdateShareParams

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

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

func (*UpdateShareParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update share params

func (*UpdateShareParams) WithTimeout

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

WithTimeout adds the timeout to the update share params

func (*UpdateShareParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateShareReader

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

UpdateShareReader is a Reader for the UpdateShare structure.

func (*UpdateShareReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateShareUnauthorized

type UpdateShareUnauthorized struct {
}

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

unauthorized

func NewUpdateShareUnauthorized

func NewUpdateShareUnauthorized() *UpdateShareUnauthorized

NewUpdateShareUnauthorized creates a UpdateShareUnauthorized with default headers values

func (*UpdateShareUnauthorized) Code added in v0.4.19

func (o *UpdateShareUnauthorized) Code() int

Code gets the status code for the update share unauthorized response

func (*UpdateShareUnauthorized) Error

func (o *UpdateShareUnauthorized) Error() string

func (*UpdateShareUnauthorized) IsClientError

func (o *UpdateShareUnauthorized) IsClientError() bool

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

func (*UpdateShareUnauthorized) IsCode

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

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

func (*UpdateShareUnauthorized) IsRedirect

func (o *UpdateShareUnauthorized) IsRedirect() bool

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

func (*UpdateShareUnauthorized) IsServerError

func (o *UpdateShareUnauthorized) IsServerError() bool

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

func (*UpdateShareUnauthorized) IsSuccess

func (o *UpdateShareUnauthorized) IsSuccess() bool

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

func (*UpdateShareUnauthorized) String

func (o *UpdateShareUnauthorized) String() string

Jump to

Keyboard shortcuts

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