slack

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MPL-2.0 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 slack API

func (*Client) GetChannelNameByID

func (a *Client) GetChannelNameByID(params *GetChannelNameByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetChannelNameByIDOK, error)

GetChannelNameByID gets slack channel name by slack channel ID

Requires the Snyk Slack App to be set up for this org. It will return the Slack channel name for the provided Slack channel ID.

func (*Client) ListChannels

func (a *Client) ListChannels(params *ListChannelsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListChannelsOK, error)

ListChannels gets a list of slack channels

Requires the Snyk Slack App to be set up for this org, will retrieve a list of channels the Snyk Slack App can access. Note that it is currently only possible to page forwards through this collection, no prev links will be generated and the ending_before parameter will not function.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetChannelNameByID(params *GetChannelNameByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetChannelNameByIDOK, error)

	ListChannels(params *ListChannelsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListChannelsOK, 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 slack API client.

type GetChannelNameByIDBadRequest

type GetChannelNameByIDBadRequest struct {

	/* A header containing the deprecation date of the underlying endpoint. For more information, please refer to the deprecation header RFC:
	https://tools.ietf.org/id/draft-dalal-deprecation-header-01.html


	     Format: date-time
	*/
	Deprecation strfmt.DateTime

	/* A header containing a unique id used for tracking this request. If you are reporting an issue to Snyk it's very helpful to provide this ID.


	   Format: uuid
	*/
	SnykRequestID strfmt.UUID

	/* A header containing the version stage of the endpoint. This stage describes the guarantees snyk provides surrounding stability of the endpoint.

	 */
	SnykVersionLifecycleStage string

	/* A header containing the version of the endpoint requested by the caller.
	 */
	SnykVersionRequested string

	/* A header containing the version of the endpoint that was served by the API.
	 */
	SnykVersionServed string

	/* A header containing the date of when the underlying endpoint will be removed. This header is only present if the endpoint has been deprecated. Please refer to the RFC for more information:
	https://datatracker.ietf.org/doc/html/rfc8594


	     Format: date-time
	*/
	Sunset strfmt.DateTime

	Payload *GetChannelNameByIDBadRequestBody
}

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

Bad Request: A parameter provided as a part of the request was invalid.

func NewGetChannelNameByIDBadRequest

func NewGetChannelNameByIDBadRequest() *GetChannelNameByIDBadRequest

NewGetChannelNameByIDBadRequest creates a GetChannelNameByIDBadRequest with default headers values

func (*GetChannelNameByIDBadRequest) Code

Code gets the status code for the get channel name by Id bad request response

func (*GetChannelNameByIDBadRequest) Error

func (*GetChannelNameByIDBadRequest) GetPayload

func (*GetChannelNameByIDBadRequest) IsClientError

func (o *GetChannelNameByIDBadRequest) IsClientError() bool

IsClientError returns true when this get channel name by Id bad request response has a 4xx status code

func (*GetChannelNameByIDBadRequest) IsCode

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

IsCode returns true when this get channel name by Id bad request response a status code equal to that given

func (*GetChannelNameByIDBadRequest) IsRedirect

func (o *GetChannelNameByIDBadRequest) IsRedirect() bool

IsRedirect returns true when this get channel name by Id bad request response has a 3xx status code

func (*GetChannelNameByIDBadRequest) IsServerError

func (o *GetChannelNameByIDBadRequest) IsServerError() bool

IsServerError returns true when this get channel name by Id bad request response has a 5xx status code

func (*GetChannelNameByIDBadRequest) IsSuccess

func (o *GetChannelNameByIDBadRequest) IsSuccess() bool

IsSuccess returns true when this get channel name by Id bad request response has a 2xx status code

func (*GetChannelNameByIDBadRequest) String

type GetChannelNameByIDBadRequestBody

type GetChannelNameByIDBadRequestBody struct {

	// errors
	// Example: [{"detail":"Permission denied for this resource","status":"403"}]
	// Required: true
	// Min Items: 1
	Errors []*GetChannelNameByIDBadRequestBodyErrorsItems0 `json:"errors"`

	// jsonapi
	// Required: true
	Jsonapi *GetChannelNameByIDBadRequestBodyJsonapi `json:"jsonapi"`
}

GetChannelNameByIDBadRequestBody get channel name by ID bad request body // Example: {"errors":[{"detail":"Permission denied for this resource","status":"403"}],"jsonapi":{"version":"1.0"}} swagger:model GetChannelNameByIDBadRequestBody

func (*GetChannelNameByIDBadRequestBody) ContextValidate

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

ContextValidate validate this get channel name by ID bad request body based on the context it is used

func (*GetChannelNameByIDBadRequestBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetChannelNameByIDBadRequestBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetChannelNameByIDBadRequestBody) Validate

Validate validates this get channel name by ID bad request body

type GetChannelNameByIDBadRequestBodyErrorsItems0

type GetChannelNameByIDBadRequestBodyErrorsItems0 struct {

	// An application-specific error code, expressed as a string value.
	// Example: entity-not-found
	Code string `json:"code,omitempty"`

	// A human-readable explanation specific to this occurrence of the problem.
	// Example: The request was missing these required fields: ...
	// Required: true
	Detail *string `json:"detail"`

	// A unique identifier for this particular occurrence of the problem.
	// Example: f16c31b5-6129-4571-add8-d589da9be524
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// links
	Links *GetChannelNameByIDBadRequestBodyErrorsItems0Links `json:"links,omitempty"`

	// meta
	// Example: {"key":"value"}
	Meta interface{} `json:"meta,omitempty"`

	// source
	Source *GetChannelNameByIDBadRequestBodyErrorsItems0Source `json:"source,omitempty"`

	// The HTTP status code applicable to this problem, expressed as a string value.
	// Example: 400
	// Required: true
	// Pattern: ^[45]\d\d$
	Status *string `json:"status"`

	// A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
	// Example: Bad request
	Title string `json:"title,omitempty"`
}

GetChannelNameByIDBadRequestBodyErrorsItems0 get channel name by ID bad request body errors items0 // Example: {"detail":"Not Found","status":"404"} swagger:model GetChannelNameByIDBadRequestBodyErrorsItems0

func (*GetChannelNameByIDBadRequestBodyErrorsItems0) ContextValidate

ContextValidate validate this get channel name by ID bad request body errors items0 based on the context it is used

func (*GetChannelNameByIDBadRequestBodyErrorsItems0) MarshalBinary

MarshalBinary interface implementation

func (*GetChannelNameByIDBadRequestBodyErrorsItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetChannelNameByIDBadRequestBodyErrorsItems0) Validate

Validate validates this get channel name by ID bad request body errors items0

type GetChannelNameByIDBadRequestBodyErrorsItems0Links struct {

	// about
	// Example: https://example.com/api/resource
	About interface{} `json:"about,omitempty"`
}

GetChannelNameByIDBadRequestBodyErrorsItems0Links A link that leads to further details about this particular occurrance of the problem. // Example: {"about":"https://example.com/about_this_error"} swagger:model GetChannelNameByIDBadRequestBodyErrorsItems0Links

func (*GetChannelNameByIDBadRequestBodyErrorsItems0Links) ContextValidate

ContextValidate validates this get channel name by ID bad request body errors items0 links based on context it is used

func (*GetChannelNameByIDBadRequestBodyErrorsItems0Links) MarshalBinary

MarshalBinary interface implementation

func (*GetChannelNameByIDBadRequestBodyErrorsItems0Links) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetChannelNameByIDBadRequestBodyErrorsItems0Links) Validate

Validate validates this get channel name by ID bad request body errors items0 links

type GetChannelNameByIDBadRequestBodyErrorsItems0Source

type GetChannelNameByIDBadRequestBodyErrorsItems0Source struct {

	// A string indicating which URI query parameter caused the error.
	// Example: param1
	Parameter string `json:"parameter,omitempty"`

	// A JSON Pointer [RFC6901] to the associated entity in the request document.
	// Example: /data/attributes
	Pointer string `json:"pointer,omitempty"`
}

GetChannelNameByIDBadRequestBodyErrorsItems0Source get channel name by ID bad request body errors items0 source // Example: {"pointer":"/data/attributes"} swagger:model GetChannelNameByIDBadRequestBodyErrorsItems0Source

func (*GetChannelNameByIDBadRequestBodyErrorsItems0Source) ContextValidate

ContextValidate validates this get channel name by ID bad request body errors items0 source based on context it is used

func (*GetChannelNameByIDBadRequestBodyErrorsItems0Source) MarshalBinary

MarshalBinary interface implementation

func (*GetChannelNameByIDBadRequestBodyErrorsItems0Source) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetChannelNameByIDBadRequestBodyErrorsItems0Source) Validate

Validate validates this get channel name by ID bad request body errors items0 source

type GetChannelNameByIDBadRequestBodyJsonapi

type GetChannelNameByIDBadRequestBodyJsonapi struct {

	// Version of the JSON API specification this server supports.
	// Example: 1.0
	// Required: true
	// Pattern: ^(0|[1-9]\d*)\.(0|[1-9]\d*)$
	Version *string `json:"version"`
}

GetChannelNameByIDBadRequestBodyJsonapi get channel name by ID bad request body jsonapi // Example: {"version":"1.0"} swagger:model GetChannelNameByIDBadRequestBodyJsonapi

func (*GetChannelNameByIDBadRequestBodyJsonapi) ContextValidate

ContextValidate validates this get channel name by ID bad request body jsonapi based on context it is used

func (*GetChannelNameByIDBadRequestBodyJsonapi) MarshalBinary

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

MarshalBinary interface implementation

func (*GetChannelNameByIDBadRequestBodyJsonapi) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetChannelNameByIDBadRequestBodyJsonapi) Validate

Validate validates this get channel name by ID bad request body jsonapi

type GetChannelNameByIDConflict

type GetChannelNameByIDConflict struct {

	/* A header containing the deprecation date of the underlying endpoint. For more information, please refer to the deprecation header RFC:
	https://tools.ietf.org/id/draft-dalal-deprecation-header-01.html


	     Format: date-time
	*/
	Deprecation strfmt.DateTime

	/* A header containing a unique id used for tracking this request. If you are reporting an issue to Snyk it's very helpful to provide this ID.


	   Format: uuid
	*/
	SnykRequestID strfmt.UUID

	/* A header containing the version stage of the endpoint. This stage describes the guarantees snyk provides surrounding stability of the endpoint.

	 */
	SnykVersionLifecycleStage string

	/* A header containing the version of the endpoint requested by the caller.
	 */
	SnykVersionRequested string

	/* A header containing the version of the endpoint that was served by the API.
	 */
	SnykVersionServed string

	/* A header containing the date of when the underlying endpoint will be removed. This header is only present if the endpoint has been deprecated. Please refer to the RFC for more information:
	https://datatracker.ietf.org/doc/html/rfc8594


	     Format: date-time
	*/
	Sunset strfmt.DateTime

	Payload *GetChannelNameByIDConflictBody
}

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

Conflict: The requested operation conflicts with the current state of the resource in some way.

func NewGetChannelNameByIDConflict

func NewGetChannelNameByIDConflict() *GetChannelNameByIDConflict

NewGetChannelNameByIDConflict creates a GetChannelNameByIDConflict with default headers values

func (*GetChannelNameByIDConflict) Code

func (o *GetChannelNameByIDConflict) Code() int

Code gets the status code for the get channel name by Id conflict response

func (*GetChannelNameByIDConflict) Error

func (*GetChannelNameByIDConflict) GetPayload

func (*GetChannelNameByIDConflict) IsClientError

func (o *GetChannelNameByIDConflict) IsClientError() bool

IsClientError returns true when this get channel name by Id conflict response has a 4xx status code

func (*GetChannelNameByIDConflict) IsCode

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

IsCode returns true when this get channel name by Id conflict response a status code equal to that given

func (*GetChannelNameByIDConflict) IsRedirect

func (o *GetChannelNameByIDConflict) IsRedirect() bool

IsRedirect returns true when this get channel name by Id conflict response has a 3xx status code

func (*GetChannelNameByIDConflict) IsServerError

func (o *GetChannelNameByIDConflict) IsServerError() bool

IsServerError returns true when this get channel name by Id conflict response has a 5xx status code

func (*GetChannelNameByIDConflict) IsSuccess

func (o *GetChannelNameByIDConflict) IsSuccess() bool

IsSuccess returns true when this get channel name by Id conflict response has a 2xx status code

func (*GetChannelNameByIDConflict) String

func (o *GetChannelNameByIDConflict) String() string

type GetChannelNameByIDConflictBody

type GetChannelNameByIDConflictBody struct {

	// errors
	// Example: [{"detail":"Permission denied for this resource","status":"403"}]
	// Required: true
	// Min Items: 1
	Errors []*GetChannelNameByIDConflictBodyErrorsItems0 `json:"errors"`

	// jsonapi
	// Required: true
	Jsonapi *GetChannelNameByIDConflictBodyJsonapi `json:"jsonapi"`
}

GetChannelNameByIDConflictBody get channel name by ID conflict body // Example: {"errors":[{"detail":"Permission denied for this resource","status":"403"}],"jsonapi":{"version":"1.0"}} swagger:model GetChannelNameByIDConflictBody

func (*GetChannelNameByIDConflictBody) ContextValidate

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

ContextValidate validate this get channel name by ID conflict body based on the context it is used

func (*GetChannelNameByIDConflictBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetChannelNameByIDConflictBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetChannelNameByIDConflictBody) Validate

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

Validate validates this get channel name by ID conflict body

type GetChannelNameByIDConflictBodyErrorsItems0

type GetChannelNameByIDConflictBodyErrorsItems0 struct {

	// An application-specific error code, expressed as a string value.
	// Example: entity-not-found
	Code string `json:"code,omitempty"`

	// A human-readable explanation specific to this occurrence of the problem.
	// Example: The request was missing these required fields: ...
	// Required: true
	Detail *string `json:"detail"`

	// A unique identifier for this particular occurrence of the problem.
	// Example: f16c31b5-6129-4571-add8-d589da9be524
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// links
	Links *GetChannelNameByIDConflictBodyErrorsItems0Links `json:"links,omitempty"`

	// meta
	// Example: {"key":"value"}
	Meta interface{} `json:"meta,omitempty"`

	// source
	Source *GetChannelNameByIDConflictBodyErrorsItems0Source `json:"source,omitempty"`

	// The HTTP status code applicable to this problem, expressed as a string value.
	// Example: 400
	// Required: true
	// Pattern: ^[45]\d\d$
	Status *string `json:"status"`

	// A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
	// Example: Bad request
	Title string `json:"title,omitempty"`
}

