Skip to content

Commit 6ea37ef

Browse files
feat(ondemandscanning): update the api
#### ondemandscanning:v1 The following keys were added: - schemas.License (Total Keys: 4) - schemas.PackageOccurrence.properties.architecture (Total Keys: 2) - schemas.PackageOccurrence.properties.cpeUri (Total Keys: 2) - schemas.PackageOccurrence.properties.license.$ref (Total Keys: 1) - schemas.PackageOccurrence.properties.name.readOnly (Total Keys: 1) - schemas.PackageOccurrence.properties.packageType (Total Keys: 2) - schemas.PackageOccurrence.properties.version (Total Keys: 2) #### ondemandscanning:v1beta1 The following keys were added: - schemas.License (Total Keys: 4) - schemas.PackageOccurrence.properties.architecture (Total Keys: 2) - schemas.PackageOccurrence.properties.cpeUri (Total Keys: 2) - schemas.PackageOccurrence.properties.license.$ref (Total Keys: 1) - schemas.PackageOccurrence.properties.name.readOnly (Total Keys: 1) - schemas.PackageOccurrence.properties.packageType (Total Keys: 2) - schemas.PackageOccurrence.properties.version (Total Keys: 2)
1 parent c8b24e1 commit 6ea37ef

File tree

4 files changed

+148
-18
lines changed

4 files changed

+148
-18
lines changed

docs/dyn/ondemandscanning_v1.projects.locations.scans.vulnerabilities.html

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -521,11 +521,17 @@ <h3>Method Details</h3>
521521
&quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
522522
&quot;noteName&quot;: &quot;A String&quot;, # Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests.
523523
&quot;package&quot;: { # Details on how a particular software package was installed on a system. # Describes the installation of a package on the linked resource.
524-
&quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
524+
&quot;architecture&quot;: &quot;A String&quot;, # Output only. The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages.
525+
&quot;cpeUri&quot;: &quot;A String&quot;, # Output only. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. The cpe_uri will be blank for language packages.
526+
&quot;license&quot;: { # License information. # Licenses that have been declared by the authors of the package.
527+
&quot;comments&quot;: &quot;A String&quot;, # Comments
528+
&quot;expression&quot;: &quot;A String&quot;, # Often a single license can be used to represent the licensing terms. Sometimes it is necessary to include a choice of one or more licenses or some combination of license identifiers. Examples: &quot;LGPL-2.1-only OR MIT&quot;, &quot;LGPL-2.1-only AND MIT&quot;, &quot;GPL-2.0-or-later WITH Bison-exception-2.2&quot;.
529+
},
530+
&quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
525531
{ # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
526-
&quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
532+
&quot;cpeUri&quot;: &quot;A String&quot;, # Deprecated. The CPE URI in [CPE format](https://cpe.mitre.org/specification/)
527533
&quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
528-
&quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
534+
&quot;version&quot;: { # Version contains structured information about the version of a package. # Deprecated. The version installed at this location.
529535
&quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
530536
&quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
531537
&quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
@@ -535,7 +541,16 @@ <h3>Method Details</h3>
535541
},
536542
},
537543
],
538-
&quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
544+
&quot;name&quot;: &quot;A String&quot;, # Required. Output only. The name of the installed package.
545+
&quot;packageType&quot;: &quot;A String&quot;, # Output only. The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
546+
&quot;version&quot;: { # Version contains structured information about the version of a package. # Output only. The version of the package.
547+
&quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
548+
&quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
549+
&quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
550+
&quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
551+
&quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
552+
&quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
553+
},
539554
},
540555
&quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
541556
&quot;resourceUri&quot;: &quot;A String&quot;, # Required. Immutable. A URI that represents the resource for which the occurrence applies. For example, `https://gcr.io/project/image@sha256:123abc` for a Docker image.

