models

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// CommonIssueModelAttributesEffectiveSeverityLevelInfo captures enum value "info"
	CommonIssueModelAttributesEffectiveSeverityLevelInfo string = "info"

	// CommonIssueModelAttributesEffectiveSeverityLevelLow captures enum value "low"
	CommonIssueModelAttributesEffectiveSeverityLevelLow string = "low"

	// CommonIssueModelAttributesEffectiveSeverityLevelMedium captures enum value "medium"
	CommonIssueModelAttributesEffectiveSeverityLevelMedium string = "medium"

	// CommonIssueModelAttributesEffectiveSeverityLevelHigh captures enum value "high"
	CommonIssueModelAttributesEffectiveSeverityLevelHigh string = "high"

	// CommonIssueModelAttributesEffectiveSeverityLevelCritical captures enum value "critical"
	CommonIssueModelAttributesEffectiveSeverityLevelCritical string = "critical"
)
View Source
const (

	// CommonIssueModelVTwoAttributesEffectiveSeverityLevelInfo captures enum value "info"
	CommonIssueModelVTwoAttributesEffectiveSeverityLevelInfo string = "info"

	// CommonIssueModelVTwoAttributesEffectiveSeverityLevelLow captures enum value "low"
	CommonIssueModelVTwoAttributesEffectiveSeverityLevelLow string = "low"

	// CommonIssueModelVTwoAttributesEffectiveSeverityLevelMedium captures enum value "medium"
	CommonIssueModelVTwoAttributesEffectiveSeverityLevelMedium string = "medium"

	// CommonIssueModelVTwoAttributesEffectiveSeverityLevelHigh captures enum value "high"
	CommonIssueModelVTwoAttributesEffectiveSeverityLevelHigh string = "high"

	// CommonIssueModelVTwoAttributesEffectiveSeverityLevelCritical captures enum value "critical"
	CommonIssueModelVTwoAttributesEffectiveSeverityLevelCritical string = "critical"
)
View Source
const (

	// IssueAttributesEffectiveSeverityLevelInfo captures enum value "info"
	IssueAttributesEffectiveSeverityLevelInfo string = "info"

	// IssueAttributesEffectiveSeverityLevelLow captures enum value "low"
	IssueAttributesEffectiveSeverityLevelLow string = "low"

	// IssueAttributesEffectiveSeverityLevelMedium captures enum value "medium"
	IssueAttributesEffectiveSeverityLevelMedium string = "medium"

	// IssueAttributesEffectiveSeverityLevelHigh captures enum value "high"
	IssueAttributesEffectiveSeverityLevelHigh string = "high"

	// IssueAttributesEffectiveSeverityLevelCritical captures enum value "critical"
	IssueAttributesEffectiveSeverityLevelCritical string = "critical"
)
View Source
const (

	// IssueAttributesStatusOpen captures enum value "open"
	IssueAttributesStatusOpen string = "open"

	// IssueAttributesStatusResolved captures enum value "resolved"
	IssueAttributesStatusResolved string = "resolved"
)
View Source
const (

	// PatchProjectRequestDataAttributesTestFrequencyDaily captures enum value "daily"
	PatchProjectRequestDataAttributesTestFrequencyDaily string = "daily"

	// PatchProjectRequestDataAttributesTestFrequencyWeekly captures enum value "weekly"
	PatchProjectRequestDataAttributesTestFrequencyWeekly string = "weekly"

	// PatchProjectRequestDataAttributesTestFrequencyNever captures enum value "never"
	PatchProjectRequestDataAttributesTestFrequencyNever string = "never"
)
View Source
const (

	// ProjectAttributesStatusActive captures enum value "active"
	ProjectAttributesStatusActive string = "active"

	// ProjectAttributesStatusInactive captures enum value "inactive"
	ProjectAttributesStatusInactive string = "inactive"
)
View Source
const (

	// PublicAppDataAttributesContextTenant captures enum value "tenant"
	PublicAppDataAttributesContextTenant string = "tenant"

	// PublicAppDataAttributesContextUser captures enum value "user"
	PublicAppDataAttributesContextUser string = "user"
)
View Source
const (

	// PullRequestAssignmentSettingsTypeAuto captures enum value "auto"
	PullRequestAssignmentSettingsTypeAuto string = "auto"

	// PullRequestAssignmentSettingsTypeManual captures enum value "manual"
	PullRequestAssignmentSettingsTypeManual string = "manual"
)
View Source
const (

	// PullRequestsSettingsPolicyAll captures enum value "all"
	PullRequestsSettingsPolicyAll string = "all"

	// PullRequestsSettingsPolicyOnlyNew captures enum value "only_new"
	PullRequestsSettingsPolicyOnlyNew string = "only_new"
)
View Source
const (

	// PullRequestsSettingsSeverityThresholdLow captures enum value "low"
	PullRequestsSettingsSeverityThresholdLow string = "low"

	// PullRequestsSettingsSeverityThresholdMedium captures enum value "medium"
	PullRequestsSettingsSeverityThresholdMedium string = "medium"

	// PullRequestsSettingsSeverityThresholdHigh captures enum value "high"
	PullRequestsSettingsSeverityThresholdHigh string = "high"

	// PullRequestsSettingsSeverityThresholdCritical captures enum value "critical"
	PullRequestsSettingsSeverityThresholdCritical string = "critical"
)
View Source
const (

	// RecurringTestsSettingsFrequencyDaily captures enum value "daily"
	RecurringTestsSettingsFrequencyDaily string = "daily"

	// RecurringTestsSettingsFrequencyWeekly captures enum value "weekly"
	RecurringTestsSettingsFrequencyWeekly string = "weekly"

	// RecurringTestsSettingsFrequencyNever captures enum value "never"
	RecurringTestsSettingsFrequencyNever string = "never"
)
View Source
const (

	// RemedyTypeIndeterminate captures enum value "indeterminate"
	RemedyTypeIndeterminate string = "indeterminate"

	// RemedyTypeManual captures enum value "manual"
	RemedyTypeManual string = "manual"

	// RemedyTypeAutomated captures enum value "automated"
	RemedyTypeAutomated string = "automated"

	// RemedyTypeRuleResultMessage captures enum value "rule_result_message"
	RemedyTypeRuleResultMessage string = "rule_result_message"

	// RemedyTypeTerraform captures enum value "terraform"
	RemedyTypeTerraform string = "terraform"

	// RemedyTypeCloudformation captures enum value "cloudformation"
	RemedyTypeCloudformation string = "cloudformation"

	// RemedyTypeCli captures enum value "cli"
	RemedyTypeCli string = "cli"

	// RemedyTypeKubernetes captures enum value "kubernetes"
	RemedyTypeKubernetes string = "kubernetes"

	// RemedyTypeArm captures enum value "arm"
	RemedyTypeArm string = "arm"
)
View Source
const (

	// ResourceInputTypeCloudScan captures enum value "cloud_scan"
	ResourceInputTypeCloudScan string = "cloud_scan"

	// ResourceInputTypeArm captures enum value "arm"
	ResourceInputTypeArm string = "arm"

	// ResourceInputTypeK8s captures enum value "k8s"
	ResourceInputTypeK8s string = "k8s"

	// ResourceInputTypeTf captures enum value "tf"
	ResourceInputTypeTf string = "tf"

	// ResourceInputTypeTfHcl captures enum value "tf_hcl"
	ResourceInputTypeTfHcl string = "tf_hcl"

	// ResourceInputTypeTfPlan captures enum value "tf_plan"
	ResourceInputTypeTfPlan string = "tf_plan"

	// ResourceInputTypeTfState captures enum value "tf_state"
	ResourceInputTypeTfState string = "tf_state"

	// ResourceInputTypeCfn captures enum value "cfn"
	ResourceInputTypeCfn string = "cfn"
)
View Source
const (

	// ResourceTypeCloud captures enum value "cloud"
	ResourceTypeCloud string = "cloud"

	// ResourceTypeIac captures enum value "iac"
	ResourceTypeIac string = "iac"
)
View Source
const (

	// ServiceAccountAttributesAuthTypeAPIKey captures enum value "api_key"
	ServiceAccountAttributesAuthTypeAPIKey string = "api_key"

	// ServiceAccountAttributesAuthTypeOauthClientSecret captures enum value "oauth_client_secret"
	ServiceAccountAttributesAuthTypeOauthClientSecret string = "oauth_client_secret"

	// ServiceAccountAttributesAuthTypeOauthPrivateKeyJwt captures enum value "oauth_private_key_jwt"
	ServiceAccountAttributesAuthTypeOauthPrivateKeyJwt string = "oauth_private_key_jwt"
)
View Source
const (

	// ServiceAccountAttributesLevelGroup captures enum value "Group"
	ServiceAccountAttributesLevelGroup string = "Group"

	// ServiceAccountAttributesLevelOrg captures enum value "Org"
	ServiceAccountAttributesLevelOrg string = "Org"
)
View Source
const (

	// SlackChannelAttributesTypePublic captures enum value "public"
	SlackChannelAttributesTypePublic string = "public"

	// SlackChannelAttributesTypePrivate captures enum value "private"
	SlackChannelAttributesTypePrivate string = "private"

	// SlackChannelAttributesTypeDirectMessage captures enum value "direct_message"
	SlackChannelAttributesTypeDirectMessage string = "direct_message"

	// SlackChannelAttributesTypeMultipartyDirectMessage captures enum value "multiparty_direct_message"
	SlackChannelAttributesTypeMultipartyDirectMessage string = "multiparty_direct_message"
)
View Source
const (

	// AppPatchRequestDataTypeApp captures enum value "app"
	AppPatchRequestDataTypeApp string = "app"
)
View Source
const (

	// AppPostRequestDataTypeApp captures enum value "app"
	AppPostRequestDataTypeApp string = "app"
)
View Source
const (

	// CycloneDxDocumentBomFormatCycloneDX captures enum value "CycloneDX"
	CycloneDxDocumentBomFormatCycloneDX string = "CycloneDX"
)
View Source
const (

	// DeleteProjectsFromCollectionRequestDataItems0TypeProject captures enum value "project"
	DeleteProjectsFromCollectionRequestDataItems0TypeProject string = "project"
)
View Source
const (

	// ImageTargetRefTypeImageTargetReference captures enum value "image_target_reference"
	ImageTargetRefTypeImageTargetReference string = "image_target_reference"
)
View Source
const (

	// ImageTypeContainerImage captures enum value "container_image"
	ImageTypeContainerImage string = "container_image"
)
View Source
const (

	// OrgInvitationPostDataTypeOrgInvitation captures enum value "org_invitation"
	OrgInvitationPostDataTypeOrgInvitation string = "org_invitation"
)
View Source
const (

	// OrgInvitationTypeOrgInvitation captures enum value "org_invitation"
	OrgInvitationTypeOrgInvitation string = "org_invitation"
)
View Source
const (

	// PatchProjectRequestDataTypeProject captures enum value "project"
	PatchProjectRequestDataTypeProject string = "project"
)
View Source
const (

	// ProjectSettingsPatchRequestDataTypeSlack captures enum value "slack"
	ProjectSettingsPatchRequestDataTypeSlack string = "slack"
)
View Source
const (

	// SettingsRequestDataTypeSlack captures enum value "slack"
	SettingsRequestDataTypeSlack string = "slack"
)
View Source
const (

	// UpdateCollectionWithProjectsRequestDataItems0TypeProject captures enum value "project"
	UpdateCollectionWithProjectsRequestDataItems0TypeProject string = "project"
)
View Source
const (

	// VersioningSchemaCustomTypeTypeCustom captures enum value "custom"
	VersioningSchemaCustomTypeTypeCustom string = "custom"
)
View Source
const (

	// VersioningSchemaSemverTypeTypeSemver captures enum value "semver"
	VersioningSchemaSemverTypeTypeSemver string = "semver"
)
View Source
const (

	// VersioningSchemaSingleSelectionTypeTypeSingleDashSelection captures enum value "single-selection"
	VersioningSchemaSingleSelectionTypeTypeSingleDashSelection string = "single-selection"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessTokenTTLSeconds

type AccessTokenTTLSeconds float64

AccessTokenTTLSeconds The access token time to live for your app, in seconds. It only affects the newly generated access tokens, existing access token will continue to have their previous time to live as expiration. Example: 3600

swagger:model AccessTokenTtlSeconds

func (AccessTokenTTLSeconds) ContextValidate

func (m AccessTokenTTLSeconds) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this access token Ttl seconds based on context it is used

func (AccessTokenTTLSeconds) Validate

func (m AccessTokenTTLSeconds) Validate(formats strfmt.Registry) error

Validate validates this access token Ttl seconds

type ActualVersion

type ActualVersion string

ActualVersion Resolved API version

swagger:model ActualVersion

func (ActualVersion) ContextValidate

func (m ActualVersion) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this actual version based on context it is used

func (ActualVersion) Validate

func (m ActualVersion) Validate(formats strfmt.Registry) error

Validate validates this actual version

type AppBot

type AppBot struct {

	// attributes
	Attributes interface{} `json:"attributes,omitempty"`

	// id
	// Required: true
	// Format: uuid
	ID *ID `json:"id"`

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

	// relationships
	// Required: true
	Relationships *AppBotRelationships `json:"relationships"`

	// type
	// Required: true
	Type *Type `json:"type"`
}

AppBot app bot

swagger:model AppBot

func (*AppBot) ContextValidate

func (m *AppBot) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this app bot based on the context it is used

func (*AppBot) MarshalBinary

func (m *AppBot) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppBot) UnmarshalBinary

func (m *AppBot) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppBot) Validate

func (m *AppBot) Validate(formats strfmt.Registry) error

Validate validates this app bot

type AppBotRelationships

type AppBotRelationships struct {

	// app
	// Required: true
	App *AppBotRelationshipsApp `json:"app"`
}

AppBotRelationships app bot relationships

swagger:model AppBotRelationships

func (*AppBotRelationships) ContextValidate

func (m *AppBotRelationships) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this app bot relationships based on the context it is used

func (*AppBotRelationships) MarshalBinary

func (m *AppBotRelationships) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppBotRelationships) UnmarshalBinary

func (m *AppBotRelationships) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppBotRelationships) Validate

func (m *AppBotRelationships) Validate(formats strfmt.Registry) error

Validate validates this app bot relationships

type AppBotRelationshipsApp

type AppBotRelationshipsApp struct {

	// data
	Data *PublicApp `json:"data,omitempty"`
}

AppBotRelationshipsApp app bot relationships app

swagger:model AppBotRelationshipsApp

func (*AppBotRelationshipsApp) ContextValidate

func (m *AppBotRelationshipsApp) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this app bot relationships app based on the context it is used

func (*AppBotRelationshipsApp) MarshalBinary

func (m *AppBotRelationshipsApp) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppBotRelationshipsApp) UnmarshalBinary

func (m *AppBotRelationshipsApp) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppBotRelationshipsApp) Validate

func (m *AppBotRelationshipsApp) Validate(formats strfmt.Registry) error

Validate validates this app bot relationships app

type AppData

type AppData struct {

	// attributes
	// Required: true
	Attributes *AppResourceAttributes `json:"attributes"`

	// id
	// Required: true
	// Format: uuid
	ID *ID `json:"id"`

	// type
	// Required: true
	Type *Type `json:"type"`
}

AppData app data

swagger:model AppData

func (*AppData) ContextValidate

func (m *AppData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this app data based on the context it is used

func (*AppData) MarshalBinary

func (m *AppData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppData) UnmarshalBinary

func (m *AppData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppData) Validate

func (m *AppData) Validate(formats strfmt.Registry) error

Validate validates this app data

type AppDataWithSecret

type AppDataWithSecret struct {

	// attributes
	// Required: true
	Attributes *AppResourceAttributesWithSecret `json:"attributes"`

	// id
	// Required: true
	// Format: uuid
	ID *ID `json:"id"`

	// type
	// Required: true
	Type *Type `json:"type"`
}

AppDataWithSecret app data with secret

swagger:model AppDataWithSecret

func (*AppDataWithSecret) ContextValidate

func (m *AppDataWithSecret) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this app data with secret based on the context it is used

func (*AppDataWithSecret) MarshalBinary

func (m *AppDataWithSecret) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppDataWithSecret) UnmarshalBinary

func (m *AppDataWithSecret) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppDataWithSecret) Validate

func (m *AppDataWithSecret) Validate(formats strfmt.Registry) error

Validate validates this app data with secret

type AppInstallData

type AppInstallData struct {

	// attributes
	// Required: true
	Attributes *AppInstallDataAttributes `json:"attributes"`

	// id
	// Required: true
	// Format: uuid
	ID *UUID `json:"id"`

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

	// relationships
	Relationships *AppInstallDataRelationships `json:"relationships,omitempty"`

	// type
	// Required: true
	Type *Type `json:"type"`
}

AppInstallData app install data

swagger:model AppInstallData

func (*AppInstallData) ContextValidate

func (m *AppInstallData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this app install data based on the context it is used

func (*AppInstallData) MarshalBinary

func (m *AppInstallData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppInstallData) UnmarshalBinary

func (m *AppInstallData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppInstallData) Validate

func (m *AppInstallData) Validate(formats strfmt.Registry) error

Validate validates this app install data

type AppInstallDataAttributes

type AppInstallDataAttributes struct {

	// client id
	// Format: uuid
	ClientID ClientID `json:"client_id,omitempty"`
}

AppInstallDataAttributes app install data attributes

swagger:model AppInstallDataAttributes

func (*AppInstallDataAttributes) ContextValidate

func (m *AppInstallDataAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this app install data attributes based on the context it is used

func (*AppInstallDataAttributes) MarshalBinary

func (m *AppInstallDataAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppInstallDataAttributes) UnmarshalBinary

func (m *AppInstallDataAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppInstallDataAttributes) Validate

func (m *AppInstallDataAttributes) Validate(formats strfmt.Registry) error

Validate validates this app install data attributes

type AppInstallDataRelationships

type AppInstallDataRelationships struct {

	// app
	App *AppInstallDataRelationshipsApp `json:"app,omitempty"`
}

AppInstallDataRelationships app install data relationships

swagger:model AppInstallDataRelationships

func (*AppInstallDataRelationships) ContextValidate

func (m *AppInstallDataRelationships) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this app install data relationships based on the context it is used

func (*AppInstallDataRelationships) MarshalBinary

func (m *AppInstallDataRelationships) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppInstallDataRelationships) UnmarshalBinary

func (m *AppInstallDataRelationships) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppInstallDataRelationships) Validate

func (m *AppInstallDataRelationships) Validate(formats strfmt.Registry) error

Validate validates this app install data relationships

type AppInstallDataRelationshipsApp

type AppInstallDataRelationshipsApp struct {

	// data
	Data *PublicAppData `json:"data,omitempty"`
}

AppInstallDataRelationshipsApp app install data relationships app

swagger:model AppInstallDataRelationshipsApp

func (*AppInstallDataRelationshipsApp) ContextValidate

func (m *AppInstallDataRelationshipsApp) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this app install data relationships app based on the context it is used

func (*AppInstallDataRelationshipsApp) MarshalBinary

func (m *AppInstallDataRelationshipsApp) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppInstallDataRelationshipsApp) UnmarshalBinary

func (m *AppInstallDataRelationshipsApp) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppInstallDataRelationshipsApp) Validate

func (m *AppInstallDataRelationshipsApp) Validate(formats strfmt.Registry) error

Validate validates this app install data relationships app

type AppInstallDataWithSecret

type AppInstallDataWithSecret struct {

	// attributes
	// Required: true
	Attributes *AppInstallDataWithSecretAttributes `json:"attributes"`

	// id
	// Required: true
	// Format: uuid
	ID *UUID `json:"id"`

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

	// relationships
	Relationships *AppInstallDataWithSecretRelationships `json:"relationships,omitempty"`

	// type
	// Required: true
	Type *Type `json:"type"`
}

AppInstallDataWithSecret app install data with secret

swagger:model AppInstallDataWithSecret

func (*AppInstallDataWithSecret) ContextValidate

func (m *AppInstallDataWithSecret) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this app install data with secret based on the context it is used

func (*AppInstallDataWithSecret) MarshalBinary

func (m *AppInstallDataWithSecret) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppInstallDataWithSecret) UnmarshalBinary

func (m *AppInstallDataWithSecret) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppInstallDataWithSecret) Validate

func (m *AppInstallDataWithSecret) Validate(formats strfmt.Registry) error

Validate validates this app install data with secret

type AppInstallDataWithSecretAttributes

type AppInstallDataWithSecretAttributes struct {

	// client id
	// Required: true
	// Format: uuid
	ClientID *ClientID `json:"client_id"`

	// client secret
	// Required: true
	ClientSecret *ClientSecret `json:"client_secret"`
}

AppInstallDataWithSecretAttributes app install data with secret attributes

swagger:model AppInstallDataWithSecretAttributes

func (*AppInstallDataWithSecretAttributes) ContextValidate

func (m *AppInstallDataWithSecretAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this app install data with secret attributes based on the context it is used

func (*AppInstallDataWithSecretAttributes) MarshalBinary

func (m *AppInstallDataWithSecretAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppInstallDataWithSecretAttributes) UnmarshalBinary

func (m *AppInstallDataWithSecretAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppInstallDataWithSecretAttributes) Validate

Validate validates this app install data with secret attributes

type AppInstallDataWithSecretRelationships

type AppInstallDataWithSecretRelationships struct {

	// app
	App *AppInstallDataWithSecretRelationshipsApp `json:"app,omitempty"`
}

AppInstallDataWithSecretRelationships app install data with secret relationships

swagger:model AppInstallDataWithSecretRelationships

func (*AppInstallDataWithSecretRelationships) ContextValidate

func (m *AppInstallDataWithSecretRelationships) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this app install data with secret relationships based on the context it is used

func (*AppInstallDataWithSecretRelationships) MarshalBinary

func (m *AppInstallDataWithSecretRelationships) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppInstallDataWithSecretRelationships) UnmarshalBinary

func (m *AppInstallDataWithSecretRelationships) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppInstallDataWithSecretRelationships) Validate

Validate validates this app install data with secret relationships

type AppInstallDataWithSecretRelationshipsApp

type AppInstallDataWithSecretRelationshipsApp struct {

	// data
	Data *PublicAppData `json:"data,omitempty"`
}

AppInstallDataWithSecretRelationshipsApp app install data with secret relationships app

swagger:model AppInstallDataWithSecretRelationshipsApp

func (*AppInstallDataWithSecretRelationshipsApp) ContextValidate

ContextValidate validate this app install data with secret relationships app based on the context it is used

func (*AppInstallDataWithSecretRelationshipsApp) MarshalBinary

func (m *AppInstallDataWithSecretRelationshipsApp) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppInstallDataWithSecretRelationshipsApp) UnmarshalBinary

func (m *AppInstallDataWithSecretRelationshipsApp) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppInstallDataWithSecretRelationshipsApp) Validate

Validate validates this app install data with secret relationships app

type AppInstallWithClient

type AppInstallWithClient struct {

	// attributes
	// Required: true
	Attributes *AppInstallWithClientAttributes `json:"attributes"`

	// id
	// Required: true
	// Format: uuid
	ID *UUID `json:"id"`

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

	// relationships
	// Required: true
	Relationships *AppInstallWithClientRelationships `json:"relationships"`

	// type
	// Required: true
	Type *Type `json:"type"`
}

AppInstallWithClient app install with client

swagger:model AppInstallWithClient

func (*AppInstallWithClient) ContextValidate

func (m *AppInstallWithClient) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this app install with client based on the context it is used

func (*AppInstallWithClient) MarshalBinary

func (m *AppInstallWithClient) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppInstallWithClient) UnmarshalBinary

func (m *AppInstallWithClient) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppInstallWithClient) Validate

func (m *AppInstallWithClient) Validate(formats strfmt.Registry) error

Validate validates this app install with client

type AppInstallWithClientAttributes

type AppInstallWithClientAttributes struct {

	// client id
	// Required: true
	// Format: uuid
	ClientID *strfmt.UUID `json:"client_id"`

	// client secret
	// Required: true
	ClientSecret *string `json:"client_secret"`
}

AppInstallWithClientAttributes app install with client attributes

swagger:model AppInstallWithClientAttributes

func (*AppInstallWithClientAttributes) ContextValidate

func (m *AppInstallWithClientAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this app install with client attributes based on context it is used

func (*AppInstallWithClientAttributes) MarshalBinary

func (m *AppInstallWithClientAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppInstallWithClientAttributes) UnmarshalBinary

func (m *AppInstallWithClientAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppInstallWithClientAttributes) Validate

func (m *AppInstallWithClientAttributes) Validate(formats strfmt.Registry) error

Validate validates this app install with client attributes

type AppInstallWithClientRelationships

type AppInstallWithClientRelationships struct {

	// app
	App *AppInstallWithClientRelationshipsApp `json:"app,omitempty"`
}

AppInstallWithClientRelationships app install with client relationships

swagger:model AppInstallWithClientRelationships

func (*AppInstallWithClientRelationships) ContextValidate

func (m *AppInstallWithClientRelationships) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this app install with client relationships based on the context it is used

func (*AppInstallWithClientRelationships) MarshalBinary

func (m *AppInstallWithClientRelationships) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppInstallWithClientRelationships) UnmarshalBinary

func (m *AppInstallWithClientRelationships) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppInstallWithClientRelationships) Validate

Validate validates this app install with client relationships

type AppInstallWithClientRelationshipsApp

type AppInstallWithClientRelationshipsApp struct {

	// data
	Data *AppInstallWithClientRelationshipsAppData `json:"data,omitempty"`
}

AppInstallWithClientRelationshipsApp app install with client relationships app

swagger:model AppInstallWithClientRelationshipsApp

func (*AppInstallWithClientRelationshipsApp) ContextValidate

func (m *AppInstallWithClientRelationshipsApp) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this app install with client relationships app based on the context it is used

func (*AppInstallWithClientRelationshipsApp) MarshalBinary

func (m *AppInstallWithClientRelationshipsApp) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppInstallWithClientRelationshipsApp) UnmarshalBinary

func (m *AppInstallWithClientRelationshipsApp) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppInstallWithClientRelationshipsApp) Validate

Validate validates this app install with client relationships app

type AppInstallWithClientRelationshipsAppData

type AppInstallWithClientRelationshipsAppData struct {

	// id
	// Required: true
	// Format: uuid
	ID *UUID `json:"id"`

	// type
	// Required: true
	Type *Type `json:"type"`
}

AppInstallWithClientRelationshipsAppData app install with client relationships app data

swagger:model AppInstallWithClientRelationshipsAppData

func (*AppInstallWithClientRelationshipsAppData) ContextValidate

ContextValidate validate this app install with client relationships app data based on the context it is used

func (*AppInstallWithClientRelationshipsAppData) MarshalBinary

func (m *AppInstallWithClientRelationshipsAppData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppInstallWithClientRelationshipsAppData) UnmarshalBinary

func (m *AppInstallWithClientRelationshipsAppData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppInstallWithClientRelationshipsAppData) Validate

Validate validates this app install with client relationships app data

type AppName

type AppName string

AppName New name of the app to display to users during authorization flow. Example: My App

swagger:model AppName

func (AppName) ContextValidate

func (m AppName) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this app name based on context it is used

func (AppName) Validate

func (m AppName) Validate(formats strfmt.Registry) error

Validate validates this app name

type AppPatchRequest

type AppPatchRequest struct {

	// data
	// Required: true
	Data *AppPatchRequestData `json:"data"`
}

AppPatchRequest app patch request

swagger:model AppPatchRequest

func (*AppPatchRequest) ContextValidate

