s_b_o_m

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 s b o m API

func (*Client) GetSbom

func (a *Client) GetSbom(params *GetSbomParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSbomOK, error)
GetSbom gets a project s s b o m document

This endpoint lets you retrieve the SBOM document of a software project.

It supports the following formats: * CycloneDX version 1.4 in JSON (set `format` to `cyclonedx1.4+json`). * CycloneDX version 1.4 in XML (set `format` to `cyclonedx1.4+xml`). * SPDX version 2.3 in JSON (set `format` to `spdx2.3+json`).

By default it will respond with an empty JSON:API response.

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 {
	GetSbom(params *GetSbomParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSbomOK, 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 s b o m API client.

type GetSbomBadRequest

type GetSbomBadRequest 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 *GetSbomBadRequestBody
}

GetSbomBadRequest 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 NewGetSbomBadRequest

func NewGetSbomBadRequest() *GetSbomBadRequest

NewGetSbomBadRequest creates a GetSbomBadRequest with default headers values

func (*GetSbomBadRequest) Code

func (o *GetSbomBadRequest) Code() int

Code gets the status code for the get sbom bad request response

func (*GetSbomBadRequest) Error

func (o *GetSbomBadRequest) Error() string

func (*GetSbomBadRequest) GetPayload

func (o *GetSbomBadRequest) GetPayload() *GetSbomBadRequestBody

func (*GetSbomBadRequest) IsClientError

func (o *GetSbomBadRequest) IsClientError() bool

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

func (*GetSbomBadRequest) IsCode

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

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

func (*GetSbomBadRequest) IsRedirect

func (o *GetSbomBadRequest) IsRedirect() bool

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

func (*GetSbomBadRequest) IsServerError

func (o *GetSbomBadRequest) IsServerError() bool

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

func (*GetSbomBadRequest) IsSuccess

func (o *GetSbomBadRequest) IsSuccess() bool

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

func (*GetSbomBadRequest) String

func (o *GetSbomBadRequest) String() string

type GetSbomBadRequestBody

type GetSbomBadRequestBody struct {

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

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

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

func (*GetSbomBadRequestBody) ContextValidate

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

ContextValidate validate this get sbom bad request body based on the context it is used

func (*GetSbomBadRequestBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSbomBadRequestBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSbomBadRequestBody) Validate

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

Validate validates this get sbom bad request body

type GetSbomBadRequestBodyErrorsItems0

type GetSbomBadRequestBodyErrorsItems0 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 *GetSbomBadRequestBodyErrorsItems0Links `json:"links,omitempty"`

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

	// source
	Source *GetSbomBadRequestBodyErrorsItems0Source `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"`
}

GetSbomBadRequestBodyErrorsItems0 get sbom bad request body errors items0 // Example: {"detail":"Not Found","status":"404"} swagger:model GetSbomBadRequestBodyErrorsItems0

func (*GetSbomBadRequestBodyErrorsItems0) ContextValidate

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

ContextValidate validate this get sbom bad request body errors items0 based on the context it is used

func (*GetSbomBadRequestBodyErrorsItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSbomBadRequestBodyErrorsItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSbomBadRequestBodyErrorsItems0) Validate

Validate validates this get sbom bad request body errors items0

type GetSbomBadRequestBodyErrorsItems0Links struct {

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

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

func (*GetSbomBadRequestBodyErrorsItems0Links) ContextValidate

ContextValidate validates this get sbom bad request body errors items0 links based on context it is used

func (*GetSbomBadRequestBodyErrorsItems0Links) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSbomBadRequestBodyErrorsItems0Links) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSbomBadRequestBodyErrorsItems0Links) Validate

Validate validates this get sbom bad request body errors items0 links

type GetSbomBadRequestBodyErrorsItems0Source

type GetSbomBadRequestBodyErrorsItems0Source 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"`
}

GetSbomBadRequestBodyErrorsItems0Source get sbom bad request body errors items0 source // Example: {"pointer":"/data/attributes"} swagger:model GetSbomBadRequestBodyErrorsItems0Source

