ApplicationDependency

class oci.adm.models.ApplicationDependency(**kwargs)

Bases: object

An ApplicationDependency resource is used within the applicationDependencies of a CreateVulnerabilityAuditDetails resource to create a vulnerability audit. Each ApplicationDependency resource must provide either Package URL (purl) identifier or a Group Artifact Version (GAV) to identify the application dependency.

Methods:

__init__(**kwargs)

Initializes a new ApplicationDependency object with values from keyword arguments.

Attributes:

application_dependency_node_ids

Gets the application_dependency_node_ids of this ApplicationDependency.

gav

Gets the gav of this ApplicationDependency.

node_id

[Required] Gets the node_id of this ApplicationDependency.

purl

Gets the purl of this ApplicationDependency.

__init__(**kwargs)

Initializes a new ApplicationDependency object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • gav (str) – The value to assign to the gav property of this ApplicationDependency.

  • purl (str) – The value to assign to the purl property of this ApplicationDependency.

  • node_id (str) – The value to assign to the node_id property of this ApplicationDependency.

  • application_dependency_node_ids (list[str]) – The value to assign to the application_dependency_node_ids property of this ApplicationDependency.

property application_dependency_node_ids

Gets the application_dependency_node_ids of this ApplicationDependency. List of application dependencies on which this application dependency depends, each identified by its nodeId.

Returns

The application_dependency_node_ids of this ApplicationDependency.

Return type

list[str]

property gav

Gets the gav of this ApplicationDependency. Group Artifact Version (GAV) identifier (Group:Artifact:Version). Example: org.graalvm.nativeimage:svm:21.1.0. “N/A” for non-maven artifacts.

Returns

The gav of this ApplicationDependency.

Return type

str

property node_id

[Required] Gets the node_id of this ApplicationDependency. Unique identifier of an application dependency, for example nodeId1. The nodeId can be generated by assigning a unique id to each application dependency in the tree of application dependencies. Every node, even those who share the same GAV, should have a different nodeId. The preferred way of constructing a nodeId is to assign incremental integers during a breadth first or depth first search. A nodeId can be reused only it refers to the same subtree of application dependencies. (This is not equivalent to referring to the same GAV, that is, a GAV can have multiple transitive dependencies.)

Returns

The node_id of this ApplicationDependency.

Return type

str

property purl

Gets the purl of this ApplicationDependency. Package URL identifier, e.g. pkg:maven/org.graalvm.nativeimage/svm@21.1.0

Returns

The purl of this ApplicationDependency.

Return type

str