GetChannelNameByIDConflictBodyErrorsItems0 get channel name by ID conflict body errors items0 // Example: {"detail":"Not Found","status":"404"} swagger:model GetChannelNameByIDConflictBodyErrorsItems0

func (*GetChannelNameByIDConflictBodyErrorsItems0) ContextValidate

ContextValidate validate this get channel name by ID conflict body errors items0 based on the context it is used

func (*GetChannelNameByIDConflictBodyErrorsItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*GetChannelNameByIDConflictBodyErrorsItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetChannelNameByIDConflictBodyErrorsItems0) Validate

Validate validates this get channel name by ID conflict body errors items0

type GetChannelNameByIDConflictBodyErrorsItems0Links struct {

	// about
	// Example: https://example.com/api/resource
	About interface{} `json:"about,omitempty"`
}

GetChannelNameByIDConflictBodyErrorsItems0Links A link that leads to further details about this particular occurrance of the problem. // Example: {"about":"https://example.com/about_this_error"} swagger:model GetChannelNameByIDConflictBodyErrorsItems0Links

func (*GetChannelNameByIDConflictBodyErrorsItems0Links) ContextValidate

ContextValidate validates this get channel name by ID conflict body errors items0 links based on context it is used

func (*GetChannelNameByIDConflictBodyErrorsItems0Links) MarshalBinary

MarshalBinary interface implementation

func (*GetChannelNameByIDConflictBodyErrorsItems0Links) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetChannelNameByIDConflictBodyErrorsItems0Links) Validate

Validate validates this get channel name by ID conflict body errors items0 links

type GetChannelNameByIDConflictBodyErrorsItems0Source

type GetChannelNameByIDConflictBodyErrorsItems0Source struct {

	// A string indicating which URI query parameter caused the error.
	// Example: param1
	Parameter string `json:"parameter,omitempty"`

	// A JSON Pointer [RFC6901] to the associated entity in the request document.
	// Example: /data/attributes
	Pointer string `json:"pointer,omitempty"`
}

GetChannelNameByIDConflictBodyErrorsItems0Source get channel name by ID conflict body errors items0 source // Example: {"pointer":"/data/attributes"} swagger:model GetChannelNameByIDConflictBodyErrorsItems0Source

func (*GetChannelNameByIDConflictBodyErrorsItems0Source) ContextValidate

ContextValidate validates this get channel name by ID conflict body errors items0 source based on context it is used

func (*GetChannelNameByIDConflictBodyErrorsItems0Source) MarshalBinary

MarshalBinary interface implementation

func (*GetChannelNameByIDConflictBodyErrorsItems0Source) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetChannelNameByIDConflictBodyErrorsItems0Source) Validate

Validate validates this get channel name by ID conflict body errors items0 source

type GetChannelNameByIDConflictBodyJsonapi

type GetChannelNameByIDConflictBodyJsonapi struct {

	// Version of the JSON API specification this server supports.
	// Example: 1.0
	// Required: true
	// Pattern: ^(0|[1-9]\d*)\.(0|[1-9]\d*)$
	Version *string `json:"version"`
}

GetChannelNameByIDConflictBodyJsonapi get channel name by ID conflict body jsonapi // Example: {"version":"1.0"} swagger:model GetChannelNameByIDConflictBodyJsonapi

func (*GetChannelNameByIDConflictBodyJsonapi) ContextValidate

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

ContextValidate validates this get channel name by ID conflict body jsonapi based on context it is used

func (*GetChannelNameByIDConflictBodyJsonapi) MarshalBinary

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

MarshalBinary interface implementation

func (*GetChannelNameByIDConflictBodyJsonapi) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetChannelNameByIDConflictBodyJsonapi) Validate

Validate validates this get channel name by ID conflict body jsonapi

type GetChannelNameByIDForbidden

type GetChannelNameByIDForbidden struct {

	/* A header containing the deprecation date of the underlying endpoint. For more information, please refer to the deprecation header RFC:
	https://tools.ietf.org/id/draft-dalal-deprecation-header-01.html


	     Format: date-time
	*/
	Deprecation strfmt.DateTime

	/* A header containing a unique id used for tracking this request. If you are reporting an issue to Snyk it's very helpful to provide this ID.


	   Format: uuid
	*/
	SnykRequestID strfmt.UUID

	/* A header containing the version stage of the endpoint. This stage describes the guarantees snyk provides surrounding stability of the endpoint.

	 */
	SnykVersionLifecycleStage string

	/* A header containing the version of the endpoint requested by the caller.
	 */
	SnykVersionRequested string

	/* A header containing the version of the endpoint that was served by the API.
	 */
	SnykVersionServed string

	/* A header containing the date of when the underlying endpoint will be removed. This header is only present if the endpoint has been deprecated. Please refer to the RFC for more information:
	https://datatracker.ietf.org/doc/html/rfc8594


	     Format: date-time
	*/
	Sunset strfmt.DateTime

	Payload *GetChannelNameByIDForbiddenBody
}

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

Forbidden: the request requires an authentication token with more or different permissions.

func NewGetChannelNameByIDForbidden

func NewGetChannelNameByIDForbidden() *GetChannelNameByIDForbidden

NewGetChannelNameByIDForbidden creates a GetChannelNameByIDForbidden with default headers values

func (*GetChannelNameByIDForbidden) Code

func (o *GetChannelNameByIDForbidden) Code() int

Code gets the status code for the get channel name by Id forbidden response

func (*GetChannelNameByIDForbidden) Error

func (*GetChannelNameByIDForbidden) GetPayload

func (*GetChannelNameByIDForbidden) IsClientError

func (o *GetChannelNameByIDForbidden) IsClientError() bool

IsClientError returns true when this get channel name by Id forbidden response has a 4xx status code

func (*GetChannelNameByIDForbidden) IsCode

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

IsCode returns true when this get channel name by Id forbidden response a status code equal to that given

func (*GetChannelNameByIDForbidden) IsRedirect

func (o *GetChannelNameByIDForbidden) IsRedirect() bool

IsRedirect returns true when this get channel name by Id forbidden response has a 3xx status code

func (*GetChannelNameByIDForbidden) IsServerError

func (o *GetChannelNameByIDForbidden) IsServerError() bool

IsServerError returns true when this get channel name by Id forbidden response has a 5xx status code

func (*GetChannelNameByIDForbidden) IsSuccess

func (o *GetChannelNameByIDForbidden) IsSuccess() bool

IsSuccess returns true when this get channel name by Id forbidden response has a 2xx status code

func (*GetChannelNameByIDForbidden) String

func (o *GetChannelNameByIDForbidden) String() string

type GetChannelNameByIDForbiddenBody

type GetChannelNameByIDForbiddenBody struct {

	// errors
	// Example: [{"detail":"Permission denied for this resource","status":"403"}]
	// Required: true
	// Min Items: 1
	Errors []*GetChannelNameByIDForbiddenBodyErrorsItems0 `json:"errors"`

	// jsonapi
	// Required: true
	Jsonapi *GetChannelNameByIDForbiddenBodyJsonapi `json:"jsonapi"`
}

GetChannelNameByIDForbiddenBody get channel name by ID forbidden body // Example: {"errors":[{"detail":"Permission denied for this resource","status":"403"}],"jsonapi":{"version":"1.0"}} swagger:model GetChannelNameByIDForbiddenBody

func (*GetChannelNameByIDForbiddenBody) ContextValidate

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

ContextValidate validate this get channel name by ID forbidden body based on the context it is used

func (*GetChannelNameByIDForbiddenBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetChannelNameByIDForbiddenBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetChannelNameByIDForbiddenBody) Validate

Validate validates this get channel name by ID forbidden body

type GetChannelNameByIDForbiddenBodyErrorsItems0

type GetChannelNameByIDForbiddenBodyErrorsItems0 struct {

	// An application-specific error code, expressed as a string value.
	// Example: entity-not-found
	Code string `json:"code,omitempty"`

	// A human-readable explanation specific to this occurrence of the problem.
	// Example: The request was missing these required fields: ...
	// Required: true
	Detail *string `json:"detail"`

	// A unique identifier for this particular occurrence of the problem.
	// Example: f16c31b5-6129-4571-add8-d589da9be524
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// links
	Links *GetChannelNameByIDForbiddenBodyErrorsItems0Links `json:"links,omitempty"`

	// meta
	// Example: {"key":"value"}
	Meta interface{} `json:"meta,omitempty"`

	// source
	Source *GetChannelNameByIDForbiddenBodyErrorsItems0Source `json:"source,omitempty"`

	// The HTTP status code applicable to this problem, expressed as a string value.
	// Example: 400
	// Required: true
	// Pattern: ^[45]\d\d$
	Status *string `json:"status"`

	// A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
	// Example: Bad request
	Title string `json:"title,omitempty"`
}

GetChannelNameByIDForbiddenBodyErrorsItems0 get channel name by ID forbidden body errors items0 // Example: {"detail":"Not Found","status":"404"} swagger:model GetChannelNameByIDForbiddenBodyErrorsItems0

func (*GetChannelNameByIDForbiddenBodyErrorsItems0) ContextValidate

ContextValidate validate this get channel name by ID forbidden body errors items0 based on the context it is used

func (*GetChannelNameByIDForbiddenBodyErrorsItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*GetChannelNameByIDForbiddenBodyErrorsItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetChannelNameByIDForbiddenBodyErrorsItems0) Validate

Validate validates this get channel name by ID forbidden body errors items0

type GetChannelNameByIDForbiddenBodyErrorsItems0Links struct {

	// about
	// Example: https://example.com/api/resource
	About interface{} `json:"about,omitempty"`
}

GetChannelNameByIDForbiddenBodyErrorsItems0Links A link that leads to further details about this particular occurrance of the problem. // Example: {"about":"https://example.com/about_this_error"} swagger:model GetChannelNameByIDForbiddenBodyErrorsItems0Links

func (*GetChannelNameByIDForbiddenBodyErrorsItems0Links) ContextValidate

ContextValidate validates this get channel name by ID forbidden body errors items0 links based on context it is used

func (*GetChannelNameByIDForbiddenBodyErrorsItems0Links) MarshalBinary

MarshalBinary interface implementation

func (*GetChannelNameByIDForbiddenBodyErrorsItems0Links) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetChannelNameByIDForbiddenBodyErrorsItems0Links) Validate

Validate validates this get channel name by ID forbidden body errors items0 links

type GetChannelNameByIDForbiddenBodyErrorsItems0Source

type GetChannelNameByIDForbiddenBodyErrorsItems0Source struct {

	// A string indicating which URI query parameter caused the error.
	// Example: param1
	Parameter string `json:"parameter,omitempty"`

	// A JSON Pointer [RFC6901] to the associated entity in the request document.
	// Example: /data/attributes
	Pointer string `json:"pointer,omitempty"`
}

GetChannelNameByIDForbiddenBodyErrorsItems0Source get channel name by ID forbidden body errors items0 source // Example: {"pointer":"/data/attributes"} swagger:model GetChannelNameByIDForbiddenBodyErrorsItems0Source

func (*GetChannelNameByIDForbiddenBodyErrorsItems0Source) ContextValidate

ContextValidate validates this get channel name by ID forbidden body errors items0 source based on context it is used

func (*GetChannelNameByIDForbiddenBodyErrorsItems0Source) MarshalBinary

MarshalBinary interface implementation

func (*GetChannelNameByIDForbiddenBodyErrorsItems0Source) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetChannelNameByIDForbiddenBodyErrorsItems0Source) Validate

Validate validates this get channel name by ID forbidden body errors items0 source

type GetChannelNameByIDForbiddenBodyJsonapi

type GetChannelNameByIDForbiddenBodyJsonapi struct {

	// Version of the JSON API specification this server supports.
	// Example: 1.0
	// Required: true
	// Pattern: ^(0|[1-9]\d*)\.(0|[1-9]\d*)$
	Version *string `json:"version"`
}

GetChannelNameByIDForbiddenBodyJsonapi get channel name by ID forbidden body jsonapi // Example: {"version":"1.0"} swagger:model GetChannelNameByIDForbiddenBodyJsonapi

func (*GetChannelNameByIDForbiddenBodyJsonapi) ContextValidate

ContextValidate validates this get channel name by ID forbidden body jsonapi based on context it is used

func (*GetChannelNameByIDForbiddenBodyJsonapi) MarshalBinary

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

MarshalBinary interface implementation

func (*GetChannelNameByIDForbiddenBodyJsonapi) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetChannelNameByIDForbiddenBodyJsonapi) Validate

Validate validates this get channel name by ID forbidden body jsonapi

type GetChannelNameByIDInternalServerError

type GetChannelNameByIDInternalServerError struct {

	/* A header containing the deprecation date of the underlying endpoint. For more information, please refer to the deprecation header RFC:
	https://tools.ietf.org/id/draft-dalal-deprecation-header-01.html


	     Format: date-time
	*/
	Deprecation strfmt.DateTime

	/* A header containing a unique id used for tracking this request. If you are reporting an issue to Snyk it's very helpful to provide this ID.


	   Format: uuid
	*/
	SnykRequestID strfmt.UUID

	/* A header containing the version stage of the endpoint. This stage describes the guarantees snyk provides surrounding stability of the endpoint.

	 */
	SnykVersionLifecycleStage string

	/* A header containing the version of the endpoint requested by the caller.
	 */
	SnykVersionRequested string

	/* A header containing the version of the endpoint that was served by the API.
	 */
	SnykVersionServed string

	/* A header containing the date of when the underlying endpoint will be removed. This header is only present if the endpoint has been deprecated. Please refer to the RFC for more information:
	https://datatracker.ietf.org/doc/html/rfc8594


	     Format: date-time
	*/
	Sunset strfmt.DateTime

	Payload *GetChannelNameByIDInternalServerErrorBody
}

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

Internal Server Error: An error was encountered while attempting to process the request.

func NewGetChannelNameByIDInternalServerError

func NewGetChannelNameByIDInternalServerError() *GetChannelNameByIDInternalServerError

NewGetChannelNameByIDInternalServerError creates a GetChannelNameByIDInternalServerError with default headers values

func (*GetChannelNameByIDInternalServerError) Code

Code gets the status code for the get channel name by Id internal server error response

func (*GetChannelNameByIDInternalServerError) Error

func (*GetChannelNameByIDInternalServerError) GetPayload

func (*GetChannelNameByIDInternalServerError) IsClientError

func (o *GetChannelNameByIDInternalServerError) IsClientError() bool

IsClientError returns true when this get channel name by Id internal server error response has a 4xx status code