func (*GetSbomBadRequestBodyErrorsItems0Source) ContextValidate

ContextValidate validates this get sbom bad request body errors items0 source based on context it is used

func (*GetSbomBadRequestBodyErrorsItems0Source) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSbomBadRequestBodyErrorsItems0Source) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSbomBadRequestBodyErrorsItems0Source) Validate

Validate validates this get sbom bad request body errors items0 source

type GetSbomBadRequestBodyJsonapi

type GetSbomBadRequestBodyJsonapi 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"`
}

GetSbomBadRequestBodyJsonapi get sbom bad request body jsonapi // Example: {"version":"1.0"} swagger:model GetSbomBadRequestBodyJsonapi

func (*GetSbomBadRequestBodyJsonapi) ContextValidate

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

ContextValidate validates this get sbom bad request body jsonapi based on context it is used

func (*GetSbomBadRequestBodyJsonapi) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSbomBadRequestBodyJsonapi) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSbomBadRequestBodyJsonapi) Validate

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

Validate validates this get sbom bad request body jsonapi

type GetSbomConflict

type GetSbomConflict 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 *GetSbomConflictBody
}

GetSbomConflict 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 NewGetSbomConflict

func NewGetSbomConflict() *GetSbomConflict

NewGetSbomConflict creates a GetSbomConflict with default headers values

func (*GetSbomConflict) Code

func (o *GetSbomConflict) Code() int

Code gets the status code for the get sbom conflict response

func (*GetSbomConflict) Error

func (o *GetSbomConflict) Error() string

func (*GetSbomConflict) GetPayload

func (o *GetSbomConflict) GetPayload() *GetSbomConflictBody

func (*GetSbomConflict) IsClientError

func (o *GetSbomConflict) IsClientError() bool

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

func (*GetSbomConflict) IsCode

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

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

func (*GetSbomConflict) IsRedirect

func (o *GetSbomConflict) IsRedirect() bool

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

func (*GetSbomConflict) IsServerError

func (o *GetSbomConflict) IsServerError() bool

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

func (*GetSbomConflict) IsSuccess

func (o *GetSbomConflict) IsSuccess() bool

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

func (*GetSbomConflict) String

func (o *GetSbomConflict) String() string

type GetSbomConflictBody

type GetSbomConflictBody struct {

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

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

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

func (*GetSbomConflictBody) ContextValidate

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

ContextValidate validate this get sbom conflict body based on the context it is used

func (*GetSbomConflictBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSbomConflictBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSbomConflictBody) Validate

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

Validate validates this get sbom conflict body

type GetSbomConflictBodyErrorsItems0

type GetSbomConflictBodyErrorsItems0 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 *GetSbomConflictBodyErrorsItems0Links `json:"links,omitempty"`

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

	// source
	Source *GetSbomConflictBodyErrorsItems0Source `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"`
}

GetSbomConflictBodyErrorsItems0 get sbom conflict body errors items0 // Example: {"detail":"Not Found","status":"404"} swagger:model GetSbomConflictBodyErrorsItems0

func (*GetSbomConflictBodyErrorsItems0) ContextValidate

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

ContextValidate validate this get sbom conflict body errors items0 based on the context it is used

func (*GetSbomConflictBodyErrorsItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSbomConflictBodyErrorsItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSbomConflictBodyErrorsItems0) Validate

Validate validates this get sbom conflict body errors items0

type GetSbomConflictBodyErrorsItems0Links struct {

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

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

func (*GetSbomConflictBodyErrorsItems0Links) ContextValidate

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

ContextValidate validates this get sbom conflict body errors items0 links based on context it is used

func (*GetSbomConflictBodyErrorsItems0Links) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSbomConflictBodyErrorsItems0Links) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSbomConflictBodyErrorsItems0Links) Validate

Validate validates this get sbom conflict body errors items0 links