func (m *AppPatchRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this app patch request based on the context it is used

func (*AppPatchRequest) MarshalBinary

func (m *AppPatchRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppPatchRequest) UnmarshalBinary

func (m *AppPatchRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppPatchRequest) Validate

func (m *AppPatchRequest) Validate(formats strfmt.Registry) error

Validate validates this app patch request

type AppPatchRequestData

type AppPatchRequestData struct {

	// attributes
	Attributes *AppPatchRequestDataAttributes `json:"attributes,omitempty"`

	// type
	// Enum: [app]
	Type string `json:"type,omitempty"`
}

AppPatchRequestData app patch request data

swagger:model AppPatchRequestData

func (*AppPatchRequestData) ContextValidate

func (m *AppPatchRequestData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this app patch request data based on the context it is used

func (*AppPatchRequestData) MarshalBinary

func (m *AppPatchRequestData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppPatchRequestData) UnmarshalBinary

func (m *AppPatchRequestData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppPatchRequestData) Validate

func (m *AppPatchRequestData) Validate(formats strfmt.Registry) error

Validate validates this app patch request data

type AppPatchRequestDataAttributes

type AppPatchRequestDataAttributes struct {

	// access token ttl seconds
	AccessTokenTTLSeconds AccessTokenTTLSeconds `json:"access_token_ttl_seconds,omitempty"`

	// name
	Name AppName `json:"name,omitempty"`

	// redirect uris
	RedirectUris RedirectUris `json:"redirect_uris,omitempty"`
}

AppPatchRequestDataAttributes app patch request data attributes

Min Properties: 1

swagger:model AppPatchRequestDataAttributes

func (*AppPatchRequestDataAttributes) ContextValidate

func (m *AppPatchRequestDataAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this app patch request data attributes based on the context it is used

func (*AppPatchRequestDataAttributes) MarshalBinary

func (m *AppPatchRequestDataAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppPatchRequestDataAttributes) UnmarshalBinary

func (m *AppPatchRequestDataAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppPatchRequestDataAttributes) Validate

func (m *AppPatchRequestDataAttributes) Validate(formats strfmt.Registry) error

Validate validates this app patch request data attributes

type AppPostRequest

type AppPostRequest struct {

	// data
	// Required: true
	Data *AppPostRequestData `json:"data"`
}

AppPostRequest app post request

swagger:model AppPostRequest

func (*AppPostRequest) ContextValidate

func (m *AppPostRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this app post request based on the context it is used

func (*AppPostRequest) MarshalBinary

func (m *AppPostRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppPostRequest) UnmarshalBinary

func (m *AppPostRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppPostRequest) Validate

func (m *AppPostRequest) Validate(formats strfmt.Registry) error

Validate validates this app post request

type AppPostRequestData

type AppPostRequestData struct {

	// attributes
	// Required: true
	Attributes *AppPostRequestDataAttributes `json:"attributes"`

	// type
	// Required: true
	// Enum: [app]
	Type *string `json:"type"`
}

AppPostRequestData app post request data

swagger:model AppPostRequestData

func (*AppPostRequestData) ContextValidate

func (m *AppPostRequestData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this app post request data based on the context it is used

func (*AppPostRequestData) MarshalBinary

func (m *AppPostRequestData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppPostRequestData) UnmarshalBinary

func (m *AppPostRequestData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppPostRequestData) Validate

func (m *AppPostRequestData) Validate(formats strfmt.Registry) error

Validate validates this app post request data

type AppPostRequestDataAttributes

type AppPostRequestDataAttributes struct {

	// access token ttl seconds
	AccessTokenTTLSeconds AccessTokenTTLSeconds `json:"access_token_ttl_seconds,omitempty"`

	// context
	// Required: true
	Context *Context `json:"context"`

	// name
	// Required: true
	Name *AppName `json:"name"`

	// redirect uris
	// Required: true
	RedirectUris RedirectUris `json:"redirect_uris"`

	// scopes
	// Required: true
	Scopes Scopes `json:"scopes"`
}

AppPostRequestDataAttributes app post request data attributes

swagger:model AppPostRequestDataAttributes

func (*AppPostRequestDataAttributes) ContextValidate

func (m *AppPostRequestDataAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this app post request data attributes based on the context it is used

func (*AppPostRequestDataAttributes) MarshalBinary

func (m *AppPostRequestDataAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppPostRequestDataAttributes) UnmarshalBinary

func (m *AppPostRequestDataAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppPostRequestDataAttributes) Validate

func (m *AppPostRequestDataAttributes) Validate(formats strfmt.Registry) error

Validate validates this app post request data attributes

type AppPostResponse

type AppPostResponse struct {

	// data
	Data *AppDataWithSecret `json:"data,omitempty"`

	// jsonapi
	Jsonapi *JSONAPI `json:"jsonapi,omitempty"`

	// links
	Links *SelfLink `json:"links,omitempty"`
}

AppPostResponse app post response

swagger:model AppPostResponse

func (*AppPostResponse) ContextValidate

func (m *AppPostResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this app post response based on the context it is used

func (*AppPostResponse) MarshalBinary

func (m *AppPostResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppPostResponse) UnmarshalBinary

func (m *AppPostResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppPostResponse) Validate

func (m *AppPostResponse) Validate(formats strfmt.Registry) error

Validate validates this app post response

type AppResourceAttributes

type AppResourceAttributes struct {

	// access token ttl seconds
	// Required: true
	AccessTokenTTLSeconds *AccessTokenTTLSeconds `json:"access_token_ttl_seconds"`

	// client id
	// Format: uuid
	ClientID ClientID `json:"client_id,omitempty"`

	// context
	// Required: true
	Context *Context `json:"context"`

	// grant type
	// Required: true
	GrantType *GrantType `json:"grant_type"`

	// is confidential
	// Required: true
	IsConfidential *IsConfidential `json:"is_confidential"`

	// is public
	// Required: true
	IsPublic *IsPublic `json:"is_public"`

	// name
	// Required: true
	Name *AppName `json:"name"`

	// org public id
	// Format: uuid
	OrgPublicID UUID `json:"org_public_id,omitempty"`

	// redirect uris
	RedirectUris RedirectUris `json:"redirect_uris,omitempty"`

	// scopes
	// Required: true
	Scopes Scopes `json:"scopes"`
}

AppResourceAttributes app resource attributes

swagger:model AppResourceAttributes

func (*AppResourceAttributes) ContextValidate

func (m *AppResourceAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this app resource attributes based on the context it is used

func (*AppResourceAttributes) MarshalBinary

func (m *AppResourceAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppResourceAttributes) UnmarshalBinary

func (m *AppResourceAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppResourceAttributes) Validate

func (m *AppResourceAttributes) Validate(formats strfmt.Registry) error

Validate validates this app resource attributes

type AppResourceAttributesWithSecret

type AppResourceAttributesWithSecret struct {

	// access token ttl seconds
	// Required: true
	AccessTokenTTLSeconds *AccessTokenTTLSeconds `json:"access_token_ttl_seconds"`

	// client id
	// Required: true
	// Format: uuid
	ClientID *ClientID `json:"client_id"`

	// client secret
	// Required: true
	ClientSecret *ClientSecret `json:"client_secret"`

	// context
	// Required: true
	Context *Context `json:"context"`

	// grant type
	// Required: true
	GrantType *GrantType `json:"grant_type"`

	// is confidential
	// Required: true
	IsConfidential *IsConfidential `json:"is_confidential"`

	// is public
	// Required: true
	IsPublic *IsPublic `json:"is_public"`

	// name
	// Required: true
	Name *AppName `json:"name"`

	// org public id
	// Format: uuid
	OrgPublicID UUID `json:"org_public_id,omitempty"`

	// redirect uris
	// Required: true
	RedirectUris RedirectUris `json:"redirect_uris"`

	// scopes
	// Required: true
	Scopes Scopes `json:"scopes"`
}

AppResourceAttributesWithSecret app resource attributes with secret

swagger:model AppResourceAttributesWithSecret

func (*AppResourceAttributesWithSecret) ContextValidate

func (m *AppResourceAttributesWithSecret) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this app resource attributes with secret based on the context it is used

func (*AppResourceAttributesWithSecret) MarshalBinary

func (m *AppResourceAttributesWithSecret) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AppResourceAttributesWithSecret) UnmarshalBinary

func (m *AppResourceAttributesWithSecret) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AppResourceAttributesWithSecret) Validate

Validate validates this app resource attributes with secret

type AuditLogSearch

type AuditLogSearch struct {

	// items
	Items []*AuditLogSearchItemsItems0 `json:"items"`

	// type
	Type string `json:"type,omitempty"`
}

AuditLogSearch audit log search

swagger:model AuditLogSearch

func (*AuditLogSearch) ContextValidate

func (m *AuditLogSearch) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this audit log search based on the context it is used

func (*AuditLogSearch) MarshalBinary

func (m *AuditLogSearch) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AuditLogSearch) UnmarshalBinary

func (m *AuditLogSearch) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AuditLogSearch) Validate

func (m *AuditLogSearch) Validate(formats strfmt.Registry) error

Validate validates this audit log search

type AuditLogSearchItemsItems0

type AuditLogSearchItemsItems0 struct {

	// content
	Content interface{} `json:"content,omitempty"`

	// created
	// Example: 2021-07-01T00:00:00Z
	// Required: true
	// Format: date-time
	Created *strfmt.DateTime `json:"created"`

	// event
	// Example: api.access
	// Required: true
	Event *string `json:"event"`

	// group id
	// Example: 0d3728ec-eebf-484d-9907-ba238019f10b
	// Format: uuid
	GroupID strfmt.UUID `json:"group_id,omitempty"`

	// org id
	// Example: 0d3728ec-eebf-484d-9907-ba238019f10b
	// Format: uuid
	OrgID strfmt.UUID `json:"org_id,omitempty"`

	// project id
	// Example: 0d3728ec-eebf-484d-9907-ba238019f10b
	// Format: uuid
	ProjectID strfmt.UUID `json:"project_id,omitempty"`
}

AuditLogSearchItemsItems0 audit log search items items0

swagger:model AuditLogSearchItemsItems0

func (*AuditLogSearchItemsItems0) ContextValidate

func (m *AuditLogSearchItemsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this audit log search items items0 based on context it is used

func (*AuditLogSearchItemsItems0) MarshalBinary

func (m *AuditLogSearchItemsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AuditLogSearchItemsItems0) UnmarshalBinary

func (m *AuditLogSearchItemsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AuditLogSearchItemsItems0) Validate

func (m *AuditLogSearchItemsItems0) Validate(formats strfmt.Registry) error

Validate validates this audit log search items items0

type AutoDependencyUpgradeSettings

type AutoDependencyUpgradeSettings struct {

	// Dependencies which should NOT be included in an automatic upgrade operation.
	// Example: ["typescript"]
	IgnoredDependencies []string `json:"ignored_dependencies"`

	// Automatically raise pull requests to update out-of-date dependencies.
	// Example: true
	IsEnabled bool `json:"is_enabled,omitempty"`

	// Apply the auto dependency integration settings of the Organization to this project.
	// Example: true
	IsInherited bool `json:"is_inherited,omitempty"`

	// Include major version in dependency upgrade recommendation.
	// Example: true
	IsMajorUpgradeEnabled bool `json:"is_major_upgrade_enabled,omitempty"`

	// Limit of dependency upgrade PRs which can be opened simultaneously. When the limit is reached, no new upgrade PRs are created. If specified, must be between 1 and 10.
	// Example: 10
	// Maximum: 10
	// Minimum: 1
	Limit float64 `json:"limit,omitempty"`

	// Minimum dependency maturity period in days. If specified, must be between 1 and 365.
	// Example: 365
	MinimumAge float64 `json:"minimum_age,omitempty"`
}

AutoDependencyUpgradeSettings Automatically create pull requests on recurring tests for dependencies as upgrades become available. If not specified, settings will be inherited from the Project's integration.

swagger:model AutoDependencyUpgradeSettings

func (*AutoDependencyUpgradeSettings) ContextValidate

func (m *AutoDependencyUpgradeSettings) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this auto dependency upgrade settings based on context it is used

func (*AutoDependencyUpgradeSettings) MarshalBinary

func (m *AutoDependencyUpgradeSettings) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AutoDependencyUpgradeSettings) UnmarshalBinary

func (m *AutoDependencyUpgradeSettings) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AutoDependencyUpgradeSettings) Validate

func (m *AutoDependencyUpgradeSettings) Validate(formats strfmt.Registry) error

Validate validates this auto dependency upgrade settings

type AutoRemediationPRsSettings

type AutoRemediationPRsSettings struct {

	// Automatically create pull requests on scheduled tests for known (backlog) vulnerabilities.
	// Example: true
	IsBacklogPrsEnabled bool `json:"is_backlog_prs_enabled,omitempty"`

	// Automatically create pull requests on scheduled tests for new vulnerabilities.
	// Example: true
	IsFreshPrsEnabled bool `json:"is_fresh_prs_enabled,omitempty"`

	// Include vulnerability patches in automatic pull requests.
	// Example: true
	IsPatchRemediationEnabled bool `json:"is_patch_remediation_enabled,omitempty"`
}

AutoRemediationPRsSettings Automatically raise pull requests on recurring tests to fix new and existing vulnerabilities. If not specified, settings will be inherited from the Project's integration.

swagger:model AutoRemediationPRsSettings

func (*AutoRemediationPRsSettings) ContextValidate

func (m *AutoRemediationPRsSettings) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this auto remediation p rs settings based on context it is used

func (*AutoRemediationPRsSettings) MarshalBinary

func (m *AutoRemediationPRsSettings) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AutoRemediationPRsSettings) UnmarshalBinary

func (m *AutoRemediationPRsSettings) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AutoRemediationPRsSettings) Validate

func (m *AutoRemediationPRsSettings) Validate(formats strfmt.Registry) error

Validate validates this auto remediation p rs settings

type BulkPackageUrlsRequestBody

type BulkPackageUrlsRequestBody struct {

	// data
	// Required: true
	Data *BulkPackageUrlsRequestBodyData `json:"data"`
}

BulkPackageUrlsRequestBody bulk package urls request body

swagger:model BulkPackageUrlsRequestBody

func (*BulkPackageUrlsRequestBody) ContextValidate

func (m *BulkPackageUrlsRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this bulk package urls request body based on the context it is used

func (*BulkPackageUrlsRequestBody) MarshalBinary

func (m *BulkPackageUrlsRequestBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BulkPackageUrlsRequestBody) UnmarshalBinary

func (m *BulkPackageUrlsRequestBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BulkPackageUrlsRequestBody) Validate

func (m *BulkPackageUrlsRequestBody) Validate(formats strfmt.Registry) error

Validate validates this bulk package urls request body

type BulkPackageUrlsRequestBodyData

type BulkPackageUrlsRequestBodyData struct {

	// attributes
	// Required: true
	Attributes *BulkPackageUrlsRequestBodyDataAttributes `json:"attributes"`

	// type
	Type Types `json:"type,omitempty"`
}

BulkPackageUrlsRequestBodyData bulk package urls request body data

swagger:model BulkPackageUrlsRequestBodyData

func (*BulkPackageUrlsRequestBodyData) ContextValidate

func (m *BulkPackageUrlsRequestBodyData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this bulk package urls request body data based on the context it is used

func (*BulkPackageUrlsRequestBodyData) MarshalBinary

func (m *BulkPackageUrlsRequestBodyData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BulkPackageUrlsRequestBodyData) UnmarshalBinary

func (m *BulkPackageUrlsRequestBodyData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BulkPackageUrlsRequestBodyData) Validate

func (m *BulkPackageUrlsRequestBodyData) Validate(formats strfmt.Registry) error

Validate validates this bulk package urls request body data

type BulkPackageUrlsRequestBodyDataAttributes

type BulkPackageUrlsRequestBodyDataAttributes struct {

	// An array of Package URLs (purl). Supported purl types are apk, cargo, cocoapods, composer, deb, gem, generic, golang, hex, maven, npm, nuget, pub, pypi, rpm, and swift. A version for the package is also required.
	// Required: true
	Purls []string `json:"purls"`
}

BulkPackageUrlsRequestBodyDataAttributes bulk package urls request body data attributes

swagger:model BulkPackageUrlsRequestBodyDataAttributes

func (*BulkPackageUrlsRequestBodyDataAttributes) ContextValidate

ContextValidate validates this bulk package urls request body data attributes based on context it is used

func (*BulkPackageUrlsRequestBodyDataAttributes) MarshalBinary

func (m *BulkPackageUrlsRequestBodyDataAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BulkPackageUrlsRequestBodyDataAttributes) UnmarshalBinary

func (m *BulkPackageUrlsRequestBodyDataAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BulkPackageUrlsRequestBodyDataAttributes) Validate

Validate validates this bulk package urls request body data attributes

type Class

type Class struct {

	// id
	// Required: true
	// Max Length: 1024
	// Min Length: 1
	ID *string `json:"id"`

	// source
	// Example: CWE
	// Required: true
	// Max Length: 64
	// Min Length: 1
	Source *string `json:"source"`

	// type
	// Required: true
	Type *ClassTypeDef `json:"type"`

	// An optional URL for this class.
	// Max Length: 4096
	// Min Length: 1
	// Format: uri
	URL strfmt.URI `json:"url,omitempty"`
}

Class class Example: {"id":"CWE-190","source":"CWE","type":"weakness"}

swagger:model Class

func (*Class) ContextValidate

func (m *Class) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this class based on the context it is used

func (*Class) MarshalBinary

func (m *Class) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Class) UnmarshalBinary

func (m *Class) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Class) Validate

func (m *Class) Validate(formats strfmt.Registry) error

Validate validates this class

type ClassTypeDef

type ClassTypeDef string

ClassTypeDef class type def Example: compliance

swagger:model ClassTypeDef

const (

	// ClassTypeDefRuleDashCategory captures enum value "rule-category"
	ClassTypeDefRuleDashCategory ClassTypeDef = "rule-category"

	// ClassTypeDefCompliance captures enum value "compliance"
	ClassTypeDefCompliance ClassTypeDef = "compliance"

	// ClassTypeDefWeakness captures enum value "weakness"
	ClassTypeDefWeakness ClassTypeDef = "weakness"
)

func NewClassTypeDef

func NewClassTypeDef(value ClassTypeDef) *ClassTypeDef

func (ClassTypeDef) ContextValidate

func (m ClassTypeDef) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this class type def based on context it is used

func (ClassTypeDef) Pointer

func (m ClassTypeDef) Pointer() *ClassTypeDef

Pointer returns a pointer to a freshly-allocated ClassTypeDef.

func (ClassTypeDef) Validate

func (m ClassTypeDef) Validate(formats strfmt.Registry) error

Validate validates this class type def

type ClientID

type ClientID strfmt.UUID

ClientID The oauth2 client id for the app. Example: 941b423a-e0a0-4a33-a7ca-dd9e9e6bd8cf

swagger:model ClientId

func (ClientID) ContextValidate

func (m ClientID) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this client Id based on context it is used

func (ClientID) Validate

func (m ClientID) Validate(formats strfmt.Registry) error

Validate validates this client Id

type ClientSecret

type ClientSecret string

ClientSecret The oauth2 client secret for the app. This is the only time this secret will be returned, store it securely and don’t lose it. Example: snyk_cs_ctZW0JsWG^Bm`*oPo=mnV26qU_6pjxht\u003c]S_v1

swagger:model ClientSecret

func (ClientSecret) ContextValidate

func (m ClientSecret) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this client secret based on context it is used

func (ClientSecret) Validate

func (m ClientSecret) Validate(formats strfmt.Registry) error

Validate validates this client secret

type CloudResource

type CloudResource struct {

	// environment
	// Required: true
	Environment *Environment `json:"environment"`

	// resource
	Resource *Resource `json:"resource,omitempty"`
}

CloudResource cloud resource

swagger:model CloudResource

func (*CloudResource) ContextValidate

func (m *CloudResource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this cloud resource based on the context it is used

func (*CloudResource) MarshalBinary

func (m *CloudResource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CloudResource) UnmarshalBinary

func (m *CloudResource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CloudResource) Validate

func (m *CloudResource) Validate(formats strfmt.Registry) error

Validate validates this cloud resource

type CollectionAttributes

type CollectionAttributes struct {

	// is generated
	IsGenerated bool `json:"is_generated,omitempty"`

	// name
	// Required: true
	Name *Name `json:"name"`
}

CollectionAttributes collection attributes

swagger:model CollectionAttributes

func (*CollectionAttributes) ContextValidate

func (m *CollectionAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this collection attributes based on the context it is used

func (*CollectionAttributes) MarshalBinary

func (m *CollectionAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CollectionAttributes) UnmarshalBinary

func (m *CollectionAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CollectionAttributes) Validate

func (m *CollectionAttributes) Validate(formats strfmt.Registry) error

Validate validates this collection attributes

type CollectionMeta

type CollectionMeta struct {

	// The sum of critical severity issues of the collection's projects
	// Example: 10
	// Required: true
	IssuesCriticalCount *float64 `json:"issues_critical_count"`

	// The sum of high severity issues of the collection's projects
	// Example: 10
	// Required: true
	IssuesHighCount *float64 `json:"issues_high_count"`

	// The sum of low severity issues of the collection's projects
	// Example: 10
	// Required: true
	IssuesLowCount *float64 `json:"issues_low_count"`

	// The sum of medium severity issues of the collection's projects
	// Example: 10
	// Required: true
	IssuesMediumCount *float64 `json:"issues_medium_count"`

	// The amount of projects belonging to this collection
	// Example: 7
	// Required: true
	ProjectsCount *float64 `json:"projects_count"`
}

CollectionMeta collection meta

swagger:model CollectionMeta

func (*CollectionMeta) ContextValidate

func (m *CollectionMeta) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this collection meta based on context it is used

func (*CollectionMeta) MarshalBinary

func (m *CollectionMeta) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CollectionMeta) UnmarshalBinary

func (m *CollectionMeta) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CollectionMeta) Validate

func (m *CollectionMeta) Validate(formats strfmt.Registry) error

Validate validates this collection meta

type CollectionRelationships

type CollectionRelationships struct {

	// created by user
	// Required: true
	CreatedByUser *CollectionRelationshipsCreatedByUser `json:"created_by_user"`

	// org
	// Required: true
	Org *CollectionRelationshipsOrg `json:"org"`
}

CollectionRelationships collection relationships

swagger:model CollectionRelationships

func (*CollectionRelationships) ContextValidate

func (m *CollectionRelationships) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this collection relationships based on the context it is used

func (*CollectionRelationships) MarshalBinary

func (m *CollectionRelationships) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CollectionRelationships) UnmarshalBinary

func (m *CollectionRelationships) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CollectionRelationships) Validate

func (m *CollectionRelationships) Validate(formats strfmt.Registry) error

Validate validates this collection relationships

type CollectionRelationshipsCreatedByUser

type CollectionRelationshipsCreatedByUser struct {

	// data
	// Required: true
	Data *CollectionRelationshipsCreatedByUserData `json:"data"`
}

CollectionRelationshipsCreatedByUser collection relationships created by user

swagger:model CollectionRelationshipsCreatedByUser

func (*CollectionRelationshipsCreatedByUser) ContextValidate

func (m *CollectionRelationshipsCreatedByUser) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this collection relationships created by user based on the context it is used

func (*CollectionRelationshipsCreatedByUser) MarshalBinary

func (m *CollectionRelationshipsCreatedByUser) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CollectionRelationshipsCreatedByUser) UnmarshalBinary

func (m *CollectionRelationshipsCreatedByUser) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CollectionRelationshipsCreatedByUser) Validate

Validate validates this collection relationships created by user

type CollectionRelationshipsCreatedByUserData

type CollectionRelationshipsCreatedByUserData struct {

	// ID of the user that created the collection. Null for auto-collections.
	// Example: 331ede0a-de94-456f-b788-166caeca58bf
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// type
	// Required: true
	// Enum: [user]
	Type interface{} `json:"type"`
}

CollectionRelationshipsCreatedByUserData collection relationships created by user data

swagger:model CollectionRelationshipsCreatedByUserData

func (*CollectionRelationshipsCreatedByUserData) ContextValidate

ContextValidate validates this collection relationships created by user data based on context it is used

func (*CollectionRelationshipsCreatedByUserData) MarshalBinary

func (m *CollectionRelationshipsCreatedByUserData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CollectionRelationshipsCreatedByUserData) UnmarshalBinary

func (m *CollectionRelationshipsCreatedByUserData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CollectionRelationshipsCreatedByUserData) Validate

Validate validates this collection relationships created by user data

type CollectionRelationshipsOrg

type CollectionRelationshipsOrg struct {

	// data
	// Required: true
	Data *CollectionRelationshipsOrgData `json:"data"`
}

CollectionRelationshipsOrg collection relationships org

swagger:model CollectionRelationshipsOrg

func (*CollectionRelationshipsOrg) ContextValidate

func (m *CollectionRelationshipsOrg) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this collection relationships org based on the context it is used

func (*CollectionRelationshipsOrg) MarshalBinary

func (m *CollectionRelationshipsOrg) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CollectionRelationshipsOrg) UnmarshalBinary

func (m *CollectionRelationshipsOrg) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CollectionRelationshipsOrg) Validate

func (m *CollectionRelationshipsOrg) Validate(formats strfmt.Registry) error

Validate validates this collection relationships org

type CollectionRelationshipsOrgData

type CollectionRelationshipsOrgData struct {

	// ID of the org that this collection belongs to
	// Example: 331ede0a-de94-456f-b788-166caeca58bf
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// type
	// Required: true
	// Enum: [org]
	Type interface{} `json:"type"`
}

CollectionRelationshipsOrgData collection relationships org data

swagger:model CollectionRelationshipsOrgData

func (*CollectionRelationshipsOrgData) ContextValidate

func (m *CollectionRelationshipsOrgData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this collection relationships org data based on context it is used

func (*CollectionRelationshipsOrgData) MarshalBinary

func (m *CollectionRelationshipsOrgData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CollectionRelationshipsOrgData) UnmarshalBinary

func (m *CollectionRelationshipsOrgData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CollectionRelationshipsOrgData) Validate

func (m *CollectionRelationshipsOrgData) Validate(formats strfmt.Registry) error

Validate validates this collection relationships org data

type CollectionResponse

type CollectionResponse struct {

	// attributes
	// Required: true
	Attributes *CollectionAttributes `json:"attributes"`

	// id
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// meta
	// Required: true
	Meta *CollectionMeta `json:"meta"`

	// relationships
	// Required: true
	Relationships *CollectionRelationships `json:"relationships"`

	// type
	// Required: true
	Type *Types `json:"type"`
}

CollectionResponse collection response

swagger:model CollectionResponse

func (*CollectionResponse) ContextValidate

func (m *CollectionResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this collection response based on the context it is used

func (*CollectionResponse) MarshalBinary

func (m *CollectionResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CollectionResponse) UnmarshalBinary

func (m *CollectionResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CollectionResponse) Validate

func (m *CollectionResponse) Validate(formats strfmt.Registry) error

Validate validates this collection response

type CommonIssueModel

type CommonIssueModel struct {

	// attributes
	Attributes *CommonIssueModelAttributes `json:"attributes,omitempty"`

	// The Snyk ID of the vulnerability.
	// Example: SNYK-JAVA-COMFASTERXMLWOODSTOX-2928754
	ID string `json:"id,omitempty"`

	// The type of the REST resource. Always ‘issue’.
	// Example: issue
	Type string `json:"type,omitempty"`
}

CommonIssueModel common issue model

swagger:model CommonIssueModel

func (*CommonIssueModel) ContextValidate

func (m *CommonIssueModel) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this common issue model based on the context it is used

func (*CommonIssueModel) MarshalBinary

func (m *CommonIssueModel) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CommonIssueModel) UnmarshalBinary

func (m *CommonIssueModel) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CommonIssueModel) Validate

func (m *CommonIssueModel) Validate(formats strfmt.Registry) error

Validate validates this common issue model

type CommonIssueModelAttributes

type CommonIssueModelAttributes struct {

	// coordinates
	Coordinates []*CommonIssueModelAttributesCoordinatesItems0 `json:"coordinates"`

	// created at
	// Example: 2022-06-16T13:51:13Z
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"created_at,omitempty"`

	// A description of the issue in Markdown format
	// Example: ## Overview\\n\\n\\nAffected versions of this package are vulnerable to XML External Entity (XXE) Injection.
	Description string `json:"description,omitempty"`

	// The type from enumeration of the issue’s severity level. This is usually set from the issue’s producer, but can be overridden by policies.
	// Enum: [info low medium high critical]
	EffectiveSeverityLevel string `json:"effective_severity_level,omitempty"`

	// The Snyk vulnerability ID.
	// Example: SNYK-JAVA-COMFASTERXMLWOODSTOX-2928754
	Key string `json:"key,omitempty"`

	// problems
	Problems []*CommonIssueModelAttributesProblemsItems0 `json:"problems"`

	// The severity level of the vulnerability: ‘low’, ‘medium’, ‘high’ or ‘critical’.
	Severities []*Severity `json:"severities"`

	// slots
	Slots *Slots `json:"slots,omitempty"`

	// A human-readable title for this issue.
	// Example: XML External Entity (XXE) Injection
	Title string `json:"title,omitempty"`

	// The issue type
	// Example: package_vulnerability
	Type string `json:"type,omitempty"`

	// When the vulnerability information was last modified.
	// Example: 2022-06-16T14:00:24.315507Z
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`
}

CommonIssueModelAttributes common issue model attributes

swagger:model CommonIssueModelAttributes

func (*CommonIssueModelAttributes) ContextValidate

func (m *CommonIssueModelAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this common issue model attributes based on the context it is used

func (*CommonIssueModelAttributes) MarshalBinary

func (m *CommonIssueModelAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CommonIssueModelAttributes) UnmarshalBinary

func (m *CommonIssueModelAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CommonIssueModelAttributes) Validate

func (m *CommonIssueModelAttributes) Validate(formats strfmt.Registry) error

Validate validates this common issue model attributes

type CommonIssueModelAttributesCoordinatesItems0

type CommonIssueModelAttributesCoordinatesItems0 struct {

	// remedies
	Remedies []*CommonIssueModelAttributesCoordinatesItems0RemediesItems0 `json:"remedies"`

	// The affected versions of this vulnerability.
	Representation []string `json:"representation"`
}

CommonIssueModelAttributesCoordinatesItems0 common issue model attributes coordinates items0

swagger:model CommonIssueModelAttributesCoordinatesItems0

func (*CommonIssueModelAttributesCoordinatesItems0) ContextValidate

ContextValidate validate this common issue model attributes coordinates items0 based on the context it is used

func (*CommonIssueModelAttributesCoordinatesItems0) MarshalBinary

func (m *CommonIssueModelAttributesCoordinatesItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CommonIssueModelAttributesCoordinatesItems0) UnmarshalBinary

func (m *CommonIssueModelAttributesCoordinatesItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CommonIssueModelAttributesCoordinatesItems0) Validate

Validate validates this common issue model attributes coordinates items0

type CommonIssueModelAttributesCoordinatesItems0RemediesItems0

type CommonIssueModelAttributesCoordinatesItems0RemediesItems0 struct {

	// A markdown-formatted optional description of this remedy.
	// Example: Upgrade the package version to 5.4.0,6.4.0 to fix this vulnerability
	Description string `json:"description,omitempty"`

	// details
	Details *CommonIssueModelAttributesCoordinatesItems0RemediesItems0Details `json:"details,omitempty"`

	// The type of the remedy. Always ‘indeterminate’.
	// Example: indeterminate
	Type string `json:"type,omitempty"`
}

CommonIssueModelAttributesCoordinatesItems0RemediesItems0 common issue model attributes coordinates items0 remedies items0

swagger:model CommonIssueModelAttributesCoordinatesItems0RemediesItems0

func (*CommonIssueModelAttributesCoordinatesItems0RemediesItems0) ContextValidate

ContextValidate validate this common issue model attributes coordinates items0 remedies items0 based on the context it is used

func (*CommonIssueModelAttributesCoordinatesItems0RemediesItems0) MarshalBinary

MarshalBinary interface implementation

func (*CommonIssueModelAttributesCoordinatesItems0RemediesItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*CommonIssueModelAttributesCoordinatesItems0RemediesItems0) Validate

Validate validates this common issue model attributes coordinates items0 remedies items0

type CommonIssueModelAttributesCoordinatesItems0RemediesItems0Details

type CommonIssueModelAttributesCoordinatesItems0RemediesItems0Details struct {

	// A minimum version to upgrade to in order to remedy the issue.
	// Example: 5.4.0,6.4.0
	UpgradePackage string `json:"upgrade_package,omitempty"`
}

CommonIssueModelAttributesCoordinatesItems0RemediesItems0Details common issue model attributes coordinates items0 remedies items0 details

swagger:model CommonIssueModelAttributesCoordinatesItems0RemediesItems0Details

func (*CommonIssueModelAttributesCoordinatesItems0RemediesItems0Details) ContextValidate

ContextValidate validates this common issue model attributes coordinates items0 remedies items0 details based on context it is used

func (*CommonIssueModelAttributesCoordinatesItems0RemediesItems0Details) MarshalBinary

MarshalBinary interface implementation

func (*CommonIssueModelAttributesCoordinatesItems0RemediesItems0Details) UnmarshalBinary

UnmarshalBinary interface implementation

func (*CommonIssueModelAttributesCoordinatesItems0RemediesItems0Details) Validate

Validate validates this common issue model attributes coordinates items0 remedies items0 details

type CommonIssueModelAttributesProblemsItems0

type CommonIssueModelAttributesProblemsItems0 struct {

	// When this problem was disclosed to the public.
	// Format: date-time
	DisclosedAt strfmt.DateTime `json:"disclosed_at,omitempty"`

	// When this problem was first discovered.
	// Format: date-time
	DiscoveredAt strfmt.DateTime `json:"discovered_at,omitempty"`

	// id
	// Example: CWE-61
	// Required: true
	// Max Length: 1024
	// Min Length: 1
	ID *string `json:"id"`

	// source
	// Example: CVE
	// Required: true
	// Max Length: 64
	// Min Length: 1
	Source *string `json:"source"`

	// When this problem was last updated.
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`

	// An optional URL for this problem.
	// Max Length: 4096
	// Min Length: 1
	// Format: uri
	URL strfmt.URI `json:"url,omitempty"`
}

CommonIssueModelAttributesProblemsItems0 common issue model attributes problems items0

swagger:model CommonIssueModelAttributesProblemsItems0

func (*CommonIssueModelAttributesProblemsItems0) ContextValidate

ContextValidate validates this common issue model attributes problems items0 based on context it is used

func (*CommonIssueModelAttributesProblemsItems0) MarshalBinary

func (m *CommonIssueModelAttributesProblemsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CommonIssueModelAttributesProblemsItems0) UnmarshalBinary

func (m *CommonIssueModelAttributesProblemsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CommonIssueModelAttributesProblemsItems0) Validate

Validate validates this common issue model attributes problems items0

type CommonIssueModelVTwo

type CommonIssueModelVTwo struct {

	// attributes
	Attributes *CommonIssueModelVTwoAttributes `json:"attributes,omitempty"`

	// The Snyk ID of the vulnerability.
	// Example: SNYK-JAVA-COMFASTERXMLWOODSTOX-2928754
	ID string `json:"id,omitempty"`

	// The type of the REST resource. Always ‘issue’.
	// Example: issue
	Type string `json:"type,omitempty"`
}

CommonIssueModelVTwo common issue model v two

swagger:model CommonIssueModelVTwo

func (*CommonIssueModelVTwo) ContextValidate