func (*GetChannelNameByIDInternalServerError) IsCode

IsCode returns true when this get channel name by Id internal server error response a status code equal to that given

func (*GetChannelNameByIDInternalServerError) IsRedirect

IsRedirect returns true when this get channel name by Id internal server error response has a 3xx status code

func (*GetChannelNameByIDInternalServerError) IsServerError

func (o *GetChannelNameByIDInternalServerError) IsServerError() bool

IsServerError returns true when this get channel name by Id internal server error response has a 5xx status code

func (*GetChannelNameByIDInternalServerError) IsSuccess

IsSuccess returns true when this get channel name by Id internal server error response has a 2xx status code

func (*GetChannelNameByIDInternalServerError) String

type GetChannelNameByIDInternalServerErrorBody

type GetChannelNameByIDInternalServerErrorBody struct {

	// errors
	// Example: [{"detail":"Permission denied for this resource","status":"403"}]
	// Required: true
	// Min Items: 1
	Errors []*GetChannelNameByIDInternalServerErrorBodyErrorsItems0 `json:"errors"`

	// jsonapi
	// Required: true
	Jsonapi *GetChannelNameByIDInternalServerErrorBodyJsonapi `json:"jsonapi"`
}

GetChannelNameByIDInternalServerErrorBody get channel name by ID internal server error body // Example: {"errors":[{"detail":"Permission denied for this resource","status":"403"}],"jsonapi":{"version":"1.0"}} swagger:model GetChannelNameByIDInternalServerErrorBody

func (*GetChannelNameByIDInternalServerErrorBody) ContextValidate

ContextValidate validate this get channel name by ID internal server error body based on the context it is used

func (*GetChannelNameByIDInternalServerErrorBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetChannelNameByIDInternalServerErrorBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetChannelNameByIDInternalServerErrorBody) Validate

Validate validates this get channel name by ID internal server error body

type GetChannelNameByIDInternalServerErrorBodyErrorsItems0

type GetChannelNameByIDInternalServerErrorBodyErrorsItems0 struct {

	// An application-specific error code, expressed as a string value.
	// Example: entity-not-found
	Code string `json:"code,omitempty"`

	// A human-readable explanation specific to this occurrence of the problem.
	// Example: The request was missing these required fields: ...
	// Required: true
	Detail *string `json:"detail"`

	// A unique identifier for this particular occurrence of the problem.
	// Example: f16c31b5-6129-4571-add8-d589da9be524
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// links
	Links *GetChannelNameByIDInternalServerErrorBodyErrorsItems0Links `json:"links,omitempty"`

	// meta
	// Example: {"key":"value"}
	Meta interface{} `json:"meta,omitempty"`

	// source
	Source *GetChannelNameByIDInternalServerErrorBodyErrorsItems0Source `json:"source,omitempty"`

	// The HTTP status code applicable to this problem, expressed as a string value.
	// Example: 400
	// Required: true
	// Pattern: ^[45]\d\d$
	Status *string `json:"status"`

	// A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
	// Example: Bad request
	Title string `json:"title,omitempty"`
}

GetChannelNameByIDInternalServerErrorBodyErrorsItems0 get channel name by ID internal server error body errors items0 // Example: {"detail":"Not Found","status":"404"} swagger:model GetChannelNameByIDInternalServerErrorBodyErrorsItems0

func (*GetChannelNameByIDInternalServerErrorBodyErrorsItems0) ContextValidate

ContextValidate validate this get channel name by ID internal server error body errors items0 based on the context it is used

func (*GetChannelNameByIDInternalServerErrorBodyErrorsItems0) MarshalBinary

MarshalBinary interface implementation

func (*GetChannelNameByIDInternalServerErrorBodyErrorsItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetChannelNameByIDInternalServerErrorBodyErrorsItems0) Validate

Validate validates this get channel name by ID internal server error body errors items0

type GetChannelNameByIDInternalServerErrorBodyErrorsItems0Links struct {

	// about
	// Example: https://example.com/api/resource
	About interface{} `json:"about,omitempty"`
}

GetChannelNameByIDInternalServerErrorBodyErrorsItems0Links A link that leads to further details about this particular occurrance of the problem. // Example: {"about":"https://example.com/about_this_error"} swagger:model GetChannelNameByIDInternalServerErrorBodyErrorsItems0Links

func (*GetChannelNameByIDInternalServerErrorBodyErrorsItems0Links) ContextValidate

ContextValidate validates this get channel name by ID internal server error body errors items0 links based on context it is used

func (*GetChannelNameByIDInternalServerErrorBodyErrorsItems0Links) MarshalBinary

MarshalBinary interface implementation

func (*GetChannelNameByIDInternalServerErrorBodyErrorsItems0Links) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetChannelNameByIDInternalServerErrorBodyErrorsItems0Links) Validate

Validate validates this get channel name by ID internal server error body errors items0 links

type GetChannelNameByIDInternalServerErrorBodyErrorsItems0Source

type GetChannelNameByIDInternalServerErrorBodyErrorsItems0Source struct {

	// A string indicating which URI query parameter caused the error.
	// Example: param1
	Parameter string `json:"parameter,omitempty"`

	// A JSON Pointer [RFC6901] to the associated entity in the request document.
	// Example: /data/attributes
	Pointer string `json:"pointer,omitempty"`
}

GetChannelNameByIDInternalServerErrorBodyErrorsItems0Source get channel name by ID internal server error body errors items0 source // Example: {"pointer":"/data/attributes"} swagger:model GetChannelNameByIDInternalServerErrorBodyErrorsItems0Source

func (*GetChannelNameByIDInternalServerErrorBodyErrorsItems0Source) ContextValidate

ContextValidate validates this get channel name by ID internal server error body errors items0 source based on context it is used

func (*GetChannelNameByIDInternalServerErrorBodyErrorsItems0Source) MarshalBinary

MarshalBinary interface implementation

func (*GetChannelNameByIDInternalServerErrorBodyErrorsItems0Source) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetChannelNameByIDInternalServerErrorBodyErrorsItems0Source) Validate

Validate validates this get channel name by ID internal server error body errors items0 source

type GetChannelNameByIDInternalServerErrorBodyJsonapi

type GetChannelNameByIDInternalServerErrorBodyJsonapi struct {

	// Version of the JSON API specification this server supports.
	// Example: 1.0
	// Required: true
	// Pattern: ^(0|[1-9]\d*)\.(0|[1-9]\d*)$
	Version *string `json:"version"`
}

GetChannelNameByIDInternalServerErrorBodyJsonapi get channel name by ID internal server error body jsonapi // Example: {"version":"1.0"} swagger:model GetChannelNameByIDInternalServerErrorBodyJsonapi

func (*GetChannelNameByIDInternalServerErrorBodyJsonapi) ContextValidate

ContextValidate validates this get channel name by ID internal server error body jsonapi based on context it is used

func (*GetChannelNameByIDInternalServerErrorBodyJsonapi) MarshalBinary

MarshalBinary interface implementation

func (*GetChannelNameByIDInternalServerErrorBodyJsonapi) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetChannelNameByIDInternalServerErrorBodyJsonapi) Validate

Validate validates this get channel name by ID internal server error body jsonapi

type GetChannelNameByIDNotFound

type GetChannelNameByIDNotFound struct {

	/* A header containing the deprecation date of the underlying endpoint. For more information, please refer to the deprecation header RFC:
	https://tools.ietf.org/id/draft-dalal-deprecation-header-01.html


	     Format: date-time
	*/
	Deprecation strfmt.DateTime

	/* A header containing a unique id used for tracking this request. If you are reporting an issue to Snyk it's very helpful to provide this ID.


	   Format: uuid
	*/
	SnykRequestID strfmt.UUID

	/* A header containing the version stage of the endpoint. This stage describes the guarantees snyk provides surrounding stability of the endpoint.

	 */
	SnykVersionLifecycleStage string

	/* A header containing the version of the endpoint requested by the caller.
	 */
	SnykVersionRequested string

	/* A header containing the version of the endpoint that was served by the API.
	 */
	SnykVersionServed string

	/* A header containing the date of when the underlying endpoint will be removed. This header is only present if the endpoint has been deprecated. Please refer to the RFC for more information:
	https://datatracker.ietf.org/doc/html/rfc8594


	     Format: date-time
	*/
	Sunset strfmt.DateTime

	Payload *GetChannelNameByIDNotFoundBody
}

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

Not Found: The resource being operated on could not be found.

func NewGetChannelNameByIDNotFound

func NewGetChannelNameByIDNotFound() *GetChannelNameByIDNotFound

NewGetChannelNameByIDNotFound creates a GetChannelNameByIDNotFound with default headers values

func (*GetChannelNameByIDNotFound) Code

func (o *GetChannelNameByIDNotFound) Code() int

Code gets the status code for the get channel name by Id not found response

func (*GetChannelNameByIDNotFound) Error

func (*GetChannelNameByIDNotFound) GetPayload

func (*GetChannelNameByIDNotFound) IsClientError

func (o *GetChannelNameByIDNotFound) IsClientError() bool

IsClientError returns true when this get channel name by Id not found response has a 4xx status code

func (*GetChannelNameByIDNotFound) IsCode

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

IsCode returns true when this get channel name by Id not found response a status code equal to that given

func (*GetChannelNameByIDNotFound) IsRedirect

func (o *GetChannelNameByIDNotFound) IsRedirect() bool

IsRedirect returns true when this get channel name by Id not found response has a 3xx status code

func (*GetChannelNameByIDNotFound) IsServerError

func (o *GetChannelNameByIDNotFound) IsServerError() bool

IsServerError returns true when this get channel name by Id not found response has a 5xx status code

func (*GetChannelNameByIDNotFound) IsSuccess

func (o *GetChannelNameByIDNotFound) IsSuccess() bool

IsSuccess returns true when this get channel name by Id not found response has a 2xx status code

func (*GetChannelNameByIDNotFound) String

func (o *GetChannelNameByIDNotFound) String() string

type GetChannelNameByIDNotFoundBody

type GetChannelNameByIDNotFoundBody struct {

	// errors
	// Example: [{"detail":"Permission denied for this resource","status":"403"}]
	// Required: true
	// Min Items: 1
	Errors []*GetChannelNameByIDNotFoundBodyErrorsItems0 `json:"errors"`

	// jsonapi
	// Required: true
	Jsonapi *GetChannelNameByIDNotFoundBodyJsonapi `json:"jsonapi"`
}

GetChannelNameByIDNotFoundBody get channel name by ID not found body // Example: {"errors":[{"detail":"Permission denied for this resource","status":"403"}],"jsonapi":{"version":"1.0"}} swagger:model GetChannelNameByIDNotFoundBody

func (*GetChannelNameByIDNotFoundBody) ContextValidate

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

ContextValidate validate this get channel name by ID not found body based on the context it is used

func (*GetChannelNameByIDNotFoundBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetChannelNameByIDNotFoundBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetChannelNameByIDNotFoundBody) Validate

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

Validate validates this get channel name by ID not found body

type GetChannelNameByIDNotFoundBodyErrorsItems0

type GetChannelNameByIDNotFoundBodyErrorsItems0 struct {

	// An application-specific error code, expressed as a string value.
	// Example: entity-not-found
	Code string `json:"code,omitempty"`

	// A human-readable explanation specific to this occurrence of the problem.
	// Example: The request was missing these required fields: ...
	// Required: true
	Detail *string `json:"detail"`

	// A unique identifier for this particular occurrence of the problem.
	// Example: f16c31b5-6129-4571-add8-d589da9be524
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// links
	Links *GetChannelNameByIDNotFoundBodyErrorsItems0Links `json:"links,omitempty"`

	// meta
	// Example: {"key":"value"}
	Meta interface{} `json:"meta,omitempty"`

	// source
	Source *GetChannelNameByIDNotFoundBodyErrorsItems0Source `json:"source,omitempty"`

	// The HTTP status code applicable to this problem, expressed as a string value.
	// Example: 400
	// Required: true
	// Pattern: ^[45]\d\d$
	Status *string `json:"status"`

	// A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
	// Example: Bad request
	Title string `json:"title,omitempty"`
}

GetChannelNameByIDNotFoundBodyErrorsItems0 get channel name by ID not found body errors items0 // Example: {"detail":"Not Found","status":"404"} swagger:model GetChannelNameByIDNotFoundBodyErrorsItems0

func (*GetChannelNameByIDNotFoundBodyErrorsItems0) ContextValidate

ContextValidate validate this get channel name by ID not found body errors items0 based on the context it is used

func (*GetChannelNameByIDNotFoundBodyErrorsItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*GetChannelNameByIDNotFoundBodyErrorsItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetChannelNameByIDNotFoundBodyErrorsItems0) Validate

Validate validates this get channel name by ID not found body errors items0

type GetChannelNameByIDNotFoundBodyErrorsItems0Links struct {

	// about
	// Example: https://example.com/api/resource
	About interface{} `json:"about,omitempty"`
}

GetChannelNameByIDNotFoundBodyErrorsItems0Links A link that leads to further details about this particular occurrance of the problem. // Example: {"about":"https://example.com/about_this_error"} swagger:model GetChannelNameByIDNotFoundBodyErrorsItems0Links

func (*GetChannelNameByIDNotFoundBodyErrorsItems0Links) ContextValidate

ContextValidate validates this get channel name by ID not found body errors items0 links based on context it is used

func (*GetChannelNameByIDNotFoundBodyErrorsItems0Links) MarshalBinary

MarshalBinary interface implementation

func (*GetChannelNameByIDNotFoundBodyErrorsItems0Links) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetChannelNameByIDNotFoundBodyErrorsItems0Links) Validate

Validate validates this get channel name by ID not found body errors items0 links

type GetChannelNameByIDNotFoundBodyErrorsItems0Source

type GetChannelNameByIDNotFoundBodyErrorsItems0Source struct {

	// A string indicating which URI query parameter caused the error.
	// Example: param1
	Parameter string `json:"parameter,omitempty"`

	// A JSON Pointer [RFC6901] to the associated entity in the request document.
	// Example: /data/attributes
	Pointer string `json:"pointer,omitempty"`
}

GetChannelNameByIDNotFoundBodyErrorsItems0Source get channel name by ID not found body errors items0 source // Example: {"pointer":"/data/attributes"} swagger:model GetChannelNameByIDNotFoundBodyErrorsItems0Source

func (*GetChannelNameByIDNotFoundBodyErrorsItems0Source) ContextValidate

ContextValidate validates this get channel name by ID not found body errors items0 source based on context it is used

func (*GetChannelNameByIDNotFoundBodyErrorsItems0Source) MarshalBinary