type GetSbomConflictBodyErrorsItems0Source

type GetSbomConflictBodyErrorsItems0Source 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"`
}

GetSbomConflictBodyErrorsItems0Source get sbom conflict body errors items0 source // Example: {"pointer":"/data/attributes"} swagger:model GetSbomConflictBodyErrorsItems0Source

func (*GetSbomConflictBodyErrorsItems0Source) ContextValidate

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

ContextValidate validates this get sbom conflict body errors items0 source based on context it is used

func (*GetSbomConflictBodyErrorsItems0Source) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSbomConflictBodyErrorsItems0Source) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSbomConflictBodyErrorsItems0Source) Validate

Validate validates this get sbom conflict body errors items0 source

type GetSbomConflictBodyJsonapi

type GetSbomConflictBodyJsonapi 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"`
}

GetSbomConflictBodyJsonapi get sbom conflict body jsonapi // Example: {"version":"1.0"} swagger:model GetSbomConflictBodyJsonapi

func (*GetSbomConflictBodyJsonapi) ContextValidate

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

ContextValidate validates this get sbom conflict body jsonapi based on context it is used

func (*GetSbomConflictBodyJsonapi) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSbomConflictBodyJsonapi) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSbomConflictBodyJsonapi) Validate

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

Validate validates this get sbom conflict body jsonapi

type GetSbomForbidden

type GetSbomForbidden 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 *GetSbomForbiddenBody
}

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

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

func NewGetSbomForbidden

func NewGetSbomForbidden() *GetSbomForbidden

NewGetSbomForbidden creates a GetSbomForbidden with default headers values

func (*GetSbomForbidden) Code

func (o *GetSbomForbidden) Code() int

Code gets the status code for the get sbom forbidden response

func (*GetSbomForbidden) Error

func (o *GetSbomForbidden) Error() string

func (*GetSbomForbidden) GetPayload

func (o *GetSbomForbidden) GetPayload() *GetSbomForbiddenBody

func (*GetSbomForbidden) IsClientError

func (o *GetSbomForbidden) IsClientError() bool

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

func (*GetSbomForbidden) IsCode

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

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

func (*GetSbomForbidden) IsRedirect

func (o *GetSbomForbidden) IsRedirect() bool

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

func (*GetSbomForbidden) IsServerError

func (o *GetSbomForbidden) IsServerError() bool

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

func (*GetSbomForbidden) IsSuccess

func (o *GetSbomForbidden) IsSuccess() bool

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

func (*GetSbomForbidden) String

func (o *GetSbomForbidden) String() string

type GetSbomForbiddenBody

type GetSbomForbiddenBody struct {

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

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

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

func (*GetSbomForbiddenBody) ContextValidate

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

ContextValidate validate this get sbom forbidden body based on the context it is used

func (*GetSbomForbiddenBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSbomForbiddenBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSbomForbiddenBody) Validate

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

Validate validates this get sbom forbidden body

type GetSbomForbiddenBodyErrorsItems0

type GetSbomForbiddenBodyErrorsItems0 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 *GetSbomForbiddenBodyErrorsItems0Links `json:"links,omitempty"`

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

	// source
	Source *GetSbomForbiddenBodyErrorsItems0Source `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"`
}

GetSbomForbiddenBodyErrorsItems0 get sbom forbidden body errors items0 // Example: {"detail":"Not Found","status":"404"} swagger:model GetSbomForbiddenBodyErrorsItems0

func (*GetSbomForbiddenBodyErrorsItems0) ContextValidate

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

ContextValidate validate this get sbom forbidden body errors items0 based on the context it is used

func (*GetSbomForbiddenBodyErrorsItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSbomForbiddenBodyErrorsItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSbomForbiddenBodyErrorsItems0) Validate

Validate validates this get sbom forbidden body errors items0