func (m *CommonIssueModelVTwo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this common issue model v two based on the context it is used

func (*CommonIssueModelVTwo) MarshalBinary

func (m *CommonIssueModelVTwo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CommonIssueModelVTwo) UnmarshalBinary

func (m *CommonIssueModelVTwo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CommonIssueModelVTwo) Validate

func (m *CommonIssueModelVTwo) Validate(formats strfmt.Registry) error

Validate validates this common issue model v two

type CommonIssueModelVTwoAttributes

type CommonIssueModelVTwoAttributes struct {

	// coordinates
	Coordinates []*CoordinateVTwo `json:"coordinates"`

	// created at
	// Example: 2022-06-16T13:51:13Z
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"created_at,omitempty"`

	// A description of the issue in Markdown format
	// Example: ## Overview\\n\\n\\nAffected versions of this package are vulnerable to XML External Entity (XXE) Injection.
	Description string `json:"description,omitempty"`

	// The type from enumeration of the issue’s severity level. This is usually set from the issue’s producer, but can be overridden by policies.
	// Enum: [info low medium high critical]
	EffectiveSeverityLevel string `json:"effective_severity_level,omitempty"`

	// problems
	Problems []*CommonIssueModelVTwoAttributesProblemsItems0 `json:"problems"`

	// The severity level of the vulnerability: ‘low’, ‘medium’, ‘high’ or ‘critical’.
	Severities []*Severity `json:"severities"`

	// slots
	Slots *Slots `json:"slots,omitempty"`

	// A human-readable title for this issue.
	// Example: XML External Entity (XXE) Injection
	Title string `json:"title,omitempty"`

	// The issue type
	// Example: package_vulnerability
	Type string `json:"type,omitempty"`

	// When the vulnerability information was last modified.
	// Example: 2022-06-16T14:00:24.315507Z
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`
}

CommonIssueModelVTwoAttributes common issue model v two attributes

swagger:model CommonIssueModelVTwoAttributes

func (*CommonIssueModelVTwoAttributes) ContextValidate

func (m *CommonIssueModelVTwoAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this common issue model v two attributes based on the context it is used

func (*CommonIssueModelVTwoAttributes) MarshalBinary

func (m *CommonIssueModelVTwoAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CommonIssueModelVTwoAttributes) UnmarshalBinary

func (m *CommonIssueModelVTwoAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CommonIssueModelVTwoAttributes) Validate

func (m *CommonIssueModelVTwoAttributes) Validate(formats strfmt.Registry) error

Validate validates this common issue model v two attributes

type CommonIssueModelVTwoAttributesProblemsItems0

type CommonIssueModelVTwoAttributesProblemsItems0 struct {

	// When this problem was disclosed to the public.
	// Format: date-time
	DisclosedAt strfmt.DateTime `json:"disclosed_at,omitempty"`

	// When this problem was first discovered.
	// Format: date-time
	DiscoveredAt strfmt.DateTime `json:"discovered_at,omitempty"`

	// id
	// Example: CWE-61
	// Required: true
	// Max Length: 1024
	// Min Length: 1
	ID *string `json:"id"`

	// source
	// Example: CVE
	// Required: true
	// Max Length: 64
	// Min Length: 1
	Source *string `json:"source"`

	// When this problem was last updated.
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`

	// An optional URL for this problem.
	// Max Length: 4096
	// Min Length: 1
	// Format: uri
	URL strfmt.URI `json:"url,omitempty"`
}

CommonIssueModelVTwoAttributesProblemsItems0 common issue model v two attributes problems items0

swagger:model CommonIssueModelVTwoAttributesProblemsItems0

func (*CommonIssueModelVTwoAttributesProblemsItems0) ContextValidate

ContextValidate validates this common issue model v two attributes problems items0 based on context it is used

func (*CommonIssueModelVTwoAttributesProblemsItems0) MarshalBinary

MarshalBinary interface implementation

func (*CommonIssueModelVTwoAttributesProblemsItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*CommonIssueModelVTwoAttributesProblemsItems0) Validate

Validate validates this common issue model v two attributes problems items0

type ContainerBuildArgs

type ContainerBuildArgs struct {

	// platform
	// Required: true
	Platform *string `json:"platform"`
}

ContainerBuildArgs container build args

swagger:model ContainerBuildArgs

func (*ContainerBuildArgs) ContextValidate

func (m *ContainerBuildArgs) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this container build args based on context it is used

func (*ContainerBuildArgs) MarshalBinary

func (m *ContainerBuildArgs) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ContainerBuildArgs) UnmarshalBinary

func (m *ContainerBuildArgs) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ContainerBuildArgs) Validate

func (m *ContainerBuildArgs) Validate(formats strfmt.Registry) error

Validate validates this container build args

type Context

type Context string

Context Allow installing the app to a org/group or to a user, default tenant.

swagger:model Context

const (

	// ContextTenant captures enum value "tenant"
	ContextTenant Context = "tenant"

	// ContextUser captures enum value "user"
	ContextUser Context = "user"
)

func NewContext

func NewContext(value Context) *Context

func (Context) ContextValidate

func (m Context) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this context based on context it is used

func (Context) Pointer

func (m Context) Pointer() *Context

Pointer returns a pointer to a freshly-allocated Context.

func (Context) Validate

func (m Context) Validate(formats strfmt.Registry) error

Validate validates this context

type Coordinate

type Coordinate struct {

	// is fixable manually
	IsFixableManually bool `json:"is_fixable_manually,omitempty"`

	// is fixable snyk
	IsFixableSnyk bool `json:"is_fixable_snyk,omitempty"`

	// is fixable upstream
	IsFixableUpstream bool `json:"is_fixable_upstream,omitempty"`

	// is patchable
	IsPatchable bool `json:"is_patchable,omitempty"`

	// is pinnable
	IsPinnable bool `json:"is_pinnable,omitempty"`

	// is upgradeable
	IsUpgradeable bool `json:"is_upgradeable,omitempty"`

	// reachability
	Reachability string `json:"reachability,omitempty"`

	// remedies
	// Max Items: 5
	// Min Items: 1
	Remedies []*Remedy `json:"remedies"`

	// A list of precise locations that surface an issue.
	// A coordinate may have multiple representations. For example, a package vulnerability may be represented both
	// by its package dependency graph traversal, and by the location in a package manifest that introduced the
	// dependency.
	//
	// Max Items: 5
	// Min Items: 1
	Representations []interface{} `json:"representations"`
}

Coordinate coordinate

swagger:model Coordinate

func (*Coordinate) ContextValidate

func (m *Coordinate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this coordinate based on the context it is used

func (*Coordinate) MarshalBinary

func (m *Coordinate) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Coordinate) UnmarshalBinary

func (m *Coordinate) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Coordinate) Validate

func (m *Coordinate) Validate(formats strfmt.Registry) error

Validate validates this coordinate

type CoordinateVTwo

type CoordinateVTwo struct {

	// remedies
	Remedies []*CoordinateVTwoRemediesItems0 `json:"remedies"`

	// The affected versions of this vulnerability.
	// Required: true
	Representations []interface{} `json:"representations"`
}

CoordinateVTwo coordinate v two

swagger:model CoordinateVTwo

func (*CoordinateVTwo) ContextValidate

func (m *CoordinateVTwo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this coordinate v two based on the context it is used

func (*CoordinateVTwo) MarshalBinary

func (m *CoordinateVTwo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CoordinateVTwo) UnmarshalBinary

func (m *CoordinateVTwo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CoordinateVTwo) Validate

func (m *CoordinateVTwo) Validate(formats strfmt.Registry) error

Validate validates this coordinate v two

type CoordinateVTwoRemediesItems0

type CoordinateVTwoRemediesItems0 struct {

	// A markdown-formatted optional description of this remedy.
	// Example: Upgrade the package version to 5.4.0,6.4.0 to fix this vulnerability
	Description string `json:"description,omitempty"`

	// details
	Details *CoordinateVTwoRemediesItems0Details `json:"details,omitempty"`

	// The type of the remedy. Always ‘indeterminate’.
	// Example: indeterminate
	Type string `json:"type,omitempty"`
}

CoordinateVTwoRemediesItems0 coordinate v two remedies items0

swagger:model CoordinateVTwoRemediesItems0

func (*CoordinateVTwoRemediesItems0) ContextValidate

func (m *CoordinateVTwoRemediesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this coordinate v two remedies items0 based on the context it is used

func (*CoordinateVTwoRemediesItems0) MarshalBinary

func (m *CoordinateVTwoRemediesItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CoordinateVTwoRemediesItems0) UnmarshalBinary

func (m *CoordinateVTwoRemediesItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CoordinateVTwoRemediesItems0) Validate

func (m *CoordinateVTwoRemediesItems0) Validate(formats strfmt.Registry) error

Validate validates this coordinate v two remedies items0

type CoordinateVTwoRemediesItems0Details

type CoordinateVTwoRemediesItems0Details struct {

	// A minimum version to upgrade to in order to remedy the issue.
	// Example: 5.4.0,6.4.0
	UpgradePackage string `json:"upgrade_package,omitempty"`
}

CoordinateVTwoRemediesItems0Details coordinate v two remedies items0 details

swagger:model CoordinateVTwoRemediesItems0Details

func (*CoordinateVTwoRemediesItems0Details) ContextValidate

func (m *CoordinateVTwoRemediesItems0Details) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this coordinate v two remedies items0 details based on context it is used

func (*CoordinateVTwoRemediesItems0Details) MarshalBinary

func (m *CoordinateVTwoRemediesItems0Details) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CoordinateVTwoRemediesItems0Details) UnmarshalBinary

func (m *CoordinateVTwoRemediesItems0Details) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CoordinateVTwoRemediesItems0Details) Validate

Validate validates this coordinate v two remedies items0 details

type CreateCollectionRequest

type CreateCollectionRequest struct {

	// data
	// Required: true
	Data *CreateCollectionRequestData `json:"data"`
}

CreateCollectionRequest create collection request

swagger:model CreateCollectionRequest

func (*CreateCollectionRequest) ContextValidate

func (m *CreateCollectionRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create collection request based on the context it is used

func (*CreateCollectionRequest) MarshalBinary

func (m *CreateCollectionRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateCollectionRequest) UnmarshalBinary

func (m *CreateCollectionRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateCollectionRequest) Validate

func (m *CreateCollectionRequest) Validate(formats strfmt.Registry) error

Validate validates this create collection request

type CreateCollectionRequestData

type CreateCollectionRequestData struct {

	// attributes
	// Required: true
	Attributes *CreateCollectionRequestDataAttributes `json:"attributes"`

	// type
	// Required: true
	Type *Types `json:"type"`
}

CreateCollectionRequestData create collection request data

swagger:model CreateCollectionRequestData

func (*CreateCollectionRequestData) ContextValidate

func (m *CreateCollectionRequestData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create collection request data based on the context it is used

func (*CreateCollectionRequestData) MarshalBinary

func (m *CreateCollectionRequestData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateCollectionRequestData) UnmarshalBinary

func (m *CreateCollectionRequestData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateCollectionRequestData) Validate

func (m *CreateCollectionRequestData) Validate(formats strfmt.Registry) error

Validate validates this create collection request data

type CreateCollectionRequestDataAttributes

type CreateCollectionRequestDataAttributes struct {

	// name
	// Required: true
	Name *Name `json:"name"`
}

CreateCollectionRequestDataAttributes create collection request data attributes

swagger:model CreateCollectionRequestDataAttributes

func (*CreateCollectionRequestDataAttributes) ContextValidate

func (m *CreateCollectionRequestDataAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this create collection request data attributes based on the context it is used

func (*CreateCollectionRequestDataAttributes) MarshalBinary

func (m *CreateCollectionRequestDataAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateCollectionRequestDataAttributes) UnmarshalBinary

func (m *CreateCollectionRequestDataAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateCollectionRequestDataAttributes) Validate

Validate validates this create collection request data attributes

type CustomBaseImageAttributes

type CustomBaseImageAttributes struct {

	// Whether this image should be recommended as a base image upgrade.
	// If set to true, this image could be shown as a base image upgrade to other projects.
	// If set to false this image will never be recommended as an upgrade.
	//
	// Example: true
	// Required: true
	IncludeInRecommendations *bool `json:"include_in_recommendations"`

	// The ID of the container project that the custom base image is based off of.
	// The attributes of this custom base image are taken from the latest snapshot at the time of creation.
	// This means that no changes should be made to the original project after the creation of the custom base image,
	// as new snapshots created from any changes will NOT be picked up.
	//
	// Example: 2cab3939-d112-4ef0-836d-e09c87cbe69b
	// Required: true
	// Format: uuid
	ProjectID *strfmt.UUID `json:"project_id"`

	// versioning schema
	VersioningSchema *VersioningSchema `json:"versioning_schema,omitempty"`
}

CustomBaseImageAttributes custom base image attributes

swagger:model CustomBaseImageAttributes

func (*CustomBaseImageAttributes) ContextValidate

func (m *CustomBaseImageAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this custom base image attributes based on the context it is used

func (*CustomBaseImageAttributes) MarshalBinary

func (m *CustomBaseImageAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CustomBaseImageAttributes) UnmarshalBinary

func (m *CustomBaseImageAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CustomBaseImageAttributes) Validate

func (m *CustomBaseImageAttributes) Validate(formats strfmt.Registry) error

Validate validates this custom base image attributes

type CustomBaseImageCollectionResponse

type CustomBaseImageCollectionResponse struct {

	// data
	// Required: true
	Data []*CustomBaseImageCollectionResponseDataItems0 `json:"data"`

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

	// links
	Links *PaginatedLinks `json:"links,omitempty"`
}

CustomBaseImageCollectionResponse custom base image collection response

swagger:model CustomBaseImageCollectionResponse

func (*CustomBaseImageCollectionResponse) ContextValidate

func (m *CustomBaseImageCollectionResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this custom base image collection response based on the context it is used

func (*CustomBaseImageCollectionResponse) MarshalBinary

func (m *CustomBaseImageCollectionResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CustomBaseImageCollectionResponse) UnmarshalBinary

func (m *CustomBaseImageCollectionResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CustomBaseImageCollectionResponse) Validate

Validate validates this custom base image collection response

type CustomBaseImageCollectionResponseDataItems0

type CustomBaseImageCollectionResponseDataItems0 struct {

	// attributes
	Attributes *CustomBaseImageSnapshot `json:"attributes,omitempty"`

	// id
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// type
	Type string `json:"type,omitempty"`
}

CustomBaseImageCollectionResponseDataItems0 custom base image collection response data items0

swagger:model CustomBaseImageCollectionResponseDataItems0

func (*CustomBaseImageCollectionResponseDataItems0) ContextValidate

ContextValidate validate this custom base image collection response data items0 based on the context it is used

func (*CustomBaseImageCollectionResponseDataItems0) MarshalBinary

func (m *CustomBaseImageCollectionResponseDataItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CustomBaseImageCollectionResponseDataItems0) UnmarshalBinary

func (m *CustomBaseImageCollectionResponseDataItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CustomBaseImageCollectionResponseDataItems0) Validate

Validate validates this custom base image collection response data items0

type CustomBaseImagePatchRequest

type CustomBaseImagePatchRequest struct {

	// data
	// Required: true
	Data *CustomBaseImagePatchRequestData `json:"data"`
}

CustomBaseImagePatchRequest custom base image patch request

swagger:model CustomBaseImagePatchRequest

func (*CustomBaseImagePatchRequest) ContextValidate

func (m *CustomBaseImagePatchRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this custom base image patch request based on the context it is used

func (*CustomBaseImagePatchRequest) MarshalBinary

func (m *CustomBaseImagePatchRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CustomBaseImagePatchRequest) UnmarshalBinary

func (m *CustomBaseImagePatchRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CustomBaseImagePatchRequest) Validate

func (m *CustomBaseImagePatchRequest) Validate(formats strfmt.Registry) error

Validate validates this custom base image patch request

type CustomBaseImagePatchRequestData

type CustomBaseImagePatchRequestData struct {

	// attributes
	// Required: true
	Attributes *CustomBaseImagePatchRequestDataAttributes `json:"attributes"`

	// The ID of the custom base image that should be updated. (Same one used in the URI)
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// This should always be "custom_base_image"
	// Example: custom_base_image
	// Required: true
	Type *string `json:"type"`
}

CustomBaseImagePatchRequestData custom base image patch request data

swagger:model CustomBaseImagePatchRequestData

func (*CustomBaseImagePatchRequestData) ContextValidate

func (m *CustomBaseImagePatchRequestData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this custom base image patch request data based on the context it is used

func (*CustomBaseImagePatchRequestData) MarshalBinary

func (m *CustomBaseImagePatchRequestData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CustomBaseImagePatchRequestData) UnmarshalBinary

func (m *CustomBaseImagePatchRequestData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CustomBaseImagePatchRequestData) Validate

Validate validates this custom base image patch request data

type CustomBaseImagePatchRequestDataAttributes

type CustomBaseImagePatchRequestDataAttributes struct {

	// include in recommendations
	// Example: true
	IncludeInRecommendations bool `json:"include_in_recommendations,omitempty"`

	// versioning schema
	VersioningSchema *VersioningSchema `json:"versioning_schema,omitempty"`
}

CustomBaseImagePatchRequestDataAttributes custom base image patch request data attributes

Min Properties: 1

swagger:model CustomBaseImagePatchRequestDataAttributes

func (*CustomBaseImagePatchRequestDataAttributes) ContextValidate

ContextValidate validate this custom base image patch request data attributes based on the context it is used

func (*CustomBaseImagePatchRequestDataAttributes) MarshalBinary

func (m *CustomBaseImagePatchRequestDataAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CustomBaseImagePatchRequestDataAttributes) UnmarshalBinary

func (m *CustomBaseImagePatchRequestDataAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CustomBaseImagePatchRequestDataAttributes) Validate

Validate validates this custom base image patch request data attributes

type CustomBaseImagePostRequest

type CustomBaseImagePostRequest struct {

	// data
	// Required: true
	Data *CustomBaseImagePostRequestData `json:"data"`
}

CustomBaseImagePostRequest custom base image post request

swagger:model CustomBaseImagePostRequest

func (*CustomBaseImagePostRequest) ContextValidate

func (m *CustomBaseImagePostRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this custom base image post request based on the context it is used

func (*CustomBaseImagePostRequest) MarshalBinary

func (m *CustomBaseImagePostRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CustomBaseImagePostRequest) UnmarshalBinary

func (m *CustomBaseImagePostRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CustomBaseImagePostRequest) Validate

func (m *CustomBaseImagePostRequest) Validate(formats strfmt.Registry) error

Validate validates this custom base image post request

type CustomBaseImagePostRequestData

type CustomBaseImagePostRequestData struct {

	// attributes
	// Required: true
	Attributes *CustomBaseImageAttributes `json:"attributes"`

	// This should always be "custom_base_image"
	// Example: custom_base_image
	// Required: true
	Type *string `json:"type"`
}

CustomBaseImagePostRequestData custom base image post request data

swagger:model CustomBaseImagePostRequestData

func (*CustomBaseImagePostRequestData) ContextValidate

func (m *CustomBaseImagePostRequestData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this custom base image post request data based on the context it is used

func (*CustomBaseImagePostRequestData) MarshalBinary

func (m *CustomBaseImagePostRequestData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CustomBaseImagePostRequestData) UnmarshalBinary

func (m *CustomBaseImagePostRequestData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CustomBaseImagePostRequestData) Validate

func (m *CustomBaseImagePostRequestData) Validate(formats strfmt.Registry) error

Validate validates this custom base image post request data

type CustomBaseImageResource

type CustomBaseImageResource struct {

	// attributes
	// Required: true
	Attributes *CustomBaseImageAttributes `json:"attributes"`

	// id
	// Example: 2cab3939-d112-4ef0-836d-e09c87cbe69b
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// type
	// Example: custom_base_image
	// Required: true
	Type *string `json:"type"`
}

CustomBaseImageResource custom base image resource

swagger:model CustomBaseImageResource

func (*CustomBaseImageResource) ContextValidate

func (m *CustomBaseImageResource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this custom base image resource based on the context it is used

func (*CustomBaseImageResource) MarshalBinary

func (m *CustomBaseImageResource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CustomBaseImageResource) UnmarshalBinary

func (m *CustomBaseImageResource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CustomBaseImageResource) Validate

func (m *CustomBaseImageResource) Validate(formats strfmt.Registry) error

Validate validates this custom base image resource

type CustomBaseImageResponse

type CustomBaseImageResponse struct {

	// data
	// Required: true
	Data *CustomBaseImageResource `json:"data"`

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

	// links
	Links *SelfLink `json:"links,omitempty"`
}

CustomBaseImageResponse custom base image response

swagger:model CustomBaseImageResponse

func (*CustomBaseImageResponse) ContextValidate

func (m *CustomBaseImageResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this custom base image response based on the context it is used

func (*CustomBaseImageResponse) MarshalBinary

func (m *CustomBaseImageResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CustomBaseImageResponse) UnmarshalBinary

func (m *CustomBaseImageResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CustomBaseImageResponse) Validate

func (m *CustomBaseImageResponse) Validate(formats strfmt.Registry) error

Validate validates this custom base image response

type CustomBaseImageSnapshot

type CustomBaseImageSnapshot struct {

	// group id
	// Format: uuid
	GroupID strfmt.UUID `json:"group_id,omitempty"`

	// include in recommendations
	IncludeInRecommendations bool `json:"include_in_recommendations,omitempty"`

	// org id
	// Format: uuid
	OrgID strfmt.UUID `json:"org_id,omitempty"`

	// project id
	// Format: uuid
	ProjectID strfmt.UUID `json:"project_id,omitempty"`

	// repository
	Repository string `json:"repository,omitempty"`

	// tag
	Tag string `json:"tag,omitempty"`
}

CustomBaseImageSnapshot custom base image snapshot

swagger:model CustomBaseImageSnapshot

func (*CustomBaseImageSnapshot) ContextValidate

func (m *CustomBaseImageSnapshot) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this custom base image snapshot based on context it is used

func (*CustomBaseImageSnapshot) MarshalBinary

func (m *CustomBaseImageSnapshot) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CustomBaseImageSnapshot) UnmarshalBinary

func (m *CustomBaseImageSnapshot) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CustomBaseImageSnapshot) Validate

func (m *CustomBaseImageSnapshot) Validate(formats strfmt.Registry) error

Validate validates this custom base image snapshot

type CycloneDxComponent

type CycloneDxComponent struct {

	// bom ref
	// Example: common-util@3.0.0
	BomRef string `json:"bom-ref,omitempty" xml:"bom-ref,attr,omitempty"`

	// name
	// Example: acme-lib
	Name string `json:"name,omitempty"`

	// purl
	// Example: pkg:golang/golang.org/x/text@v0.3.7
	Purl string `json:"purl,omitempty"`

	// type
	// Example: library
	Type string `json:"type,omitempty" xml:"type,attr,omitempty"`

	// version
	// Example: 1.0.0
	Version string `json:"version,omitempty"`
}

CycloneDxComponent cyclone dx component

swagger:model CycloneDxComponent

func (*CycloneDxComponent) ContextValidate

func (m *CycloneDxComponent) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this cyclone dx component based on context it is used

func (*CycloneDxComponent) MarshalBinary

func (m *CycloneDxComponent) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CycloneDxComponent) UnmarshalBinary

func (m *CycloneDxComponent) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CycloneDxComponent) Validate

func (m *CycloneDxComponent) Validate(formats strfmt.Registry) error

Validate validates this cyclone dx component

type CycloneDxDependency

type CycloneDxDependency struct {

	// depends on
	// Example: ["web-framework@1.0.0","persistence@3.1.0"]
	DependsOn []string `json:"dependsOn" xml:"dependency"`

	// ref
	// Example: common-util@3.0.0
	Ref string `json:"ref,omitempty" xml:"ref,attr,omitempty"`
}

CycloneDxDependency cyclone dx dependency

swagger:model CycloneDxDependency

func (*CycloneDxDependency) ContextValidate

func (m *CycloneDxDependency) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this cyclone dx dependency based on context it is used

func (*CycloneDxDependency) MarshalBinary

func (m *CycloneDxDependency) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CycloneDxDependency) UnmarshalBinary

func (m *CycloneDxDependency) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CycloneDxDependency) Validate

func (m *CycloneDxDependency) Validate(formats strfmt.Registry) error

Validate validates this cyclone dx dependency

type CycloneDxDocument

type CycloneDxDocument struct {

	// bom format
	// Example: CycloneDX
	// Required: true
	// Enum: [CycloneDX]
	BomFormat *string `json:"bomFormat"`

	// A list of included software components
	Components []*CycloneDxComponent `json:"components"`

	// dependencies
	// Required: true
	Dependencies []*CycloneDxDependency `json:"dependencies"`

	// metadata
	// Required: true
	Metadata *CycloneDxMetadata `json:"metadata"`

	// spec version
	// Example: 1.4
	// Required: true
	SpecVersion *string `json:"specVersion"`

	// version
	// Example: 1
	// Required: true
	Version *int64 `json:"version"`
}

CycloneDxDocument cyclone dx document

swagger:model CycloneDxDocument

func (*CycloneDxDocument) ContextValidate

func (m *CycloneDxDocument) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this cyclone dx document based on the context it is used

func (*CycloneDxDocument) MarshalBinary

func (m *CycloneDxDocument) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CycloneDxDocument) UnmarshalBinary

func (m *CycloneDxDocument) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CycloneDxDocument) Validate

func (m *CycloneDxDocument) Validate(formats strfmt.Registry) error

Validate validates this cyclone dx document

type CycloneDxMetadata

type CycloneDxMetadata struct {

	// component
	Component *CycloneDxComponent `json:"component,omitempty"`

	// properties
	Properties []*CycloneDxProperty `json:"properties" xml:"properties"`

	// timestamp
	// Example: 2021-02-09T20:40:32Z
	Timestamp string `json:"timestamp,omitempty"`

	// tools
	Tools []*CycloneDxTool `json:"tools" xml:"tools"`
}

CycloneDxMetadata cyclone dx metadata

swagger:model CycloneDxMetadata

func (*CycloneDxMetadata) ContextValidate

func (m *CycloneDxMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this cyclone dx metadata based on the context it is used

func (*CycloneDxMetadata) MarshalBinary

func (m *CycloneDxMetadata) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CycloneDxMetadata) UnmarshalBinary

func (m *CycloneDxMetadata) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CycloneDxMetadata) Validate

func (m *CycloneDxMetadata) Validate(formats strfmt.Registry) error

Validate validates this cyclone dx metadata

type CycloneDxProperty

type CycloneDxProperty struct {

	// name
	// Example: snyk:org_id
	Name string `json:"name,omitempty" xml:"name,attr,omitempty"`

	// value
	// Example: f1bb66d1-a94e-4574-aea1-9697d794e04d
	Value string `json:"value,omitempty"`
}

CycloneDxProperty cyclone dx property

swagger:model CycloneDxProperty

func (*CycloneDxProperty) ContextValidate

func (m *CycloneDxProperty) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this cyclone dx property based on context it is used

func (*CycloneDxProperty) MarshalBinary

func (m *CycloneDxProperty) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CycloneDxProperty) UnmarshalBinary

func (m *CycloneDxProperty) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CycloneDxProperty) Validate

func (m *CycloneDxProperty) Validate(formats strfmt.Registry) error

Validate validates this cyclone dx property

type CycloneDxTool

type CycloneDxTool struct {

	// name
	// Example: Snyk Open Source
	Name string `json:"name,omitempty"`

	// vendor
	// Example: Snyk
	Vendor string `json:"vendor,omitempty"`
}

CycloneDxTool cyclone dx tool

swagger:model CycloneDxTool

func (*CycloneDxTool) ContextValidate

func (m *CycloneDxTool) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this cyclone dx tool based on context it is used

func (*CycloneDxTool) MarshalBinary

func (m *CycloneDxTool) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CycloneDxTool) UnmarshalBinary

func (m *CycloneDxTool) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CycloneDxTool) Validate

func (m *CycloneDxTool) Validate(formats strfmt.Registry) error

Validate validates this cyclone dx tool

type CycloneDxXMLDocument

type CycloneDxXMLDocument struct {

	// A list of included software components
	// Required: true
	Components []*CycloneDxComponent `json:"components" xml:"components"`

	// dependencies
	// Required: true
	Dependencies []*CycloneDxDependency `json:"dependencies" xml:"dependencies"`

	// metadata
	// Required: true
	Metadata *CycloneDxMetadata `json:"metadata"`
}

CycloneDxXMLDocument cyclone dx Xml document

swagger:model CycloneDxXmlDocument

func (*CycloneDxXMLDocument) ContextValidate

func (m *CycloneDxXMLDocument) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this cyclone dx Xml document based on the context it is used

func (*CycloneDxXMLDocument) MarshalBinary

func (m *CycloneDxXMLDocument) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CycloneDxXMLDocument) UnmarshalBinary

func (m *CycloneDxXMLDocument) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CycloneDxXMLDocument) Validate

func (m *CycloneDxXMLDocument) Validate(formats strfmt.Registry) error

Validate validates this cyclone dx Xml document

type DeleteProjectsFromCollectionRequest

type DeleteProjectsFromCollectionRequest struct {

	// IDs of items to remove from a collection
	// Required: true
	// Max Items: 100
	Data []*DeleteProjectsFromCollectionRequestDataItems0 `json:"data"`
}

DeleteProjectsFromCollectionRequest delete projects from collection request

swagger:model DeleteProjectsFromCollectionRequest

func (*DeleteProjectsFromCollectionRequest) ContextValidate

func (m *DeleteProjectsFromCollectionRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this delete projects from collection request based on the context it is used

func (*DeleteProjectsFromCollectionRequest) MarshalBinary

func (m *DeleteProjectsFromCollectionRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeleteProjectsFromCollectionRequest) UnmarshalBinary

func (m *DeleteProjectsFromCollectionRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeleteProjectsFromCollectionRequest) Validate

Validate validates this delete projects from collection request

type DeleteProjectsFromCollectionRequestDataItems0

type DeleteProjectsFromCollectionRequestDataItems0 struct {

	// id
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// Type of the item id
	// Required: true
	// Enum: [project]
	Type *string `json:"type"`
}

DeleteProjectsFromCollectionRequestDataItems0 delete projects from collection request data items0

swagger:model DeleteProjectsFromCollectionRequestDataItems0

func (*DeleteProjectsFromCollectionRequestDataItems0) ContextValidate

ContextValidate validates this delete projects from collection request data items0 based on context it is used

func (*DeleteProjectsFromCollectionRequestDataItems0) MarshalBinary

MarshalBinary interface implementation

func (*DeleteProjectsFromCollectionRequestDataItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*DeleteProjectsFromCollectionRequestDataItems0) Validate

Validate validates this delete projects from collection request data items0

type Dependency

type Dependency struct {

	// The package name the issue was found in
	// Required: true
	// Max Length: 2048
	// Min Length: 1
	PackageName *string `json:"package_name"`

	// The package version the issue was found in
	// Required: true
	// Max Length: 2048
	// Min Length: 1
	PackageVersion *string `json:"package_version"`
}

Dependency dependency

swagger:model Dependency

func (*Dependency) ContextValidate

func (m *Dependency) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this dependency based on context it is used

func (*Dependency) MarshalBinary

func (m *Dependency) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Dependency) UnmarshalBinary

func (m *Dependency) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Dependency) Validate

func (m *Dependency) Validate(formats strfmt.Registry) error

Validate validates this dependency

type DeployedRiskFactor

type DeployedRiskFactor struct {

	// included in score
	IncludedInScore *bool `json:"included_in_score,omitempty"`

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

	// name
	// Required: true
	Name *string `json:"name"`

	// updated at
	// Required: true
	// Format: date-time
	UpdatedAt *strfmt.DateTime `json:"updated_at"`

	// value
	// Required: true
	Value *bool `json:"value"`
}

DeployedRiskFactor deployed risk factor

swagger:model DeployedRiskFactor

func (*DeployedRiskFactor) ContextValidate

func (m *DeployedRiskFactor) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this deployed risk factor based on the context it is used

func (*DeployedRiskFactor) MarshalBinary

func (m *DeployedRiskFactor) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeployedRiskFactor) UnmarshalBinary

func (m *DeployedRiskFactor) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeployedRiskFactor) Validate

func (m *DeployedRiskFactor) Validate(formats strfmt.Registry) error

Validate validates this deployed risk factor

type Environment

type Environment struct {

	// Internal ID for an environment.
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// name
	// Required: true
	// Max Length: 256
	// Min Length: 1
	Name *string `json:"name"`

	// An optional native identifier for this environment. For example, a cloud account id.
	// Max Length: 2048
	// Min Length: 1
	NativeID string `json:"native_id,omitempty"`

	// type
	// Required: true
	Type *EnvironmentTypeDef `json:"type"`
}

Environment environment

swagger:model Environment

func (*Environment) ContextValidate

func (m *Environment) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this environment based on the context it is used

func (*Environment) MarshalBinary

func (m *Environment) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Environment) UnmarshalBinary

func (m *Environment) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Environment) Validate

func (m *Environment) Validate(formats strfmt.Registry) error

Validate validates this environment

type EnvironmentTypeDef

type EnvironmentTypeDef string

EnvironmentTypeDef environment type def

swagger:model EnvironmentTypeDef

const (

	// EnvironmentTypeDefAws captures enum value "aws"
	EnvironmentTypeDefAws EnvironmentTypeDef = "aws"

	// EnvironmentTypeDefAzure captures enum value "azure"
	EnvironmentTypeDefAzure EnvironmentTypeDef = "azure"

	// EnvironmentTypeDefAzureAd captures enum value "azure_ad"
	EnvironmentTypeDefAzureAd EnvironmentTypeDef = "azure_ad"

	// EnvironmentTypeDefGoogle captures enum value "google"
	EnvironmentTypeDefGoogle EnvironmentTypeDef = "google"

	// EnvironmentTypeDefScm captures enum value "scm"
	EnvironmentTypeDefScm EnvironmentTypeDef = "scm"

	// EnvironmentTypeDefCli captures enum value "cli"
	EnvironmentTypeDefCli EnvironmentTypeDef = "cli"

	// EnvironmentTypeDefTfc captures enum value "tfc"
	EnvironmentTypeDefTfc EnvironmentTypeDef = "tfc"
)

func NewEnvironmentTypeDef

func NewEnvironmentTypeDef(value EnvironmentTypeDef) *EnvironmentTypeDef

func (EnvironmentTypeDef) ContextValidate

func (m EnvironmentTypeDef) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this environment type def based on context it is used

func (EnvironmentTypeDef) Pointer

Pointer returns a pointer to a freshly-allocated EnvironmentTypeDef.

func (EnvironmentTypeDef) Validate

func (m EnvironmentTypeDef) Validate(formats strfmt.Registry) error

Validate validates this environment type def

type Error

type Error 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"`

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

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

Error error Example: {"detail":"Not Found","status":"404"}

swagger:model Error

func (*Error) ContextValidate

func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this error based on the context it is used

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type ErrorDocument

type ErrorDocument struct {

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

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

ErrorDocument error document Example: {"errors":[{"detail":"Permission denied for this resource","status":"403"}],"jsonapi":{"version":"1.0"}}

swagger:model ErrorDocument

func (*ErrorDocument) ContextValidate

func (m *ErrorDocument) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this error document based on the context it is used

func (*ErrorDocument) MarshalBinary

func (m *ErrorDocument) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ErrorDocument) UnmarshalBinary

func (m *ErrorDocument) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ErrorDocument) Validate

func (m *ErrorDocument) Validate(formats strfmt.Registry) error

Validate validates this error document

type ErrorDocumentErrorsItems0

type ErrorDocumentErrorsItems0 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"`

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

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

ErrorDocumentErrorsItems0 error document errors items0 Example: {"detail":"Not Found","status":"404"}

swagger:model ErrorDocumentErrorsItems0

func (*ErrorDocumentErrorsItems0) ContextValidate

func (m *ErrorDocumentErrorsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this error document errors items0 based on the context it is used

func (*ErrorDocumentErrorsItems0) MarshalBinary

func (m *ErrorDocumentErrorsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ErrorDocumentErrorsItems0) UnmarshalBinary

func (m *ErrorDocumentErrorsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ErrorDocumentErrorsItems0) Validate

func (m *ErrorDocumentErrorsItems0) Validate(formats strfmt.Registry) error

Validate validates this error document errors items0

type ErrorDocumentErrorsItems0Source

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

ErrorDocumentErrorsItems0Source error document errors items0 source Example: {"pointer":"/data/attributes"}

swagger:model ErrorDocumentErrorsItems0Source

func (*ErrorDocumentErrorsItems0Source) ContextValidate

func (m *ErrorDocumentErrorsItems0Source) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error document errors items0 source based on context it is used

func (*ErrorDocumentErrorsItems0Source) MarshalBinary

func (m *ErrorDocumentErrorsItems0Source) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ErrorDocumentErrorsItems0Source) UnmarshalBinary

func (m *ErrorDocumentErrorsItems0Source) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ErrorDocumentErrorsItems0Source) Validate

Validate validates this error document errors items0 source

type ErrorDocumentJsonapi

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

ErrorDocumentJsonapi error document jsonapi Example: {"version":"1.0"}

swagger:model ErrorDocumentJsonapi

func (*ErrorDocumentJsonapi) ContextValidate

func (m *ErrorDocumentJsonapi) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error document jsonapi based on context it is used

func (*ErrorDocumentJsonapi) MarshalBinary

func (m *ErrorDocumentJsonapi) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ErrorDocumentJsonapi) UnmarshalBinary