docs/dyn/ondemandscanning_v1beta1.projects.locations.scans.vulnerabilities.html

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -521,11 +521,17 @@ <h3>Method Details</h3>
521521
&quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
522522
&quot;noteName&quot;: &quot;A String&quot;, # Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests.
523523
&quot;package&quot;: { # Details on how a particular software package was installed on a system. # Describes the installation of a package on the linked resource.
524-
&quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
524+
&quot;architecture&quot;: &quot;A String&quot;, # Output only. The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages.
525+
&quot;cpeUri&quot;: &quot;A String&quot;, # Output only. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. The cpe_uri will be blank for language packages.
526+
&quot;license&quot;: { # License information. # Licenses that have been declared by the authors of the package.
527+
&quot;comments&quot;: &quot;A String&quot;, # Comments
528+
&quot;expression&quot;: &quot;A String&quot;, # Often a single license can be used to represent the licensing terms. Sometimes it is necessary to include a choice of one or more licenses or some combination of license identifiers. Examples: &quot;LGPL-2.1-only OR MIT&quot;, &quot;LGPL-2.1-only AND MIT&quot;, &quot;GPL-2.0-or-later WITH Bison-exception-2.2&quot;.
529+
},
530+
&quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
525531
{ # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
526-
&quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
532+
&quot;cpeUri&quot;: &quot;A String&quot;, # Deprecated. The CPE URI in [CPE format](https://cpe.mitre.org/specification/)
527533
&quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
528-
&quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
534+
&quot;version&quot;: { # Version contains structured information about the version of a package. # Deprecated. The version installed at this location.
529535
&quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
530536
&quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
531537
&quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
@@ -535,7 +541,16 @@ <h3>Method Details</h3>
535541
},
536542
},
537543
],
538-
&quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
544+
&quot;name&quot;: &quot;A String&quot;, # Required. Output only. The name of the installed package.
545+
&quot;packageType&quot;: &quot;A String&quot;, # Output only. The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
546+
&quot;version&quot;: { # Version contains structured information about the version of a package. # Output only. The version of the package.
547+
&quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
548+
&quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
549+
&quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
550+
&quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
551+
&quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
552+
&quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
553+
},
539554
},
540555
&quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
541556
&quot;resourceUri&quot;: &quot;A String&quot;, # Required. Immutable. A URI that represents the resource for which the occurrence applies. For example, `https://gcr.io/project/image@sha256:123abc` for a Docker image.

googleapiclient/discovery_cache/documents/ondemandscanning.v1.json