type GetSbomForbiddenBodyErrorsItems0Links struct {

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

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

func (*GetSbomForbiddenBodyErrorsItems0Links) ContextValidate

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

ContextValidate validates this get sbom forbidden body errors items0 links based on context it is used

func (*GetSbomForbiddenBodyErrorsItems0Links) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSbomForbiddenBodyErrorsItems0Links) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSbomForbiddenBodyErrorsItems0Links) Validate

Validate validates this get sbom forbidden body errors items0 links

type GetSbomForbiddenBodyErrorsItems0Source

type GetSbomForbiddenBodyErrorsItems0Source 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"`
}

GetSbomForbiddenBodyErrorsItems0Source get sbom forbidden body errors items0 source // Example: {"pointer":"/data/attributes"} swagger:model GetSbomForbiddenBodyErrorsItems0Source

func (*GetSbomForbiddenBodyErrorsItems0Source) ContextValidate

ContextValidate validates this get sbom forbidden body errors items0 source based on context it is used

func (*GetSbomForbiddenBodyErrorsItems0Source) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSbomForbiddenBodyErrorsItems0Source) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSbomForbiddenBodyErrorsItems0Source) Validate

Validate validates this get sbom forbidden body errors items0 source

type GetSbomForbiddenBodyJsonapi

type GetSbomForbiddenBodyJsonapi 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"`
}

GetSbomForbiddenBodyJsonapi get sbom forbidden body jsonapi // Example: {"version":"1.0"} swagger:model GetSbomForbiddenBodyJsonapi

func (*GetSbomForbiddenBodyJsonapi) ContextValidate

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

ContextValidate validates this get sbom forbidden body jsonapi based on context it is used

func (*GetSbomForbiddenBodyJsonapi) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSbomForbiddenBodyJsonapi) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSbomForbiddenBodyJsonapi) Validate

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

Validate validates this get sbom forbidden body jsonapi

type GetSbomInternalServerError

type GetSbomInternalServerError 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 *GetSbomInternalServerErrorBody
}

GetSbomInternalServerError 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 NewGetSbomInternalServerError

func NewGetSbomInternalServerError() *GetSbomInternalServerError

NewGetSbomInternalServerError creates a GetSbomInternalServerError with default headers values

func (*GetSbomInternalServerError) Code

func (o *GetSbomInternalServerError) Code() int

Code gets the status code for the get sbom internal server error response

func (*GetSbomInternalServerError) Error

func (*GetSbomInternalServerError) GetPayload

func (*GetSbomInternalServerError) IsClientError

func (o *GetSbomInternalServerError) IsClientError() bool

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

func (*GetSbomInternalServerError) IsCode

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

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

func (*GetSbomInternalServerError) IsRedirect

func (o *GetSbomInternalServerError) IsRedirect() bool

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

func (*GetSbomInternalServerError) IsServerError

func (o *GetSbomInternalServerError) IsServerError() bool

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

func (*GetSbomInternalServerError) IsSuccess

func (o *GetSbomInternalServerError) IsSuccess() bool

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

func (*GetSbomInternalServerError) String

func (o *GetSbomInternalServerError) String() string

type GetSbomInternalServerErrorBody

type GetSbomInternalServerErrorBody struct {

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

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

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

func (*GetSbomInternalServerErrorBody) ContextValidate

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

ContextValidate validate this get sbom internal server error body based on the context it is used

func (*GetSbomInternalServerErrorBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSbomInternalServerErrorBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSbomInternalServerErrorBody) Validate

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

Validate validates this get sbom internal server error body

type GetSbomInternalServerErrorBodyErrorsItems0

type GetSbomInternalServerErrorBodyErrorsItems0 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 *GetSbomInternalServerErrorBodyErrorsItems0Links `json:"links,omitempty"`

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

	// source
	Source *GetSbomInternalServerErrorBodyErrorsItems0Source `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"`
}

GetSbomInternalServerErrorBodyErrorsItems0 get sbom internal server error body errors items0 // Example: {"detail":"Not Found","status":"404"} swagger:model GetSbomInternalServerErrorBodyErrorsItems0