func (m *ErrorDocumentJsonapi) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ErrorDocumentJsonapi) Validate

func (m *ErrorDocumentJsonapi) Validate(formats strfmt.Registry) error

Validate validates this error document jsonapi

type ErrorLink struct {

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

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

swagger:model ErrorLink

func (*ErrorLink) ContextValidate

func (m *ErrorLink) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error link based on context it is used

func (*ErrorLink) MarshalBinary

func (m *ErrorLink) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ErrorLink) UnmarshalBinary

func (m *ErrorLink) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ErrorLink) Validate

func (m *ErrorLink) Validate(formats strfmt.Registry) error

Validate validates this error link

type ErrorSource

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

ErrorSource error source Example: {"pointer":"/data/attributes"}

swagger:model ErrorSource

func (*ErrorSource) ContextValidate

func (m *ErrorSource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error source based on context it is used

func (*ErrorSource) MarshalBinary

func (m *ErrorSource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ErrorSource) UnmarshalBinary

func (m *ErrorSource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ErrorSource) Validate

func (m *ErrorSource) Validate(formats strfmt.Registry) error

Validate validates this error source

type FilePosition

type FilePosition struct {

	// column
	// Required: true
	// Minimum: 0
	Column *int64 `json:"column"`

	// line
	// Required: true
	// Minimum: 0
	Line *int64 `json:"line"`
}

FilePosition file position

swagger:model FilePosition

func (*FilePosition) ContextValidate

func (m *FilePosition) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this file position based on context it is used

func (*FilePosition) MarshalBinary

func (m *FilePosition) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*FilePosition) UnmarshalBinary

func (m *FilePosition) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*FilePosition) Validate

func (m *FilePosition) Validate(formats strfmt.Registry) error

Validate validates this file position

type GetProjectSettingsCollection

type GetProjectSettingsCollection struct {

	// data
	// Required: true
	Data []*ProjectSettingsData `json:"data"`

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

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

GetProjectSettingsCollection get project settings collection

swagger:model GetProjectSettingsCollection

func (*GetProjectSettingsCollection) ContextValidate

func (m *GetProjectSettingsCollection) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get project settings collection based on the context it is used

func (*GetProjectSettingsCollection) MarshalBinary

func (m *GetProjectSettingsCollection) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetProjectSettingsCollection) UnmarshalBinary

func (m *GetProjectSettingsCollection) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetProjectSettingsCollection) Validate

func (m *GetProjectSettingsCollection) Validate(formats strfmt.Registry) error

Validate validates this get project settings collection

type GetProjectsOfCollectionResponse

type GetProjectsOfCollectionResponse struct {

	// data
	Data []*ProjectOfCollection `json:"data"`

	// jsonapi
	Jsonapi *JSONAPI `json:"jsonapi,omitempty"`

	// links
	Links *PaginatedLinks `json:"links,omitempty"`
}

GetProjectsOfCollectionResponse get projects of collection response

swagger:model GetProjectsOfCollectionResponse

func (*GetProjectsOfCollectionResponse) ContextValidate

func (m *GetProjectsOfCollectionResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get projects of collection response based on the context it is used

func (*GetProjectsOfCollectionResponse) MarshalBinary

func (m *GetProjectsOfCollectionResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetProjectsOfCollectionResponse) UnmarshalBinary

func (m *GetProjectsOfCollectionResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetProjectsOfCollectionResponse) Validate

Validate validates this get projects of collection response

type GrantType

type GrantType string

GrantType An authorization grant is a credential representing the resource owner's authorization (to access its protected resources) used by the client to obtain an access token. The grant type represents the way your app will get the access token.

swagger:model GrantType

const (

	// GrantTypeAuthorizationCode captures enum value "authorization_code"
	GrantTypeAuthorizationCode GrantType = "authorization_code"

	// GrantTypeClientCredentials captures enum value "client_credentials"
	GrantTypeClientCredentials GrantType = "client_credentials"
)

func NewGrantType

func NewGrantType(value GrantType) *GrantType

func (GrantType) ContextValidate

func (m GrantType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this grant type based on context it is used

func (GrantType) Pointer

func (m GrantType) Pointer() *GrantType

Pointer returns a pointer to a freshly-allocated GrantType.

func (GrantType) Validate

func (m GrantType) Validate(formats strfmt.Registry) error

Validate validates this grant type

type GroupIacSettingsRequest

type GroupIacSettingsRequest struct {

	// attributes
	// Required: true
	Attributes *GroupIacSettingsRequestAttributes `json:"attributes"`

	// Content type
	// Example: iac_settings
	// Required: true
	Type *string `json:"type"`
}

GroupIacSettingsRequest The Infrastructure as Code settings for a group.

swagger:model GroupIacSettingsRequest

func (*GroupIacSettingsRequest) ContextValidate

func (m *GroupIacSettingsRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this group iac settings request based on the context it is used

func (*GroupIacSettingsRequest) MarshalBinary

func (m *GroupIacSettingsRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GroupIacSettingsRequest) UnmarshalBinary

func (m *GroupIacSettingsRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GroupIacSettingsRequest) Validate

func (m *GroupIacSettingsRequest) Validate(formats strfmt.Registry) error

Validate validates this group iac settings request

type GroupIacSettingsRequestAttributes

type GroupIacSettingsRequestAttributes struct {

	// custom rules
	CustomRules *GroupIacSettingsRequestAttributesCustomRules `json:"custom_rules,omitempty"`
}

GroupIacSettingsRequestAttributes group iac settings request attributes

swagger:model GroupIacSettingsRequestAttributes

func (*GroupIacSettingsRequestAttributes) ContextValidate

func (m *GroupIacSettingsRequestAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this group iac settings request attributes based on the context it is used

func (*GroupIacSettingsRequestAttributes) MarshalBinary

func (m *GroupIacSettingsRequestAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GroupIacSettingsRequestAttributes) UnmarshalBinary

func (m *GroupIacSettingsRequestAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GroupIacSettingsRequestAttributes) Validate

Validate validates this group iac settings request attributes

type GroupIacSettingsRequestAttributesCustomRules

type GroupIacSettingsRequestAttributesCustomRules struct {

	// is enabled
	IsEnabled IsEnabled `json:"is_enabled,omitempty"`

	// oci registry tag
	OciRegistryTag OciRegistryTag `json:"oci_registry_tag,omitempty"`

	// oci registry url
	OciRegistryURL OciRegistryURL `json:"oci_registry_url,omitempty"`
}

GroupIacSettingsRequestAttributesCustomRules The Infrastructure as Code custom rules settings for a group.

Min Properties: 1

swagger:model GroupIacSettingsRequestAttributesCustomRules

func (*GroupIacSettingsRequestAttributesCustomRules) ContextValidate

ContextValidate validate this group iac settings request attributes custom rules based on the context it is used

func (*GroupIacSettingsRequestAttributesCustomRules) MarshalBinary

MarshalBinary interface implementation

func (*GroupIacSettingsRequestAttributesCustomRules) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GroupIacSettingsRequestAttributesCustomRules) Validate

Validate validates this group iac settings request attributes custom rules

type GroupIacSettingsResponse

type GroupIacSettingsResponse struct {

	// attributes
	Attributes *GroupIacSettingsResponseAttributes `json:"attributes,omitempty"`

	// ID
	// Example: ea536a06-0566-40ca-b96b-155568aa2027
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// Content type
	// Example: iac_settings
	Type string `json:"type,omitempty"`
}

GroupIacSettingsResponse The Infrastructure as Code settings for a group.

swagger:model GroupIacSettingsResponse

func (*GroupIacSettingsResponse) ContextValidate

func (m *GroupIacSettingsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this group iac settings response based on the context it is used

func (*GroupIacSettingsResponse) MarshalBinary

func (m *GroupIacSettingsResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GroupIacSettingsResponse) UnmarshalBinary

func (m *GroupIacSettingsResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GroupIacSettingsResponse) Validate

func (m *GroupIacSettingsResponse) Validate(formats strfmt.Registry) error

Validate validates this group iac settings response

type GroupIacSettingsResponseAttributes

type GroupIacSettingsResponseAttributes struct {

	// custom rules
	CustomRules *GroupIacSettingsResponseAttributesCustomRules `json:"custom_rules,omitempty"`

	// updated
	// Format: date-time
	Updated Updated `json:"updated,omitempty"`
}

GroupIacSettingsResponseAttributes group iac settings response attributes

swagger:model GroupIacSettingsResponseAttributes

func (*GroupIacSettingsResponseAttributes) ContextValidate

func (m *GroupIacSettingsResponseAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this group iac settings response attributes based on the context it is used

func (*GroupIacSettingsResponseAttributes) MarshalBinary

func (m *GroupIacSettingsResponseAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GroupIacSettingsResponseAttributes) UnmarshalBinary

func (m *GroupIacSettingsResponseAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GroupIacSettingsResponseAttributes) Validate

Validate validates this group iac settings response attributes

type GroupIacSettingsResponseAttributesCustomRules

type GroupIacSettingsResponseAttributesCustomRules struct {

	// is enabled
	IsEnabled IsEnabled `json:"is_enabled,omitempty"`

	// oci registry tag
	OciRegistryTag OciRegistryTag `json:"oci_registry_tag,omitempty"`

	// oci registry url
	OciRegistryURL OciRegistryURL `json:"oci_registry_url,omitempty"`
}

GroupIacSettingsResponseAttributesCustomRules The Infrastructure as Code custom rules settings for a group.

swagger:model GroupIacSettingsResponseAttributesCustomRules

func (*GroupIacSettingsResponseAttributesCustomRules) ContextValidate

ContextValidate validate this group iac settings response attributes custom rules based on the context it is used

func (*GroupIacSettingsResponseAttributesCustomRules) MarshalBinary

MarshalBinary interface implementation

func (*GroupIacSettingsResponseAttributesCustomRules) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GroupIacSettingsResponseAttributesCustomRules) Validate

Validate validates this group iac settings response attributes custom rules

type HelloWorld

type HelloWorld struct {

	// attributes
	// Required: true
	Attributes *HelloWorldAttributes `json:"attributes"`

	// id
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// type
	// Required: true
	Type *string `json:"type"`
}

HelloWorld hello world

swagger:model HelloWorld

func (*HelloWorld) ContextValidate

func (m *HelloWorld) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this hello world based on the context it is used

func (*HelloWorld) MarshalBinary

func (m *HelloWorld) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HelloWorld) UnmarshalBinary

func (m *HelloWorld) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HelloWorld) Validate

func (m *HelloWorld) Validate(formats strfmt.Registry) error

Validate validates this hello world

type HelloWorldAttributes

type HelloWorldAttributes struct {

	// message
	// Required: true
	Message *string `json:"message"`

	// request subject
	// Required: true
	RequestSubject *HelloWorldAttributesRequestSubject `json:"requestSubject"`
}

HelloWorldAttributes hello world attributes

swagger:model HelloWorldAttributes

func (*HelloWorldAttributes) ContextValidate

func (m *HelloWorldAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this hello world attributes based on the context it is used

func (*HelloWorldAttributes) MarshalBinary

func (m *HelloWorldAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HelloWorldAttributes) UnmarshalBinary

func (m *HelloWorldAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HelloWorldAttributes) Validate

func (m *HelloWorldAttributes) Validate(formats strfmt.Registry) error

Validate validates this hello world attributes

type HelloWorldAttributesRequestSubject

type HelloWorldAttributesRequestSubject struct {

	// client Id
	// Format: uuid
	ClientID strfmt.UUID `json:"clientId,omitempty"`

	// public Id
	// Required: true
	// Format: uuid
	PublicID *strfmt.UUID `json:"publicId"`

	// type
	// Required: true
	Type *string `json:"type"`
}

HelloWorldAttributesRequestSubject hello world attributes request subject

swagger:model HelloWorldAttributesRequestSubject

func (*HelloWorldAttributesRequestSubject) ContextValidate

func (m *HelloWorldAttributesRequestSubject) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this hello world attributes request subject based on context it is used

func (*HelloWorldAttributesRequestSubject) MarshalBinary

func (m *HelloWorldAttributesRequestSubject) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HelloWorldAttributesRequestSubject) UnmarshalBinary

func (m *HelloWorldAttributesRequestSubject) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HelloWorldAttributesRequestSubject) Validate

Validate validates this hello world attributes request subject

type ID

type ID strfmt.UUID

ID Id

swagger:model Id

func (ID) ContextValidate

func (m ID) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this Id based on context it is used

func (ID) Validate

func (m ID) Validate(formats strfmt.Registry) error

Validate validates this Id

type IgnoreType

type IgnoreType string

IgnoreType ignore type Example: ignore

swagger:model IgnoreType

const (

	// IgnoreTypeIgnore captures enum value "ignore"
	IgnoreTypeIgnore IgnoreType = "ignore"
)

func NewIgnoreType

func NewIgnoreType(value IgnoreType) *IgnoreType

func (IgnoreType) ContextValidate

func (m IgnoreType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this ignore type based on context it is used

func (IgnoreType) Pointer

func (m IgnoreType) Pointer() *IgnoreType

Pointer returns a pointer to a freshly-allocated IgnoreType.

func (IgnoreType) Validate

func (m IgnoreType) Validate(formats strfmt.Registry) error

Validate validates this ignore type

type Image

type Image struct {

	// attributes
	// Required: true
	Attributes *ImageAttributes `json:"attributes"`

	// id
	// Required: true
	// Format: uri
	ID *ImageDigest `json:"id"`

	// relationships
	Relationships *ImageRelationships `json:"relationships,omitempty"`

	// type
	// Required: true
	// Enum: [container_image]
	Type *string `json:"type"`
}

Image image

swagger:model Image

func (*Image) ContextValidate

func (m *Image) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this image based on the context it is used

func (*Image) MarshalBinary

func (m *Image) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Image) UnmarshalBinary

func (m *Image) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Image) Validate

func (m *Image) Validate(formats strfmt.Registry) error

Validate validates this image

type ImageAttributes

type ImageAttributes struct {

	// layers
	// Required: true
	// Min Items: 1
	Layers []ImageDigest `json:"layers"`

	// names
	Names []ImageName `json:"names"`

	// platform
	// Required: true
	Platform *Platform `json:"platform"`
}

ImageAttributes image attributes

swagger:model ImageAttributes

func (*ImageAttributes) ContextValidate

func (m *ImageAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this image attributes based on the context it is used

func (*ImageAttributes) MarshalBinary

func (m *ImageAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ImageAttributes) UnmarshalBinary

func (m *ImageAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ImageAttributes) Validate

func (m *ImageAttributes) Validate(formats strfmt.Registry) error

Validate validates this image attributes

type ImageDigest

type ImageDigest strfmt.URI

ImageDigest image digest Example: sha256:2bd864580926b790a22c8b96fd74496fe87b3c59c0774fe144bab2788e78e676

swagger:model ImageDigest

func (ImageDigest) ContextValidate

func (m ImageDigest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this image digest based on context it is used

func (ImageDigest) Validate

func (m ImageDigest) Validate(formats strfmt.Registry) error

Validate validates this image digest

type ImageName

type ImageName string

ImageName image name Example: gcr.io/snyk/redis:5

swagger:model ImageName

func (ImageName) ContextValidate

func (m ImageName) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this image name based on context it is used

func (ImageName) Validate

func (m ImageName) Validate(formats strfmt.Registry) error

Validate validates this image name

type ImageRelationships

type ImageRelationships struct {

	// image target refs
	ImageTargetRefs *ImageRelationshipsImageTargetRefs `json:"image_target_refs,omitempty"`
}

ImageRelationships image relationships

swagger:model ImageRelationships

func (*ImageRelationships) ContextValidate

func (m *ImageRelationships) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this image relationships based on the context it is used

func (*ImageRelationships) MarshalBinary

func (m *ImageRelationships) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ImageRelationships) UnmarshalBinary

func (m *ImageRelationships) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ImageRelationships) Validate

func (m *ImageRelationships) Validate(formats strfmt.Registry) error

Validate validates this image relationships

type ImageRelationshipsImageTargetRefs

type ImageRelationshipsImageTargetRefs struct {

	// links
	Links *SelfLink `json:"links,omitempty"`
}

ImageRelationshipsImageTargetRefs image relationships image target refs

swagger:model ImageRelationshipsImageTargetRefs

func (*ImageRelationshipsImageTargetRefs) ContextValidate

func (m *ImageRelationshipsImageTargetRefs) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this image relationships image target refs based on the context it is used

func (*ImageRelationshipsImageTargetRefs) MarshalBinary

func (m *ImageRelationshipsImageTargetRefs) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ImageRelationshipsImageTargetRefs) UnmarshalBinary

func (m *ImageRelationshipsImageTargetRefs) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ImageRelationshipsImageTargetRefs) Validate

Validate validates this image relationships image target refs

type ImageTargetRef

type ImageTargetRef struct {

	// attributes
	Attributes *ImageTargetRefAttributes `json:"attributes,omitempty"`

	// id
	// Example: 3cd4af4c-fb15-45c4-9acd-8e8fcc6690af
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// type
	// Enum: [image_target_reference]
	Type string `json:"type,omitempty"`
}

ImageTargetRef image target ref

swagger:model ImageTargetRef

func (*ImageTargetRef) ContextValidate

func (m *ImageTargetRef) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this image target ref based on the context it is used

func (*ImageTargetRef) MarshalBinary

func (m *ImageTargetRef) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ImageTargetRef) UnmarshalBinary

func (m *ImageTargetRef) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ImageTargetRef) Validate

func (m *ImageTargetRef) Validate(formats strfmt.Registry) error

Validate validates this image target ref

type ImageTargetRefAttributes

type ImageTargetRefAttributes struct {

	// platform
	Platform Platform `json:"platform,omitempty"`

	// target id
	// Format: uuid
	TargetID strfmt.UUID `json:"target_id,omitempty"`

	// target reference
	TargetReference string `json:"target_reference,omitempty"`
}

ImageTargetRefAttributes image target ref attributes

swagger:model ImageTargetRefAttributes

func (*ImageTargetRefAttributes) ContextValidate

func (m *ImageTargetRefAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this image target ref attributes based on the context it is used

func (*ImageTargetRefAttributes) MarshalBinary

func (m *ImageTargetRefAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ImageTargetRefAttributes) UnmarshalBinary

func (m *ImageTargetRefAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ImageTargetRefAttributes) Validate

func (m *ImageTargetRefAttributes) Validate(formats strfmt.Registry) error

Validate validates this image target ref attributes

type InheritFromParent

type InheritFromParent string

InheritFromParent Which parent to inherit settings from.

swagger:model InheritFromParent

const (

	// InheritFromParentGroup captures enum value "group"
	InheritFromParentGroup InheritFromParent = "group"
)

func NewInheritFromParent

func NewInheritFromParent(value InheritFromParent) *InheritFromParent

func (InheritFromParent) ContextValidate

func (m InheritFromParent) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this inherit from parent based on context it is used

func (InheritFromParent) Pointer

func (m InheritFromParent) Pointer() *InheritFromParent

Pointer returns a pointer to a freshly-allocated InheritFromParent.

func (InheritFromParent) Validate

func (m InheritFromParent) Validate(formats strfmt.Registry) error

Validate validates this inherit from parent

type IsActive

type IsActive bool

IsActive Current status of the project settings. Example: true

swagger:model IsActive

func (IsActive) ContextValidate

func (m IsActive) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this is active based on context it is used

func (IsActive) Validate

func (m IsActive) Validate(formats strfmt.Registry) error

Validate validates this is active

type IsConfidential

type IsConfidential bool

IsConfidential A boolean to indicate if an app is confidential or not as per the OAuth2 RFC. Confidential apps can securely store secrets. Examples of non-confidential apps are full web-based or CLIs. Example: true

swagger:model IsConfidential

func (IsConfidential) ContextValidate

func (m IsConfidential) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this is confidential based on context it is used

func (IsConfidential) Validate

func (m IsConfidential) Validate(formats strfmt.Registry) error

Validate validates this is confidential

type IsEnabled

type IsEnabled bool

IsEnabled Whether the custom rules feature is enabled or not. Example: true

swagger:model IsEnabled

func (IsEnabled) ContextValidate

func (m IsEnabled) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this is enabled based on context it is used

func (IsEnabled) Validate

func (m IsEnabled) Validate(formats strfmt.Registry) error

Validate validates this is enabled

type IsPublic

type IsPublic bool

IsPublic A boolean to indicate if an app is publicly available or not. Example: false

swagger:model IsPublic

func (IsPublic) ContextValidate

func (m IsPublic) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this is public based on context it is used

func (IsPublic) Validate

func (m IsPublic) Validate(formats strfmt.Registry) error

Validate validates this is public

type Issue

type Issue struct {

	// attributes
	// Required: true
	Attributes *IssueAttributes `json:"attributes"`

	// id
	// Example: 73832c6c-19ff-4a92-850c-2e1ff2800c16
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// relationships
	// Required: true
	Relationships *IssueRelationships `json:"relationships"`

	// type
	// Required: true
	Type *IssueType `json:"type"`
}

Issue A Snyk Issue.

swagger:model Issue

func (*Issue) ContextValidate

func (m *Issue) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this issue based on the context it is used

func (*Issue) MarshalBinary

func (m *Issue) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Issue) UnmarshalBinary

func (m *Issue) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Issue) Validate

func (m *Issue) Validate(formats strfmt.Registry) error

Validate validates this issue

type IssueAttributes

type IssueAttributes struct {

	// A list of details for weakness data, policy, etc that are the class of this issue's source.
	// Max Items: 50
	// Min Items: 1
	Classes []*Class `json:"classes"`

	// Where the issue originated, specific to issue type. Details on what
	// code, package, etc introduced the issue. An issue may be caused by
	// more than one coordinate.
	//
	// Min Items: 1
	Coordinates []*Coordinate `json:"coordinates"`

	// The creation time of this issue.
	// Required: true
	// Format: date-time
	CreatedAt *strfmt.DateTime `json:"created_at"`

	// A markdown-formatted optional description of this issue. Links are not permitted.
	// Example: Affected versions of this package are vulnerable to Prototype Pollution.\nThe utilities function allow modification of the `Object` prototype.\nIf an attacker can control part of the structure passed to this function,\nthey could add or modify an existing property.\n
	// Max Length: 4096
	// Min Length: 1
	Description string `json:"description,omitempty"`

	// The computed effective severity of this issue. This is either the highest level from all included severities,
	// or an overridden value set via group level policy.
	//
	// Required: true
	// Enum: [info low medium high critical]
	EffectiveSeverityLevel *string `json:"effective_severity_level"`

	// A flag indicating if the issue is being ignored. Derived from the issue's ignore, which provides more details.
	// Required: true
	Ignored *bool `json:"ignored"`

	// An opaque key used for uniquely identifying this issue across test runs, within a project.
	// Example: 24018479-6bb1-4196-a41b-e54c7c5dcc82:1c6ddc45.7f41fd64.a214ef38.72ad650e.f0ecbaa5.18c3080a.b570850e.89112ac5.1a6d2cd5.71413d6f.a924ef28.71cdd50e.d0e1bea5.52c3a80a.1a0c4319.a9127ac5:1
	// Required: true
	// Max Length: 2048
	Key *string `json:"key"`

	// A list of details for vulnerability data, policy, etc that are the source of this issue.
	// Max Items: 10
	// Min Items: 1
	Problems []*Problem `json:"problems"`

	// resolution
	Resolution *Resolution `json:"resolution,omitempty"`

	// risk
	Risk *Risk `json:"risk,omitempty"`

	// The issue's status. Derived from the issue's resolution, which provides more details.
	// Required: true
	// Enum: [open resolved]
	Status *string `json:"status"`

	// A human-readable title for this issue.
	// Example: Insecure hash function used
	// Required: true
	// Max Length: 2048
	// Min Length: 1
	Title *string `json:"title"`

	// An opaque identifier for corelating across test runs.
	// Example: snyk://npm-deps
	// Max Length: 1024
	// Min Length: 1
	Tool string `json:"tool,omitempty"`

	// type
	// Required: true
	Type *TypeDef `json:"type"`

	// The time when this issue was last modified.
	// Required: true
	// Format: date-time
	UpdatedAt *strfmt.DateTime `json:"updated_at"`
}

IssueAttributes issue attributes

swagger:model IssueAttributes

func (*IssueAttributes) ContextValidate

func (m *IssueAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this issue attributes based on the context it is used

func (*IssueAttributes) MarshalBinary

func (m *IssueAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IssueAttributes) UnmarshalBinary

func (m *IssueAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IssueAttributes) Validate

func (m *IssueAttributes) Validate(formats strfmt.Registry) error

Validate validates this issue attributes

type IssueRelationships

type IssueRelationships struct {

	// ignore
	Ignore *IssueRelationshipsIgnore `json:"ignore,omitempty"`

	// organization
	// Required: true
	Organization *IssueRelationshipsOrganization `json:"organization"`

	// scan item
	// Required: true
	ScanItem *IssueRelationshipsScanItem `json:"scan_item"`

	// test executions
	TestExecutions *IssueRelationshipsTestExecutions `json:"test_executions,omitempty"`
}

IssueRelationships issue relationships Example: {"ignore":{"data":{"id":"a3952187-0d8e-45d8-9aa2-036642857b5d","type":"ignore"}},"organization":{"data":{"id":"a3952187-0d8e-45d8-9aa2-036642857b5b","type":"organization"}},"scan_item":{"data":{"id":"a3952187-0d8e-45d8-9aa2-036642857b5c","type":"project"}},"test_executions":{"data":[{"id":"0086e1bc-7c27-4f2e-9a99-5fe793ba4bef","type":"test-workflow-execution"}]}}

swagger:model IssueRelationships

func (*IssueRelationships) ContextValidate

func (m *IssueRelationships) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this issue relationships based on the context it is used

func (*IssueRelationships) MarshalBinary

func (m *IssueRelationships) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IssueRelationships) UnmarshalBinary

func (m *IssueRelationships) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IssueRelationships) Validate

func (m *IssueRelationships) Validate(formats strfmt.Registry) error

Validate validates this issue relationships

type IssueRelationshipsIgnore

type IssueRelationshipsIgnore struct {

	// data
	// Required: true
	Data *IssueRelationshipsIgnoreData `json:"data"`
}

IssueRelationshipsIgnore An optional reference to an ignore rule that marks this issue as ignored.

swagger:model IssueRelationshipsIgnore

func (*IssueRelationshipsIgnore) ContextValidate

func (m *IssueRelationshipsIgnore) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this issue relationships ignore based on the context it is used

func (*IssueRelationshipsIgnore) MarshalBinary

func (m *IssueRelationshipsIgnore) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IssueRelationshipsIgnore) UnmarshalBinary

func (m *IssueRelationshipsIgnore) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IssueRelationshipsIgnore) Validate

func (m *IssueRelationshipsIgnore) Validate(formats strfmt.Registry) error

Validate validates this issue relationships ignore

type IssueRelationshipsIgnoreData

type IssueRelationshipsIgnoreData struct {

	// id
	// Example: 5a19d42f-31bc-4ad0-b127-b79a3270db08
	// Required: true
	ID *string `json:"id"`

	// type
	// Required: true
	Type *IgnoreType `json:"type"`
}

IssueRelationshipsIgnoreData issue relationships ignore data

swagger:model IssueRelationshipsIgnoreData

func (*IssueRelationshipsIgnoreData) ContextValidate

func (m *IssueRelationshipsIgnoreData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this issue relationships ignore data based on the context it is used

func (*IssueRelationshipsIgnoreData) MarshalBinary

func (m *IssueRelationshipsIgnoreData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IssueRelationshipsIgnoreData) UnmarshalBinary

func (m *IssueRelationshipsIgnoreData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IssueRelationshipsIgnoreData) Validate

func (m *IssueRelationshipsIgnoreData) Validate(formats strfmt.Registry) error

Validate validates this issue relationships ignore data

type IssueRelationshipsOrganization

type IssueRelationshipsOrganization struct {

	// data
	// Required: true
	Data *IssueRelationshipsOrganizationData `json:"data"`
}

IssueRelationshipsOrganization issue relationships organization

swagger:model IssueRelationshipsOrganization

func (*IssueRelationshipsOrganization) ContextValidate

func (m *IssueRelationshipsOrganization) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this issue relationships organization based on the context it is used

func (*IssueRelationshipsOrganization) MarshalBinary

func (m *IssueRelationshipsOrganization) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IssueRelationshipsOrganization) UnmarshalBinary

func (m *IssueRelationshipsOrganization) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IssueRelationshipsOrganization) Validate

func (m *IssueRelationshipsOrganization) Validate(formats strfmt.Registry) error

Validate validates this issue relationships organization

type IssueRelationshipsOrganizationData

type IssueRelationshipsOrganizationData struct {

	// id
	// Example: 5a19d42f-31bc-4ad0-b127-b79a3270db08
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// type
	// Required: true
	Type *OrganizationType `json:"type"`
}

IssueRelationshipsOrganizationData issue relationships organization data

swagger:model IssueRelationshipsOrganizationData

func (*IssueRelationshipsOrganizationData) ContextValidate

func (m *IssueRelationshipsOrganizationData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this issue relationships organization data based on the context it is used

func (*IssueRelationshipsOrganizationData) MarshalBinary

func (m *IssueRelationshipsOrganizationData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IssueRelationshipsOrganizationData) UnmarshalBinary

func (m *IssueRelationshipsOrganizationData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IssueRelationshipsOrganizationData) Validate

Validate validates this issue relationships organization data

type IssueRelationshipsScanItem

type IssueRelationshipsScanItem struct {

	// data
	// Required: true
	Data *IssueRelationshipsScanItemData `json:"data"`
}

IssueRelationshipsScanItem issue relationships scan item

swagger:model IssueRelationshipsScanItem

func (*IssueRelationshipsScanItem) ContextValidate

func (m *IssueRelationshipsScanItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this issue relationships scan item based on the context it is used

func (*IssueRelationshipsScanItem) MarshalBinary

func (m *IssueRelationshipsScanItem) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IssueRelationshipsScanItem) UnmarshalBinary

func (m *IssueRelationshipsScanItem) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IssueRelationshipsScanItem) Validate

func (m *IssueRelationshipsScanItem) Validate(formats strfmt.Registry) error

Validate validates this issue relationships scan item

type IssueRelationshipsScanItemData

type IssueRelationshipsScanItemData struct {

	// id
	// Example: 5a19d42f-31bc-4ad0-b127-b79a3270db08
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// type
	// Required: true
	Type *ScanItemType `json:"type"`
}

IssueRelationshipsScanItemData issue relationships scan item data

swagger:model IssueRelationshipsScanItemData

func (*IssueRelationshipsScanItemData) ContextValidate

func (m *IssueRelationshipsScanItemData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this issue relationships scan item data based on the context it is used

func (*IssueRelationshipsScanItemData) MarshalBinary

func (m *IssueRelationshipsScanItemData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IssueRelationshipsScanItemData) UnmarshalBinary

func (m *IssueRelationshipsScanItemData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IssueRelationshipsScanItemData) Validate

func (m *IssueRelationshipsScanItemData) Validate(formats strfmt.Registry) error

Validate validates this issue relationships scan item data

type IssueRelationshipsTestExecutions

type IssueRelationshipsTestExecutions struct {

	// List of metadata associated with the test executions that identified this issue
	// Required: true
	// Max Items: 25
	Data []*IssueRelationshipsTestExecutionsDataItems0 `json:"data"`
}

IssueRelationshipsTestExecutions The "test execution" that identified this Issues. This ID represents a grouping of issues, that were identified by some analysis run, to produce Issues.

swagger:model IssueRelationshipsTestExecutions

func (*IssueRelationshipsTestExecutions) ContextValidate

func (m *IssueRelationshipsTestExecutions) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this issue relationships test executions based on the context it is used

func (*IssueRelationshipsTestExecutions) MarshalBinary

func (m *IssueRelationshipsTestExecutions) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IssueRelationshipsTestExecutions) UnmarshalBinary