MarshalBinary interface implementation

func (*GetChannelNameByIDNotFoundBodyErrorsItems0Source) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetChannelNameByIDNotFoundBodyErrorsItems0Source) Validate

Validate validates this get channel name by ID not found body errors items0 source

type GetChannelNameByIDNotFoundBodyJsonapi

type GetChannelNameByIDNotFoundBodyJsonapi struct {

	// Version of the JSON API specification this server supports.
	// Example: 1.0
	// Required: true
	// Pattern: ^(0|[1-9]\d*)\.(0|[1-9]\d*)$
	Version *string `json:"version"`
}

GetChannelNameByIDNotFoundBodyJsonapi get channel name by ID not found body jsonapi // Example: {"version":"1.0"} swagger:model GetChannelNameByIDNotFoundBodyJsonapi

func (*GetChannelNameByIDNotFoundBodyJsonapi) ContextValidate

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

ContextValidate validates this get channel name by ID not found body jsonapi based on context it is used

func (*GetChannelNameByIDNotFoundBodyJsonapi) MarshalBinary

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

MarshalBinary interface implementation

func (*GetChannelNameByIDNotFoundBodyJsonapi) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetChannelNameByIDNotFoundBodyJsonapi) Validate

Validate validates this get channel name by ID not found body jsonapi

type GetChannelNameByIDOK

type GetChannelNameByIDOK struct {

	/* A header containing the deprecation date of the underlying endpoint. For more information, please refer to the deprecation header RFC:
	https://tools.ietf.org/id/draft-dalal-deprecation-header-01.html


	     Format: date-time
	*/
	Deprecation strfmt.DateTime

	/* A header containing a unique id used for tracking this request. If you are reporting an issue to Snyk it's very helpful to provide this ID.


	   Format: uuid
	*/
	SnykRequestID strfmt.UUID

	/* A header containing the version stage of the endpoint. This stage describes the guarantees snyk provides surrounding stability of the endpoint.

	 */
	SnykVersionLifecycleStage string

	/* A header containing the version of the endpoint requested by the caller.
	 */
	SnykVersionRequested string

	/* A header containing the version of the endpoint that was served by the API.
	 */
	SnykVersionServed string

	/* A header containing the date of when the underlying endpoint will be removed. This header is only present if the endpoint has been deprecated. Please refer to the RFC for more information:
	https://datatracker.ietf.org/doc/html/rfc8594


	     Format: date-time
	*/
	Sunset strfmt.DateTime

	Payload *GetChannelNameByIDOKBody
}

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

List of Slack channels

func NewGetChannelNameByIDOK

func NewGetChannelNameByIDOK() *GetChannelNameByIDOK

NewGetChannelNameByIDOK creates a GetChannelNameByIDOK with default headers values

func (*GetChannelNameByIDOK) Code

func (o *GetChannelNameByIDOK) Code() int

Code gets the status code for the get channel name by Id o k response

func (*GetChannelNameByIDOK) Error

func (o *GetChannelNameByIDOK) Error() string

func (*GetChannelNameByIDOK) GetPayload

func (*GetChannelNameByIDOK) IsClientError

func (o *GetChannelNameByIDOK) IsClientError() bool

IsClientError returns true when this get channel name by Id o k response has a 4xx status code

func (*GetChannelNameByIDOK) IsCode

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

IsCode returns true when this get channel name by Id o k response a status code equal to that given

func (*GetChannelNameByIDOK) IsRedirect

func (o *GetChannelNameByIDOK) IsRedirect() bool

IsRedirect returns true when this get channel name by Id o k response has a 3xx status code

func (*GetChannelNameByIDOK) IsServerError

func (o *GetChannelNameByIDOK) IsServerError() bool

IsServerError returns true when this get channel name by Id o k response has a 5xx status code

func (*GetChannelNameByIDOK) IsSuccess

func (o *GetChannelNameByIDOK) IsSuccess() bool

IsSuccess returns true when this get channel name by Id o k response has a 2xx status code

func (*GetChannelNameByIDOK) String

func (o *GetChannelNameByIDOK) String() string

type GetChannelNameByIDOKBody

type GetChannelNameByIDOKBody struct {

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

	// jsonapi
	// Required: true
	Jsonapi *models.JSONAPI `json:"jsonapi"`

	// links
	// Required: true
	Links *models.SelfLink `json:"links"`
}

GetChannelNameByIDOKBody get channel name by ID o k body swagger:model GetChannelNameByIDOKBody

func (*GetChannelNameByIDOKBody) ContextValidate

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

ContextValidate validate this get channel name by ID o k body based on the context it is used

func (*GetChannelNameByIDOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetChannelNameByIDOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetChannelNameByIDOKBody) Validate

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

Validate validates this get channel name by ID o k body

type GetChannelNameByIDParams