func (*GetSbomInternalServerErrorBodyErrorsItems0) ContextValidate

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

func (*GetSbomInternalServerErrorBodyErrorsItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSbomInternalServerErrorBodyErrorsItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSbomInternalServerErrorBodyErrorsItems0) Validate

Validate validates this get sbom internal server error body errors items0

type GetSbomInternalServerErrorBodyErrorsItems0Links struct {

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

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

func (*GetSbomInternalServerErrorBodyErrorsItems0Links) ContextValidate

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

func (*GetSbomInternalServerErrorBodyErrorsItems0Links) MarshalBinary

MarshalBinary interface implementation

func (*GetSbomInternalServerErrorBodyErrorsItems0Links) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetSbomInternalServerErrorBodyErrorsItems0Links) Validate

Validate validates this get sbom internal server error body errors items0 links

type GetSbomInternalServerErrorBodyErrorsItems0Source

type GetSbomInternalServerErrorBodyErrorsItems0Source 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"`
}

GetSbomInternalServerErrorBodyErrorsItems0Source get sbom internal server error body errors items0 source // Example: {"pointer":"/data/attributes"} swagger:model GetSbomInternalServerErrorBodyErrorsItems0Source

func (*GetSbomInternalServerErrorBodyErrorsItems0Source) ContextValidate

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

func (*GetSbomInternalServerErrorBodyErrorsItems0Source) MarshalBinary

MarshalBinary interface implementation

func (*GetSbomInternalServerErrorBodyErrorsItems0Source) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetSbomInternalServerErrorBodyErrorsItems0Source) Validate

Validate validates this get sbom internal server error body errors items0 source

type GetSbomInternalServerErrorBodyJsonapi

type GetSbomInternalServerErrorBodyJsonapi 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"`
}

GetSbomInternalServerErrorBodyJsonapi get sbom internal server error body jsonapi // Example: {"version":"1.0"} swagger:model GetSbomInternalServerErrorBodyJsonapi

func (*GetSbomInternalServerErrorBodyJsonapi) ContextValidate

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

ContextValidate validates this get sbom internal server error body jsonapi based on context it is used

func (*GetSbomInternalServerErrorBodyJsonapi) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSbomInternalServerErrorBodyJsonapi) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSbomInternalServerErrorBodyJsonapi) Validate

Validate validates this get sbom internal server error body jsonapi

type GetSbomNotFound

type GetSbomNotFound 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 *GetSbomNotFoundBody
}

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

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

func NewGetSbomNotFound

func NewGetSbomNotFound() *GetSbomNotFound

NewGetSbomNotFound creates a GetSbomNotFound with default headers values

func (*GetSbomNotFound) Code

func (o *GetSbomNotFound) Code() int

Code gets the status code for the get sbom not found response

func (*GetSbomNotFound) Error

func (o *GetSbomNotFound) Error() string

func (*GetSbomNotFound) GetPayload

func (o *GetSbomNotFound) GetPayload() *GetSbomNotFoundBody

func (*GetSbomNotFound) IsClientError

func (o *GetSbomNotFound) IsClientError() bool

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

func (*GetSbomNotFound) IsCode

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

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

func (*GetSbomNotFound) IsRedirect

func (o *GetSbomNotFound) IsRedirect() bool

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

func (*GetSbomNotFound) IsServerError

func (o *GetSbomNotFound) IsServerError() bool

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

func (*GetSbomNotFound) IsSuccess

func (o *GetSbomNotFound) IsSuccess() bool

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

func (*GetSbomNotFound) String

func (o *GetSbomNotFound) String() string

type GetSbomNotFoundBody

type GetSbomNotFoundBody struct {

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

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

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

func (*GetSbomNotFoundBody) ContextValidate

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

ContextValidate validate this get sbom not found body based on the context it is used

func (*GetSbomNotFoundBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSbomNotFoundBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSbomNotFoundBody) Validate

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

Validate validates this get sbom not found body

type GetSbomNotFoundBodyErrorsItems0

type GetSbomNotFoundBodyErrorsItems0 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 *GetSbomNotFoundBodyErrorsItems0Links `json:"links,omitempty"`

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

	// source
	Source *GetSbomNotFoundBodyErrorsItems0Source `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"`
}