func (m *IssueRelationshipsTestExecutions) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IssueRelationshipsTestExecutions) Validate

Validate validates this issue relationships test executions

type IssueRelationshipsTestExecutionsDataItems0

type IssueRelationshipsTestExecutionsDataItems0 struct {

	// id
	// Example: 3344947d-a5c3-4e20-928b-385a5d8792a3
	// Required: true
	ID *string `json:"id"`

	// type
	// Required: true
	Type *TestExecutionType `json:"type"`
}

IssueRelationshipsTestExecutionsDataItems0 issue relationships test executions data items0

swagger:model IssueRelationshipsTestExecutionsDataItems0

func (*IssueRelationshipsTestExecutionsDataItems0) ContextValidate

ContextValidate validate this issue relationships test executions data items0 based on the context it is used

func (*IssueRelationshipsTestExecutionsDataItems0) MarshalBinary

func (m *IssueRelationshipsTestExecutionsDataItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IssueRelationshipsTestExecutionsDataItems0) UnmarshalBinary

func (m *IssueRelationshipsTestExecutionsDataItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IssueRelationshipsTestExecutionsDataItems0) Validate

Validate validates this issue relationships test executions data items0

type IssueType

type IssueType string

IssueType issue type Example: issue

swagger:model IssueType

const (

	// IssueTypeIssue captures enum value "issue"
	IssueTypeIssue IssueType = "issue"
)

func NewIssueType

func NewIssueType(value IssueType) *IssueType

func (IssueType) ContextValidate

func (m IssueType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this issue type based on context it is used

func (IssueType) Pointer

func (m IssueType) Pointer() *IssueType

Pointer returns a pointer to a freshly-allocated IssueType.

func (IssueType) Validate

func (m IssueType) Validate(formats strfmt.Registry) error

Validate validates this issue type

type IssuesMeta

type IssuesMeta struct {

	// package
	Package *PackageMeta `json:"package,omitempty"`
}

IssuesMeta issues meta

swagger:model IssuesMeta

func (*IssuesMeta) ContextValidate

func (m *IssuesMeta) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this issues meta based on the context it is used

func (*IssuesMeta) MarshalBinary

func (m *IssuesMeta) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IssuesMeta) UnmarshalBinary

func (m *IssuesMeta) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IssuesMeta) Validate

func (m *IssuesMeta) Validate(formats strfmt.Registry) error

Validate validates this issues meta

type IssuesResponse

type IssuesResponse struct {

	// data
	Data []*CommonIssueModel `json:"data"`

	// jsonapi
	Jsonapi *JSONAPI `json:"jsonapi,omitempty"`

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

	// meta
	Meta *IssuesMeta `json:"meta,omitempty"`
}

IssuesResponse issues response

swagger:model IssuesResponse

func (*IssuesResponse) ContextValidate

func (m *IssuesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this issues response based on the context it is used

func (*IssuesResponse) MarshalBinary

func (m *IssuesResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IssuesResponse) UnmarshalBinary

func (m *IssuesResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IssuesResponse) Validate

func (m *IssuesResponse) Validate(formats strfmt.Registry) error

Validate validates this issues response

type IssuesWithPurlsResponse

type IssuesWithPurlsResponse struct {

	// data
	Data []*CommonIssueModelVTwo `json:"data"`

	// jsonapi
	Jsonapi *JSONAPI `json:"jsonapi,omitempty"`

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

	// meta
	Meta *IssuesWithPurlsResponseMeta `json:"meta,omitempty"`
}

IssuesWithPurlsResponse issues with purls response

swagger:model IssuesWithPurlsResponse

func (*IssuesWithPurlsResponse) ContextValidate

func (m *IssuesWithPurlsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this issues with purls response based on the context it is used

func (*IssuesWithPurlsResponse) MarshalBinary

func (m *IssuesWithPurlsResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IssuesWithPurlsResponse) UnmarshalBinary

func (m *IssuesWithPurlsResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IssuesWithPurlsResponse) Validate

func (m *IssuesWithPurlsResponse) Validate(formats strfmt.Registry) error

Validate validates this issues with purls response

type IssuesWithPurlsResponseMeta

type IssuesWithPurlsResponseMeta struct {

	// errors
	Errors []*IssuesWithPurlsResponseMetaErrorsItems0 `json:"errors"`
}

IssuesWithPurlsResponseMeta issues with purls response meta

swagger:model IssuesWithPurlsResponseMeta

func (*IssuesWithPurlsResponseMeta) ContextValidate

func (m *IssuesWithPurlsResponseMeta) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this issues with purls response meta based on the context it is used

func (*IssuesWithPurlsResponseMeta) MarshalBinary

func (m *IssuesWithPurlsResponseMeta) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IssuesWithPurlsResponseMeta) UnmarshalBinary

func (m *IssuesWithPurlsResponseMeta) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IssuesWithPurlsResponseMeta) Validate

func (m *IssuesWithPurlsResponseMeta) Validate(formats strfmt.Registry) error

Validate validates this issues with purls response meta

type IssuesWithPurlsResponseMetaErrorsItems0

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

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

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

IssuesWithPurlsResponseMetaErrorsItems0 issues with purls response meta errors items0 Example: {"detail":"Not Found","status":"404"}

swagger:model IssuesWithPurlsResponseMetaErrorsItems0

func (*IssuesWithPurlsResponseMetaErrorsItems0) ContextValidate

ContextValidate validate this issues with purls response meta errors items0 based on the context it is used

func (*IssuesWithPurlsResponseMetaErrorsItems0) MarshalBinary

func (m *IssuesWithPurlsResponseMetaErrorsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*IssuesWithPurlsResponseMetaErrorsItems0) UnmarshalBinary

func (m *IssuesWithPurlsResponseMetaErrorsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*IssuesWithPurlsResponseMetaErrorsItems0) Validate

Validate validates this issues with purls response meta errors items0

type IssuesWithPurlsResponseMetaErrorsItems0Links struct {

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

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

swagger:model IssuesWithPurlsResponseMetaErrorsItems0Links

func (*IssuesWithPurlsResponseMetaErrorsItems0Links) ContextValidate

ContextValidate validates this issues with purls response meta errors items0 links based on context it is used

func (*IssuesWithPurlsResponseMetaErrorsItems0Links) MarshalBinary

MarshalBinary interface implementation

func (*IssuesWithPurlsResponseMetaErrorsItems0Links) UnmarshalBinary

UnmarshalBinary interface implementation

func (*IssuesWithPurlsResponseMetaErrorsItems0Links) Validate

Validate validates this issues with purls response meta errors items0 links

type IssuesWithPurlsResponseMetaErrorsItems0Source

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

IssuesWithPurlsResponseMetaErrorsItems0Source issues with purls response meta errors items0 source Example: {"pointer":"/data/attributes"}

swagger:model IssuesWithPurlsResponseMetaErrorsItems0Source

func (*IssuesWithPurlsResponseMetaErrorsItems0Source) ContextValidate

ContextValidate validates this issues with purls response meta errors items0 source based on context it is used

func (*IssuesWithPurlsResponseMetaErrorsItems0Source) MarshalBinary

MarshalBinary interface implementation

func (*IssuesWithPurlsResponseMetaErrorsItems0Source) UnmarshalBinary

UnmarshalBinary interface implementation

func (*IssuesWithPurlsResponseMetaErrorsItems0Source) Validate

Validate validates this issues with purls response meta errors items0 source

type JSONAPI

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

JSONAPI Json Api Example: {"version":"1.0"}

swagger:model JsonApi

func (*JSONAPI) ContextValidate

func (m *JSONAPI) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this Json Api based on context it is used

func (*JSONAPI) MarshalBinary

func (m *JSONAPI) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*JSONAPI) UnmarshalBinary

func (m *JSONAPI) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*JSONAPI) Validate

func (m *JSONAPI) Validate(formats strfmt.Registry) error

Validate validates this Json Api

type LatestDependencyTotal

type LatestDependencyTotal struct {

	// total
	Total float64 `json:"total,omitempty"`

	// updated at
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`
}

LatestDependencyTotal latest dependency total

swagger:model LatestDependencyTotal

func (*LatestDependencyTotal) ContextValidate

func (m *LatestDependencyTotal) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this latest dependency total based on context it is used

func (*LatestDependencyTotal) MarshalBinary

func (m *LatestDependencyTotal) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LatestDependencyTotal) UnmarshalBinary

func (m *LatestDependencyTotal) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LatestDependencyTotal) Validate

func (m *LatestDependencyTotal) Validate(formats strfmt.Registry) error

Validate validates this latest dependency total

type LatestIssueCounts

type LatestIssueCounts struct {

	// critical
	Critical float64 `json:"critical,omitempty"`

	// high
	High float64 `json:"high,omitempty"`

	// low
	Low float64 `json:"low,omitempty"`

	// medium
	Medium float64 `json:"medium,omitempty"`

	// updated at
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`
}

LatestIssueCounts latest issue counts

swagger:model LatestIssueCounts

func (*LatestIssueCounts) ContextValidate

func (m *LatestIssueCounts) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this latest issue counts based on context it is used

func (*LatestIssueCounts) MarshalBinary

func (m *LatestIssueCounts) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LatestIssueCounts) UnmarshalBinary

func (m *LatestIssueCounts) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LatestIssueCounts) Validate

func (m *LatestIssueCounts) Validate(formats strfmt.Registry) error

Validate validates this latest issue counts

type LinkProperty

type LinkProperty interface{}

LinkProperty link property Example: https://example.com/api/resource

swagger:model LinkProperty

type Links struct {

	// first
	First LinkProperty `json:"first,omitempty"`

	// last
	Last LinkProperty `json:"last,omitempty"`

	// next
	Next LinkProperty `json:"next,omitempty"`

	// prev
	Prev LinkProperty `json:"prev,omitempty"`

	// related
	Related LinkProperty `json:"related,omitempty"`

	// self
	Self LinkProperty `json:"self,omitempty"`
}

Links links

swagger:model Links

func (*Links) ContextValidate

func (m *Links) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this links based on context it is used

func (*Links) MarshalBinary

func (m *Links) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Links) UnmarshalBinary

func (m *Links) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Links) Validate

func (m *Links) Validate(formats strfmt.Registry) error

Validate validates this links

type ManualRemediationPRsSettings

type ManualRemediationPRsSettings struct {

	// Include vulnerability patches in manual pull requests.
	// Example: true
	IsPatchRemediationEnabled bool `json:"is_patch_remediation_enabled,omitempty"`
}

ManualRemediationPRsSettings Manually raise pull requests to fix new and existing vulnerabilities. If not specified, settings will be inherited from the Project's integration.

swagger:model ManualRemediationPRsSettings

func (*ManualRemediationPRsSettings) ContextValidate

func (m *ManualRemediationPRsSettings) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this manual remediation p rs settings based on context it is used

func (*ManualRemediationPRsSettings) MarshalBinary

func (m *ManualRemediationPRsSettings) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ManualRemediationPRsSettings) UnmarshalBinary

func (m *ManualRemediationPRsSettings) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ManualRemediationPRsSettings) Validate

func (m *ManualRemediationPRsSettings) Validate(formats strfmt.Registry) error

Validate validates this manual remediation p rs settings

type MemberRoleRelationship

type MemberRoleRelationship struct {

	// data
	// Required: true
	Data *MemberRoleRelationshipData `json:"data"`
}

MemberRoleRelationship member role relationship

swagger:model MemberRoleRelationship

func (*MemberRoleRelationship) ContextValidate

func (m *MemberRoleRelationship) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this member role relationship based on the context it is used

func (*MemberRoleRelationship) MarshalBinary

func (m *MemberRoleRelationship) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MemberRoleRelationship) UnmarshalBinary

func (m *MemberRoleRelationship) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MemberRoleRelationship) Validate

func (m *MemberRoleRelationship) Validate(formats strfmt.Registry) error

Validate validates this member role relationship

type MemberRoleRelationshipData

type MemberRoleRelationshipData struct {

	// attributes
	Attributes *OrgRoleAttributes `json:"attributes,omitempty"`

	// The Snyk ID of the organization role.
	// Example: f60ff965-6889-4db2-8c86-0285d62f35ab
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// type
	// Required: true
	Type *Types `json:"type"`
}

MemberRoleRelationshipData member role relationship data

swagger:model MemberRoleRelationshipData

func (*MemberRoleRelationshipData) ContextValidate

func (m *MemberRoleRelationshipData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this member role relationship data based on the context it is used

func (*MemberRoleRelationshipData) MarshalBinary

func (m *MemberRoleRelationshipData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MemberRoleRelationshipData) UnmarshalBinary

func (m *MemberRoleRelationshipData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MemberRoleRelationshipData) Validate

func (m *MemberRoleRelationshipData) Validate(formats strfmt.Registry) error

Validate validates this member role relationship data

type Meta

type Meta interface{}

Meta Free-form object that may contain non-standard information. Example: {"key1":"value1","key2":{"sub_key":"sub_value"},"key3":["array_value1","array_value2"]}

swagger:model Meta

type Name

type Name string

Name User-defined name of the collection

swagger:model name

func (Name) ContextValidate

func (m Name) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this name based on context it is used

func (Name) Validate

func (m Name) Validate(formats strfmt.Registry) error

Validate validates this name

type NugetBuildArgs

type NugetBuildArgs struct {

	// target framework
	// Required: true
	TargetFramework *string `json:"target_framework"`
}

NugetBuildArgs nuget build args

swagger:model NugetBuildArgs

func (*NugetBuildArgs) ContextValidate

func (m *NugetBuildArgs) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this nuget build args based on context it is used

func (*NugetBuildArgs) MarshalBinary

func (m *NugetBuildArgs) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NugetBuildArgs) UnmarshalBinary

func (m *NugetBuildArgs) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NugetBuildArgs) Validate

func (m *NugetBuildArgs) Validate(formats strfmt.Registry) error

Validate validates this nuget build args

type OSConditionRiskFactor

type OSConditionRiskFactor struct {

	// included in score
	IncludedInScore *bool `json:"included_in_score,omitempty"`

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

	// name
	// Required: true
	Name *string `json:"name"`

	// updated at
	// Required: true
	// Format: date-time
	UpdatedAt *strfmt.DateTime `json:"updated_at"`

	// value
	// Required: true
	Value *bool `json:"value"`
}

OSConditionRiskFactor o s condition risk factor

swagger:model OSConditionRiskFactor

func (*OSConditionRiskFactor) ContextValidate

func (m *OSConditionRiskFactor) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this o s condition risk factor based on the context it is used

func (*OSConditionRiskFactor) MarshalBinary

func (m *OSConditionRiskFactor) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OSConditionRiskFactor) UnmarshalBinary

func (m *OSConditionRiskFactor) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OSConditionRiskFactor) Validate

func (m *OSConditionRiskFactor) Validate(formats strfmt.Registry) error

Validate validates this o s condition risk factor

type OciRegistryTag

type OciRegistryTag string

OciRegistryTag The tag for an OCI artifact inside an OCI registry. Example: latest

swagger:model OciRegistryTag

func (OciRegistryTag) ContextValidate

func (m OciRegistryTag) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this oci registry tag based on context it is used

func (OciRegistryTag) Validate

func (m OciRegistryTag) Validate(formats strfmt.Registry) error

Validate validates this oci registry tag

type OciRegistryURL

type OciRegistryURL string

OciRegistryURL The URL to an OCI registry. Example: https://registry-1.docker.io/account/bundle

swagger:model OciRegistryUrl

func (OciRegistryURL) ContextValidate

func (m OciRegistryURL) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this oci registry Url based on context it is used

func (OciRegistryURL) Validate

func (m OciRegistryURL) Validate(formats strfmt.Registry) error

Validate validates this oci registry Url

type Org

type Org struct {

	// attributes
	// Required: true
	Attributes *OrgAttributes `json:"attributes"`

	// The Snyk ID of the organization.
	// Example: 59d6d97e-3106-4ebb-b608-352fad9c5b34
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// type
	// Required: true
	Type *Types `json:"type"`
}

Org org

swagger:model Org

func (*Org) ContextValidate

func (m *Org) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this org based on the context it is used

func (*Org) MarshalBinary

func (m *Org) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Org) UnmarshalBinary

func (m *Org) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Org) Validate

func (m *Org) Validate(formats strfmt.Registry) error

Validate validates this org

type OrgAttributes