type GetChannelNameByIDParams struct {

	/* ChannelID.

	   Slack Channel ID

	   Format: uri
	*/
	ChannelID strfmt.URI

	/* OrgID.

	   Org ID

	   Format: uuid
	*/
	OrgID strfmt.UUID

	/* TenantID.

	   Tenant ID

	   Format: uuid
	*/
	TenantID strfmt.UUID

	/* Version.

	   The requested version of the endpoint to process the request
	*/
	Version string

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

GetChannelNameByIDParams contains all the parameters to send to the API endpoint

for the get channel name by Id operation.

Typically these are written to a http.Request.

func NewGetChannelNameByIDParams

func NewGetChannelNameByIDParams() *GetChannelNameByIDParams

NewGetChannelNameByIDParams creates a new GetChannelNameByIDParams 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 NewGetChannelNameByIDParamsWithContext

func NewGetChannelNameByIDParamsWithContext(ctx context.Context) *GetChannelNameByIDParams

NewGetChannelNameByIDParamsWithContext creates a new GetChannelNameByIDParams object with the ability to set a context for a request.

func NewGetChannelNameByIDParamsWithHTTPClient

func NewGetChannelNameByIDParamsWithHTTPClient(client *http.Client) *GetChannelNameByIDParams

NewGetChannelNameByIDParamsWithHTTPClient creates a new GetChannelNameByIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetChannelNameByIDParamsWithTimeout

func NewGetChannelNameByIDParamsWithTimeout(timeout time.Duration) *GetChannelNameByIDParams

NewGetChannelNameByIDParamsWithTimeout creates a new GetChannelNameByIDParams object with the ability to set a timeout on a request.

func (*GetChannelNameByIDParams) SetChannelID

func (o *GetChannelNameByIDParams) SetChannelID(channelID strfmt.URI)

SetChannelID adds the channelId to the get channel name by Id params

func (*GetChannelNameByIDParams) SetContext

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

SetContext adds the context to the get channel name by Id params

func (*GetChannelNameByIDParams) SetDefaults

func (o *GetChannelNameByIDParams) SetDefaults()

SetDefaults hydrates default values in the get channel name by Id params (not the query body).

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

func (*GetChannelNameByIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get channel name by Id params

func (*GetChannelNameByIDParams) SetOrgID

func (o *GetChannelNameByIDParams) SetOrgID(orgID strfmt.UUID)

SetOrgID adds the orgId to the get channel name by Id params

func (*GetChannelNameByIDParams) SetTenantID

func (o *GetChannelNameByIDParams) SetTenantID(tenantID strfmt.UUID)

SetTenantID adds the tenantId to the get channel name by Id params

func (*GetChannelNameByIDParams) SetTimeout

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

SetTimeout adds the timeout to the get channel name by Id params

func (*GetChannelNameByIDParams) SetVersion

func (o *GetChannelNameByIDParams) SetVersion(version string)

SetVersion adds the version to the get channel name by Id params

func (*GetChannelNameByIDParams) WithChannelID

func (o *GetChannelNameByIDParams) WithChannelID(channelID strfmt.URI) *GetChannelNameByIDParams

WithChannelID adds the channelID to the get channel name by Id params

func (*GetChannelNameByIDParams) WithContext

WithContext adds the context to the get channel name by Id params

func (*GetChannelNameByIDParams) WithDefaults

WithDefaults hydrates default values in the get channel name by Id params (not the query body).

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

func (*GetChannelNameByIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get channel name by Id params

func (*GetChannelNameByIDParams) WithOrgID

WithOrgID adds the orgID to the get channel name by Id params

func (*GetChannelNameByIDParams) WithTenantID

func (o *GetChannelNameByIDParams) WithTenantID(tenantID strfmt.UUID) *GetChannelNameByIDParams

WithTenantID adds the tenantID to the get channel name by Id params

func (*GetChannelNameByIDParams) WithTimeout

WithTimeout adds the timeout to the get channel name by Id params

func (*GetChannelNameByIDParams) WithVersion

func (o *GetChannelNameByIDParams) WithVersion(version string) *GetChannelNameByIDParams

WithVersion adds the version to the get channel name by Id params

func (*GetChannelNameByIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetChannelNameByIDReader

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

GetChannelNameByIDReader is a Reader for the GetChannelNameByID structure.

func (*GetChannelNameByIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetChannelNameByIDUnauthorized

type GetChannelNameByIDUnauthorized struct {

	/* A header containing the deprecation date of the underlying endpoint. For more information, please refer to the deprecation header RFC:
	https://tools.ietf.org/id/draft-dalal-deprecation-header-01.html


	     Format: date-time
	*/
	Deprecation strfmt.DateTime

	/* A header containing a unique id used for tracking this request. If you are reporting an issue to Snyk it's very helpful to provide this ID.


	   Format: uuid
	*/
	SnykRequestID strfmt.UUID

	/* A header containing the version stage of the endpoint. This stage describes the guarantees snyk provides surrounding stability of the endpoint.

	 */
	SnykVersionLifecycleStage string

	/* A header containing the version of the endpoint requested by the caller.
	 */
	SnykVersionRequested string

	/* A header containing the version of the endpoint that was served by the API.
	 */
	SnykVersionServed string

	/* A header containing the date of when the underlying endpoint will be removed. This header is only present if the endpoint has been deprecated. Please refer to the RFC for more information:
	https://datatracker.ietf.org/doc/html/rfc8594


	     Format: date-time
	*/
	Sunset strfmt.DateTime

	Payload *GetChannelNameByIDUnauthorizedBody
}

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

Unauthorized: the request requires an authentication token.

func NewGetChannelNameByIDUnauthorized

func NewGetChannelNameByIDUnauthorized() *GetChannelNameByIDUnauthorized

NewGetChannelNameByIDUnauthorized creates a GetChannelNameByIDUnauthorized with default headers values

func (*GetChannelNameByIDUnauthorized) Code

Code gets the status code for the get channel name by Id unauthorized response

func (*GetChannelNameByIDUnauthorized) Error

func (*GetChannelNameByIDUnauthorized) GetPayload

func (*GetChannelNameByIDUnauthorized) IsClientError

func (o *GetChannelNameByIDUnauthorized) IsClientError() bool

IsClientError returns true when this get channel name by Id unauthorized response has a 4xx status code

func (*GetChannelNameByIDUnauthorized) IsCode

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

IsCode returns true when this get channel name by Id unauthorized response a status code equal to that given

func (*GetChannelNameByIDUnauthorized) IsRedirect

func (o *GetChannelNameByIDUnauthorized) IsRedirect() bool

IsRedirect returns true when this get channel name by Id unauthorized response has a 3xx status code

func (*GetChannelNameByIDUnauthorized) IsServerError

func (o *GetChannelNameByIDUnauthorized) IsServerError() bool

IsServerError returns true when this get channel name by Id unauthorized response has a 5xx status code

func (*GetChannelNameByIDUnauthorized) IsSuccess

func (o *GetChannelNameByIDUnauthorized) IsSuccess() bool

IsSuccess returns true when this get channel name by Id unauthorized response has a 2xx status code

func (*GetChannelNameByIDUnauthorized) String

type GetChannelNameByIDUnauthorizedBody

type GetChannelNameByIDUnauthorizedBody struct {

	// errors
	// Example: [{"detail":"Permission denied for this resource","status":"403"}]
	// Required: true
	// Min Items: 1
	Errors []*GetChannelNameByIDUnauthorizedBodyErrorsItems0 `json:"errors"`

	// jsonapi
	// Required: true
	Jsonapi *GetChannelNameByIDUnauthorizedBodyJsonapi `json:"jsonapi"`
}

GetChannelNameByIDUnauthorizedBody get channel name by ID unauthorized body // Example: {"errors":[{"detail":"Permission denied for this resource","status":"403"}],"jsonapi":{"version":"1.0"}} swagger:model GetChannelNameByIDUnauthorizedBody

func (*GetChannelNameByIDUnauthorizedBody) ContextValidate

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

ContextValidate validate this get channel name by ID unauthorized body based on the context it is used

func (*GetChannelNameByIDUnauthorizedBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetChannelNameByIDUnauthorizedBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetChannelNameByIDUnauthorizedBody) Validate

Validate validates this get channel name by ID unauthorized body

type GetChannelNameByIDUnauthorizedBodyErrorsItems0

type GetChannelNameByIDUnauthorizedBodyErrorsItems0 struct {

	// An application-specific error code, expressed as a string value.
	// Example: entity-not-found
	Code string `json:"code,omitempty"`

	// A human-readable explanation specific to this occurrence of the problem.
	// Example: The request was missing these required fields: ...
	// Required: true
	Detail *string `json:"detail"`

	// A unique identifier for this particular occurrence of the problem.
	// Example: f16c31b5-6129-4571-add8-d589da9be524
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// links
	Links *GetChannelNameByIDUnauthorizedBodyErrorsItems0Links `json:"links,omitempty"`

	// meta
	// Example: {"key":"value"}
	Meta interface{} `json:"meta,omitempty"`

	// source
	Source *GetChannelNameByIDUnauthorizedBodyErrorsItems0Source `json:"source,omitempty"`

	// The HTTP status code applicable to this problem, expressed as a string value.
	// Example: 400
	// Required: true
	// Pattern: ^[45]\d\d$
	Status *string `json:"status"`

	// A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
	// Example: Bad request
	Title string `json:"title,omitempty"`
}

GetChannelNameByIDUnauthorizedBodyErrorsItems0 get channel name by ID unauthorized body errors items0 // Example: {"detail":"Not Found","status":"404"} swagger:model GetChannelNameByIDUnauthorizedBodyErrorsItems0

func (*GetChannelNameByIDUnauthorizedBodyErrorsItems0) ContextValidate

ContextValidate validate this get channel name by ID unauthorized body errors items0 based on the context it is used

func (*GetChannelNameByIDUnauthorizedBodyErrorsItems0) MarshalBinary

MarshalBinary interface implementation

func (*GetChannelNameByIDUnauthorizedBodyErrorsItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetChannelNameByIDUnauthorizedBodyErrorsItems0) Validate

Validate validates this get channel name by ID unauthorized body errors items0

type GetChannelNameByIDUnauthorizedBodyErrorsItems0Links struct {

	// about
	// Example: https://example.com/api/resource
	About interface{} `json:"about,omitempty"`
}

GetChannelNameByIDUnauthorizedBodyErrorsItems0Links A link that leads to further details about this particular occurrance of the problem. // Example: {"about":"https://example.com/about_this_error"} swagger:model GetChannelNameByIDUnauthorizedBodyErrorsItems0Links

func (*GetChannelNameByIDUnauthorizedBodyErrorsItems0Links) ContextValidate

ContextValidate validates this get channel name by ID unauthorized body errors items0 links based on context it is used

func (*GetChannelNameByIDUnauthorizedBodyErrorsItems0Links) MarshalBinary

MarshalBinary interface implementation

func (*GetChannelNameByIDUnauthorizedBodyErrorsItems0Links) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetChannelNameByIDUnauthorizedBodyErrorsItems0Links) Validate

Validate validates this get channel name by ID unauthorized body errors items0 links

type GetChannelNameByIDUnauthorizedBodyErrorsItems0Source

type GetChannelNameByIDUnauthorizedBodyErrorsItems0Source struct {

	// A string indicating which URI query parameter caused the error.
	// Example: param1
	Parameter string `json:"parameter,omitempty"`

	// A JSON Pointer [RFC6901] to the associated entity in the request document.
	// Example: /data/attributes
	Pointer string `json:"pointer,omitempty"`
}

GetChannelNameByIDUnauthorizedBodyErrorsItems0Source get channel name by ID unauthorized body errors items0 source // Example: {"pointer":"/data/attributes"} swagger:model GetChannelNameByIDUnauthorizedBodyErrorsItems0Source

func (*GetChannelNameByIDUnauthorizedBodyErrorsItems0Source) ContextValidate

ContextValidate validates this get channel name by ID unauthorized body errors items0 source based on context it is used

func (*GetChannelNameByIDUnauthorizedBodyErrorsItems0Source) MarshalBinary

MarshalBinary interface implementation

func (*GetChannelNameByIDUnauthorizedBodyErrorsItems0Source) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetChannelNameByIDUnauthorizedBodyErrorsItems0Source) Validate

Validate validates this get channel name by ID unauthorized body errors items0 source

type GetChannelNameByIDUnauthorizedBodyJsonapi

type GetChannelNameByIDUnauthorizedBodyJsonapi struct {

	// Version of the JSON API specification this server supports.
	// Example: 1.0
	// Required: true
	// Pattern: ^(0|[1-9]\d*)\.(0|[1-9]\d*)$
	Version *string `json:"version"`
}

GetChannelNameByIDUnauthorizedBodyJsonapi get channel name by ID unauthorized body jsonapi // Example: {"version":"1.0"} swagger:model GetChannelNameByIDUnauthorizedBodyJsonapi

func (*GetChannelNameByIDUnauthorizedBodyJsonapi) ContextValidate

ContextValidate validates this get channel name by ID unauthorized body jsonapi based on context it is used

func (*GetChannelNameByIDUnauthorizedBodyJsonapi) MarshalBinary

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

MarshalBinary interface implementation

func (*GetChannelNameByIDUnauthorizedBodyJsonapi) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetChannelNameByIDUnauthorizedBodyJsonapi) Validate

Validate validates this get channel name by ID unauthorized body jsonapi

type ListChannelsBadRequest

type ListChannelsBadRequest struct {

	/* A header containing the deprecation date of the underlying endpoint. For more information, please refer to the deprecation header RFC:
	https://tools.ietf.org/id/draft-dalal-deprecation-header-01.html


	     Format: date-time
	*/
	Deprecation strfmt.DateTime

	/* A header containing a unique id used for tracking this request. If you are reporting an issue to Snyk it's very helpful to provide this ID.


	   Format: uuid
	*/
	SnykRequestID strfmt.UUID

	/* A header containing the version stage of the endpoint. This stage describes the guarantees snyk provides surrounding stability of the endpoint.

	 */
	SnykVersionLifecycleStage string

	/* A header containing the version of the endpoint requested by the caller.
	 */
	SnykVersionRequested string

	/* A header containing the version of the endpoint that was served by the API.
	 */
	SnykVersionServed string

	/* A header containing the date of when the underlying endpoint will be removed. This header is only present if the endpoint has been deprecated. Please refer to the RFC for more information:
	https://datatracker.ietf.org/doc/html/rfc8594


	     Format: date-time
	*/
	Sunset strfmt.DateTime

	Payload *ListChannelsBadRequestBody
}

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

Bad Request: A parameter provided as a part of the request was invalid.

func NewListChannelsBadRequest

func NewListChannelsBadRequest() *ListChannelsBadRequest

NewListChannelsBadRequest creates a ListChannelsBadRequest with default headers values

func (*ListChannelsBadRequest) Code

func (o *ListChannelsBadRequest) Code() int

Code gets the status code for the list channels bad request response

func (*ListChannelsBadRequest) Error

func (o *ListChannelsBadRequest) Error() string

func (*ListChannelsBadRequest) GetPayload

func (*ListChannelsBadRequest) IsClientError

func (o *ListChannelsBadRequest) IsClientError() bool

IsClientError returns true when this list channels bad request response has a 4xx status code

func (*ListChannelsBadRequest) IsCode

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

IsCode returns true when this list channels bad request response a status code equal to that given

func (*ListChannelsBadRequest) IsRedirect

func (o *ListChannelsBadRequest) IsRedirect() bool

IsRedirect returns true when this list channels bad request response has a 3xx status code

func (*ListChannelsBadRequest) IsServerError

func (o *ListChannelsBadRequest) IsServerError() bool

IsServerError returns true when this list channels bad request response has a 5xx status code

func (*ListChannelsBadRequest) IsSuccess

func (o *ListChannelsBadRequest) IsSuccess() bool

IsSuccess returns true when this list channels bad request response has a 2xx status code

func (*ListChannelsBadRequest) String

func (o *ListChannelsBadRequest) String() string

type ListChannelsBadRequestBody

type ListChannelsBadRequestBody struct {

	// errors
	// Example: [{"detail":"Permission denied for this resource","status":"403"}]
	// Required: true
	// Min Items: 1
	Errors []*ListChannelsBadRequestBodyErrorsItems0 `json:"errors"`

	// jsonapi
	// Required: true
	Jsonapi *ListChannelsBadRequestBodyJsonapi `json:"jsonapi"`
}

ListChannelsBadRequestBody list channels bad request body // Example: {"errors":[{"detail":"Permission denied for this resource","status":"403"}],"jsonapi":{"version":"1.0"}} swagger:model ListChannelsBadRequestBody

func (*ListChannelsBadRequestBody) ContextValidate

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

ContextValidate validate this list channels bad request body based on the context it is used

func (*ListChannelsBadRequestBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListChannelsBadRequestBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListChannelsBadRequestBody) Validate

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

Validate validates this list channels bad request body

type ListChannelsBadRequestBodyErrorsItems0

type ListChannelsBadRequestBodyErrorsItems0 struct {

	// An application-specific error code, expressed as a string value.
	// Example: entity-not-found
	Code string `json:"code,omitempty"`

	// A human-readable explanation specific to this occurrence of the problem.
	// Example: The request was missing these required fields: ...
	// Required: true
	Detail *string `json:"detail"`

	// A unique identifier for this particular occurrence of the problem.
	// Example: f16c31b5-6129-4571-add8-d589da9be524
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// links
	Links *ListChannelsBadRequestBodyErrorsItems0Links `json:"links,omitempty"`

	// meta
	// Example: {"key":"value"}
	Meta interface{} `json:"meta,omitempty"`

	// source
	Source *ListChannelsBadRequestBodyErrorsItems0Source `json:"source,omitempty"`

	// The HTTP status code applicable to this problem, expressed as a string value.
	// Example: 400
	// Required: true
	// Pattern: ^[45]\d\d$
	Status *string `json:"status"`

	// A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
	// Example: Bad request
	Title string `json:"title,omitempty"`
}

ListChannelsBadRequestBodyErrorsItems0 list channels bad request body errors items0 // Example: {"detail":"Not Found","status":"404"} swagger:model ListChannelsBadRequestBodyErrorsItems0

func (*ListChannelsBadRequestBodyErrorsItems0) ContextValidate

ContextValidate validate this list channels bad request body errors items0 based on the context it is used

func (*ListChannelsBadRequestBodyErrorsItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*ListChannelsBadRequestBodyErrorsItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListChannelsBadRequestBodyErrorsItems0) Validate

Validate validates this list channels bad request body errors items0

type ListChannelsBadRequestBodyErrorsItems0Links struct {

	// about
	// Example: https://example.com/api/resource
	About interface{} `json:"about,omitempty"`
}

ListChannelsBadRequestBodyErrorsItems0Links A link that leads to further details about this particular occurrance of the problem. // Example: {"about":"https://example.com/about_this_error"} swagger:model ListChannelsBadRequestBodyErrorsItems0Links

func (*ListChannelsBadRequestBodyErrorsItems0Links) ContextValidate

ContextValidate validates this list channels bad request body errors items0 links based on context it is used

func (*ListChannelsBadRequestBodyErrorsItems0Links) MarshalBinary

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

MarshalBinary interface implementation

func (*ListChannelsBadRequestBodyErrorsItems0Links) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListChannelsBadRequestBodyErrorsItems0Links) Validate

Validate validates this list channels bad request body errors items0 links

type ListChannelsBadRequestBodyErrorsItems0Source

type ListChannelsBadRequestBodyErrorsItems0Source struct {

	// A string indicating which URI query parameter caused the error.
	// Example: param1
	Parameter string `json:"parameter,omitempty"`

	// A JSON Pointer [RFC6901] to the associated entity in the request document.
	// Example: /data/attributes
	Pointer string `json:"pointer,omitempty"`
}

ListChannelsBadRequestBodyErrorsItems0Source list channels bad request body errors items0 source // Example: {"pointer":"/data/attributes"} swagger:model ListChannelsBadRequestBodyErrorsItems0Source

func (*ListChannelsBadRequestBodyErrorsItems0Source) ContextValidate

ContextValidate validates this list channels bad request body errors items0 source based on context it is used

func (*ListChannelsBadRequestBodyErrorsItems0Source) MarshalBinary

MarshalBinary interface implementation

func (*ListChannelsBadRequestBodyErrorsItems0Source) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ListChannelsBadRequestBodyErrorsItems0Source) Validate

Validate validates this list channels bad request body errors items0 source

type ListChannelsBadRequestBodyJsonapi

type ListChannelsBadRequestBodyJsonapi struct {

	// Version of the JSON API specification this server supports.
	// Example: 1.0
	// Required: true
	// Pattern: ^(0|[1-9]\d*)\.(0|[1-9]\d*)$
	Version *string `json:"version"`
}

ListChannelsBadRequestBodyJsonapi list channels bad request body jsonapi // Example: {"version":"1.0"} swagger:model ListChannelsBadRequestBodyJsonapi

func (*ListChannelsBadRequestBodyJsonapi) ContextValidate

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

ContextValidate validates this list channels bad request body jsonapi based on context it is used

func (*ListChannelsBadRequestBodyJsonapi) MarshalBinary

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

MarshalBinary interface implementation

func (*ListChannelsBadRequestBodyJsonapi) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListChannelsBadRequestBodyJsonapi) Validate

Validate validates this list channels bad request body jsonapi

type ListChannelsConflict

type ListChannelsConflict struct {

	/* A header containing the deprecation date of the underlying endpoint. For more information, please refer to the deprecation header RFC:
	https://tools.ietf.org/id/draft-dalal-deprecation-header-01.html


	     Format: date-time
	*/
	Deprecation strfmt.DateTime

	/* A header containing a unique id used for tracking this request. If you are reporting an issue to Snyk it's very helpful to provide this ID.


	   Format: uuid
	*/
	SnykRequestID strfmt.UUID

	/* A header containing the version stage of the endpoint. This stage describes the guarantees snyk provides surrounding stability of the endpoint.

	 */
	SnykVersionLifecycleStage string

	/* A header containing the version of the endpoint requested by the caller.
	 */
	SnykVersionRequested string

	/* A header containing the version of the endpoint that was served by the API.
	 */
	SnykVersionServed string

	/* A header containing the date of when the underlying endpoint will be removed. This header is only present if the endpoint has been deprecated. Please refer to the RFC for more information:
	https://datatracker.ietf.org/doc/html/rfc8594


	     Format: date-time
	*/
	Sunset strfmt.DateTime

	Payload *ListChannelsConflictBody
}

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

Conflict: The requested operation conflicts with the current state of the resource in some way.

func NewListChannelsConflict

func NewListChannelsConflict() *ListChannelsConflict

NewListChannelsConflict creates a ListChannelsConflict with default headers values

func (*ListChannelsConflict) Code

func (o *ListChannelsConflict) Code() int

Code gets the status code for the list channels conflict response

func (*ListChannelsConflict) Error

func (o *ListChannelsConflict) Error() string

func (*ListChannelsConflict) GetPayload

func (*ListChannelsConflict) IsClientError

func (o *ListChannelsConflict) IsClientError() bool

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

func (*ListChannelsConflict) IsCode

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

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

func (*ListChannelsConflict) IsRedirect

func (o *ListChannelsConflict) IsRedirect() bool

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

func (*ListChannelsConflict) IsServerError

func (o *ListChannelsConflict) IsServerError() bool

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

func (*ListChannelsConflict) IsSuccess

func (o *ListChannelsConflict) IsSuccess() bool

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

func (*ListChannelsConflict) String

func (o *ListChannelsConflict) String() string

type ListChannelsConflictBody

type ListChannelsConflictBody struct {

	// errors
	// Example: [{"detail":"Permission denied for this resource","status":"403"}]
	// Required: true
	// Min Items: 1
	Errors []*ListChannelsConflictBodyErrorsItems0 `json:"errors"`

	// jsonapi
	// Required: true
	Jsonapi *ListChannelsConflictBodyJsonapi `json:"jsonapi"`
}

ListChannelsConflictBody list channels conflict body // Example: {"errors":[{"detail":"Permission denied for this resource","status":"403"}],"jsonapi":{"version":"1.0"}} swagger:model ListChannelsConflictBody

func (*ListChannelsConflictBody) ContextValidate

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