GetSbomNotFoundBodyErrorsItems0 get sbom not found body errors items0 // Example: {"detail":"Not Found","status":"404"} swagger:model GetSbomNotFoundBodyErrorsItems0

func (*GetSbomNotFoundBodyErrorsItems0) ContextValidate

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

ContextValidate validate this get sbom not found body errors items0 based on the context it is used

func (*GetSbomNotFoundBodyErrorsItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSbomNotFoundBodyErrorsItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSbomNotFoundBodyErrorsItems0) Validate

Validate validates this get sbom not found body errors items0

type GetSbomNotFoundBodyErrorsItems0Links struct {

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

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

func (*GetSbomNotFoundBodyErrorsItems0Links) ContextValidate

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

ContextValidate validates this get sbom not found body errors items0 links based on context it is used

func (*GetSbomNotFoundBodyErrorsItems0Links) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSbomNotFoundBodyErrorsItems0Links) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSbomNotFoundBodyErrorsItems0Links) Validate

Validate validates this get sbom not found body errors items0 links

type GetSbomNotFoundBodyErrorsItems0Source

type GetSbomNotFoundBodyErrorsItems0Source 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"`
}

GetSbomNotFoundBodyErrorsItems0Source get sbom not found body errors items0 source // Example: {"pointer":"/data/attributes"} swagger:model GetSbomNotFoundBodyErrorsItems0Source

func (*GetSbomNotFoundBodyErrorsItems0Source) ContextValidate

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

ContextValidate validates this get sbom not found body errors items0 source based on context it is used

func (*GetSbomNotFoundBodyErrorsItems0Source) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSbomNotFoundBodyErrorsItems0Source) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSbomNotFoundBodyErrorsItems0Source) Validate

Validate validates this get sbom not found body errors items0 source

type GetSbomNotFoundBodyJsonapi

type GetSbomNotFoundBodyJsonapi 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"`
}

GetSbomNotFoundBodyJsonapi get sbom not found body jsonapi // Example: {"version":"1.0"} swagger:model GetSbomNotFoundBodyJsonapi

func (*GetSbomNotFoundBodyJsonapi) ContextValidate

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

ContextValidate validates this get sbom not found body jsonapi based on context it is used

func (*GetSbomNotFoundBodyJsonapi) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSbomNotFoundBodyJsonapi) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSbomNotFoundBodyJsonapi) Validate

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

Validate validates this get sbom not found body jsonapi

type GetSbomOK

type GetSbomOK 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 models.SpdxDocument
}

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

Returns the SBOM document of a project

func NewGetSbomOK

func NewGetSbomOK() *GetSbomOK

NewGetSbomOK creates a GetSbomOK with default headers values

func (*GetSbomOK) Code

func (o *GetSbomOK) Code() int

Code gets the status code for the get sbom o k response

func (*GetSbomOK) Error

func (o *GetSbomOK) Error() string

func (*GetSbomOK) GetPayload

func (o *GetSbomOK) GetPayload() models.SpdxDocument

func (*GetSbomOK) IsClientError

func (o *GetSbomOK) IsClientError() bool

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

func (*GetSbomOK) IsCode

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

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

func (*GetSbomOK) IsRedirect

func (o *GetSbomOK) IsRedirect() bool

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

func (*GetSbomOK) IsServerError

func (o *GetSbomOK) IsServerError() bool

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

func (*GetSbomOK) IsSuccess

func (o *GetSbomOK) IsSuccess() bool

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

func (*GetSbomOK) String

func (o *GetSbomOK) String() string

type GetSbomParams

