Grafeas V1 Client - Class Product (0.8.2)

Reference documentation and code samples for the Grafeas V1 Client class Product.

Product contains information about a product and how to uniquely identify it.

(-- api-linter: core::0123::resource-annotation=disabled aip.dev/not-precedent: Product is not a separate resource. --)

Generated from protobuf message grafeas.v1.VulnerabilityAssessmentNote.Product

Namespace

Grafeas \ V1 \ VulnerabilityAssessmentNote

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Name of the product.

↳ id string

Token that identifies a product so that it can be referred to from other parts in the document. There is no predefined format as long as it uniquely identifies a group in the context of the current document.

↳ generic_uri string

Contains a URI which is vendor-specific. Example: The artifact repository URL of an image.

getName

Name of the product.

Returns
TypeDescription
string

setName

Name of the product.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getId

Token that identifies a product so that it can be referred to from other parts in the document. There is no predefined format as long as it uniquely identifies a group in the context of the current document.

Returns
TypeDescription
string

setId

Token that identifies a product so that it can be referred to from other parts in the document. There is no predefined format as long as it uniquely identifies a group in the context of the current document.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getGenericUri

Contains a URI which is vendor-specific.

Example: The artifact repository URL of an image.

Returns
TypeDescription
string

hasGenericUri

setGenericUri

Contains a URI which is vendor-specific.

Example: The artifact repository URL of an image.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getIdentifier

Returns
TypeDescription
string