ContextValidate validate this list channels conflict body based on the context it is used

func (*ListChannelsConflictBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListChannelsConflictBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListChannelsConflictBody) Validate

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

Validate validates this list channels conflict body

type ListChannelsConflictBodyErrorsItems0

type ListChannelsConflictBodyErrorsItems0 struct {

	// An application-specific error code, expressed as a string value.
	// Example: entity-not-found
	Code string `json:"code,omitempty"`

	// A human-readable explanation specific to this occurrence of the problem.
	// Example: The request was missing these required fields: ...
	// Required: true
	Detail *string `json:"detail"`

	// A unique identifier for this particular occurrence of the problem.
	// Example: f16c31b5-6129-4571-add8-d589da9be524
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// links
	Links *ListChannelsConflictBodyErrorsItems0Links `json:"links,omitempty"`

	// meta
	// Example: {"key":"value"}
	Meta interface{} `json:"meta,omitempty"`

	// source
	Source *ListChannelsConflictBodyErrorsItems0Source `json:"source,omitempty"`

	// The HTTP status code applicable to this problem, expressed as a string value.
	// Example: 400
	// Required: true
	// Pattern: ^[45]\d\d$
	Status *string `json:"status"`

	// A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
	// Example: Bad request
	Title string `json:"title,omitempty"`
}

ListChannelsConflictBodyErrorsItems0 list channels conflict body errors items0 // Example: {"detail":"Not Found","status":"404"} swagger:model ListChannelsConflictBodyErrorsItems0

func (*ListChannelsConflictBodyErrorsItems0) ContextValidate

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

ContextValidate validate this list channels conflict body errors items0 based on the context it is used

func (*ListChannelsConflictBodyErrorsItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*ListChannelsConflictBodyErrorsItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListChannelsConflictBodyErrorsItems0) Validate

Validate validates this list channels conflict body errors items0

type ListChannelsConflictBodyErrorsItems0Links struct {

	// about
	// Example: https://example.com/api/resource
	About interface{} `json:"about,omitempty"`
}

ListChannelsConflictBodyErrorsItems0Links A link that leads to further details about this particular occurrance of the problem. // Example: {"about":"https://example.com/about_this_error"} swagger:model ListChannelsConflictBodyErrorsItems0Links

func (*ListChannelsConflictBodyErrorsItems0Links) ContextValidate

ContextValidate validates this list channels conflict body errors items0 links based on context it is used

func (*ListChannelsConflictBodyErrorsItems0Links) MarshalBinary

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

MarshalBinary interface implementation

func (*ListChannelsConflictBodyErrorsItems0Links) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListChannelsConflictBodyErrorsItems0Links) Validate

Validate validates this list channels conflict body errors items0 links

type ListChannelsConflictBodyErrorsItems0Source

type ListChannelsConflictBodyErrorsItems0Source struct {

	// A string indicating which URI query parameter caused the error.
	// Example: param1
	Parameter string `json:"parameter,omitempty"`

	// A JSON Pointer [RFC6901] to the associated entity in the request document.
	// Example: /data/attributes
	Pointer string `json:"pointer,omitempty"`
}

ListChannelsConflictBodyErrorsItems0Source list channels conflict body errors items0 source // Example: {"pointer":"/data/attributes"} swagger:model ListChannelsConflictBodyErrorsItems0Source

func (*ListChannelsConflictBodyErrorsItems0Source) ContextValidate

ContextValidate validates this list channels conflict body errors items0 source based on context it is used

func (*ListChannelsConflictBodyErrorsItems0Source) MarshalBinary

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

MarshalBinary interface implementation

func (*ListChannelsConflictBodyErrorsItems0Source) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListChannelsConflictBodyErrorsItems0Source) Validate

Validate validates this list channels conflict body errors items0 source

type ListChannelsConflictBodyJsonapi

type ListChannelsConflictBodyJsonapi struct {

	// Version of the JSON API specification this server supports.
	// Example: 1.0
	// Required: true
	// Pattern: ^(0|[1-9]\d*)\.(0|[1-9]\d*)$
	Version *string `json:"version"`
}

ListChannelsConflictBodyJsonapi list channels conflict body jsonapi // Example: {"version":"1.0"} swagger:model ListChannelsConflictBodyJsonapi

func (*ListChannelsConflictBodyJsonapi) ContextValidate

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

ContextValidate validates this list channels conflict body jsonapi based on context it is used

func (*ListChannelsConflictBodyJsonapi) MarshalBinary

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

MarshalBinary interface implementation

func (*ListChannelsConflictBodyJsonapi) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListChannelsConflictBodyJsonapi) Validate

Validate validates this list channels conflict body jsonapi

type ListChannelsForbidden

type ListChannelsForbidden struct {

	/* A header containing the deprecation date of the underlying endpoint. For more information, please refer to the deprecation header RFC:
	https://tools.ietf.org/id/draft-dalal-deprecation-header-01.html


	     Format: date-time
	*/
	Deprecation strfmt.DateTime

	/* A header containing a unique id used for tracking this request. If you are reporting an issue to Snyk it's very helpful to provide this ID.


	   Format: uuid
	*/
	SnykRequestID strfmt.UUID

	/* A header containing the version stage of the endpoint. This stage describes the guarantees snyk provides surrounding stability of the endpoint.

	 */
	SnykVersionLifecycleStage string

	/* A header containing the version of the endpoint requested by the caller.
	 */
	SnykVersionRequested string

	/* A header containing the version of the endpoint that was served by the API.
	 */
	SnykVersionServed string

	/* A header containing the date of when the underlying endpoint will be removed. This header is only present if the endpoint has been deprecated. Please refer to the RFC for more information:
	https://datatracker.ietf.org/doc/html/rfc8594


	     Format: date-time
	*/
	Sunset strfmt.DateTime

	Payload *ListChannelsForbiddenBody
}

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

Forbidden: the request requires an authentication token with more or different permissions.

func NewListChannelsForbidden

func NewListChannelsForbidden() *ListChannelsForbidden

NewListChannelsForbidden creates a ListChannelsForbidden with default headers values

func (*ListChannelsForbidden) Code

func (o *ListChannelsForbidden) Code() int

Code gets the status code for the list channels forbidden response

func (*ListChannelsForbidden) Error

func (o *ListChannelsForbidden) Error() string

func (*ListChannelsForbidden) GetPayload

func (*ListChannelsForbidden) IsClientError

func (o *ListChannelsForbidden) IsClientError() bool

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

func (*ListChannelsForbidden) IsCode

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

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

func (*ListChannelsForbidden) IsRedirect

func (o *ListChannelsForbidden) IsRedirect() bool

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

func (*ListChannelsForbidden) IsServerError

func (o *ListChannelsForbidden) IsServerError() bool

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

func (*ListChannelsForbidden) IsSuccess

func (o *ListChannelsForbidden) IsSuccess() bool

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

func (*ListChannelsForbidden) String

func (o *ListChannelsForbidden) String() string

type ListChannelsForbiddenBody

type ListChannelsForbiddenBody struct {

	// errors
	// Example: [{"detail":"Permission denied for this resource","status":"403"}]
	// Required: true
	// Min Items: 1
	Errors []*ListChannelsForbiddenBodyErrorsItems0 `json:"errors"`

	// jsonapi
	// Required: true
	Jsonapi *ListChannelsForbiddenBodyJsonapi `json:"jsonapi"`
}

ListChannelsForbiddenBody list channels forbidden body // Example: {"errors":[{"detail":"Permission denied for this resource","status":"403"}],"jsonapi":{"version":"1.0"}} swagger:model ListChannelsForbiddenBody

func (*ListChannelsForbiddenBody) ContextValidate

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

ContextValidate validate this list channels forbidden body based on the context it is used

func (*ListChannelsForbiddenBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListChannelsForbiddenBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListChannelsForbiddenBody) Validate

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

Validate validates this list channels forbidden body

type ListChannelsForbiddenBodyErrorsItems0

type ListChannelsForbiddenBodyErrorsItems0 struct {

	// An application-specific error code, expressed as a string value.
	// Example: entity-not-found
	Code string `json:"code,omitempty"`

	// A human-readable explanation specific to this occurrence of the problem.
	// Example: The request was missing these required fields: ...
	// Required: true
	Detail *string `json:"detail"`

	// A unique identifier for this particular occurrence of the problem.
	// Example: f16c31b5-6129-4571-add8-d589da9be524
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// links
	Links *ListChannelsForbiddenBodyErrorsItems0Links `json:"links,omitempty"`

	// meta
	// Example: {"key":"value"}
	Meta interface{} `json:"meta,omitempty"`

	// source
	Source *ListChannelsForbiddenBodyErrorsItems0Source `json:"source,omitempty"`

	// The HTTP status code applicable to this problem, expressed as a string value.
	// Example: 400
	// Required: true
	// Pattern: ^[45]\d\d$
	Status *string `json:"status"`

	// A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
	// Example: Bad request
	Title string `json:"title,omitempty"`
}

ListChannelsForbiddenBodyErrorsItems0 list channels forbidden body errors items0 // Example: {"detail":"Not Found","status":"404"} swagger:model ListChannelsForbiddenBodyErrorsItems0

func (*ListChannelsForbiddenBodyErrorsItems0) ContextValidate

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

ContextValidate validate this list channels forbidden body errors items0 based on the context it is used

func (*ListChannelsForbiddenBodyErrorsItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*ListChannelsForbiddenBodyErrorsItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListChannelsForbiddenBodyErrorsItems0) Validate

Validate validates this list channels forbidden body errors items0

type ListChannelsForbiddenBodyErrorsItems0Links struct {

	// about
	// Example: https://example.com/api/resource
	About interface{} `json:"about,omitempty"`
}

ListChannelsForbiddenBodyErrorsItems0Links A link that leads to further details about this particular occurrance of the problem. // Example: {"about":"https://example.com/about_this_error"} swagger:model ListChannelsForbiddenBodyErrorsItems0Links

func (*ListChannelsForbiddenBodyErrorsItems0Links) ContextValidate

ContextValidate validates this list channels forbidden body errors items0 links based on context it is used

func (*ListChannelsForbiddenBodyErrorsItems0Links) MarshalBinary

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

MarshalBinary interface implementation

func (*ListChannelsForbiddenBodyErrorsItems0Links) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListChannelsForbiddenBodyErrorsItems0Links) Validate

Validate validates this list channels forbidden body errors items0 links

type ListChannelsForbiddenBodyErrorsItems0Source

type ListChannelsForbiddenBodyErrorsItems0Source struct {

	// A string indicating which URI query parameter caused the error.
	// Example: param1
	Parameter string `json:"parameter,omitempty"`

	// A JSON Pointer [RFC6901] to the associated entity in the request document.
	// Example: /data/attributes
	Pointer string `json:"pointer,omitempty"`
}

ListChannelsForbiddenBodyErrorsItems0Source list channels forbidden body errors items0 source // Example: {"pointer":"/data/attributes"} swagger:model ListChannelsForbiddenBodyErrorsItems0Source

func (*ListChannelsForbiddenBodyErrorsItems0Source) ContextValidate

ContextValidate validates this list channels forbidden body errors items0 source based on context it is used

func (*ListChannelsForbiddenBodyErrorsItems0Source) MarshalBinary

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

MarshalBinary interface implementation

func (*ListChannelsForbiddenBodyErrorsItems0Source) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListChannelsForbiddenBodyErrorsItems0Source) Validate

Validate validates this list channels forbidden body errors items0 source

type ListChannelsForbiddenBodyJsonapi

type ListChannelsForbiddenBodyJsonapi struct {

	// Version of the JSON API specification this server supports.
	// Example: 1.0
	// Required: true
	// Pattern: ^(0|[1-9]\d*)\.(0|[1-9]\d*)$
	Version *string `json:"version"`
}

ListChannelsForbiddenBodyJsonapi list channels forbidden body jsonapi // Example: {"version":"1.0"} swagger:model ListChannelsForbiddenBodyJsonapi

func (*ListChannelsForbiddenBodyJsonapi) ContextValidate

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

ContextValidate validates this list channels forbidden body jsonapi based on context it is used

func (*ListChannelsForbiddenBodyJsonapi) MarshalBinary

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

MarshalBinary interface implementation

func (*ListChannelsForbiddenBodyJsonapi) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListChannelsForbiddenBodyJsonapi) Validate

Validate validates this list channels forbidden body jsonapi

type ListChannelsInternalServerError

type ListChannelsInternalServerError struct {

	/* A header containing the deprecation date of the underlying endpoint. For more information, please refer to the deprecation header RFC:
	https://tools.ietf.org/id/draft-dalal-deprecation-header-01.html


	     Format: date-time
	*/
	Deprecation strfmt.DateTime

	/* A header containing a unique id used for tracking this request. If you are reporting an issue to Snyk it's very helpful to provide this ID.


	   Format: uuid
	*/
	SnykRequestID strfmt.UUID

	/* A header containing the version stage of the endpoint. This stage describes the guarantees snyk provides surrounding stability of the endpoint.

	 */
	SnykVersionLifecycleStage string

	/* A header containing the version of the endpoint requested by the caller.
	 */
	SnykVersionRequested string

	/* A header containing the version of the endpoint that was served by the API.
	 */
	SnykVersionServed string

	/* A header containing the date of when the underlying endpoint will be removed. This header is only present if the endpoint has been deprecated. Please refer to the RFC for more information:
	https://datatracker.ietf.org/doc/html/rfc8594


	     Format: date-time
	*/
	Sunset strfmt.DateTime

	Payload *ListChannelsInternalServerErrorBody
}

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

Internal Server Error: An error was encountered while attempting to process the request.

func NewListChannelsInternalServerError

func NewListChannelsInternalServerError() *ListChannelsInternalServerError

NewListChannelsInternalServerError creates a ListChannelsInternalServerError with default headers values

func (*ListChannelsInternalServerError) Code

Code gets the status code for the list channels internal server error response

func (*ListChannelsInternalServerError) Error

func (*ListChannelsInternalServerError) GetPayload

func (*ListChannelsInternalServerError) IsClientError

func (o *ListChannelsInternalServerError) IsClientError() bool

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

func (*ListChannelsInternalServerError) IsCode

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

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

func (*ListChannelsInternalServerError) IsRedirect

func (o *ListChannelsInternalServerError) IsRedirect() bool

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

func (*ListChannelsInternalServerError) IsServerError

func (o *ListChannelsInternalServerError) IsServerError() bool

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

func (*ListChannelsInternalServerError) IsSuccess

func (o *ListChannelsInternalServerError) IsSuccess() bool

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