type GetSbomParams struct {

	/* Format.

	   The desired SBOM format of the response.
	*/
	Format *string

	/* OrgID.

	   Unique identifier for an organization

	   Format: uuid
	*/
	OrgID strfmt.UUID

	/* ProjectID.

	   Unique identifier for a project

	   Format: uuid
	*/
	ProjectID 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
}

GetSbomParams contains all the parameters to send to the API endpoint

for the get sbom operation.

Typically these are written to a http.Request.

func NewGetSbomParams

func NewGetSbomParams() *GetSbomParams

NewGetSbomParams creates a new GetSbomParams 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 NewGetSbomParamsWithContext

func NewGetSbomParamsWithContext(ctx context.Context) *GetSbomParams

NewGetSbomParamsWithContext creates a new GetSbomParams object with the ability to set a context for a request.

func NewGetSbomParamsWithHTTPClient

func NewGetSbomParamsWithHTTPClient(client *http.Client) *GetSbomParams

NewGetSbomParamsWithHTTPClient creates a new GetSbomParams object with the ability to set a custom HTTPClient for a request.

func NewGetSbomParamsWithTimeout

func NewGetSbomParamsWithTimeout(timeout time.Duration) *GetSbomParams

NewGetSbomParamsWithTimeout creates a new GetSbomParams object with the ability to set a timeout on a request.

func (*GetSbomParams) SetContext

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

SetContext adds the context to the get sbom params

func (*GetSbomParams) SetDefaults

func (o *GetSbomParams) SetDefaults()

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

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

func (*GetSbomParams) SetFormat

func (o *GetSbomParams) SetFormat(format *string)

SetFormat adds the format to the get sbom params