type OrgAttributes struct {

	// The time the organization was created.
	// Example: 2022-03-16T00:00:00Z
	// Format: date-time
	CreatedAt strfmt.DateTime `json:"created_at,omitempty"`

	// The Snyk ID of the group to which the organization belongs.
	// Example: 59d6d97e-3106-4ebb-b608-352fad9c5b34
	// Format: uuid
	GroupID strfmt.UUID `json:"group_id,omitempty"`

	// Whether the organization is independent (that is, not part of a group).
	// Example: true
	// Required: true
	IsPersonal *bool `json:"is_personal"`

	// The display name of the organization.
	// Example: My Org
	// Required: true
	Name *string `json:"name"`

	// The canonical (unique and URL-friendly) name of the organization.
	// Example: my-org
	// Required: true
	Slug *string `json:"slug"`

	// The time the organization was last modified.
	// Example: 2022-03-16T00:00:00Z
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`
}

OrgAttributes org attributes

swagger:model OrgAttributes

func (*OrgAttributes) ContextValidate

func (m *OrgAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this org attributes based on context it is used

func (*OrgAttributes) MarshalBinary

func (m *OrgAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrgAttributes) UnmarshalBinary

func (m *OrgAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrgAttributes) Validate

func (m *OrgAttributes) Validate(formats strfmt.Registry) error

Validate validates this org attributes

type OrgIacSettingsRequest

type OrgIacSettingsRequest struct {

	// attributes
	// Required: true
	Attributes *OrgIacSettingsRequestAttributes `json:"attributes"`

	// Content type
	// Example: iac_settings
	// Required: true
	Type *string `json:"type"`
}

OrgIacSettingsRequest The Infrastructure as Code settings for an org.

swagger:model OrgIacSettingsRequest

func (*OrgIacSettingsRequest) ContextValidate

func (m *OrgIacSettingsRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this org iac settings request based on the context it is used

func (*OrgIacSettingsRequest) MarshalBinary

func (m *OrgIacSettingsRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrgIacSettingsRequest) UnmarshalBinary

func (m *OrgIacSettingsRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrgIacSettingsRequest) Validate

func (m *OrgIacSettingsRequest) Validate(formats strfmt.Registry) error

Validate validates this org iac settings request

type OrgIacSettingsRequestAttributes

type OrgIacSettingsRequestAttributes struct {

	// custom rules
	CustomRules *OrgIacSettingsRequestAttributesCustomRules `json:"custom_rules,omitempty"`
}

OrgIacSettingsRequestAttributes org iac settings request attributes

swagger:model OrgIacSettingsRequestAttributes

func (*OrgIacSettingsRequestAttributes) ContextValidate

func (m *OrgIacSettingsRequestAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this org iac settings request attributes based on the context it is used

func (*OrgIacSettingsRequestAttributes) MarshalBinary

func (m *OrgIacSettingsRequestAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrgIacSettingsRequestAttributes) UnmarshalBinary

func (m *OrgIacSettingsRequestAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrgIacSettingsRequestAttributes) Validate

Validate validates this org iac settings request attributes

type OrgIacSettingsRequestAttributesCustomRules

type OrgIacSettingsRequestAttributesCustomRules struct {

	// inherit from parent
	InheritFromParent InheritFromParent `json:"inherit_from_parent,omitempty"`

	// is enabled
	IsEnabled IsEnabled `json:"is_enabled,omitempty"`

	// oci registry tag
	OciRegistryTag OciRegistryTag `json:"oci_registry_tag,omitempty"`

	// oci registry url
	OciRegistryURL OciRegistryURL `json:"oci_registry_url,omitempty"`
}

OrgIacSettingsRequestAttributesCustomRules The Infrastructure as Code custom rules settings for an org.

Min Properties: 1

swagger:model OrgIacSettingsRequestAttributesCustomRules

func (*OrgIacSettingsRequestAttributesCustomRules) ContextValidate

ContextValidate validate this org iac settings request attributes custom rules based on the context it is used

func (*OrgIacSettingsRequestAttributesCustomRules) MarshalBinary

func (m *OrgIacSettingsRequestAttributesCustomRules) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrgIacSettingsRequestAttributesCustomRules) UnmarshalBinary

func (m *OrgIacSettingsRequestAttributesCustomRules) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrgIacSettingsRequestAttributesCustomRules) Validate

Validate validates this org iac settings request attributes custom rules

type OrgIacSettingsResponse

type OrgIacSettingsResponse struct {

	// attributes
	Attributes *OrgIacSettingsResponseAttributes `json:"attributes,omitempty"`

	// ID
	// Example: ea536a06-0566-40ca-b96b-155568aa2027
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// Content type
	// Example: iac_settings
	Type string `json:"type,omitempty"`
}

OrgIacSettingsResponse The Infrastructure as Code settings for an org.

swagger:model OrgIacSettingsResponse

func (*OrgIacSettingsResponse) ContextValidate

func (m *OrgIacSettingsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this org iac settings response based on the context it is used

func (*OrgIacSettingsResponse) MarshalBinary

func (m *OrgIacSettingsResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrgIacSettingsResponse) UnmarshalBinary

func (m *OrgIacSettingsResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrgIacSettingsResponse) Validate

func (m *OrgIacSettingsResponse) Validate(formats strfmt.Registry) error

Validate validates this org iac settings response

type OrgIacSettingsResponseAttributes

type OrgIacSettingsResponseAttributes struct {

	// custom rules
	CustomRules *OrgIacSettingsResponseAttributesCustomRules `json:"custom_rules,omitempty"`
}

OrgIacSettingsResponseAttributes org iac settings response attributes

swagger:model OrgIacSettingsResponseAttributes

func (*OrgIacSettingsResponseAttributes) ContextValidate

func (m *OrgIacSettingsResponseAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this org iac settings response attributes based on the context it is used

func (*OrgIacSettingsResponseAttributes) MarshalBinary

func (m *OrgIacSettingsResponseAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrgIacSettingsResponseAttributes) UnmarshalBinary

func (m *OrgIacSettingsResponseAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrgIacSettingsResponseAttributes) Validate

Validate validates this org iac settings response attributes

type OrgIacSettingsResponseAttributesCustomRules

type OrgIacSettingsResponseAttributesCustomRules struct {

	// inherit from parent
	InheritFromParent InheritFromParent `json:"inherit_from_parent,omitempty"`

	// is enabled
	IsEnabled IsEnabled `json:"is_enabled,omitempty"`

	// oci registry tag
	OciRegistryTag OciRegistryTag `json:"oci_registry_tag,omitempty"`

	// oci registry url
	OciRegistryURL OciRegistryURL `json:"oci_registry_url,omitempty"`

	// parents
	Parents *OrgIacSettingsResponseAttributesCustomRulesParents `json:"parents,omitempty"`

	// updated
	// Format: date-time
	Updated Updated `json:"updated,omitempty"`
}

OrgIacSettingsResponseAttributesCustomRules The Infrastructure as Code custom rules settings for an org.

swagger:model OrgIacSettingsResponseAttributesCustomRules

func (*OrgIacSettingsResponseAttributesCustomRules) ContextValidate

ContextValidate validate this org iac settings response attributes custom rules based on the context it is used

func (*OrgIacSettingsResponseAttributesCustomRules) MarshalBinary

func (m *OrgIacSettingsResponseAttributesCustomRules) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrgIacSettingsResponseAttributesCustomRules) UnmarshalBinary

func (m *OrgIacSettingsResponseAttributesCustomRules) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrgIacSettingsResponseAttributesCustomRules) Validate

Validate validates this org iac settings response attributes custom rules

type OrgIacSettingsResponseAttributesCustomRulesParents

type OrgIacSettingsResponseAttributesCustomRulesParents struct {

	// group
	Group *OrgIacSettingsResponseAttributesCustomRulesParentsGroup `json:"group,omitempty"`
}

OrgIacSettingsResponseAttributesCustomRulesParents Contains all parents the org can inherit settings from.

swagger:model OrgIacSettingsResponseAttributesCustomRulesParents

func (*OrgIacSettingsResponseAttributesCustomRulesParents) ContextValidate

ContextValidate validate this org iac settings response attributes custom rules parents based on the context it is used

func (*OrgIacSettingsResponseAttributesCustomRulesParents) MarshalBinary

MarshalBinary interface implementation

func (*OrgIacSettingsResponseAttributesCustomRulesParents) UnmarshalBinary

UnmarshalBinary interface implementation

func (*OrgIacSettingsResponseAttributesCustomRulesParents) Validate

Validate validates this org iac settings response attributes custom rules parents

type OrgIacSettingsResponseAttributesCustomRulesParentsGroup

type OrgIacSettingsResponseAttributesCustomRulesParentsGroup struct {

	// custom rules
	CustomRules *OrgIacSettingsResponseAttributesCustomRulesParentsGroupCustomRules `json:"custom_rules,omitempty"`

	// updated
	// Format: date-time
	Updated Updated `json:"updated,omitempty"`
}

OrgIacSettingsResponseAttributesCustomRulesParentsGroup The Infrastructure as Code settings at the group level.

swagger:model OrgIacSettingsResponseAttributesCustomRulesParentsGroup

func (*OrgIacSettingsResponseAttributesCustomRulesParentsGroup) ContextValidate

ContextValidate validate this org iac settings response attributes custom rules parents group based on the context it is used

func (*OrgIacSettingsResponseAttributesCustomRulesParentsGroup) MarshalBinary

MarshalBinary interface implementation

func (*OrgIacSettingsResponseAttributesCustomRulesParentsGroup) UnmarshalBinary

UnmarshalBinary interface implementation

func (*OrgIacSettingsResponseAttributesCustomRulesParentsGroup) Validate

Validate validates this org iac settings response attributes custom rules parents group

type OrgIacSettingsResponseAttributesCustomRulesParentsGroupCustomRules

type OrgIacSettingsResponseAttributesCustomRulesParentsGroupCustomRules struct {

	// is enabled
	IsEnabled IsEnabled `json:"is_enabled,omitempty"`

	// oci registry tag
	OciRegistryTag OciRegistryTag `json:"oci_registry_tag,omitempty"`

	// oci registry url
	OciRegistryURL OciRegistryURL `json:"oci_registry_url,omitempty"`
}

OrgIacSettingsResponseAttributesCustomRulesParentsGroupCustomRules The Infrastructure as Code custom rules settings for a group.

swagger:model OrgIacSettingsResponseAttributesCustomRulesParentsGroupCustomRules

func (*OrgIacSettingsResponseAttributesCustomRulesParentsGroupCustomRules) ContextValidate

ContextValidate validate this org iac settings response attributes custom rules parents group custom rules based on the context it is used

func (*OrgIacSettingsResponseAttributesCustomRulesParentsGroupCustomRules) MarshalBinary

MarshalBinary interface implementation

func (*OrgIacSettingsResponseAttributesCustomRulesParentsGroupCustomRules) UnmarshalBinary

UnmarshalBinary interface implementation

func (*OrgIacSettingsResponseAttributesCustomRulesParentsGroupCustomRules) Validate

Validate validates this org iac settings response attributes custom rules parents group custom rules

type OrgInvitation

type OrgInvitation struct {

	// attributes
	// Required: true
	Attributes *OrgInvitationAttributes `json:"attributes"`

	// id
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// relationships
	Relationships *OrgInvitationRelationships `json:"relationships,omitempty"`

	// type
	// Required: true
	// Enum: [org_invitation]
	Type *string `json:"type"`
}

OrgInvitation org invitation

swagger:model OrgInvitation

func (*OrgInvitation) ContextValidate

func (m *OrgInvitation) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this org invitation based on the context it is used

func (*OrgInvitation) MarshalBinary

func (m *OrgInvitation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrgInvitation) UnmarshalBinary

func (m *OrgInvitation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrgInvitation) Validate

func (m *OrgInvitation) Validate(formats strfmt.Registry) error

Validate validates this org invitation

type OrgInvitationAttributes

type OrgInvitationAttributes struct {

	// The email address of the invitee.
	// Example: example@email.com
	// Required: true
	Email *string `json:"email"`

	// The active status of the invitation. is_active of true indicates that the invitation is still waiting to be accepted. Invitations are considered inactive when accepted or revoked.
	//
	// Example: true
	// Required: true
	IsActive *bool `json:"is_active"`

	// The role public ID that will be granted to to invitee on acceptance.
	// Example: f1968726-1dca-42d4-a4dc-80cab99e2b6c
	// Required: true
	// Format: uuid
	Role *strfmt.UUID `json:"role"`
}

OrgInvitationAttributes org invitation attributes

swagger:model OrgInvitationAttributes

func (*OrgInvitationAttributes) ContextValidate

func (m *OrgInvitationAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this org invitation attributes based on context it is used

func (*OrgInvitationAttributes) MarshalBinary

func (m *OrgInvitationAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrgInvitationAttributes) UnmarshalBinary

func (m *OrgInvitationAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrgInvitationAttributes) Validate

func (m *OrgInvitationAttributes) Validate(formats strfmt.Registry) error

Validate validates this org invitation attributes

type OrgInvitationPostAttributes

type OrgInvitationPostAttributes struct {

	// The email address of the invitee.
	// Example: example@email.com
	// Required: true
	Email *string `json:"email"`

	// The role public ID that will be granted to to invitee on acceptance.
	// Example: f1968726-1dca-42d4-a4dc-80cab99e2b6c
	// Required: true
	// Format: uuid
	Role *strfmt.UUID `json:"role"`
}

OrgInvitationPostAttributes org invitation post attributes

swagger:model OrgInvitationPostAttributes

func (*OrgInvitationPostAttributes) ContextValidate

func (m *OrgInvitationPostAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this org invitation post attributes based on context it is used

func (*OrgInvitationPostAttributes) MarshalBinary

func (m *OrgInvitationPostAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrgInvitationPostAttributes) UnmarshalBinary

func (m *OrgInvitationPostAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrgInvitationPostAttributes) Validate

func (m *OrgInvitationPostAttributes) Validate(formats strfmt.Registry) error

Validate validates this org invitation post attributes

type OrgInvitationPostData

type OrgInvitationPostData struct {

	// attributes
	// Required: true
	Attributes *OrgInvitationPostAttributes `json:"attributes"`

	// relationships
	Relationships *OrgInvitationPostDataRelationships `json:"relationships,omitempty"`

	// type
	// Required: true
	// Enum: [org_invitation]
	Type *string `json:"type"`
}

OrgInvitationPostData org invitation post data

swagger:model OrgInvitationPostData

func (*OrgInvitationPostData) ContextValidate

func (m *OrgInvitationPostData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this org invitation post data based on the context it is used

func (*OrgInvitationPostData) MarshalBinary

func (m *OrgInvitationPostData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrgInvitationPostData) UnmarshalBinary

func (m *OrgInvitationPostData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrgInvitationPostData) Validate

func (m *OrgInvitationPostData) Validate(formats strfmt.Registry) error

Validate validates this org invitation post data

type OrgInvitationPostDataRelationships

type OrgInvitationPostDataRelationships struct {

	// org
	Org *Relationship `json:"org,omitempty"`
}

OrgInvitationPostDataRelationships org invitation post data relationships

swagger:model OrgInvitationPostDataRelationships

func (*OrgInvitationPostDataRelationships) ContextValidate

func (m *OrgInvitationPostDataRelationships) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this org invitation post data relationships based on the context it is used

func (*OrgInvitationPostDataRelationships) MarshalBinary

func (m *OrgInvitationPostDataRelationships) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrgInvitationPostDataRelationships) UnmarshalBinary

func (m *OrgInvitationPostDataRelationships) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrgInvitationPostDataRelationships) Validate

Validate validates this org invitation post data relationships

type OrgInvitationRelationships

type OrgInvitationRelationships struct {

	// org
	Org *Relationship `json:"org,omitempty"`
}

OrgInvitationRelationships org invitation relationships

swagger:model OrgInvitationRelationships

func (*OrgInvitationRelationships) ContextValidate

func (m *OrgInvitationRelationships) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this org invitation relationships based on the context it is used

func (*OrgInvitationRelationships) MarshalBinary

func (m *OrgInvitationRelationships) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrgInvitationRelationships) UnmarshalBinary

func (m *OrgInvitationRelationships) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrgInvitationRelationships) Validate

func (m *OrgInvitationRelationships) Validate(formats strfmt.Registry) error

Validate validates this org invitation relationships

type OrgRelationships

type OrgRelationships struct {

	// member role
	MemberRole *MemberRoleRelationship `json:"member_role,omitempty"`
}

OrgRelationships org relationships

swagger:model OrgRelationships

func (*OrgRelationships) ContextValidate

func (m *OrgRelationships) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this org relationships based on the context it is used

func (*OrgRelationships) MarshalBinary

func (m *OrgRelationships) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrgRelationships) UnmarshalBinary

func (m *OrgRelationships) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrgRelationships) Validate

func (m *OrgRelationships) Validate(formats strfmt.Registry) error

Validate validates this org relationships

type OrgRoleAttributes

type OrgRoleAttributes struct {

	// The display name of the organization role.
	// Example: Collaborator
	Name string `json:"name,omitempty"`
}

OrgRoleAttributes org role attributes

swagger:model OrgRoleAttributes

func (*OrgRoleAttributes) ContextValidate

func (m *OrgRoleAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this org role attributes based on context it is used

func (*OrgRoleAttributes) MarshalBinary

func (m *OrgRoleAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrgRoleAttributes) UnmarshalBinary

func (m *OrgRoleAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrgRoleAttributes) Validate

func (m *OrgRoleAttributes) Validate(formats strfmt.Registry) error

Validate validates this org role attributes

type OrgUpdateAttributes

type OrgUpdateAttributes struct {

	// The display name of the organization.
	// Example: My Org
	// Required: true
	// Max Length: 60
	// Min Length: 1
	Name *string `json:"name"`
}

OrgUpdateAttributes org update attributes

swagger:model OrgUpdateAttributes

func (*OrgUpdateAttributes) ContextValidate

func (m *OrgUpdateAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this org update attributes based on context it is used

func (*OrgUpdateAttributes) MarshalBinary

func (m *OrgUpdateAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrgUpdateAttributes) UnmarshalBinary

func (m *OrgUpdateAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrgUpdateAttributes) Validate

func (m *OrgUpdateAttributes) Validate(formats strfmt.Registry) error

Validate validates this org update attributes

type OrgWithRelationships

type OrgWithRelationships struct {

	// attributes
	// Required: true
	Attributes *OrgAttributes `json:"attributes"`

	// The Snyk ID of the organization.
	// Example: 59d6d97e-3106-4ebb-b608-352fad9c5b34
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// relationships
	Relationships *OrgRelationships `json:"relationships,omitempty"`

	// type
	// Required: true
	Type *Types `json:"type"`
}

OrgWithRelationships org with relationships

swagger:model OrgWithRelationships

func (*OrgWithRelationships) ContextValidate

func (m *OrgWithRelationships) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this org with relationships based on the context it is used

func (*OrgWithRelationships) MarshalBinary

func (m *OrgWithRelationships) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrgWithRelationships) UnmarshalBinary

func (m *OrgWithRelationships) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrgWithRelationships) Validate

func (m *OrgWithRelationships) Validate(formats strfmt.Registry) error

Validate validates this org with relationships

type OrganizationType

type OrganizationType string

OrganizationType organization type Example: organization

swagger:model OrganizationType

const (

	// OrganizationTypeOrganization captures enum value "organization"
	OrganizationTypeOrganization OrganizationType = "organization"
)

func NewOrganizationType

func NewOrganizationType(value OrganizationType) *OrganizationType

func (OrganizationType) ContextValidate

func (m OrganizationType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this organization type based on context it is used

func (OrganizationType) Pointer

func (m OrganizationType) Pointer() *OrganizationType

Pointer returns a pointer to a freshly-allocated OrganizationType.

func (OrganizationType) Validate

func (m OrganizationType) Validate(formats strfmt.Registry) error

Validate validates this organization type

type Package

type Package struct {

	// The package’s name
	// Example: spring-core
	// Required: true
	Name *string `json:"name"`

	// A name prefix, such as a maven group id or docker image owner
	// Example: org.springframework
	Namespace string `json:"namespace,omitempty"`

	// The package type or protocol
	// Example: maven
	// Required: true
	Type *string `json:"type"`

	// The purl of the package
	// Example: pkg:maven/com.fasterxml.woodstox/woodstox-core@5.0.0
	// Required: true
	URL *string `json:"url"`

	// The version of the package
	// Example: 1.0.0
	// Required: true
	Version *string `json:"version"`
}

Package package

swagger:model Package

func (*Package) ContextValidate

func (m *Package) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this package based on context it is used

func (*Package) MarshalBinary

func (m *Package) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Package) UnmarshalBinary

func (m *Package) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Package) Validate

func (m *Package) Validate(formats strfmt.Registry) error

Validate validates this package

type PackageMeta

type PackageMeta struct {

	// The package’s name
	// Example: woodstox-core
	Name string `json:"name,omitempty"`

	// A name prefix, such as a maven group id or docker image owner
	// Example: com.fasterxml.woodstox
	Namespace string `json:"namespace,omitempty"`

	// The package type or protocol
	// Example: maven
	Type string `json:"type,omitempty"`

	// The purl of the package
	// Example: pkg:maven/com.fasterxml.woodstox/woodstox-core@5.0.0
	URL string `json:"url,omitempty"`

	// The version of the package
	// Example: 5.0.0
	Version string `json:"version,omitempty"`
}

PackageMeta package meta

swagger:model PackageMeta

func (*PackageMeta) ContextValidate

func (m *PackageMeta) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this package meta based on context it is used

func (*PackageMeta) MarshalBinary

func (m *PackageMeta) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PackageMeta) UnmarshalBinary

func (m *PackageMeta) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PackageMeta) Validate

func (m *PackageMeta) Validate(formats strfmt.Registry) error

Validate validates this package meta

type PackageRepresentation

type PackageRepresentation struct {

	// package
	Package *PackageMeta `json:"package,omitempty"`
}

PackageRepresentation package representation

swagger:model PackageRepresentation

func (*PackageRepresentation) ContextValidate

func (m *PackageRepresentation) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this package representation based on the context it is used

func (*PackageRepresentation) MarshalBinary

func (m *PackageRepresentation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PackageRepresentation) UnmarshalBinary

func (m *PackageRepresentation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PackageRepresentation) Validate

func (m *PackageRepresentation) Validate(formats strfmt.Registry) error

Validate validates this package representation

type PaginatedLinks struct {

	// first
	First LinkProperty `json:"first,omitempty"`

	// last
	Last LinkProperty `json:"last,omitempty"`

	// next
	Next LinkProperty `json:"next,omitempty"`

	// prev
	Prev LinkProperty `json:"prev,omitempty"`

	// self
	Self LinkProperty `json:"self,omitempty"`
}

PaginatedLinks paginated links Example: {"first":"https://example.com/api/resource?ending_before=v1.eyJpZCI6IjExIn0K","last":"https://example.com/api/resource?starting_after=v1.eyJpZCI6IjMwIn0K","next":"https://example.com/api/resource?starting_after=v1.eyJpZCI6IjEwIn0K"}

swagger:model PaginatedLinks

func (*PaginatedLinks) ContextValidate

func (m *PaginatedLinks) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this paginated links based on context it is used

func (*PaginatedLinks) MarshalBinary

func (m *PaginatedLinks) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PaginatedLinks) UnmarshalBinary

func (m *PaginatedLinks) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PaginatedLinks) Validate

func (m *PaginatedLinks) Validate(formats strfmt.Registry) error

Validate validates this paginated links

type PatchProjectRequest

type PatchProjectRequest struct {

	// data
	// Required: true
	Data *PatchProjectRequestData `json:"data"`
}

PatchProjectRequest patch project request

swagger:model PatchProjectRequest

func (*PatchProjectRequest) ContextValidate

func (m *PatchProjectRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this patch project request based on the context it is used

func (*PatchProjectRequest) MarshalBinary

func (m *PatchProjectRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PatchProjectRequest) UnmarshalBinary

func (m *PatchProjectRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PatchProjectRequest) Validate

func (m *PatchProjectRequest) Validate(formats strfmt.Registry) error

Validate validates this patch project request

type PatchProjectRequestData

type PatchProjectRequestData struct {

	// attributes
	// Required: true
	Attributes *PatchProjectRequestDataAttributes `json:"attributes"`

	// The Resource ID.
	// Example: 331ede0a-de94-456f-b788-166caeca58bf
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// relationships
	// Required: true
	Relationships *PatchProjectRequestDataRelationships `json:"relationships"`

	// The Resource type.
	// Required: true
	// Enum: [project]
	Type *string `json:"type"`
}

PatchProjectRequestData patch project request data

swagger:model PatchProjectRequestData

func (*PatchProjectRequestData) ContextValidate

func (m *PatchProjectRequestData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this patch project request data based on the context it is used

func (*PatchProjectRequestData) MarshalBinary

func (m *PatchProjectRequestData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PatchProjectRequestData) UnmarshalBinary

func (m *PatchProjectRequestData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PatchProjectRequestData) Validate

func (m *PatchProjectRequestData) Validate(formats strfmt.Registry) error

Validate validates this patch project request data

type PatchProjectRequestDataAttributes

type PatchProjectRequestDataAttributes struct {

	// business criticality
	// Example: ["medium"]
	BusinessCriticality []string `json:"business_criticality"`

	// environment
	// Example: ["external","hosted"]
	Environment []string `json:"environment"`

	// lifecycle
	// Example: ["production"]
	Lifecycle []string `json:"lifecycle"`

	// tags
	// Example: [{"key":"tag-key","value":"tag-value"}]
	Tags []*PatchProjectRequestDataAttributesTagsItems0 `json:"tags"`

	// Test frequency of a project. Also controls when automated PRs may be created.
	// Example: daily
	// Enum: [daily weekly never]
	TestFrequency string `json:"test_frequency,omitempty"`
}

PatchProjectRequestDataAttributes patch project request data attributes

swagger:model PatchProjectRequestDataAttributes

func (*PatchProjectRequestDataAttributes) ContextValidate

func (m *PatchProjectRequestDataAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this patch project request data attributes based on the context it is used

func (*PatchProjectRequestDataAttributes) MarshalBinary

func (m *PatchProjectRequestDataAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PatchProjectRequestDataAttributes) UnmarshalBinary

func (m *PatchProjectRequestDataAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PatchProjectRequestDataAttributes) Validate

Validate validates this patch project request data attributes

type PatchProjectRequestDataAttributesTagsItems0

type PatchProjectRequestDataAttributesTagsItems0 struct {

	// key
	// Example: tag-key
	Key string `json:"key,omitempty"`

	// value
	// Example: tag-value
	Value string `json:"value,omitempty"`
}

PatchProjectRequestDataAttributesTagsItems0 patch project request data attributes tags items0

swagger:model PatchProjectRequestDataAttributesTagsItems0

func (*PatchProjectRequestDataAttributesTagsItems0) ContextValidate

ContextValidate validates this patch project request data attributes tags items0 based on context it is used

func (*PatchProjectRequestDataAttributesTagsItems0) MarshalBinary

func (m *PatchProjectRequestDataAttributesTagsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PatchProjectRequestDataAttributesTagsItems0) UnmarshalBinary

func (m *PatchProjectRequestDataAttributesTagsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PatchProjectRequestDataAttributesTagsItems0) Validate

Validate validates this patch project request data attributes tags items0

type PatchProjectRequestDataRelationships

type PatchProjectRequestDataRelationships struct {

	// owner
	Owner *PatchProjectRequestDataRelationshipsOwner `json:"owner,omitempty"`
}

PatchProjectRequestDataRelationships patch project request data relationships

swagger:model PatchProjectRequestDataRelationships

func (*PatchProjectRequestDataRelationships) ContextValidate

func (m *PatchProjectRequestDataRelationships) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this patch project request data relationships based on the context it is used

func (*PatchProjectRequestDataRelationships) MarshalBinary

func (m *PatchProjectRequestDataRelationships) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PatchProjectRequestDataRelationships) UnmarshalBinary

func (m *PatchProjectRequestDataRelationships) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PatchProjectRequestDataRelationships) Validate

Validate validates this patch project request data relationships

type PatchProjectRequestDataRelationshipsOwner

type PatchProjectRequestDataRelationshipsOwner struct {

	// data
	// Required: true
	Data *PatchProjectRequestDataRelationshipsOwnerData `json:"data"`
}

PatchProjectRequestDataRelationshipsOwner patch project request data relationships owner

swagger:model PatchProjectRequestDataRelationshipsOwner

func (*PatchProjectRequestDataRelationshipsOwner) ContextValidate

ContextValidate validate this patch project request data relationships owner based on the context it is used

func (*PatchProjectRequestDataRelationshipsOwner) MarshalBinary

func (m *PatchProjectRequestDataRelationshipsOwner) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PatchProjectRequestDataRelationshipsOwner) UnmarshalBinary

func (m *PatchProjectRequestDataRelationshipsOwner) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PatchProjectRequestDataRelationshipsOwner) Validate

Validate validates this patch project request data relationships owner

type PatchProjectRequestDataRelationshipsOwnerData

type PatchProjectRequestDataRelationshipsOwnerData struct {

	// The public ID of the user that owns the project
	// Example: 331ede0a-de94-456f-b788-166caeca58bf
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// type
	// Required: true
	// Enum: [user]
	Type interface{} `json:"type"`
}

PatchProjectRequestDataRelationshipsOwnerData patch project request data relationships owner data

swagger:model PatchProjectRequestDataRelationshipsOwnerData

func (*PatchProjectRequestDataRelationshipsOwnerData) ContextValidate

ContextValidate validates this patch project request data relationships owner data based on context it is used

func (*PatchProjectRequestDataRelationshipsOwnerData) MarshalBinary

MarshalBinary interface implementation

func (*PatchProjectRequestDataRelationshipsOwnerData) UnmarshalBinary

UnmarshalBinary interface implementation

func (*PatchProjectRequestDataRelationshipsOwnerData) Validate

Validate validates this patch project request data relationships owner data

type Platform

type Platform string

Platform platform Example: linux/amd64

swagger:model Platform

const (

	// PlatformAixPpc64 captures enum value "aix/ppc64"
	PlatformAixPpc64 Platform = "aix/ppc64"

	// PlatformAndroid386 captures enum value "android/386"
	PlatformAndroid386 Platform = "android/386"

	// PlatformAndroidAmd64 captures enum value "android/amd64"
	PlatformAndroidAmd64 Platform = "android/amd64"

	// PlatformAndroidArm captures enum value "android/arm"
	PlatformAndroidArm Platform = "android/arm"

	// PlatformAndroidArmV5 captures enum value "android/arm/v5"
	PlatformAndroidArmV5 Platform = "android/arm/v5"

	// PlatformAndroidArmV6 captures enum value "android/arm/v6"
	PlatformAndroidArmV6 Platform = "android/arm/v6"

	// PlatformAndroidArmV7 captures enum value "android/arm/v7"
	PlatformAndroidArmV7 Platform = "android/arm/v7"

	// PlatformAndroidArm64 captures enum value "android/arm64"
	PlatformAndroidArm64 Platform = "android/arm64"

	// PlatformAndroidArm64V8 captures enum value "android/arm64/v8"
	PlatformAndroidArm64V8 Platform = "android/arm64/v8"

	// PlatformDarwinAmd64 captures enum value "darwin/amd64"
	PlatformDarwinAmd64 Platform = "darwin/amd64"

	// PlatformDarwinArm captures enum value "darwin/arm"
	PlatformDarwinArm Platform = "darwin/arm"

	// PlatformDarwinArmV5 captures enum value "darwin/arm/v5"
	PlatformDarwinArmV5 Platform = "darwin/arm/v5"

	// PlatformDarwinArmV6 captures enum value "darwin/arm/v6"
	PlatformDarwinArmV6 Platform = "darwin/arm/v6"

	// PlatformDarwinArmV7 captures enum value "darwin/arm/v7"
	PlatformDarwinArmV7 Platform = "darwin/arm/v7"

	// PlatformDarwinArm64 captures enum value "darwin/arm64"
	PlatformDarwinArm64 Platform = "darwin/arm64"

	// PlatformDarwinArm64V8 captures enum value "darwin/arm64/v8"
	PlatformDarwinArm64V8 Platform = "darwin/arm64/v8"

	// PlatformDragonflyAmd64 captures enum value "dragonfly/amd64"
	PlatformDragonflyAmd64 Platform = "dragonfly/amd64"

	// PlatformFreebsd386 captures enum value "freebsd/386"
	PlatformFreebsd386 Platform = "freebsd/386"

	// PlatformFreebsdAmd64 captures enum value "freebsd/amd64"
	PlatformFreebsdAmd64 Platform = "freebsd/amd64"

	// PlatformFreebsdArm captures enum value "freebsd/arm"
	PlatformFreebsdArm Platform = "freebsd/arm"

	// PlatformFreebsdArmV5 captures enum value "freebsd/arm/v5"
	PlatformFreebsdArmV5 Platform = "freebsd/arm/v5"

	// PlatformFreebsdArmV6 captures enum value "freebsd/arm/v6"
	PlatformFreebsdArmV6 Platform = "freebsd/arm/v6"

	// PlatformFreebsdArmV7 captures enum value "freebsd/arm/v7"
	PlatformFreebsdArmV7 Platform = "freebsd/arm/v7"

	// PlatformIllumosAmd64 captures enum value "illumos/amd64"
	PlatformIllumosAmd64 Platform = "illumos/amd64"

	// PlatformIosArm64 captures enum value "ios/arm64"
	PlatformIosArm64 Platform = "ios/arm64"

	// PlatformIosArm64V8 captures enum value "ios/arm64/v8"
	PlatformIosArm64V8 Platform = "ios/arm64/v8"

	// PlatformJsWasm captures enum value "js/wasm"
	PlatformJsWasm Platform = "js/wasm"

	// PlatformLinux386 captures enum value "linux/386"
	PlatformLinux386 Platform = "linux/386"

	// PlatformLinuxAmd64 captures enum value "linux/amd64"
	PlatformLinuxAmd64 Platform = "linux/amd64"

	// PlatformLinuxArm captures enum value "linux/arm"
	PlatformLinuxArm Platform = "linux/arm"

	// PlatformLinuxArmV5 captures enum value "linux/arm/v5"
	PlatformLinuxArmV5 Platform = "linux/arm/v5"

	// PlatformLinuxArmV6 captures enum value "linux/arm/v6"
	PlatformLinuxArmV6 Platform = "linux/arm/v6"

	// PlatformLinuxArmV7 captures enum value "linux/arm/v7"
	PlatformLinuxArmV7 Platform = "linux/arm/v7"

	// PlatformLinuxArm64 captures enum value "linux/arm64"
	PlatformLinuxArm64 Platform = "linux/arm64"

	// PlatformLinuxArm64V8 captures enum value "linux/arm64/v8"
	PlatformLinuxArm64V8 Platform = "linux/arm64/v8"

	// PlatformLinuxLoong64 captures enum value "linux/loong64"
	PlatformLinuxLoong64 Platform = "linux/loong64"

	// PlatformLinuxMips captures enum value "linux/mips"
	PlatformLinuxMips Platform = "linux/mips"

	// PlatformLinuxMipsle captures enum value "linux/mipsle"
	PlatformLinuxMipsle Platform = "linux/mipsle"

	// PlatformLinuxMips64 captures enum value "linux/mips64"
	PlatformLinuxMips64 Platform = "linux/mips64"

	// PlatformLinuxMips64le captures enum value "linux/mips64le"
	PlatformLinuxMips64le Platform = "linux/mips64le"

	// PlatformLinuxPpc64 captures enum value "linux/ppc64"
	PlatformLinuxPpc64 Platform = "linux/ppc64"

	// PlatformLinuxPpc64le captures enum value "linux/ppc64le"
	PlatformLinuxPpc64le Platform = "linux/ppc64le"

	// PlatformLinuxRiscv64 captures enum value "linux/riscv64"
	PlatformLinuxRiscv64 Platform = "linux/riscv64"

	// PlatformLinuxS390x captures enum value "linux/s390x"
	PlatformLinuxS390x Platform = "linux/s390x"

	// PlatformLinuxX8664 captures enum value "linux/x86_64"
	PlatformLinuxX8664 Platform = "linux/x86_64"

	// PlatformNetbsd386 captures enum value "netbsd/386"
	PlatformNetbsd386 Platform = "netbsd/386"

	// PlatformNetbsdAmd64 captures enum value "netbsd/amd64"
	PlatformNetbsdAmd64 Platform = "netbsd/amd64"

	// PlatformNetbsdArm captures enum value "netbsd/arm"
	PlatformNetbsdArm Platform = "netbsd/arm"

	// PlatformNetbsdArmV5 captures enum value "netbsd/arm/v5"
	PlatformNetbsdArmV5 Platform = "netbsd/arm/v5"

	// PlatformNetbsdArmV6 captures enum value "netbsd/arm/v6"
	PlatformNetbsdArmV6 Platform = "netbsd/arm/v6"

	// PlatformNetbsdArmV7 captures enum value "netbsd/arm/v7"
	PlatformNetbsdArmV7 Platform = "netbsd/arm/v7"

	// PlatformOpenbsd386 captures enum value "openbsd/386"
	PlatformOpenbsd386 Platform = "openbsd/386"

	// PlatformOpenbsdAmd64 captures enum value "openbsd/amd64"
	PlatformOpenbsdAmd64 Platform = "openbsd/amd64"

	// PlatformOpenbsdArm captures enum value "openbsd/arm"
	PlatformOpenbsdArm Platform = "openbsd/arm"

	// PlatformOpenbsdArmV5 captures enum value "openbsd/arm/v5"
	PlatformOpenbsdArmV5 Platform = "openbsd/arm/v5"

	// PlatformOpenbsdArmV6 captures enum value "openbsd/arm/v6"
	PlatformOpenbsdArmV6 Platform = "openbsd/arm/v6"

	// PlatformOpenbsdArmV7 captures enum value "openbsd/arm/v7"
	PlatformOpenbsdArmV7 Platform = "openbsd/arm/v7"

	// PlatformOpenbsdArm64 captures enum value "openbsd/arm64"
	PlatformOpenbsdArm64 Platform = "openbsd/arm64"

	// PlatformOpenbsdArm64V8 captures enum value "openbsd/arm64/v8"
	PlatformOpenbsdArm64V8 Platform = "openbsd/arm64/v8"

	// PlatformPlan9386 captures enum value "plan9/386"
	PlatformPlan9386 Platform = "plan9/386"

	// PlatformPlan9Amd64 captures enum value "plan9/amd64"
	PlatformPlan9Amd64 Platform = "plan9/amd64"

	// PlatformPlan9Arm captures enum value "plan9/arm"
	PlatformPlan9Arm Platform = "plan9/arm"

	// PlatformPlan9ArmV5 captures enum value "plan9/arm/v5"
	PlatformPlan9ArmV5 Platform = "plan9/arm/v5"

	// PlatformPlan9ArmV6 captures enum value "plan9/arm/v6"
	PlatformPlan9ArmV6 Platform = "plan9/arm/v6"

	// PlatformPlan9ArmV7 captures enum value "plan9/arm/v7"
	PlatformPlan9ArmV7 Platform = "plan9/arm/v7"

	// PlatformSolarisAmd64 captures enum value "solaris/amd64"
	PlatformSolarisAmd64 Platform = "solaris/amd64"

	// PlatformWindows386 captures enum value "windows/386"
	PlatformWindows386 Platform = "windows/386"

	// PlatformWindowsAmd64 captures enum value "windows/amd64"
	PlatformWindowsAmd64 Platform = "windows/amd64"

	// PlatformWindowsArm captures enum value "windows/arm"
	PlatformWindowsArm Platform = "windows/arm"

	// PlatformWindowsArmV5 captures enum value "windows/arm/v5"
	PlatformWindowsArmV5 Platform = "windows/arm/v5"

	// PlatformWindowsArmV6 captures enum value "windows/arm/v6"
	PlatformWindowsArmV6 Platform = "windows/arm/v6"

	// PlatformWindowsArmV7 captures enum value "windows/arm/v7"
	PlatformWindowsArmV7 Platform = "windows/arm/v7"

	// PlatformWindowsArm64 captures enum value "windows/arm64"
	PlatformWindowsArm64 Platform = "windows/arm64"

	// PlatformWindowsArm64V8 captures enum value "windows/arm64/v8"
	PlatformWindowsArm64V8 Platform = "windows/arm64/v8"
)

func NewPlatform

func NewPlatform(value Platform) *Platform

func (Platform) ContextValidate

func (m Platform) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this platform based on context it is used

func (Platform) Pointer

func (m Platform) Pointer() *Platform

Pointer returns a pointer to a freshly-allocated Platform.

func (Platform) Validate

func (m Platform) Validate(formats strfmt.Registry) error

Validate validates this platform

type Problem

type Problem struct {

	// When this problem was disclosed to the public.
	// Format: date-time
	DisclosedAt strfmt.DateTime `json:"disclosed_at,omitempty"`

	// When this problem was first discovered.
	// Format: date-time
	DiscoveredAt strfmt.DateTime `json:"discovered_at,omitempty"`

	// id
	// Required: true
	// Max Length: 1024
	// Min Length: 1
	ID *string `json:"id"`

	// source
	// Example: CVE
	// Required: true
	// Max Length: 64
	// Min Length: 1
	Source *string `json:"source"`

	// type
	// Required: true
	Type *ProblemTypeDef `json:"type"`

	// When this problem was last updated.
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`

	// An optional URL for this problem.
	// Max Length: 4096
	// Min Length: 1
	// Format: uri
	URL strfmt.URI `json:"url,omitempty"`
}

Problem problem Example: {"id":"SNYK-DEBIAN8-CURL-358558","source":"snyk","type":"rule"}

swagger:model Problem

func (*Problem) ContextValidate

func (m *Problem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this problem based on the context it is used

func (*Problem) MarshalBinary

func (m *Problem) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Problem) UnmarshalBinary

func (m *Problem) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Problem) Validate

func (m *Problem) Validate(formats strfmt.Registry) error

Validate validates this problem

type ProblemTypeDef

type ProblemTypeDef string

ProblemTypeDef problem type def

swagger:model ProblemTypeDef

const (

	// ProblemTypeDefRule captures enum value "rule"
	ProblemTypeDefRule ProblemTypeDef = "rule"

	// ProblemTypeDefVulnerability captures enum value "vulnerability"
	ProblemTypeDefVulnerability ProblemTypeDef = "vulnerability"
)

func NewProblemTypeDef

func NewProblemTypeDef(value ProblemTypeDef) *ProblemTypeDef

func (ProblemTypeDef) ContextValidate

func (m ProblemTypeDef) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this problem type def based on context it is used

func (ProblemTypeDef) Pointer

func (m ProblemTypeDef) Pointer() *ProblemTypeDef

Pointer returns a pointer to a freshly-allocated ProblemTypeDef.

func (ProblemTypeDef) Validate

func (m ProblemTypeDef) Validate(formats strfmt.Registry) error

Validate validates this problem type def

type ProjectAttributes

type ProjectAttributes struct {

	// build args
	BuildArgs interface{} `json:"build_args,omitempty"`

	// business criticality
	// Example: ["medium"]
	BusinessCriticality []string `json:"business_criticality"`

	// The date that the project was created on
	// Example: 2021-05-29T09:50:54.014Z
	// Required: true
	// Format: date-time
	Created *strfmt.DateTime `json:"created"`

	// environment
	// Example: ["external","hosted"]
	Environment []string `json:"environment"`

	// lifecycle
	// Example: ["production"]
	Lifecycle []string `json:"lifecycle"`

	// Project name.
	// Example: snyk/goof
	// Required: true
	Name *string `json:"name"`

	// The origin the project was added from.
	// Example: github
	// Required: true
	Origin *string `json:"origin"`

	// Whether the project is read-only
	// Required: true
	ReadOnly *bool `json:"read_only"`

	// settings
	// Required: true
	Settings *ProjectSettings `json:"settings"`

	// Describes if a project is currently monitored or it is de-activated.
	// Example: active
	// Required: true
	// Enum: [active inactive]
	Status *string `json:"status"`

	// tags
	// Example: [{"key":"tag-key","value":"tag-value"}]
	Tags []*ProjectAttributesTagsItems0 `json:"tags"`

	// Path within the target to identify a specific file/directory/image etc. when scanning just part  of the target, and not the entity.
	// Example: package.json
	// Required: true
	TargetFile *string `json:"target_file"`

	// The additional information required to resolve which revision of the resource should be scanned.
	// Example: main
	// Required: true
	TargetReference *string `json:"target_reference"`

	// Dotnet Target, for relevant projects
	TargetRuntime string `json:"target_runtime,omitempty"`

	// The package manager of the project.
	// Example: maven
	// Required: true
	Type *string `json:"type"`
}

ProjectAttributes project attributes

swagger:model ProjectAttributes

func (*ProjectAttributes) ContextValidate

func (m *ProjectAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this project attributes based on the context it is used

func (*ProjectAttributes) MarshalBinary

func (m *ProjectAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProjectAttributes) UnmarshalBinary

func (m *ProjectAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProjectAttributes) Validate

func (m *ProjectAttributes) Validate(formats strfmt.Registry) error

Validate validates this project attributes

type ProjectAttributesTagsItems0

type ProjectAttributesTagsItems0 struct {

	// key
	// Example: tag-key
	Key string `json:"key,omitempty"`

	// value
	// Example: tag-value
	Value string `json:"value,omitempty"`
}

ProjectAttributesTagsItems0 project attributes tags items0

swagger:model ProjectAttributesTagsItems0

func (*ProjectAttributesTagsItems0) ContextValidate

func (m *ProjectAttributesTagsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this project attributes tags items0 based on context it is used

func (*ProjectAttributesTagsItems0) MarshalBinary

func (m *ProjectAttributesTagsItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProjectAttributesTagsItems0) UnmarshalBinary

func (m *ProjectAttributesTagsItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProjectAttributesTagsItems0) Validate

func (m *ProjectAttributesTagsItems0) Validate(formats strfmt.Registry) error

Validate validates this project attributes tags items0

type ProjectMeta

type ProjectMeta struct {

	// The time the project was imported
	// Example: 2021-05-29T09:50:54.014Z
	// Required: true
	// Format: date-time
	Imported *strfmt.DateTime `json:"imported"`

	// The sum of critical severity issues of the project
	// Example: 10
	// Required: true
	IssuesCriticalCount *float64 `json:"issues_critical_count"`

	// The sum of high severity issues of the project
	// Example: 10
	// Required: true
	IssuesHighCount *float64 `json:"issues_high_count"`

	// The sum of low severity issues of the project
	// Example: 10
	// Required: true
	IssuesLowCount *float64 `json:"issues_low_count"`

	// The sum of medium severity issues of the project
	// Example: 10
	// Required: true
	IssuesMediumCount *float64 `json:"issues_medium_count"`

	// The time the project was last tested
	// Example: 2021-05-29T09:50:54.014Z
	// Required: true
	// Format: date-time
	LastTestedAt *strfmt.DateTime `json:"last_tested_at"`
}

ProjectMeta project meta

swagger:model ProjectMeta

func (*ProjectMeta) ContextValidate

func (m *ProjectMeta) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this project meta based on context it is used

func (*ProjectMeta) MarshalBinary

func (m *ProjectMeta) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProjectMeta) UnmarshalBinary

func (m *ProjectMeta) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProjectMeta) Validate

func (m *ProjectMeta) Validate(formats strfmt.Registry) error

Validate validates this project meta

type ProjectOfCollection

type ProjectOfCollection struct {

	// id
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// meta
	// Required: true
	Meta *ProjectMeta `json:"meta"`

	// relationships
	// Required: true
	Relationships *ProjectOfCollectionRelationships `json:"relationships"`

	// type
	// Required: true
	Type *Types `json:"type"`
}

ProjectOfCollection project of collection

swagger:model ProjectOfCollection

func (*ProjectOfCollection) ContextValidate

func (m *ProjectOfCollection) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this project of collection based on the context it is used

func (*ProjectOfCollection) MarshalBinary

func (m *ProjectOfCollection) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProjectOfCollection) UnmarshalBinary

func (m *ProjectOfCollection) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProjectOfCollection) Validate

func (m *ProjectOfCollection) Validate(formats strfmt.Registry) error

Validate validates this project of collection

type ProjectOfCollectionRelationships

type ProjectOfCollectionRelationships struct {

	// target
	// Required: true
	Target *ProjectOfCollectionRelationshipsTarget `json:"target"`
}

ProjectOfCollectionRelationships project of collection relationships

swagger:model ProjectOfCollectionRelationships

func (*ProjectOfCollectionRelationships) ContextValidate

func (m *ProjectOfCollectionRelationships) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this project of collection relationships based on the context it is used

func (*ProjectOfCollectionRelationships) MarshalBinary

func (m *ProjectOfCollectionRelationships) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProjectOfCollectionRelationships) UnmarshalBinary

func (m *ProjectOfCollectionRelationships) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProjectOfCollectionRelationships) Validate

Validate validates this project of collection relationships

type ProjectOfCollectionRelationshipsTarget

type ProjectOfCollectionRelationshipsTarget struct {

	// data
	// Required: true
	Data *ProjectOfCollectionRelationshipsTargetData `json:"data"`
}