func (*ListChannelsInternalServerError) String

type ListChannelsInternalServerErrorBody

type ListChannelsInternalServerErrorBody struct {

	// errors
	// Example: [{"detail":"Permission denied for this resource","status":"403"}]
	// Required: true
	// Min Items: 1
	Errors []*ListChannelsInternalServerErrorBodyErrorsItems0 `json:"errors"`

	// jsonapi
	// Required: true
	Jsonapi *ListChannelsInternalServerErrorBodyJsonapi `json:"jsonapi"`
}

ListChannelsInternalServerErrorBody list channels internal server error body // Example: {"errors":[{"detail":"Permission denied for this resource","status":"403"}],"jsonapi":{"version":"1.0"}} swagger:model ListChannelsInternalServerErrorBody

func (*ListChannelsInternalServerErrorBody) ContextValidate

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

ContextValidate validate this list channels internal server error body based on the context it is used

func (*ListChannelsInternalServerErrorBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListChannelsInternalServerErrorBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListChannelsInternalServerErrorBody) Validate

Validate validates this list channels internal server error body

type ListChannelsInternalServerErrorBodyErrorsItems0

type ListChannelsInternalServerErrorBodyErrorsItems0 struct {

	// An application-specific error code, expressed as a string value.
	// Example: entity-not-found
	Code string `json:"code,omitempty"`

	// A human-readable explanation specific to this occurrence of the problem.
	// Example: The request was missing these required fields: ...
	// Required: true
	Detail *string `json:"detail"`

	// A unique identifier for this particular occurrence of the problem.
	// Example: f16c31b5-6129-4571-add8-d589da9be524
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// links
	Links *ListChannelsInternalServerErrorBodyErrorsItems0Links `json:"links,omitempty"`

	// meta
	// Example: {"key":"value"}
	Meta interface{} `json:"meta,omitempty"`

	// source
	Source *ListChannelsInternalServerErrorBodyErrorsItems0Source `json:"source,omitempty"`

	// The HTTP status code applicable to this problem, expressed as a string value.
	// Example: 400
	// Required: true
	// Pattern: ^[45]\d\d$
	Status *string `json:"status"`

	// A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
	// Example: Bad request
	Title string `json:"title,omitempty"`
}

ListChannelsInternalServerErrorBodyErrorsItems0 list channels internal server error body errors items0 // Example: {"detail":"Not Found","status":"404"} swagger:model ListChannelsInternalServerErrorBodyErrorsItems0

func (*ListChannelsInternalServerErrorBodyErrorsItems0) ContextValidate

ContextValidate validate this list channels internal server error body errors items0 based on the context it is used

func (*ListChannelsInternalServerErrorBodyErrorsItems0) MarshalBinary

MarshalBinary interface implementation

func (*ListChannelsInternalServerErrorBodyErrorsItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ListChannelsInternalServerErrorBodyErrorsItems0) Validate

Validate validates this list channels internal server error body errors items0

type ListChannelsInternalServerErrorBodyErrorsItems0Links struct {

	// about
	// Example: https://example.com/api/resource
	About interface{} `json:"about,omitempty"`
}

ListChannelsInternalServerErrorBodyErrorsItems0Links A link that leads to further details about this particular occurrance of the problem. // Example: {"about":"https://example.com/about_this_error"} swagger:model ListChannelsInternalServerErrorBodyErrorsItems0Links

func (*ListChannelsInternalServerErrorBodyErrorsItems0Links) ContextValidate

ContextValidate validates this list channels internal server error body errors items0 links based on context it is used

func (*ListChannelsInternalServerErrorBodyErrorsItems0Links) MarshalBinary

MarshalBinary interface implementation

func (*ListChannelsInternalServerErrorBodyErrorsItems0Links) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ListChannelsInternalServerErrorBodyErrorsItems0Links) Validate

Validate validates this list channels internal server error body errors items0 links

type ListChannelsInternalServerErrorBodyErrorsItems0Source

type ListChannelsInternalServerErrorBodyErrorsItems0Source struct {

	// A string indicating which URI query parameter caused the error.
	// Example: param1
	Parameter string `json:"parameter,omitempty"`

	// A JSON Pointer [RFC6901] to the associated entity in the request document.
	// Example: /data/attributes
	Pointer string `json:"pointer,omitempty"`
}

ListChannelsInternalServerErrorBodyErrorsItems0Source list channels internal server error body errors items0 source // Example: {"pointer":"/data/attributes"} swagger:model ListChannelsInternalServerErrorBodyErrorsItems0Source

func (*ListChannelsInternalServerErrorBodyErrorsItems0Source) ContextValidate

ContextValidate validates this list channels internal server error body errors items0 source based on context it is used

func (*ListChannelsInternalServerErrorBodyErrorsItems0Source) MarshalBinary

MarshalBinary interface implementation

func (*ListChannelsInternalServerErrorBodyErrorsItems0Source) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ListChannelsInternalServerErrorBodyErrorsItems0Source) Validate

Validate validates this list channels internal server error body errors items0 source

type ListChannelsInternalServerErrorBodyJsonapi

type ListChannelsInternalServerErrorBodyJsonapi struct {

	// Version of the JSON API specification this server supports.
	// Example: 1.0
	// Required: true
	// Pattern: ^(0|[1-9]\d*)\.(0|[1-9]\d*)$
	Version *string `json:"version"`
}

ListChannelsInternalServerErrorBodyJsonapi list channels internal server error body jsonapi // Example: {"version":"1.0"} swagger:model ListChannelsInternalServerErrorBodyJsonapi

func (*ListChannelsInternalServerErrorBodyJsonapi) ContextValidate

ContextValidate validates this list channels internal server error body jsonapi based on context it is used

func (*ListChannelsInternalServerErrorBodyJsonapi) MarshalBinary

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

MarshalBinary interface implementation

func (*ListChannelsInternalServerErrorBodyJsonapi) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListChannelsInternalServerErrorBodyJsonapi) Validate

Validate validates this list channels internal server error body jsonapi

type ListChannelsNotFound

type ListChannelsNotFound struct {

	/* A header containing the deprecation date of the underlying endpoint. For more information, please refer to the deprecation header RFC:
	https://tools.ietf.org/id/draft-dalal-deprecation-header-01.html


	     Format: date-time
	*/
	Deprecation strfmt.DateTime

	/* A header containing a unique id used for tracking this request. If you are reporting an issue to Snyk it's very helpful to provide this ID.


	   Format: uuid
	*/
	SnykRequestID strfmt.UUID

	/* A header containing the version stage of the endpoint. This stage describes the guarantees snyk provides surrounding stability of the endpoint.

	 */
	SnykVersionLifecycleStage string

	/* A header containing the version of the endpoint requested by the caller.
	 */
	SnykVersionRequested string

	/* A header containing the version of the endpoint that was served by the API.
	 */
	SnykVersionServed string

	/* A header containing the date of when the underlying endpoint will be removed. This header is only present if the endpoint has been deprecated. Please refer to the RFC for more information:
	https://datatracker.ietf.org/doc/html/rfc8594


	     Format: date-time
	*/
	Sunset strfmt.DateTime

	Payload *ListChannelsNotFoundBody
}

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

Not Found: The resource being operated on could not be found.

func NewListChannelsNotFound

func NewListChannelsNotFound() *ListChannelsNotFound

NewListChannelsNotFound creates a ListChannelsNotFound with default headers values

func (*ListChannelsNotFound) Code

func (o *ListChannelsNotFound) Code() int

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

func (*ListChannelsNotFound) Error

func (o *ListChannelsNotFound) Error() string

func (*ListChannelsNotFound) GetPayload

func (*ListChannelsNotFound) IsClientError

func (o *ListChannelsNotFound) IsClientError() bool

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

func (*ListChannelsNotFound) IsCode

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

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

func (*ListChannelsNotFound) IsRedirect

func (o *ListChannelsNotFound) IsRedirect() bool

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

func (*ListChannelsNotFound) IsServerError

func (o *ListChannelsNotFound) IsServerError() bool

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

func (*ListChannelsNotFound) IsSuccess

func (o *ListChannelsNotFound) IsSuccess() bool

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

func (*ListChannelsNotFound) String

func (o *ListChannelsNotFound) String() string

type ListChannelsNotFoundBody

type ListChannelsNotFoundBody struct {

	// errors
	// Example: [{"detail":"Permission denied for this resource","status":"403"}]
	// Required: true
	// Min Items: 1
	Errors []*ListChannelsNotFoundBodyErrorsItems0 `json:"errors"`

	// jsonapi
	// Required: true
	Jsonapi *ListChannelsNotFoundBodyJsonapi `json:"jsonapi"`
}

ListChannelsNotFoundBody list channels not found body // Example: {"errors":[{"detail":"Permission denied for this resource","status":"403"}],"jsonapi":{"version":"1.0"}} swagger:model ListChannelsNotFoundBody

func (*ListChannelsNotFoundBody) ContextValidate

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

ContextValidate validate this list channels not found body based on the context it is used

func (*ListChannelsNotFoundBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListChannelsNotFoundBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListChannelsNotFoundBody) Validate

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

Validate validates this list channels not found body

type ListChannelsNotFoundBodyErrorsItems0

type ListChannelsNotFoundBodyErrorsItems0 struct {

	// An application-specific error code, expressed as a string value.
	// Example: entity-not-found
	Code string `json:"code,omitempty"`

	// A human-readable explanation specific to this occurrence of the problem.
	// Example: The request was missing these required fields: ...
	// Required: true
	Detail *string `json:"detail"`

	// A unique identifier for this particular occurrence of the problem.
	// Example: f16c31b5-6129-4571-add8-d589da9be524
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// links
	Links *ListChannelsNotFoundBodyErrorsItems0Links `json:"links,omitempty"`

	// meta
	// Example: {"key":"value"}
	Meta interface{} `json:"meta,omitempty"`

	// source
	Source *ListChannelsNotFoundBodyErrorsItems0Source `json:"source,omitempty"`

	// The HTTP status code applicable to this problem, expressed as a string value.
	// Example: 400
	// Required: true
	// Pattern: ^[45]\d\d$
	Status *string `json:"status"`

	// A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
	// Example: Bad request
	Title string `json:"title,omitempty"`
}

ListChannelsNotFoundBodyErrorsItems0 list channels not found body errors items0 // Example: {"detail":"Not Found","status":"404"} swagger:model ListChannelsNotFoundBodyErrorsItems0

func (*ListChannelsNotFoundBodyErrorsItems0) ContextValidate

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

ContextValidate validate this list channels not found body errors items0 based on the context it is used

func (*ListChannelsNotFoundBodyErrorsItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*ListChannelsNotFoundBodyErrorsItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListChannelsNotFoundBodyErrorsItems0) Validate

Validate validates this list channels not found body errors items0

type ListChannelsNotFoundBodyErrorsItems0Links struct {

	// about
	// Example: https://example.com/api/resource
	About interface{} `json:"about,omitempty"`
}

ListChannelsNotFoundBodyErrorsItems0Links A link that leads to further details about this particular occurrance of the problem. // Example: {"about":"https://example.com/about_this_error"} swagger:model ListChannelsNotFoundBodyErrorsItems0Links

func (*ListChannelsNotFoundBodyErrorsItems0Links) ContextValidate

ContextValidate validates this list channels not found body errors items0 links based on context it is used

func (*ListChannelsNotFoundBodyErrorsItems0Links) MarshalBinary

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

MarshalBinary interface implementation

func (*ListChannelsNotFoundBodyErrorsItems0Links) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListChannelsNotFoundBodyErrorsItems0Links) Validate

Validate validates this list channels not found body errors items0 links

type ListChannelsNotFoundBodyErrorsItems0Source

type ListChannelsNotFoundBodyErrorsItems0Source struct {

	// A string indicating which URI query parameter caused the error.
	// Example: param1
	Parameter string `json:"parameter,omitempty"`

	// A JSON Pointer [RFC6901] to the associated entity in the request document.
	// Example: /data/attributes
	Pointer string `json:"pointer,omitempty"`
}

ListChannelsNotFoundBodyErrorsItems0Source list channels not found body errors items0 source // Example: {"pointer":"/data/attributes"} swagger:model ListChannelsNotFoundBodyErrorsItems0Source

func (*ListChannelsNotFoundBodyErrorsItems0Source) ContextValidate

ContextValidate validates this list channels not found body errors items0 source based on context it is used

func (*ListChannelsNotFoundBodyErrorsItems0Source) MarshalBinary

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

MarshalBinary interface implementation

func (*ListChannelsNotFoundBodyErrorsItems0Source) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListChannelsNotFoundBodyErrorsItems0Source) Validate

Validate validates this list channels not found body errors items0 source

type ListChannelsNotFoundBodyJsonapi

type ListChannelsNotFoundBodyJsonapi struct {

	// Version of the JSON API specification this server supports.
	// Example: 1.0
	// Required: true
	// Pattern: ^(0|[1-9]\d*)\.(0|[1-9]\d*)$
	Version *string `json:"version"`
}

ListChannelsNotFoundBodyJsonapi list channels not found body jsonapi // Example: {"version":"1.0"} swagger:model ListChannelsNotFoundBodyJsonapi

func (*ListChannelsNotFoundBodyJsonapi) ContextValidate

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

ContextValidate validates this list channels not found body jsonapi based on context it is used

func (*ListChannelsNotFoundBodyJsonapi) MarshalBinary

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

MarshalBinary interface implementation

func (*ListChannelsNotFoundBodyJsonapi) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListChannelsNotFoundBodyJsonapi) Validate

Validate validates this list channels not found body jsonapi

type ListChannelsOK

type ListChannelsOK struct {

	/* A header containing the deprecation date of the underlying endpoint. For more information, please refer to the deprecation header RFC:
	https://tools.ietf.org/id/draft-dalal-deprecation-header-01.html


	     Format: date-time
	*/
	Deprecation strfmt.DateTime

	/* A header containing a unique id used for tracking this request. If you are reporting an issue to Snyk it's very helpful to provide this ID.


	   Format: uuid
	*/
	SnykRequestID strfmt.UUID

	/* A header containing the version stage of the endpoint. This stage describes the guarantees snyk provides surrounding stability of the endpoint.

	 */
	SnykVersionLifecycleStage string

	/* A header containing the version of the endpoint requested by the caller.
	 */
	SnykVersionRequested string

	/* A header containing the version of the endpoint that was served by the API.
	 */
	SnykVersionServed string

	/* A header containing the date of when the underlying endpoint will be removed. This header is only present if the endpoint has been deprecated. Please refer to the RFC for more information:
	https://datatracker.ietf.org/doc/html/rfc8594


	     Format: date-time
	*/
	Sunset strfmt.DateTime

	Payload *ListChannelsOKBody
}

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