func (*GetSbomParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get sbom params

func (*GetSbomParams) SetOrgID

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

SetOrgID adds the orgId to the get sbom params

func (*GetSbomParams) SetProjectID

func (o *GetSbomParams) SetProjectID(projectID strfmt.UUID)

SetProjectID adds the projectId to the get sbom params

func (*GetSbomParams) SetTimeout

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

SetTimeout adds the timeout to the get sbom params

func (*GetSbomParams) SetVersion

func (o *GetSbomParams) SetVersion(version string)

SetVersion adds the version to the get sbom params

func (*GetSbomParams) WithContext

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

WithContext adds the context to the get sbom params

func (*GetSbomParams) WithDefaults

func (o *GetSbomParams) WithDefaults() *GetSbomParams

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

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

func (*GetSbomParams) WithFormat

func (o *GetSbomParams) WithFormat(format *string) *GetSbomParams

WithFormat adds the format to the get sbom params

func (*GetSbomParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get sbom params

func (*GetSbomParams) WithOrgID

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

WithOrgID adds the orgID to the get sbom params

func (*GetSbomParams) WithProjectID

func (o *GetSbomParams) WithProjectID(projectID strfmt.UUID) *GetSbomParams

WithProjectID adds the projectID to the get sbom params

func (*GetSbomParams) WithTimeout

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

WithTimeout adds the timeout to the get sbom params

func (*GetSbomParams) WithVersion

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

WithVersion adds the version to the get sbom params

func (*GetSbomParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetSbomReader

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

GetSbomReader is a Reader for the GetSbom structure.

func (*GetSbomReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSbomUnauthorized

type GetSbomUnauthorized 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 *GetSbomUnauthorizedBody
}

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

Unauthorized: the request requires an authentication token.

func NewGetSbomUnauthorized

func NewGetSbomUnauthorized() *GetSbomUnauthorized

NewGetSbomUnauthorized creates a GetSbomUnauthorized with default headers values

func (*GetSbomUnauthorized) Code

func (o *GetSbomUnauthorized) Code() int

Code gets the status code for the get sbom unauthorized response

func (*GetSbomUnauthorized) Error

func (o *GetSbomUnauthorized) Error() string

func (*GetSbomUnauthorized) GetPayload

func (*GetSbomUnauthorized) IsClientError

func (o *GetSbomUnauthorized) IsClientError() bool

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

func (*GetSbomUnauthorized) IsCode

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

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

func (*GetSbomUnauthorized) IsRedirect

func (o *GetSbomUnauthorized) IsRedirect() bool

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

func (*GetSbomUnauthorized) IsServerError

func (o *GetSbomUnauthorized) IsServerError() bool

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

func (*GetSbomUnauthorized) IsSuccess

func (o *GetSbomUnauthorized) IsSuccess() bool

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

func (*GetSbomUnauthorized) String

func (o *GetSbomUnauthorized) String() string

type GetSbomUnauthorizedBody

type GetSbomUnauthorizedBody struct {

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

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

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

func (*GetSbomUnauthorizedBody) ContextValidate

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

ContextValidate validate this get sbom unauthorized body based on the context it is used

func (*GetSbomUnauthorizedBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSbomUnauthorizedBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSbomUnauthorizedBody) Validate

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

Validate validates this get sbom unauthorized body

type GetSbomUnauthorizedBodyErrorsItems0

type GetSbomUnauthorizedBodyErrorsItems0 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 *GetSbomUnauthorizedBodyErrorsItems0Links `json:"links,omitempty"`

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

	// source
	Source *GetSbomUnauthorizedBodyErrorsItems0Source `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"`
}

GetSbomUnauthorizedBodyErrorsItems0 get sbom unauthorized body errors items0 // Example: {"detail":"Not Found","status":"404"} swagger:model GetSbomUnauthorizedBodyErrorsItems0

func (*GetSbomUnauthorizedBodyErrorsItems0) ContextValidate

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

ContextValidate validate this get sbom unauthorized body errors items0 based on the context it is used

func (*GetSbomUnauthorizedBodyErrorsItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSbomUnauthorizedBodyErrorsItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSbomUnauthorizedBodyErrorsItems0) Validate

Validate validates this get sbom unauthorized body errors items0

type GetSbomUnauthorizedBodyErrorsItems0Links struct {

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

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

func (*GetSbomUnauthorizedBodyErrorsItems0Links) ContextValidate

ContextValidate validates this get sbom unauthorized body errors items0 links based on context it is used

func (*GetSbomUnauthorizedBodyErrorsItems0Links) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSbomUnauthorizedBodyErrorsItems0Links) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSbomUnauthorizedBodyErrorsItems0Links) Validate

Validate validates this get sbom unauthorized body errors items0 links

type GetSbomUnauthorizedBodyErrorsItems0Source

type GetSbomUnauthorizedBodyErrorsItems0Source 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"`
}

GetSbomUnauthorizedBodyErrorsItems0Source get sbom unauthorized body errors items0 source // Example: {"pointer":"/data/attributes"} swagger:model GetSbomUnauthorizedBodyErrorsItems0Source

func (*GetSbomUnauthorizedBodyErrorsItems0Source) ContextValidate

ContextValidate validates this get sbom unauthorized body errors items0 source based on context it is used

func (*GetSbomUnauthorizedBodyErrorsItems0Source) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSbomUnauthorizedBodyErrorsItems0Source) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSbomUnauthorizedBodyErrorsItems0Source) Validate

Validate validates this get sbom unauthorized body errors items0 source

type GetSbomUnauthorizedBodyJsonapi

type GetSbomUnauthorizedBodyJsonapi 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"`
}

GetSbomUnauthorizedBodyJsonapi get sbom unauthorized body jsonapi // Example: {"version":"1.0"} swagger:model GetSbomUnauthorizedBodyJsonapi

func (*GetSbomUnauthorizedBodyJsonapi) ContextValidate

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

ContextValidate validates this get sbom unauthorized body jsonapi based on context it is used

func (*GetSbomUnauthorizedBodyJsonapi) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSbomUnauthorizedBodyJsonapi) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSbomUnauthorizedBodyJsonapi) Validate

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

Validate validates this get sbom unauthorized body jsonapi

Jump to

Keyboard shortcuts

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