ProjectOfCollectionRelationshipsTarget project of collection relationships target

swagger:model ProjectOfCollectionRelationshipsTarget

func (*ProjectOfCollectionRelationshipsTarget) ContextValidate

ContextValidate validate this project of collection relationships target based on the context it is used

func (*ProjectOfCollectionRelationshipsTarget) MarshalBinary

func (m *ProjectOfCollectionRelationshipsTarget) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProjectOfCollectionRelationshipsTarget) UnmarshalBinary

func (m *ProjectOfCollectionRelationshipsTarget) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProjectOfCollectionRelationshipsTarget) Validate

Validate validates this project of collection relationships target

type ProjectOfCollectionRelationshipsTargetData

type ProjectOfCollectionRelationshipsTargetData struct {

	// ID of the target that owns the project
	// Example: 331ede0a-de94-456f-b788-166caeca58bf
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// type
	// Required: true
	// Enum: [target]
	Type interface{} `json:"type"`
}

ProjectOfCollectionRelationshipsTargetData project of collection relationships target data

swagger:model ProjectOfCollectionRelationshipsTargetData

func (*ProjectOfCollectionRelationshipsTargetData) ContextValidate

ContextValidate validates this project of collection relationships target data based on context it is used

func (*ProjectOfCollectionRelationshipsTargetData) MarshalBinary

func (m *ProjectOfCollectionRelationshipsTargetData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProjectOfCollectionRelationshipsTargetData) UnmarshalBinary

func (m *ProjectOfCollectionRelationshipsTargetData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProjectOfCollectionRelationshipsTargetData) Validate

Validate validates this project of collection relationships target data

type ProjectRelationships

type ProjectRelationships struct {

	// importer
	Importer *Relationship `json:"importer,omitempty"`

	// organization
	// Required: true
	Organization *Relationship `json:"organization"`

	// owner
	Owner *Relationship `json:"owner,omitempty"`

	// target
	// Required: true
	Target interface{} `json:"target"`
}

ProjectRelationships project relationships

swagger:model ProjectRelationships

func (*ProjectRelationships) ContextValidate

func (m *ProjectRelationships) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this project relationships based on the context it is used

func (*ProjectRelationships) MarshalBinary

func (m *ProjectRelationships) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProjectRelationships) UnmarshalBinary

func (m *ProjectRelationships) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProjectRelationships) Validate

func (m *ProjectRelationships) Validate(formats strfmt.Registry) error

Validate validates this project relationships

type ProjectRelationshipsTarget

type ProjectRelationshipsTarget struct {

	// data
	// Required: true
	Data *ProjectRelationshipsTargetData `json:"data"`

	// links
	// Required: true
	Links *RelatedLink `json:"links"`
}

ProjectRelationshipsTarget project relationships target

swagger:model ProjectRelationshipsTarget

func (*ProjectRelationshipsTarget) ContextValidate

func (m *ProjectRelationshipsTarget) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this project relationships target based on the context it is used

func (*ProjectRelationshipsTarget) MarshalBinary

func (m *ProjectRelationshipsTarget) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProjectRelationshipsTarget) UnmarshalBinary

func (m *ProjectRelationshipsTarget) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProjectRelationshipsTarget) Validate

func (m *ProjectRelationshipsTarget) Validate(formats strfmt.Registry) error

Validate validates this project relationships target

type ProjectRelationshipsTargetData

type ProjectRelationshipsTargetData struct {

	// attributes
	// Required: true
	Attributes *ProjectRelationshipsTargetDataAttributes `json:"attributes"`

	// The Resource ID.
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// meta
	Meta *ProjectRelationshipsTargetDataMeta `json:"meta,omitempty"`

	// The Resource type.
	// Example: target
	// Required: true
	Type *string `json:"type"`
}

ProjectRelationshipsTargetData project relationships target data

swagger:model ProjectRelationshipsTargetData

func (*ProjectRelationshipsTargetData) ContextValidate

func (m *ProjectRelationshipsTargetData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this project relationships target data based on the context it is used

func (*ProjectRelationshipsTargetData) MarshalBinary

func (m *ProjectRelationshipsTargetData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProjectRelationshipsTargetData) UnmarshalBinary

func (m *ProjectRelationshipsTargetData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProjectRelationshipsTargetData) Validate

func (m *ProjectRelationshipsTargetData) Validate(formats strfmt.Registry) error

Validate validates this project relationships target data

type ProjectRelationshipsTargetDataAttributes

type ProjectRelationshipsTargetDataAttributes struct {

	// The human readable name that represents this target. These are generated based on the provided properties, and the source. In the future we may support updating this value.
	//
	// Example: snyk-fixtures/goof
	DisplayName string `json:"display_name,omitempty"`

	// The URL for the resource. We do not use this as part of our representation of the identity of the target, as it can      be changed externally to Snyk We are reliant on individual integrations providing us with this value. Currently it is only provided by the CLI
	//
	// Example: http://github.com/snyk/local-goof
	URL *string `json:"url,omitempty"`
}

ProjectRelationshipsTargetDataAttributes project relationships target data attributes

swagger:model ProjectRelationshipsTargetDataAttributes

func (*ProjectRelationshipsTargetDataAttributes) ContextValidate

ContextValidate validates this project relationships target data attributes based on context it is used

func (*ProjectRelationshipsTargetDataAttributes) MarshalBinary

func (m *ProjectRelationshipsTargetDataAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProjectRelationshipsTargetDataAttributes) UnmarshalBinary

func (m *ProjectRelationshipsTargetDataAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProjectRelationshipsTargetDataAttributes) Validate

Validate validates this project relationships target data attributes

type ProjectRelationshipsTargetDataMeta

type ProjectRelationshipsTargetDataMeta struct {

	// A collection of properties regarding integration data
	IntegrationData interface{} `json:"integration_data,omitempty"`
}

ProjectRelationshipsTargetDataMeta project relationships target data meta

swagger:model ProjectRelationshipsTargetDataMeta

func (*ProjectRelationshipsTargetDataMeta) ContextValidate

func (m *ProjectRelationshipsTargetDataMeta) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this project relationships target data meta based on context it is used

func (*ProjectRelationshipsTargetDataMeta) MarshalBinary

func (m *ProjectRelationshipsTargetDataMeta) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProjectRelationshipsTargetDataMeta) UnmarshalBinary

func (m *ProjectRelationshipsTargetDataMeta) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProjectRelationshipsTargetDataMeta) Validate

Validate validates this project relationships target data meta

type ProjectSettings

type ProjectSettings struct {

	// auto dependency upgrade
	AutoDependencyUpgrade *AutoDependencyUpgradeSettings `json:"auto_dependency_upgrade,omitempty"`

	// auto remediation prs
	AutoRemediationPrs *AutoRemediationPRsSettings `json:"auto_remediation_prs,omitempty"`

	// manual remediation prs
	ManualRemediationPrs *ManualRemediationPRsSettings `json:"manual_remediation_prs,omitempty"`

	// pull request assignment
	PullRequestAssignment *PullRequestAssignmentSettings `json:"pull_request_assignment,omitempty"`

	// pull requests
	// Required: true
	PullRequests *PullRequestsSettings `json:"pull_requests"`

	// recurring tests
	// Required: true
	RecurringTests *RecurringTestsSettings `json:"recurring_tests"`
}

ProjectSettings project settings

swagger:model ProjectSettings

func (*ProjectSettings) ContextValidate

func (m *ProjectSettings) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this project settings based on the context it is used

func (*ProjectSettings) MarshalBinary

func (m *ProjectSettings) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProjectSettings) UnmarshalBinary

func (m *ProjectSettings) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProjectSettings) Validate

func (m *ProjectSettings) Validate(formats strfmt.Registry) error

Validate validates this project settings

type ProjectSettingsData

type ProjectSettingsData struct {

	// attributes
	Attributes *ProjectSettingsDataAttributes `json:"attributes,omitempty"`

	// id
	// Format: uuid
	ID UUID `json:"id,omitempty"`

	// type
	// Example: slack
	Type string `json:"type,omitempty"`
}

ProjectSettingsData project settings data

swagger:model ProjectSettingsData

func (*ProjectSettingsData) ContextValidate

func (m *ProjectSettingsData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this project settings data based on the context it is used

func (*ProjectSettingsData) MarshalBinary

func (m *ProjectSettingsData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProjectSettingsData) UnmarshalBinary

func (m *ProjectSettingsData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProjectSettingsData) Validate

func (m *ProjectSettingsData) Validate(formats strfmt.Registry) error

Validate validates this project settings data

type ProjectSettingsDataAttributes

type ProjectSettingsDataAttributes struct {

	// is active
	// Required: true
	IsActive *IsActive `json:"is_active"`

	// severity threshold
	// Required: true
	SeverityThreshold *SeverityThreshold `json:"severity_threshold"`

	// target channel id
	// Required: true
	// Format: uri
	TargetChannelID *TargetChannelID `json:"target_channel_id"`

	// target channel name
	// Required: true
	TargetChannelName *TargetChannelName `json:"target_channel_name"`

	// The target file name for the project.
	// Example: snyk/goof:package.json
	// Required: true
	TargetProjectName *string `json:"target_project_name"`
}

ProjectSettingsDataAttributes project settings data attributes

swagger:model ProjectSettingsDataAttributes

func (*ProjectSettingsDataAttributes) ContextValidate

func (m *ProjectSettingsDataAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this project settings data attributes based on the context it is used

func (*ProjectSettingsDataAttributes) MarshalBinary

func (m *ProjectSettingsDataAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProjectSettingsDataAttributes) UnmarshalBinary

func (m *ProjectSettingsDataAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProjectSettingsDataAttributes) Validate

func (m *ProjectSettingsDataAttributes) Validate(formats strfmt.Registry) error

Validate validates this project settings data attributes

type ProjectSettingsPatchRequest

type ProjectSettingsPatchRequest struct {

	// data
	Data *ProjectSettingsPatchRequestData `json:"data,omitempty"`
}

ProjectSettingsPatchRequest project settings patch request

swagger:model ProjectSettingsPatchRequest

func (*ProjectSettingsPatchRequest) ContextValidate

func (m *ProjectSettingsPatchRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this project settings patch request based on the context it is used

func (*ProjectSettingsPatchRequest) MarshalBinary

func (m *ProjectSettingsPatchRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProjectSettingsPatchRequest) UnmarshalBinary

func (m *ProjectSettingsPatchRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProjectSettingsPatchRequest) Validate

func (m *ProjectSettingsPatchRequest) Validate(formats strfmt.Registry) error

Validate validates this project settings patch request

type ProjectSettingsPatchRequestData

type ProjectSettingsPatchRequestData struct {

	// attributes
	// Required: true
	Attributes *ProjectSettingsPatchRequestDataAttributes `json:"attributes"`

	// id
	// Required: true
	// Format: uuid
	ID *UUID `json:"id"`

	// type
	// Required: true
	// Enum: [slack]
	Type *string `json:"type"`
}

ProjectSettingsPatchRequestData project settings patch request data

swagger:model ProjectSettingsPatchRequestData

func (*ProjectSettingsPatchRequestData) ContextValidate

func (m *ProjectSettingsPatchRequestData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this project settings patch request data based on the context it is used

func (*ProjectSettingsPatchRequestData) MarshalBinary

func (m *ProjectSettingsPatchRequestData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProjectSettingsPatchRequestData) UnmarshalBinary

func (m *ProjectSettingsPatchRequestData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProjectSettingsPatchRequestData) Validate

Validate validates this project settings patch request data

type ProjectSettingsPatchRequestDataAttributes

type ProjectSettingsPatchRequestDataAttributes struct {

	// is active
	IsActive IsActive `json:"is_active,omitempty"`

	// severity threshold
	SeverityThreshold SeverityThreshold `json:"severity_threshold,omitempty"`

	// target channel id
	// Format: uri
	TargetChannelID TargetChannelID `json:"target_channel_id,omitempty"`
}

ProjectSettingsPatchRequestDataAttributes project settings patch request data attributes

Min Properties: 1

swagger:model ProjectSettingsPatchRequestDataAttributes

func (*ProjectSettingsPatchRequestDataAttributes) ContextValidate

ContextValidate validate this project settings patch request data attributes based on the context it is used

func (*ProjectSettingsPatchRequestDataAttributes) MarshalBinary

func (m *ProjectSettingsPatchRequestDataAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProjectSettingsPatchRequestDataAttributes) UnmarshalBinary

func (m *ProjectSettingsPatchRequestDataAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProjectSettingsPatchRequestDataAttributes) Validate

Validate validates this project settings patch request data attributes

type PublicApp

type PublicApp struct {

	// attributes
	Attributes *PublicAppAttributes `json:"attributes,omitempty"`

	// id
	// Required: true
	// Format: uuid
	ID *ID `json:"id"`

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

	// type
	// Required: true
	Type *Type `json:"type"`
}

PublicApp public app

swagger:model PublicApp

func (*PublicApp) ContextValidate

func (m *PublicApp) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this public app based on the context it is used

func (*PublicApp) MarshalBinary

func (m *PublicApp) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PublicApp) UnmarshalBinary

func (m *PublicApp) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PublicApp) Validate

func (m *PublicApp) Validate(formats strfmt.Registry) error

Validate validates this public app

type PublicAppAttributes

type PublicAppAttributes struct {

	// client id
	// Required: true
	// Format: uuid
	ClientID *ClientID `json:"client_id"`

	// context
	Context Context `json:"context,omitempty"`

	// name
	// Required: true
	Name *AppName `json:"name"`

	// scopes
	Scopes Scopes `json:"scopes,omitempty"`
}

PublicAppAttributes public app attributes

swagger:model PublicAppAttributes

func (*PublicAppAttributes) ContextValidate

func (m *PublicAppAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this public app attributes based on the context it is used

func (*PublicAppAttributes) MarshalBinary

func (m *PublicAppAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PublicAppAttributes) UnmarshalBinary

func (m *PublicAppAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PublicAppAttributes) Validate

func (m *PublicAppAttributes) Validate(formats strfmt.Registry) error

Validate validates this public app attributes

type PublicAppData

type PublicAppData struct {

	// attributes
	Attributes *PublicAppDataAttributes `json:"attributes,omitempty"`

	// id
	// Required: true
	// Format: uuid
	ID *UUID `json:"id"`

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

	// type
	// Required: true
	Type *Type `json:"type"`
}

PublicAppData public app data

swagger:model PublicAppData

func (*PublicAppData) ContextValidate

func (m *PublicAppData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this public app data based on the context it is used

func (*PublicAppData) MarshalBinary

func (m *PublicAppData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PublicAppData) UnmarshalBinary

func (m *PublicAppData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PublicAppData) Validate

func (m *PublicAppData) Validate(formats strfmt.Registry) error

Validate validates this public app data

type PublicAppDataAttributes

type PublicAppDataAttributes struct {

	// client id
	// Required: true
	// Format: uuid
	ClientID *strfmt.UUID `json:"client_id"`

	// Allow installing the app to a org/group or to a user, default tenant.
	// Enum: [tenant user]
	Context string `json:"context,omitempty"`

	// New name of the app to display to users during authorization flow.
	// Example: My App
	// Required: true
	// Min Length: 1
	Name *string `json:"name"`

	// The scopes this app is allowed to request during authorization.
	// Min Items: 1
	Scopes []string `json:"scopes"`
}

PublicAppDataAttributes public app data attributes

swagger:model PublicAppDataAttributes

func (*PublicAppDataAttributes) ContextValidate

func (m *PublicAppDataAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this public app data attributes based on context it is used

func (*PublicAppDataAttributes) MarshalBinary

func (m *PublicAppDataAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PublicAppDataAttributes) UnmarshalBinary

func (m *PublicAppDataAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PublicAppDataAttributes) Validate

func (m *PublicAppDataAttributes) Validate(formats strfmt.Registry) error

Validate validates this public app data attributes

type PublicFacingRiskFactor

type PublicFacingRiskFactor struct {

	// included in score
	IncludedInScore *bool `json:"included_in_score,omitempty"`

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

	// name
	// Required: true
	Name *string `json:"name"`

	// updated at
	// Required: true
	// Format: date-time
	UpdatedAt *strfmt.DateTime `json:"updated_at"`

	// value
	// Required: true
	Value *bool `json:"value"`
}

PublicFacingRiskFactor public facing risk factor

swagger:model PublicFacingRiskFactor

func (*PublicFacingRiskFactor) ContextValidate

func (m *PublicFacingRiskFactor) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this public facing risk factor based on the context it is used

func (*PublicFacingRiskFactor) MarshalBinary

func (m *PublicFacingRiskFactor) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PublicFacingRiskFactor) UnmarshalBinary

func (m *PublicFacingRiskFactor) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PublicFacingRiskFactor) Validate

func (m *PublicFacingRiskFactor) Validate(formats strfmt.Registry) error

Validate validates this public facing risk factor

type PullRequestAssignmentSettings

type PullRequestAssignmentSettings struct {

	// Manually specify users to assign (and all will be assigned).
	// Example: ["my-github-username"]
	Assignees []string `json:"assignees"`

	// Automatically assign pull requests created by Snyk.
	// Example: true
	IsEnabled bool `json:"is_enabled,omitempty"`

	// Automatically assign the last user to change the manifest file ("auto"), or manually specify a list of users ("manual").
	// Example: auto
	// Enum: [auto manual]
	Type string `json:"type,omitempty"`
}

PullRequestAssignmentSettings Automatically assign pull requests created by Snyk (limited to private repos). If not specified, settings will be inherited from the Project's integration.

swagger:model PullRequestAssignmentSettings

func (*PullRequestAssignmentSettings) ContextValidate

func (m *PullRequestAssignmentSettings) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this pull request assignment settings based on context it is used

func (*PullRequestAssignmentSettings) MarshalBinary

func (m *PullRequestAssignmentSettings) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PullRequestAssignmentSettings) UnmarshalBinary

func (m *PullRequestAssignmentSettings) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PullRequestAssignmentSettings) Validate

func (m *PullRequestAssignmentSettings) Validate(formats strfmt.Registry) error

Validate validates this pull request assignment settings

type PullRequestsSettings

type PullRequestsSettings struct {

	// Only fail when the issues found have a fix available.
	// Example: true
	FailOnlyForIssuesWithFix bool `json:"fail_only_for_issues_with_fix,omitempty"`

	// Fail if the project has any issues ("all"), or fail if a PR is introducing a new dependency with issues ("only_new"). If this value is unset, the setting is inherited from the org default.
	// Example: all
	// Enum: [all only_new]
	Policy string `json:"policy,omitempty"`

	// Only fail for issues greater than or equal to the specified severity. If this value is unset, the setting is inherited from the org default.
	// Example: high
	// Enum: [low medium high critical]
	SeverityThreshold string `json:"severity_threshold,omitempty"`
}

PullRequestsSettings Settings which describe how pull requests for a project are tested.

swagger:model PullRequestsSettings

func (*PullRequestsSettings) ContextValidate

func (m *PullRequestsSettings) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this pull requests settings based on context it is used

func (*PullRequestsSettings) MarshalBinary

func (m *PullRequestsSettings) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PullRequestsSettings) UnmarshalBinary

func (m *PullRequestsSettings) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PullRequestsSettings) Validate

func (m *PullRequestsSettings) Validate(formats strfmt.Registry) error

Validate validates this pull requests settings

type QueryVersion

type QueryVersion string

QueryVersion Requested API version

swagger:model QueryVersion

func (QueryVersion) ContextValidate

func (m QueryVersion) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this query version based on context it is used

func (QueryVersion) Validate

func (m QueryVersion) Validate(formats strfmt.Registry) error

Validate validates this query version

type RecurringTestsSettings

type RecurringTestsSettings struct {

	// Test frequency of a project. Also controls when automated PRs may be created.
	// Example: daily
	// Enum: [daily weekly never]
	Frequency string `json:"frequency,omitempty"`
}

RecurringTestsSettings Settings which describe how recurring tests are run for a project.

swagger:model RecurringTestsSettings

func (*RecurringTestsSettings) ContextValidate

func (m *RecurringTestsSettings) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this recurring tests settings based on context it is used

func (*RecurringTestsSettings) MarshalBinary

func (m *RecurringTestsSettings) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RecurringTestsSettings) UnmarshalBinary

func (m *RecurringTestsSettings) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RecurringTestsSettings) Validate

func (m *RecurringTestsSettings) Validate(formats strfmt.Registry) error

Validate validates this recurring tests settings

type RedirectUris

type RedirectUris []strfmt.URI

RedirectUris List of allowed redirect URIs to call back after authentication. Example: ["https://example.com/callback"]

swagger:model RedirectUris

func (RedirectUris) ContextValidate

func (m RedirectUris) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this redirect uris based on context it is used

func (RedirectUris) Validate

func (m RedirectUris) Validate(formats strfmt.Registry) error

Validate validates this redirect uris

type RedirectUrisNoMin

type RedirectUrisNoMin []strfmt.URI

RedirectUrisNoMin List of allowed redirect URIs to call back after authentication. Example: ["https://example.com/callback"]

swagger:model RedirectUrisNoMin

func (RedirectUrisNoMin) ContextValidate

func (m RedirectUrisNoMin) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this redirect uris no min based on context it is used

func (RedirectUrisNoMin) Validate

func (m RedirectUrisNoMin) Validate(formats strfmt.Registry) error

Validate validates this redirect uris no min

type Region

type Region struct {

	// end
	// Required: true
	End *FilePosition `json:"end"`

	// start
	// Required: true
	Start *FilePosition `json:"start"`
}

Region region

swagger:model Region

func (*Region) ContextValidate

func (m *Region) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this region based on the context it is used

func (*Region) MarshalBinary

func (m *Region) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Region) UnmarshalBinary

func (m *Region) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Region) Validate

func (m *Region) Validate(formats strfmt.Registry) error

Validate validates this region

type RelatedLink struct {

	// related
	Related LinkProperty `json:"related,omitempty"`
}

RelatedLink related link Example: {"related":"https://example.com/api/other_resource"}

swagger:model RelatedLink

func (*RelatedLink) ContextValidate

func (m *RelatedLink) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this related link based on context it is used

func (*RelatedLink) MarshalBinary

func (m *RelatedLink) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RelatedLink) UnmarshalBinary

func (m *RelatedLink) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RelatedLink) Validate

func (m *RelatedLink) Validate(formats strfmt.Registry) error

Validate validates this related link

type Relationship

type Relationship struct {

	// data
	// Required: true
	Data *RelationshipData `json:"data"`

	// links
	// Required: true
	Links *RelatedLink `json:"links"`

	// meta
	Meta Meta `json:"meta,omitempty"`
}

Relationship relationship Example: {"data":{"id":"4a72d1db-b465-4764-99e1-ecedad03b06a","type":"resource"},"links":{"related":{"href":"https://example.com/api/resource/4a72d1db-b465-4764-99e1-ecedad03b06a"}}}

swagger:model Relationship

func (*Relationship) ContextValidate

func (m *Relationship) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this relationship based on the context it is used

func (*Relationship) MarshalBinary

func (m *Relationship) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Relationship) UnmarshalBinary

func (m *Relationship) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Relationship) Validate

func (m *Relationship) Validate(formats strfmt.Registry) error

Validate validates this relationship

type RelationshipData

type RelationshipData struct {

	// id
	// Example: 4a72d1db-b465-4764-99e1-ecedad03b06a
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// Type of the related resource
	// Example: resource
	// Required: true
	// Pattern: ^[a-z][a-z0-9]*(_[a-z][a-z0-9]*)*$
	Type *string `json:"type"`
}

RelationshipData relationship data

swagger:model RelationshipData

func (*RelationshipData) ContextValidate

func (m *RelationshipData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this relationship data based on context it is used

func (*RelationshipData) MarshalBinary

func (m *RelationshipData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RelationshipData) UnmarshalBinary

func (m *RelationshipData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RelationshipData) Validate

func (m *RelationshipData) Validate(formats strfmt.Registry) error

Validate validates this relationship data

type Remedy

type Remedy struct {

	// An optional identifier for correlating remedies between coordinates or across issues. They are scoped
	// to a single Project and test run. Remedies with the same correlation_id must have the same contents.
	//
	// Max Length: 256
	// Min Length: 1
	CorrelationID string `json:"correlation_id,omitempty"`

	// A markdown-formatted optional description of this remedy. Links are not permitted.
	// Max Length: 4096
	// Min Length: 1
	Description string `json:"description,omitempty"`

	// meta
	Meta *RemedyMetadata `json:"meta,omitempty"`

	// type
	// Required: true
	// Enum: [indeterminate manual automated rule_result_message terraform cloudformation cli kubernetes arm]
	Type *string `json:"type"`
}

Remedy remedy

swagger:model Remedy

func (*Remedy) ContextValidate

func (m *Remedy) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this remedy based on the context it is used

func (*Remedy) MarshalBinary

func (m *Remedy) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Remedy) UnmarshalBinary

func (m *Remedy) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Remedy) Validate

func (m *Remedy) Validate(formats strfmt.Registry) error

Validate validates this remedy

type RemedyMetadata

type RemedyMetadata struct {

	// Metadata information related to apply a remedy. Limited in size to 100Kb when JSON serialized.
	// Required: true
	Data interface{} `json:"data"`

	// A schema version identifier the metadata object validates against. Note: this information is
	// only relevant in the domain of the API consumer: the issues system always considers metadata
	// just as an arbitrary object.
	//
	// Required: true
	// Max Length: 256
	// Min Length: 1
	SchemaVersion *string `json:"schema_version"`
}

RemedyMetadata remedy metadata

swagger:model RemedyMetadata

func (*RemedyMetadata) ContextValidate

func (m *RemedyMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this remedy metadata based on context it is used

func (*RemedyMetadata) MarshalBinary

func (m *RemedyMetadata) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RemedyMetadata) UnmarshalBinary

func (m *RemedyMetadata) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RemedyMetadata) Validate

func (m *RemedyMetadata) Validate(formats strfmt.Registry) error

Validate validates this remedy metadata

type Resolution

type Resolution struct {

	// Optional details about the resolution. Used by Snyk Cloud so far.
	Details string `json:"details,omitempty"`

	// The time when this issue was resolved.
	// Required: true
	// Format: date-time
	ResolvedAt *strfmt.DateTime `json:"resolved_at"`

	// type
	// Required: true
	Type *ResolutionTypeDef `json:"type"`
}

Resolution An optional field recording when and via what means an issue was resolved, if it was resolved. Resolved issues are retained for XX days.

swagger:model Resolution

func (*Resolution) ContextValidate

func (m *Resolution) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this resolution based on the context it is used

func (*Resolution) MarshalBinary

func (m *Resolution) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Resolution) UnmarshalBinary

func (m *Resolution) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Resolution) Validate

func (m *Resolution) Validate(formats strfmt.Registry) error

Validate validates this resolution

type ResolutionTypeDef

type ResolutionTypeDef string

ResolutionTypeDef resolution type def

swagger:model ResolutionTypeDef

const (

	// ResolutionTypeDefDisappeared captures enum value "disappeared"
	ResolutionTypeDefDisappeared ResolutionTypeDef = "disappeared"

	// ResolutionTypeDefFixed captures enum value "fixed"
	ResolutionTypeDefFixed ResolutionTypeDef = "fixed"
)

func NewResolutionTypeDef

func NewResolutionTypeDef(value ResolutionTypeDef) *ResolutionTypeDef

func (ResolutionTypeDef) ContextValidate

func (m ResolutionTypeDef) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this resolution type def based on context it is used

func (ResolutionTypeDef) Pointer

func (m ResolutionTypeDef) Pointer() *ResolutionTypeDef

Pointer returns a pointer to a freshly-allocated ResolutionTypeDef.

func (ResolutionTypeDef) Validate

func (m ResolutionTypeDef) Validate(formats strfmt.Registry) error

Validate validates this resolution type def

type Resource

type Resource struct {

	// Amount of IaC resources this resource maps to.
	// Minimum: 0
	IacMappingsCount *int64 `json:"iac_mappings_count,omitempty"`

	// Internal ID for a resource.
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// input type
	// Required: true
	// Enum: [cloud_scan arm k8s tf tf_hcl tf_plan tf_state cfn]
	InputType *string `json:"input_type"`

	// location
	// Max Length: 256
	// Min Length: 1
	Location string `json:"location,omitempty"`

	// name
	// Required: true
	// Max Length: 256
	// Min Length: 1
	Name *string `json:"name"`

	// An optional native identifier for this resource. For example, a cloud resource id.
	// Max Length: 2048
	// Min Length: 1
	NativeID string `json:"native_id,omitempty"`

	// platform
	// Required: true
	// Max Length: 256
	// Min Length: 1
	Platform *string `json:"platform"`

	// resource type
	// Required: true
	// Max Length: 256
	// Min Length: 1
	ResourceType *string `json:"resource_type"`

	// tags
	Tags map[string]string `json:"tags,omitempty"`

	// type
	// Required: true
	// Enum: [cloud iac]
	Type *string `json:"type"`
}

Resource resource

swagger:model Resource

func (*Resource) ContextValidate

func (m *Resource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this resource based on context it is used

func (*Resource) MarshalBinary

func (m *Resource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Resource) UnmarshalBinary

func (m *Resource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Resource) Validate

func (m *Resource) Validate(formats strfmt.Registry) error

Validate validates this resource

type ResourcePath

type ResourcePath string

ResourcePath resource path Example: ,5.4.0),[6.0.0.pr1,6.4.0)

swagger:model ResourcePath

func (ResourcePath) ContextValidate

func (m ResourcePath) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this resource path based on context it is used

func (ResourcePath) Validate

func (m ResourcePath) Validate(formats strfmt.Registry) error

Validate validates this resource path

type ResourcePathRepresentation

type ResourcePathRepresentation struct {

	// resource path
	// Required: true
	ResourcePath *ResourcePath `json:"resource_path"`
}

ResourcePathRepresentation An object that contains an opaque identifying string.

swagger:model ResourcePathRepresentation

func (*ResourcePathRepresentation) ContextValidate

func (m *ResourcePathRepresentation) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this resource path representation based on the context it is used

func (*ResourcePathRepresentation) MarshalBinary

func (m *ResourcePathRepresentation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ResourcePathRepresentation) UnmarshalBinary

func (m *ResourcePathRepresentation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ResourcePathRepresentation) Validate

func (m *ResourcePathRepresentation) Validate(formats strfmt.Registry) error

Validate validates this resource path representation

type Risk

type Risk struct {

	// Risk factors identified for an issue
	// Required: true
	Factors []RiskFactor `json:"factors"`

	// score
	Score *RiskScore `json:"score,omitempty"`
}

Risk Risk prioritization information for an issue Example: {"factors":[{"name":"deployed","updated_at":"2023-09-07T13:36:37Z","value":true}],"score":{"model":"v4","value":700}}

swagger:model Risk

func (*Risk) ContextValidate

func (m *Risk) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this risk based on the context it is used

func (*Risk) MarshalBinary

func (m *Risk) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Risk) UnmarshalBinary

func (m *Risk) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Risk) Validate

func (m *Risk) Validate(formats strfmt.Registry) error

Validate validates this risk

type RiskFactor

type RiskFactor interface{}

RiskFactor risk factor

swagger:model RiskFactor

type RiskFactorLinks struct {

	// evidence
	Evidence LinkProperty `json:"evidence,omitempty"`
}

RiskFactorLinks risk factor links

swagger:model RiskFactorLinks

func (*RiskFactorLinks) ContextValidate

func (m *RiskFactorLinks) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this risk factor links based on context it is used

func (*RiskFactorLinks) MarshalBinary

func (m *RiskFactorLinks) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RiskFactorLinks) UnmarshalBinary

func (m *RiskFactorLinks) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RiskFactorLinks) Validate

func (m *RiskFactorLinks) Validate(formats strfmt.Registry) error

Validate validates this risk factor links

type RiskScore

type RiskScore struct {

	// Risk scoring model used to calculate the score value
	// Required: true
	Model *string `json:"model"`

	// updated at
	// Format: date-time
	UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"`

	// Risk score value, which may be used for overall prioritization
	// Required: true
	// Maximum: 1000
	// Minimum: 0
	Value *int64 `json:"value"`
}

RiskScore Risk prioritization score based on an analysis model Example: {"model":"v1","value":700}

swagger:model RiskScore

func (*RiskScore) ContextValidate

func (m *RiskScore) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this risk score based on context it is used

func (*RiskScore) MarshalBinary

func (m *RiskScore) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RiskScore) UnmarshalBinary

func (m *RiskScore) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RiskScore) Validate

func (m *RiskScore) Validate(formats strfmt.Registry) error

Validate validates this risk score

type SastEnablement

type SastEnablement struct {

	// attributes
	// Required: true
	Attributes *SastEnablementAttributes `json:"attributes"`

	// id
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// type
	// Required: true
	Type *string `json:"type"`
}

SastEnablement sast enablement

swagger:model SastEnablement

func (*SastEnablement) ContextValidate

func (m *SastEnablement) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this sast enablement based on the context it is used