Lines changed: 55 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@
339339
}
340340
}
341341
},
342-
"revision": "20220430",
342+
"revision": "20220509",
343343
"rootUrl": "https://ondemandscanning.googleapis.com/",
344344
"schemas": {
345345
"AliasContext": {
@@ -1253,6 +1253,21 @@
12531253
},
12541254
"type": "object"
12551255
},
1256+
"License": {
1257+
"description": "License information.",
1258+
"id": "License",
1259+
"properties": {
1260+
"comments": {
1261+
"description": "Comments",
1262+
"type": "string"
1263+
},
1264+
"expression": {
1265+
"description": "Often a single license can be used to represent the licensing terms. Sometimes it is necessary to include a choice of one or more licenses or some combination of license identifiers. Examples: \"LGPL-2.1-only OR MIT\", \"LGPL-2.1-only AND MIT\", \"GPL-2.0-or-later WITH Bison-exception-2.2\".",
1266+
"type": "string"
1267+
}
1268+
},
1269+
"type": "object"
1270+
},
12561271
"ListOperationsResponse": {
12571272
"description": "The response message for Operations.ListOperations.",
12581273
"id": "ListOperationsResponse",
@@ -1294,7 +1309,7 @@
12941309
"id": "Location",
12951310
"properties": {
12961311
"cpeUri": {
1297-
"description": "Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.",
1312+
"description": "Deprecated. The CPE URI in [CPE format](https://cpe.mitre.org/specification/)",
12981313
"type": "string"
12991314
},
13001315
"path": {
@@ -1303,7 +1318,7 @@
13031318
},
13041319
"version": {
13051320
"$ref": "Version",
1306-
"description": "The version installed at this location."
1321+
"description": "Deprecated. The version installed at this location."
13071322
}
13081323
},
13091324
"type": "object"
@@ -1642,16 +1657,51 @@
16421657
"description": "Details on how a particular software package was installed on a system.",
16431658
"id": "PackageOccurrence",
16441659
"properties": {
1660+
"architecture": {
1661+
"description": "Output only. The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages.",
1662+
"enum": [
1663+
"ARCHITECTURE_UNSPECIFIED",
1664+
"X86",
1665+
"X64"
1666+
],
1667+
"enumDescriptions": [
1668+
"Unknown architecture.",
1669+
"X86 architecture.",
1670+
"X64 architecture."
1671+
],
1672+
"readOnly": true,
1673+
"type": "string"
1674+
},
1675+
"cpeUri": {
1676+
"description": "Output only. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. The cpe_uri will be blank for language packages.",
1677+
"readOnly": true,
1678+
"type": "string"
1679+
},
1680+
"license": {
1681+
"$ref": "License",
1682+
"description": "Licenses that have been declared by the authors of the package."
1683+
},
16451684
"location": {
1646-
"description": "Required. All of the places within the filesystem versions of this package have been found.",
1685+
"description": "All of the places within the filesystem versions of this package have been found.",
16471686
"items": {
16481687
"$ref": "Location"
16491688
},
16501689
"type": "array"
16511690
},
16521691
"name": {
1653-
"description": "Output only. The name of the installed package.",
1692+
"description": "Required. Output only. The name of the installed package.",
1693+
"readOnly": true,
16541694
"type": "string"
1695+
},
1696+
"packageType": {
1697+
"description": "Output only. The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).",
1698+
"readOnly": true,
1699+
"type": "string"
1700+
},
1701+
"version": {
1702+
"$ref": "Version",
1703+
"description": "Output only. The version of the package.",
1704+
"readOnly": true
16551705
}
16561706
},
16571707
"type": "object"

googleapiclient/discovery_cache/documents/ondemandscanning.v1beta1.json

Lines changed: 55 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@
339339
}
340340
}
341341
},
342-
"revision": "20220430",
342+
"revision": "20220509",
343343
"rootUrl": "https://ondemandscanning.googleapis.com/",
344344
"schemas": {
345345
"AliasContext": {
@@ -1249,6 +1249,21 @@
12491249
},
12501250
"type": "object"
12511251
},
1252+
"License": {
1253+
"description": "License information.",
1254+
"id": "License",
1255+
"properties": {
1256+
"comments": {
1257+
"description": "Comments",
1258+
"type": "string"
1259+
},
1260+
"expression": {
1261+
"description": "Often a single license can be used to represent the licensing terms. Sometimes it is necessary to include a choice of one or more licenses or some combination of license identifiers. Examples: \"LGPL-2.1-only OR MIT\", \"LGPL-2.1-only AND MIT\", \"GPL-2.0-or-later WITH Bison-exception-2.2\".",
1262+
"type": "string"
1263+
}
1264+
},
1265+
"type": "object"
1266+
},
12521267
"ListOperationsResponse": {
12531268
"description": "The response message for Operations.ListOperations.",
12541269
"id": "ListOperationsResponse",
@@ -1290,7 +1305,7 @@
12901305
"id": "Location",
12911306
"properties": {
12921307
"cpeUri": {
1293-
"description": "Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.",
1308+
"description": "Deprecated. The CPE URI in [CPE format](https://cpe.mitre.org/specification/)",
12941309
"type": "string"
12951310
},
12961311
"path": {
@@ -1299,7 +1314,7 @@
12991314
},
13001315
"version": {
13011316
"$ref": "Version",
1302-
"description": "The version installed at this location."
1317+
"description": "Deprecated. The version installed at this location."
13031318
}
13041319
},
13051320
"type": "object"
@@ -1638,16 +1653,51 @@
16381653
"description": "Details on how a particular software package was installed on a system.",
16391654
"id": "PackageOccurrence",
16401655
"properties": {
1656+
"architecture": {
1657+
"description": "Output only. The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages.",
1658+
"enum": [
1659+
"ARCHITECTURE_UNSPECIFIED",
1660+
"X86",
1661+
"X64"
1662+
],
1663+
"enumDescriptions": [
1664+
"Unknown architecture.",
1665+
"X86 architecture.",
1666+
"X64 architecture."
1667+
],
1668+
"readOnly": true,
1669+
"type": "string"
1670+
},
1671+
"cpeUri": {
1672+
"description": "Output only. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. The cpe_uri will be blank for language packages.",
1673+
"readOnly": true,
1674+
"type": "string"
1675+
},
1676+
"license": {
1677+
"$ref": "License",
1678+
"description": "Licenses that have been declared by the authors of the package."
1679+
},
16411680
"location": {
1642-
"description": "Required. All of the places within the filesystem versions of this package have been found.",
1681+
"description": "All of the places within the filesystem versions of this package have been found.",
16431682
"items": {
16441683
"$ref": "Location"
16451684
},
16461685
"type": "array"
16471686
},
16481687
"name": {
1649-
"description": "Output only. The name of the installed package.",
1688+
"description": "Required. Output only. The name of the installed package.",
1689+
"readOnly": true,
16501690
"type": "string"
1691+
},
1692+
"packageType": {
1693+
"description": "Output only. The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).",
1694+
"readOnly": true,
1695+
"type": "string"
1696+
},
1697+
"version": {
1698+
"$ref": "Version",
1699+
"description": "Output only. The version of the package.",
1700+
"readOnly": true
16511701
}
16521702
},
16531703
"type": "object"

0 commit comments

Comments
 (0)