List of Slack channels

func NewListChannelsOK

func NewListChannelsOK() *ListChannelsOK

NewListChannelsOK creates a ListChannelsOK with default headers values

func (*ListChannelsOK) Code

func (o *ListChannelsOK) Code() int

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

func (*ListChannelsOK) Error

func (o *ListChannelsOK) Error() string

func (*ListChannelsOK) GetPayload

func (o *ListChannelsOK) GetPayload() *ListChannelsOKBody

func (*ListChannelsOK) IsClientError

func (o *ListChannelsOK) IsClientError() bool

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

func (*ListChannelsOK) IsCode

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

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

func (*ListChannelsOK) IsRedirect

func (o *ListChannelsOK) IsRedirect() bool

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

func (*ListChannelsOK) IsServerError

func (o *ListChannelsOK) IsServerError() bool

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

func (*ListChannelsOK) IsSuccess

func (o *ListChannelsOK) IsSuccess() bool

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

func (*ListChannelsOK) String

func (o *ListChannelsOK) String() string

type ListChannelsOKBody

type ListChannelsOKBody struct {

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

	// jsonapi
	// Required: true
	Jsonapi *models.JSONAPI `json:"jsonapi"`

	// links
	// Required: true
	Links *models.PaginatedLinks `json:"links"`
}

ListChannelsOKBody list channels o k body swagger:model ListChannelsOKBody

func (*ListChannelsOKBody) ContextValidate

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

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

func (*ListChannelsOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListChannelsOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListChannelsOKBody) Validate

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

Validate validates this list channels o k body

type ListChannelsParams

type ListChannelsParams struct {

	/* EndingBefore.

	   Return the page of results immediately before this cursor
	*/
	EndingBefore *string

	/* Limit.

	   Number of results to return per page

	   Format: int32
	   Default: 1000
	*/
	Limit *int32

	/* OrgID.

	   Org ID

	   Format: uuid
	*/
	OrgID strfmt.UUID

	/* StartingAfter.

	   Return the page of results immediately after this cursor
	*/
	StartingAfter *string

	/* TenantID.

	   Tenant ID

	   Format: uuid
	*/
	TenantID strfmt.UUID

	/* Version.

	   The requested version of the endpoint to process the request
	*/
	Version string

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

ListChannelsParams contains all the parameters to send to the API endpoint

for the list channels operation.

Typically these are written to a http.Request.

func NewListChannelsParams

func NewListChannelsParams() *ListChannelsParams

NewListChannelsParams creates a new ListChannelsParams 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 NewListChannelsParamsWithContext

func NewListChannelsParamsWithContext(ctx context.Context) *ListChannelsParams

NewListChannelsParamsWithContext creates a new ListChannelsParams object with the ability to set a context for a request.

func NewListChannelsParamsWithHTTPClient

func NewListChannelsParamsWithHTTPClient(client *http.Client) *ListChannelsParams

NewListChannelsParamsWithHTTPClient creates a new ListChannelsParams object with the ability to set a custom HTTPClient for a request.

func NewListChannelsParamsWithTimeout

func NewListChannelsParamsWithTimeout(timeout time.Duration) *ListChannelsParams

NewListChannelsParamsWithTimeout creates a new ListChannelsParams object with the ability to set a timeout on a request.

func (*ListChannelsParams) SetContext

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

SetContext adds the context to the list channels params

func (*ListChannelsParams) SetDefaults

func (o *ListChannelsParams) SetDefaults()

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

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

func (*ListChannelsParams) SetEndingBefore

func (o *ListChannelsParams) SetEndingBefore(endingBefore *string)

SetEndingBefore adds the endingBefore to the list channels params

func (*ListChannelsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list channels params

func (*ListChannelsParams) SetLimit

func (o *ListChannelsParams) SetLimit(limit *int32)

SetLimit adds the limit to the list channels params

func (*ListChannelsParams) SetOrgID

func (o *ListChannelsParams) SetOrgID(orgID strfmt.UUID)

SetOrgID adds the orgId to the list channels params

func (*ListChannelsParams) SetStartingAfter

func (o *ListChannelsParams) SetStartingAfter(startingAfter *string)

SetStartingAfter adds the startingAfter to the list channels params

func (*ListChannelsParams) SetTenantID

func (o *ListChannelsParams) SetTenantID(tenantID strfmt.UUID)

SetTenantID adds the tenantId to the list channels params

func (*ListChannelsParams) SetTimeout

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

SetTimeout adds the timeout to the list channels params

func (*ListChannelsParams) SetVersion

func (o *ListChannelsParams) SetVersion(version string)

SetVersion adds the version to the list channels params

func (*ListChannelsParams) WithContext

WithContext adds the context to the list channels params

func (*ListChannelsParams) WithDefaults

func (o *ListChannelsParams) WithDefaults() *ListChannelsParams

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

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

func (*ListChannelsParams) WithEndingBefore

func (o *ListChannelsParams) WithEndingBefore(endingBefore *string) *ListChannelsParams

WithEndingBefore adds the endingBefore to the list channels params

func (*ListChannelsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list channels params

func (*ListChannelsParams) WithLimit

func (o *ListChannelsParams) WithLimit(limit *int32) *ListChannelsParams

WithLimit adds the limit to the list channels params

func (*ListChannelsParams) WithOrgID

func (o *ListChannelsParams) WithOrgID(orgID strfmt.UUID) *ListChannelsParams

WithOrgID adds the orgID to the list channels params

func (*ListChannelsParams) WithStartingAfter

func (o *ListChannelsParams) WithStartingAfter(startingAfter *string) *ListChannelsParams

WithStartingAfter adds the startingAfter to the list channels params

func (*ListChannelsParams) WithTenantID

func (o *ListChannelsParams) WithTenantID(tenantID strfmt.UUID) *ListChannelsParams

WithTenantID adds the tenantID to the list channels params

func (*ListChannelsParams) WithTimeout

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

WithTimeout adds the timeout to the list channels params

func (*ListChannelsParams) WithVersion

func (o *ListChannelsParams) WithVersion(version string) *ListChannelsParams

WithVersion adds the version to the list channels params

func (*ListChannelsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListChannelsReader

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

ListChannelsReader is a Reader for the ListChannels structure.

func (*ListChannelsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListChannelsUnauthorized

type ListChannelsUnauthorized struct {

	/* A header containing the deprecation date of the underlying endpoint. For more information, please refer to the deprecation header RFC:
	https://tools.ietf.org/id/draft-dalal-deprecation-header-01.html


	     Format: date-time
	*/
	Deprecation strfmt.DateTime

	/* A header containing a unique id used for tracking this request. If you are reporting an issue to Snyk it's very helpful to provide this ID.


	   Format: uuid
	*/
	SnykRequestID strfmt.UUID

	/* A header containing the version stage of the endpoint. This stage describes the guarantees snyk provides surrounding stability of the endpoint.

	 */
	SnykVersionLifecycleStage string

	/* A header containing the version of the endpoint requested by the caller.
	 */
	SnykVersionRequested string

	/* A header containing the version of the endpoint that was served by the API.
	 */
	SnykVersionServed string

	/* A header containing the date of when the underlying endpoint will be removed. This header is only present if the endpoint has been deprecated. Please refer to the RFC for more information:
	https://datatracker.ietf.org/doc/html/rfc8594


	     Format: date-time
	*/
	Sunset strfmt.DateTime

	Payload *ListChannelsUnauthorizedBody
}

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

Unauthorized: the request requires an authentication token.

func NewListChannelsUnauthorized

func NewListChannelsUnauthorized() *ListChannelsUnauthorized

NewListChannelsUnauthorized creates a ListChannelsUnauthorized with default headers values

func (*ListChannelsUnauthorized) Code

func (o *ListChannelsUnauthorized) Code() int

Code gets the status code for the list channels unauthorized response

func (*ListChannelsUnauthorized) Error

func (o *ListChannelsUnauthorized) Error() string

func (*ListChannelsUnauthorized) GetPayload

func (*ListChannelsUnauthorized) IsClientError

func (o *ListChannelsUnauthorized) IsClientError() bool

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

func (*ListChannelsUnauthorized) IsCode

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

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

func (*ListChannelsUnauthorized) IsRedirect

func (o *ListChannelsUnauthorized) IsRedirect() bool

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

func (*ListChannelsUnauthorized) IsServerError

func (o *ListChannelsUnauthorized) IsServerError() bool

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

func (*ListChannelsUnauthorized) IsSuccess

func (o *ListChannelsUnauthorized) IsSuccess() bool

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

func (*ListChannelsUnauthorized) String

func (o *ListChannelsUnauthorized) String() string

type ListChannelsUnauthorizedBody

type ListChannelsUnauthorizedBody struct {

	// errors
	// Example: [{"detail":"Permission denied for this resource","status":"403"}]
	// Required: true
	// Min Items: 1
	Errors []*ListChannelsUnauthorizedBodyErrorsItems0 `json:"errors"`

	// jsonapi
	// Required: true
	Jsonapi *ListChannelsUnauthorizedBodyJsonapi `json:"jsonapi"`
}

ListChannelsUnauthorizedBody list channels unauthorized body // Example: {"errors":[{"detail":"Permission denied for this resource","status":"403"}],"jsonapi":{"version":"1.0"}} swagger:model ListChannelsUnauthorizedBody

func (*ListChannelsUnauthorizedBody) ContextValidate

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

ContextValidate validate this list channels unauthorized body based on the context it is used

func (*ListChannelsUnauthorizedBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListChannelsUnauthorizedBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListChannelsUnauthorizedBody) Validate

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

Validate validates this list channels unauthorized body

type ListChannelsUnauthorizedBodyErrorsItems0

type ListChannelsUnauthorizedBodyErrorsItems0 struct {

	// An application-specific error code, expressed as a string value.
	// Example: entity-not-found
	Code string `json:"code,omitempty"`

	// A human-readable explanation specific to this occurrence of the problem.
	// Example: The request was missing these required fields: ...
	// Required: true
	Detail *string `json:"detail"`

	// A unique identifier for this particular occurrence of the problem.
	// Example: f16c31b5-6129-4571-add8-d589da9be524
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// links
	Links *ListChannelsUnauthorizedBodyErrorsItems0Links `json:"links,omitempty"`

	// meta
	// Example: {"key":"value"}
	Meta interface{} `json:"meta,omitempty"`

	// source
	Source *ListChannelsUnauthorizedBodyErrorsItems0Source `json:"source,omitempty"`

	// The HTTP status code applicable to this problem, expressed as a string value.
	// Example: 400
	// Required: true
	// Pattern: ^[45]\d\d$
	Status *string `json:"status"`

	// A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
	// Example: Bad request
	Title string `json:"title,omitempty"`
}

ListChannelsUnauthorizedBodyErrorsItems0 list channels unauthorized body errors items0 // Example: {"detail":"Not Found","status":"404"} swagger:model ListChannelsUnauthorizedBodyErrorsItems0

func (*ListChannelsUnauthorizedBodyErrorsItems0) ContextValidate

ContextValidate validate this list channels unauthorized body errors items0 based on the context it is used

func (*ListChannelsUnauthorizedBodyErrorsItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*ListChannelsUnauthorizedBodyErrorsItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListChannelsUnauthorizedBodyErrorsItems0) Validate

Validate validates this list channels unauthorized body errors items0

type ListChannelsUnauthorizedBodyErrorsItems0Links struct {

	// about
	// Example: https://example.com/api/resource
	About interface{} `json:"about,omitempty"`
}

ListChannelsUnauthorizedBodyErrorsItems0Links A link that leads to further details about this particular occurrance of the problem. // Example: {"about":"https://example.com/about_this_error"} swagger:model ListChannelsUnauthorizedBodyErrorsItems0Links

func (*ListChannelsUnauthorizedBodyErrorsItems0Links) ContextValidate

ContextValidate validates this list channels unauthorized body errors items0 links based on context it is used

func (*ListChannelsUnauthorizedBodyErrorsItems0Links) MarshalBinary

MarshalBinary interface implementation

func (*ListChannelsUnauthorizedBodyErrorsItems0Links) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ListChannelsUnauthorizedBodyErrorsItems0Links) Validate

Validate validates this list channels unauthorized body errors items0 links

type ListChannelsUnauthorizedBodyErrorsItems0Source

type ListChannelsUnauthorizedBodyErrorsItems0Source struct {

	// A string indicating which URI query parameter caused the error.
	// Example: param1
	Parameter string `json:"parameter,omitempty"`

	// A JSON Pointer [RFC6901] to the associated entity in the request document.
	// Example: /data/attributes
	Pointer string `json:"pointer,omitempty"`
}

ListChannelsUnauthorizedBodyErrorsItems0Source list channels unauthorized body errors items0 source // Example: {"pointer":"/data/attributes"} swagger:model ListChannelsUnauthorizedBodyErrorsItems0Source

func (*ListChannelsUnauthorizedBodyErrorsItems0Source) ContextValidate

ContextValidate validates this list channels unauthorized body errors items0 source based on context it is used

func (*ListChannelsUnauthorizedBodyErrorsItems0Source) MarshalBinary

MarshalBinary interface implementation

func (*ListChannelsUnauthorizedBodyErrorsItems0Source) UnmarshalBinary

UnmarshalBinary interface implementation

func (*ListChannelsUnauthorizedBodyErrorsItems0Source) Validate

Validate validates this list channels unauthorized body errors items0 source

type ListChannelsUnauthorizedBodyJsonapi

type ListChannelsUnauthorizedBodyJsonapi struct {

	// Version of the JSON API specification this server supports.
	// Example: 1.0
	// Required: true
	// Pattern: ^(0|[1-9]\d*)\.(0|[1-9]\d*)$
	Version *string `json:"version"`
}

ListChannelsUnauthorizedBodyJsonapi list channels unauthorized body jsonapi // Example: {"version":"1.0"} swagger:model ListChannelsUnauthorizedBodyJsonapi

func (*ListChannelsUnauthorizedBodyJsonapi) ContextValidate

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

ContextValidate validates this list channels unauthorized body jsonapi based on context it is used

func (*ListChannelsUnauthorizedBodyJsonapi) MarshalBinary

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

MarshalBinary interface implementation

func (*ListChannelsUnauthorizedBodyJsonapi) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListChannelsUnauthorizedBodyJsonapi) Validate

Validate validates this list channels unauthorized body jsonapi

Jump to

Keyboard shortcuts

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