func (*SastEnablement) MarshalBinary

func (m *SastEnablement) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SastEnablement) UnmarshalBinary

func (m *SastEnablement) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SastEnablement) Validate

func (m *SastEnablement) Validate(formats strfmt.Registry) error

Validate validates this sast enablement

type SastEnablementAttributes

type SastEnablementAttributes struct {

	// autofix enabled
	AutofixEnabled bool `json:"autofix_enabled,omitempty"`

	// sast enabled
	// Required: true
	SastEnabled *bool `json:"sast_enabled"`
}

SastEnablementAttributes sast enablement attributes

swagger:model SastEnablementAttributes

func (*SastEnablementAttributes) ContextValidate

func (m *SastEnablementAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this sast enablement attributes based on context it is used

func (*SastEnablementAttributes) MarshalBinary

func (m *SastEnablementAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SastEnablementAttributes) UnmarshalBinary

func (m *SastEnablementAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SastEnablementAttributes) Validate

func (m *SastEnablementAttributes) Validate(formats strfmt.Registry) error

Validate validates this sast enablement attributes

type SbomResource

type SbomResource struct {

	// id
	// Example: b68b0b85-d039-4c05-abc0-04eb50ca0fe9
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// type
	// Required: true
	Type *Types `json:"type"`
}

SbomResource sbom resource

swagger:model SbomResource

func (*SbomResource) ContextValidate

func (m *SbomResource) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this sbom resource based on the context it is used

func (*SbomResource) MarshalBinary

func (m *SbomResource) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SbomResource) UnmarshalBinary

func (m *SbomResource) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SbomResource) Validate

func (m *SbomResource) Validate(formats strfmt.Registry) error

Validate validates this sbom resource

type SbomResponse

type SbomResponse struct {

	// data
	// Required: true
	Data *SbomResource `json:"data"`

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

SbomResponse sbom response

swagger:model SbomResponse

func (*SbomResponse) ContextValidate

func (m *SbomResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this sbom response based on the context it is used

func (*SbomResponse) MarshalBinary

func (m *SbomResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SbomResponse) UnmarshalBinary

func (m *SbomResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SbomResponse) Validate

func (m *SbomResponse) Validate(formats strfmt.Registry) error

Validate validates this sbom response

type ScanItemType

type ScanItemType string

ScanItemType scan item type Example: project

swagger:model ScanItemType

const (

	// ScanItemTypeProject captures enum value "project"
	ScanItemTypeProject ScanItemType = "project"

	// ScanItemTypeEnvironment captures enum value "environment"
	ScanItemTypeEnvironment ScanItemType = "environment"
)

func NewScanItemType

func NewScanItemType(value ScanItemType) *ScanItemType

func (ScanItemType) ContextValidate

func (m ScanItemType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this scan item type based on context it is used

func (ScanItemType) Pointer

func (m ScanItemType) Pointer() *ScanItemType

Pointer returns a pointer to a freshly-allocated ScanItemType.

func (ScanItemType) Validate

func (m ScanItemType) Validate(formats strfmt.Registry) error

Validate validates this scan item type

type Scopes

type Scopes []string

Scopes The scopes this app is allowed to request during authorization.

swagger:model Scopes

func (Scopes) ContextValidate

func (m Scopes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this scopes based on context it is used

func (Scopes) Validate

func (m Scopes) Validate(formats strfmt.Registry) error

Validate validates this scopes

type SelfLink struct {

	// self
	Self LinkProperty `json:"self,omitempty"`
}

SelfLink self link Example: {"self":"https://example.com/api/this_resource"}

swagger:model SelfLink

func (*SelfLink) ContextValidate

func (m *SelfLink) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this self link based on context it is used

func (*SelfLink) MarshalBinary

func (m *SelfLink) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SelfLink) UnmarshalBinary

func (m *SelfLink) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SelfLink) Validate

func (m *SelfLink) Validate(formats strfmt.Registry) error

Validate validates this self link

type ServiceAccount

type ServiceAccount struct {

	// attributes
	// Required: true
	Attributes *ServiceAccountAttributes `json:"attributes"`

	// id
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

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

	// type
	// Required: true
	Type *string `json:"type"`
}

ServiceAccount service account

swagger:model ServiceAccount

func (*ServiceAccount) ContextValidate

func (m *ServiceAccount) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this service account based on the context it is used

func (*ServiceAccount) MarshalBinary

func (m *ServiceAccount) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServiceAccount) UnmarshalBinary

func (m *ServiceAccount) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServiceAccount) Validate

func (m *ServiceAccount) Validate(formats strfmt.Registry) error

Validate validates this service account

type ServiceAccountAttributes

type ServiceAccountAttributes struct {

	// The time, in seconds, that a generated access token will be valid for. Defaults to 1hr if unset. Only provided when auth_type is oauth_private_key_jwt.
	AccessTokenTTLSeconds float64 `json:"access_token_ttl_seconds,omitempty"`

	// The Snyk API Key for this service account. Only returned on creation, and only when auth_type is api_key.
	APIKey string `json:"api_key,omitempty"`

	// The authentication strategy for the service account:
	//   * api_key - Regular Snyk API Key.
	//   * oauth_client_secret - OAuth2 client_credentials grant, which returns a client secret that can be used to retrieve an access token.
	//   * oauth_private_key_jwt - OAuth2 client_credentials grant, using private_key_jwt client_assertion as laid out OIDC Connect Core 1.0, section 9.
	// Required: true
	// Enum: [api_key oauth_client_secret oauth_private_key_jwt]
	AuthType *string `json:"auth_type"`

	// The service account's attached client-id. Used to request an access-token. Only provided when auth_type is oauth_private_key_jwt.
	ClientID string `json:"client_id,omitempty"`

	// The client secret used for obtaining access tokens. Only sent on creation of new service accounts and cannot be retrieved thereafter. Only provided when auth_type is oauth_client_secret.
	ClientSecret string `json:"client_secret,omitempty"`

	// A JWKs URL used to verify signed JWT requests against. Must be https. Only provided when auth_type is oauth_private_key_jwt.
	JwksURL string `json:"jwks_url,omitempty"`

	// The level of access for the service account:
	//   * Group - the service account was created at the Group level.
	//   * Org - the service account was created at the Org level.
	// Enum: [Group Org]
	Level string `json:"level,omitempty"`

	// A human-friendly name of the service account.
	// Required: true
	Name *string `json:"name"`

	// The ID of the role which the Service Account is associated with.
	// Required: true
	// Format: uuid
	RoleID *strfmt.UUID `json:"role_id"`
}

ServiceAccountAttributes service account attributes

swagger:model ServiceAccountAttributes

func (*ServiceAccountAttributes) ContextValidate

func (m *ServiceAccountAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this service account attributes based on context it is used

func (*ServiceAccountAttributes) MarshalBinary

func (m *ServiceAccountAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServiceAccountAttributes) UnmarshalBinary

func (m *ServiceAccountAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServiceAccountAttributes) Validate

func (m *ServiceAccountAttributes) Validate(formats strfmt.Registry) error

Validate validates this service account attributes

type ServiceAccountLinks struct {

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

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

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

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

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

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

ServiceAccountLinks service account links

swagger:model ServiceAccountLinks

func (*ServiceAccountLinks) ContextValidate

func (m *ServiceAccountLinks) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this service account links based on context it is used

func (*ServiceAccountLinks) MarshalBinary

func (m *ServiceAccountLinks) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServiceAccountLinks) UnmarshalBinary

func (m *ServiceAccountLinks) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServiceAccountLinks) Validate

func (m *ServiceAccountLinks) Validate(formats strfmt.Registry) error

Validate validates this service account links

type SessionAttributes

type SessionAttributes struct {

	// created at
	// Required: true
	// Format: date-time
	CreatedAt *strfmt.DateTime `json:"created_at"`
}

SessionAttributes session attributes

swagger:model SessionAttributes

func (*SessionAttributes) ContextValidate

func (m *SessionAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this session attributes based on context it is used

func (*SessionAttributes) MarshalBinary

func (m *SessionAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SessionAttributes) UnmarshalBinary

func (m *SessionAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SessionAttributes) Validate

func (m *SessionAttributes) Validate(formats strfmt.Registry) error

Validate validates this session attributes

type SessionData

type SessionData struct {

	// attributes
	// Required: true
	Attributes *SessionAttributes `json:"attributes"`

	// id
	// Required: true
	// Format: uuid
	ID *ID `json:"id"`

	// type
	// Required: true
	Type *Type `json:"type"`
}

SessionData session data

swagger:model SessionData

func (*SessionData) ContextValidate

func (m *SessionData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this session data based on the context it is used

func (*SessionData) MarshalBinary

func (m *SessionData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SessionData) UnmarshalBinary

func (m *SessionData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SessionData) Validate

func (m *SessionData) Validate(formats strfmt.Registry) error

Validate validates this session data

type SettingsAttributes

type SettingsAttributes struct {

	// severity threshold
	// Required: true
	SeverityThreshold *SeverityThreshold `json:"severity_threshold"`

	// target channel id
	// Required: true
	// Format: uri
	TargetChannelID *TargetChannelID `json:"target_channel_id"`
}

SettingsAttributes settings attributes

swagger:model SettingsAttributes

func (*SettingsAttributes) ContextValidate

func (m *SettingsAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this settings attributes based on the context it is used

func (*SettingsAttributes) MarshalBinary

func (m *SettingsAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SettingsAttributes) UnmarshalBinary

func (m *SettingsAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SettingsAttributes) Validate

func (m *SettingsAttributes) Validate(formats strfmt.Registry) error

Validate validates this settings attributes

type SettingsRequest

type SettingsRequest struct {

	// data
	// Required: true
	Data *SettingsRequestData `json:"data"`
}

SettingsRequest settings request

swagger:model SettingsRequest

func (*SettingsRequest) ContextValidate

func (m *SettingsRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this settings request based on the context it is used

func (*SettingsRequest) MarshalBinary

func (m *SettingsRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SettingsRequest) UnmarshalBinary

func (m *SettingsRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SettingsRequest) Validate

func (m *SettingsRequest) Validate(formats strfmt.Registry) error

Validate validates this settings request

type SettingsRequestData

type SettingsRequestData struct {

	// attributes
	// Required: true
	Attributes *SettingsAttributes `json:"attributes"`

	// type
	// Required: true
	// Enum: [slack]
	Type *string `json:"type"`
}

SettingsRequestData settings request data

swagger:model SettingsRequestData

func (*SettingsRequestData) ContextValidate

func (m *SettingsRequestData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this settings request data based on the context it is used

func (*SettingsRequestData) MarshalBinary

func (m *SettingsRequestData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SettingsRequestData) UnmarshalBinary

func (m *SettingsRequestData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SettingsRequestData) Validate

func (m *SettingsRequestData) Validate(formats strfmt.Registry) error

Validate validates this settings request data

type Severity

type Severity struct {

	// level
	// Example: medium
	Level string `json:"level,omitempty"`

	// The CVSSv3 value of the vulnerability.
	// Example: 5.3
	Score *float64 `json:"score,omitempty"`

	// The source of this severity. The value must be the id of a referenced problem or class, in which case that problem or class is the source of this issue. If source is omitted, this severity is sourced internally in the Snyk application.
	// Example: Snyk
	Source string `json:"source,omitempty"`

	// The CVSSv3 value of the vulnerability.
	// Example: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
	Vector *string `json:"vector,omitempty"`
}

Severity severity

swagger:model Severity

func (*Severity) ContextValidate

func (m *Severity) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this severity based on context it is used

func (*Severity) MarshalBinary

func (m *Severity) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Severity) UnmarshalBinary

func (m *Severity) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Severity) Validate

func (m *Severity) Validate(formats strfmt.Registry) error

Validate validates this severity

type SeverityThreshold

type SeverityThreshold string

SeverityThreshold Minimum Snyk issue severity to send a notification for, messages will not be sent for any issue below this value Example: high

swagger:model SeverityThreshold

const (

	// SeverityThresholdLow captures enum value "low"
	SeverityThresholdLow SeverityThreshold = "low"

	// SeverityThresholdMedium captures enum value "medium"
	SeverityThresholdMedium SeverityThreshold = "medium"

	// SeverityThresholdHigh captures enum value "high"
	SeverityThresholdHigh SeverityThreshold = "high"

	// SeverityThresholdCritical captures enum value "critical"
	SeverityThresholdCritical SeverityThreshold = "critical"
)

func NewSeverityThreshold

func NewSeverityThreshold(value SeverityThreshold) *SeverityThreshold

func (SeverityThreshold) ContextValidate

func (m SeverityThreshold) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this severity threshold based on context it is used

func (SeverityThreshold) Pointer

func (m SeverityThreshold) Pointer() *SeverityThreshold

Pointer returns a pointer to a freshly-allocated SeverityThreshold.

func (SeverityThreshold) Validate

func (m SeverityThreshold) Validate(formats strfmt.Registry) error

Validate validates this severity threshold

type SlackChannel

type SlackChannel struct {

	// attributes
	Attributes *SlackChannelAttributes `json:"attributes,omitempty"`

	// id
	// Example: slack://channel?team=T123456\u0026id=C123456
	// Format: uri
	ID strfmt.URI `json:"id,omitempty"`

	// type
	// Example: slack_channel
	Type string `json:"type,omitempty"`
}

SlackChannel slack channel

swagger:model SlackChannel

func (*SlackChannel) ContextValidate

func (m *SlackChannel) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this slack channel based on the context it is used

func (*SlackChannel) MarshalBinary

func (m *SlackChannel) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SlackChannel) UnmarshalBinary

func (m *SlackChannel) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SlackChannel) Validate

func (m *SlackChannel) Validate(formats strfmt.Registry) error

Validate validates this slack channel

type SlackChannelAttributes

type SlackChannelAttributes struct {

	// Name of the Slack Channel
	// Example: general
	Name string `json:"name,omitempty"`

	// Channel type
	// Enum: [public private direct_message multiparty_direct_message]
	Type string `json:"type,omitempty"`
}

SlackChannelAttributes slack channel attributes

swagger:model SlackChannelAttributes

func (*SlackChannelAttributes) ContextValidate

func (m *SlackChannelAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this slack channel attributes based on context it is used

func (*SlackChannelAttributes) MarshalBinary

func (m *SlackChannelAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SlackChannelAttributes) UnmarshalBinary

func (m *SlackChannelAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SlackChannelAttributes) Validate

func (m *SlackChannelAttributes) Validate(formats strfmt.Registry) error

Validate validates this slack channel attributes

type SlackDefaultSettingsData

type SlackDefaultSettingsData struct {

	// attributes
	Attributes *SlackDefaultSettingsDataAttributes `json:"attributes,omitempty"`

	// id
	// Format: uuid
	ID UUID `json:"id,omitempty"`

	// type
	// Example: slack
	Type string `json:"type,omitempty"`
}

SlackDefaultSettingsData slack default settings data

swagger:model SlackDefaultSettingsData

func (*SlackDefaultSettingsData) ContextValidate

func (m *SlackDefaultSettingsData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this slack default settings data based on the context it is used

func (*SlackDefaultSettingsData) MarshalBinary

func (m *SlackDefaultSettingsData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SlackDefaultSettingsData) UnmarshalBinary

func (m *SlackDefaultSettingsData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SlackDefaultSettingsData) Validate

func (m *SlackDefaultSettingsData) Validate(formats strfmt.Registry) error

Validate validates this slack default settings data

type SlackDefaultSettingsDataAttributes

type SlackDefaultSettingsDataAttributes struct {

	// severity threshold
	// Required: true
	SeverityThreshold *SeverityThreshold `json:"severity_threshold"`

	// target channel id
	// Required: true
	// Format: uri
	TargetChannelID *TargetChannelID `json:"target_channel_id"`

	// target channel name
	// Required: true
	TargetChannelName *TargetChannelName `json:"target_channel_name"`
}

SlackDefaultSettingsDataAttributes slack default settings data attributes

swagger:model SlackDefaultSettingsDataAttributes

func (*SlackDefaultSettingsDataAttributes) ContextValidate

func (m *SlackDefaultSettingsDataAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this slack default settings data attributes based on the context it is used

func (*SlackDefaultSettingsDataAttributes) MarshalBinary

func (m *SlackDefaultSettingsDataAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SlackDefaultSettingsDataAttributes) UnmarshalBinary

func (m *SlackDefaultSettingsDataAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SlackDefaultSettingsDataAttributes) Validate

Validate validates this slack default settings data attributes

type Slots

type Slots struct {

	// The time at which this vulnerability was disclosed.
	// Example: 2022-06-16T13:51:13Z
	// Format: date-time
	DisclosureTime strfmt.DateTime `json:"disclosure_time,omitempty"`

	// The exploit maturity. Value of ‘No Data’, ‘Not Defined’, ‘Unproven’, ‘Proof of Concept’, ‘Functional’ or ‘High’.
	// Example: Not Defined
	Exploit string `json:"exploit,omitempty"`

	// The time at which this vulnerability was published.
	// Example: 2022-06-16T14:00:24.315507Z
	PublicationTime string `json:"publication_time,omitempty"`

	// references
	References []*SlotsReferencesItems0 `json:"references"`
}

Slots slots

swagger:model Slots

func (*Slots) ContextValidate

func (m *Slots) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this slots based on the context it is used

func (*Slots) MarshalBinary

func (m *Slots) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Slots) UnmarshalBinary

func (m *Slots) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Slots) Validate

func (m *Slots) Validate(formats strfmt.Registry) error

Validate validates this slots

type SlotsReferencesItems0

type SlotsReferencesItems0 struct {

	// Descriptor for an external reference to the issue
	Title string `json:"title,omitempty"`

	// URL for an external reference to the issue
	URL string `json:"url,omitempty"`
}

SlotsReferencesItems0 slots references items0

swagger:model SlotsReferencesItems0

func (*SlotsReferencesItems0) ContextValidate

func (m *SlotsReferencesItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this slots references items0 based on context it is used

func (*SlotsReferencesItems0) MarshalBinary

func (m *SlotsReferencesItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SlotsReferencesItems0) UnmarshalBinary

func (m *SlotsReferencesItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SlotsReferencesItems0) Validate

func (m *SlotsReferencesItems0) Validate(formats strfmt.Registry) error

Validate validates this slots references items0

type SourceLocation

type SourceLocation struct {

	// A path to the file containing this issue, relative to the root of the project target,
	// formatted using POSIX separators.
	//
	// Required: true
	File *string `json:"file"`

	// region
	Region *Region `json:"region,omitempty"`
}

SourceLocation source location

swagger:model SourceLocation

func (*SourceLocation) ContextValidate

func (m *SourceLocation) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this source location based on the context it is used

func (*SourceLocation) MarshalBinary

func (m *SourceLocation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SourceLocation) UnmarshalBinary

func (m *SourceLocation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SourceLocation) Validate

func (m *SourceLocation) Validate(formats strfmt.Registry) error

Validate validates this source location

type SpdxDocument

type SpdxDocument interface{}

SpdxDocument spdx document

swagger:model SpdxDocument

type TargetChannelID

type TargetChannelID strfmt.URI

TargetChannelID target channel Id Example: slack://channel?team=team-id\u0026id=channel-id

swagger:model TargetChannelId

func (TargetChannelID) ContextValidate

func (m TargetChannelID) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this target channel Id based on context it is used

func (TargetChannelID) Validate

func (m TargetChannelID) Validate(formats strfmt.Registry) error

Validate validates this target channel Id

type TargetChannelName

type TargetChannelName string

TargetChannelName target channel name Example: channel-name

swagger:model TargetChannelName

func (TargetChannelName) ContextValidate

func (m TargetChannelName) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this target channel name based on context it is used

func (TargetChannelName) Validate

func (m TargetChannelName) Validate(formats strfmt.Registry) error

Validate validates this target channel name

type TestExecutionType

type TestExecutionType string

TestExecutionType test execution type

swagger:model TestExecutionType

const (

	// TestExecutionTypeTestDashWorkflowDashExecution captures enum value "test-workflow-execution"
	TestExecutionTypeTestDashWorkflowDashExecution TestExecutionType = "test-workflow-execution"

	// TestExecutionTypeCustomDashExecution captures enum value "custom-execution"
	TestExecutionTypeCustomDashExecution TestExecutionType = "custom-execution"
)

func NewTestExecutionType

func NewTestExecutionType(value TestExecutionType) *TestExecutionType

func (TestExecutionType) ContextValidate

func (m TestExecutionType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this test execution type based on context it is used

func (TestExecutionType) Pointer

func (m TestExecutionType) Pointer() *TestExecutionType

Pointer returns a pointer to a freshly-allocated TestExecutionType.

func (TestExecutionType) Validate

func (m TestExecutionType) Validate(formats strfmt.Registry) error

Validate validates this test execution type

type Type

type Type string

Type type

swagger:model Type

func (Type) ContextValidate

func (m Type) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this type based on context it is used

func (Type) Validate

func (m Type) Validate(formats strfmt.Registry) error

Validate validates this type

type TypeDef

type TypeDef string

TypeDef The type of an issue. Example: cloud

swagger:model TypeDef

const (

	// TypeDefPackageVulnerability captures enum value "package_vulnerability"
	TypeDefPackageVulnerability TypeDef = "package_vulnerability"

	// TypeDefLicense captures enum value "license"
	TypeDefLicense TypeDef = "license"

	// TypeDefCloud captures enum value "cloud"
	TypeDefCloud TypeDef = "cloud"

	// TypeDefCode captures enum value "code"
	TypeDefCode TypeDef = "code"

	// TypeDefCustom captures enum value "custom"
	TypeDefCustom TypeDef = "custom"

	// TypeDefConfig captures enum value "config"
	TypeDefConfig TypeDef = "config"
)

func NewTypeDef

func NewTypeDef(value TypeDef) *TypeDef

func (TypeDef) ContextValidate

func (m TypeDef) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this type def based on context it is used

func (TypeDef) Pointer

func (m TypeDef) Pointer() *TypeDef

Pointer returns a pointer to a freshly-allocated TypeDef.

func (TypeDef) Validate

func (m TypeDef) Validate(formats strfmt.Registry) error

Validate validates this type def

type Types

type Types string

Types types Example: resource

swagger:model Types

func (Types) ContextValidate

func (m Types) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this types based on context it is used

func (Types) Validate

func (m Types) Validate(formats strfmt.Registry) error

Validate validates this types

type UUID

type UUID strfmt.UUID

UUID Uuid

swagger:model Uuid

func (UUID) ContextValidate

func (m UUID) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this Uuid based on context it is used

func (UUID) Validate

func (m UUID) Validate(formats strfmt.Registry) error

Validate validates this Uuid

type UpdateCollectionRequest

type UpdateCollectionRequest struct {

	// data
	// Required: true
	Data *UpdateCollectionRequestData `json:"data"`
}

UpdateCollectionRequest update collection request

swagger:model UpdateCollectionRequest

func (*UpdateCollectionRequest) ContextValidate

func (m *UpdateCollectionRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update collection request based on the context it is used

func (*UpdateCollectionRequest) MarshalBinary

func (m *UpdateCollectionRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateCollectionRequest) UnmarshalBinary

func (m *UpdateCollectionRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateCollectionRequest) Validate

func (m *UpdateCollectionRequest) Validate(formats strfmt.Registry) error

Validate validates this update collection request

type UpdateCollectionRequestData

type UpdateCollectionRequestData struct {

	// attributes
	// Required: true
	Attributes *UpdateCollectionRequestDataAttributes `json:"attributes"`

	// id
	// Format: uuid
	ID strfmt.UUID `json:"id,omitempty"`

	// type
	// Required: true
	Type *Types `json:"type"`
}

UpdateCollectionRequestData update collection request data

swagger:model UpdateCollectionRequestData

func (*UpdateCollectionRequestData) ContextValidate

func (m *UpdateCollectionRequestData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update collection request data based on the context it is used

func (*UpdateCollectionRequestData) MarshalBinary

func (m *UpdateCollectionRequestData) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateCollectionRequestData) UnmarshalBinary

func (m *UpdateCollectionRequestData) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateCollectionRequestData) Validate

func (m *UpdateCollectionRequestData) Validate(formats strfmt.Registry) error

Validate validates this update collection request data

type UpdateCollectionRequestDataAttributes

type UpdateCollectionRequestDataAttributes struct {

	// name
	// Required: true
	Name *Name `json:"name"`
}

UpdateCollectionRequestDataAttributes update collection request data attributes

swagger:model UpdateCollectionRequestDataAttributes

func (*UpdateCollectionRequestDataAttributes) ContextValidate

func (m *UpdateCollectionRequestDataAttributes) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update collection request data attributes based on the context it is used

func (*UpdateCollectionRequestDataAttributes) MarshalBinary

func (m *UpdateCollectionRequestDataAttributes) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateCollectionRequestDataAttributes) UnmarshalBinary

func (m *UpdateCollectionRequestDataAttributes) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateCollectionRequestDataAttributes) Validate

Validate validates this update collection request data attributes

type UpdateCollectionWithProjectsRequest

type UpdateCollectionWithProjectsRequest struct {

	// IDs of items to add to a collection
	// Required: true
	// Max Items: 100
	Data []*UpdateCollectionWithProjectsRequestDataItems0 `json:"data"`
}

UpdateCollectionWithProjectsRequest update collection with projects request

swagger:model UpdateCollectionWithProjectsRequest

func (*UpdateCollectionWithProjectsRequest) ContextValidate

func (m *UpdateCollectionWithProjectsRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update collection with projects request based on the context it is used

func (*UpdateCollectionWithProjectsRequest) MarshalBinary

func (m *UpdateCollectionWithProjectsRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateCollectionWithProjectsRequest) UnmarshalBinary

func (m *UpdateCollectionWithProjectsRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateCollectionWithProjectsRequest) Validate

Validate validates this update collection with projects request

type UpdateCollectionWithProjectsRequestDataItems0

type UpdateCollectionWithProjectsRequestDataItems0 struct {

	// id
	// Required: true
	// Format: uuid
	ID *strfmt.UUID `json:"id"`

	// Type of the item id
	// Required: true
	// Enum: [project]
	Type *string `json:"type"`
}

UpdateCollectionWithProjectsRequestDataItems0 update collection with projects request data items0

swagger:model UpdateCollectionWithProjectsRequestDataItems0

func (*UpdateCollectionWithProjectsRequestDataItems0) ContextValidate

ContextValidate validates this update collection with projects request data items0 based on context it is used

func (*UpdateCollectionWithProjectsRequestDataItems0) MarshalBinary

MarshalBinary interface implementation

func (*UpdateCollectionWithProjectsRequestDataItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*UpdateCollectionWithProjectsRequestDataItems0) Validate

Validate validates this update collection with projects request data items0

type Updated

type Updated strfmt.DateTime

Updated The last time the settings were updated. Example: 2021-11-12T10:31:06.026Z

swagger:model Updated

func (Updated) ContextValidate

func (m Updated) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this updated based on context it is used

func (*Updated) MarshalBinary

func (m *Updated) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (Updated) MarshalJSON

func (m Updated) MarshalJSON() ([]byte, error)

MarshalJSON retrieves a Updated value as JSON output

func (*Updated) UnmarshalBinary

func (m *Updated) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Updated) UnmarshalJSON

func (m *Updated) UnmarshalJSON(b []byte) error

UnmarshalJSON sets a Updated value from JSON input

func (Updated) Validate

func (m Updated) Validate(formats strfmt.Registry) error

Validate validates this updated

type VersioningSchema

type VersioningSchema struct {
	VersioningSchemaAllOf0
}

VersioningSchema The versioning scheme used by images in the repository.

A versioning schema is a system for identifying and organizing different versions of a project. It is used to track changes and updates to the project over time, and to help users identify which version they are using. A versioning schema typically consists of a series of numbers or labels that are incremented to reflect the progression of versions. For example, a versioning schema might use a series of numbers, such as "1.0", "1.1", "2.0", and so on, to indicate major and minor releases of a product. A consistent and well-defined versioning schema helps users and tools understand and track the development of a project.

swagger:model VersioningSchema

func (*VersioningSchema) ContextValidate

func (m *VersioningSchema) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this versioning schema based on context it is used

func (*VersioningSchema) MarshalBinary

func (m *VersioningSchema) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (VersioningSchema) MarshalJSON

func (m VersioningSchema) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*VersioningSchema) UnmarshalBinary

func (m *VersioningSchema) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*VersioningSchema) UnmarshalJSON

func (m *VersioningSchema) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*VersioningSchema) Validate

func (m *VersioningSchema) Validate(formats strfmt.Registry) error

Validate validates this versioning schema

type VersioningSchemaAllOf0

type VersioningSchemaAllOf0 interface{}

VersioningSchemaAllOf0 versioning schema all of0

swagger:model VersioningSchemaAllOf0

type VersioningSchemaCustomType

type VersioningSchemaCustomType struct {

	// The regular expression used to describe the format of tags.
	// Keep in mind that backslashes in the expression need to be escaped due to being encompassed in a JSON string.
	//
	// Example: (?\u003cC0\u003e.)\\-(?\u003cM2\u003e.*)
	// Required: true
	Expression *string `json:"expression"`

	// A customizable string that can be set for a custom versioning schema to describe its meaning.
	// This label has no function.
	//
	// Example: calendar with flavor schema
	Label string `json:"label,omitempty"`

	// type
	// Required: true
	// Enum: [custom]
	Type *string `json:"type"`
}

VersioningSchemaCustomType The Custom Schema type is a way for Snyk to understand your company’s container image tag versioning scheme, enabling Snyk to give more accurate base image upgrade recommendations.

This schema type is essentially a regular expression that groups the different parts of an image’s tag into comparable sections.

If your container image's tags follow a versioning scheme other than Semantic Versioning (SemVer), it is highly recommended that you select the "Custom Versioning" schema for your image repositories.

swagger:model VersioningSchemaCustomType

func (*VersioningSchemaCustomType) ContextValidate

func (m *VersioningSchemaCustomType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this versioning schema custom type based on context it is used

func (*VersioningSchemaCustomType) MarshalBinary

func (m *VersioningSchemaCustomType) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*VersioningSchemaCustomType) UnmarshalBinary

func (m *VersioningSchemaCustomType) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*VersioningSchemaCustomType) Validate

func (m *VersioningSchemaCustomType) Validate(formats strfmt.Registry) error

Validate validates this versioning schema custom type

type VersioningSchemaSemverType

type VersioningSchemaSemverType struct {

	// type
	// Example: semver
	// Required: true
	// Enum: [semver]
	Type *string `json:"type"`
}

VersioningSchemaSemverType versioning schema semver type

swagger:model VersioningSchemaSemverType

func (*VersioningSchemaSemverType) ContextValidate

func (m *VersioningSchemaSemverType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this versioning schema semver type based on context it is used

func (*VersioningSchemaSemverType) MarshalBinary

func (m *VersioningSchemaSemverType) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*VersioningSchemaSemverType) UnmarshalBinary

func (m *VersioningSchemaSemverType) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*VersioningSchemaSemverType) Validate

func (m *VersioningSchemaSemverType) Validate(formats strfmt.Registry) error

Validate validates this versioning schema semver type

type VersioningSchemaSingleSelectionType

type VersioningSchemaSingleSelectionType struct {

	// Whether this image should be the recommendation. Only one image can be selected at a given time. Setting this
	// as true will remove previous selection.
	//
	// Example: true
	// Required: true
	IsSelected *bool `json:"is_selected"`

	// type
	// Example: single-selection
	// Required: true
	// Enum: [single-selection]
	Type *string `json:"type"`
}

VersioningSchemaSingleSelectionType The Single Selection Versioning Schema allows manual setting of which image should be given as a recommendation.

Only one image can be set as the current recommendation. If no images are set as the current selection, no recommendation will be given.

It is recommended to use this versioning schema if your repository's tags aren't supported by the other schemas.

swagger:model VersioningSchemaSingleSelectionType

func (*VersioningSchemaSingleSelectionType) ContextValidate

func (m *VersioningSchemaSingleSelectionType) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this versioning schema single selection type based on context it is used

func (*VersioningSchemaSingleSelectionType) MarshalBinary

func (m *VersioningSchemaSingleSelectionType) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*VersioningSchemaSingleSelectionType) UnmarshalBinary

func (m *VersioningSchemaSingleSelectionType) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*VersioningSchemaSingleSelectionType) Validate

Validate validates this versioning schema single selection type

type YarnBuildArgs

type YarnBuildArgs struct {

	// root workspace
	// Required: true
	RootWorkspace *string `json:"root_workspace"`
}

YarnBuildArgs yarn build args

swagger:model YarnBuildArgs

func (*YarnBuildArgs) ContextValidate

func (m *YarnBuildArgs) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this yarn build args based on context it is used

func (*YarnBuildArgs) MarshalBinary

func (m *YarnBuildArgs) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*YarnBuildArgs) UnmarshalBinary

func (m *YarnBuildArgs) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*YarnBuildArgs) Validate

func (m *YarnBuildArgs) Validate(formats strfmt.Registry) error

Validate validates this yarn build args

Source Files

Jump to

Keyboard shortcuts

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