Skip to content

Commit f9fcce4

Browse files
yoshi-automationsofisl
authored andcommitted
feat(ondemandscanning): update the API
#### ondemandscanning:v1beta1 The following keys were added: - schemas.DiscoveryOccurrence.properties.vulnerabilityAttestation.$ref - schemas.DiscoveryOccurrence.properties.vulnerabilityAttestation.description - schemas.VulnerabilityAttestation.description - schemas.VulnerabilityAttestation.id - schemas.VulnerabilityAttestation.properties.error.description - schemas.VulnerabilityAttestation.properties.error.type - schemas.VulnerabilityAttestation.properties.lastAttemptTime.description - schemas.VulnerabilityAttestation.properties.lastAttemptTime.format - schemas.VulnerabilityAttestation.properties.lastAttemptTime.type - schemas.VulnerabilityAttestation.properties.state.description - schemas.VulnerabilityAttestation.properties.state.enum - schemas.VulnerabilityAttestation.properties.state.enumDescriptions - schemas.VulnerabilityAttestation.properties.state.type - schemas.VulnerabilityAttestation.type #### ondemandscanning:v1 The following keys were added: - schemas.DiscoveryOccurrence.properties.vulnerabilityAttestation.$ref - schemas.DiscoveryOccurrence.properties.vulnerabilityAttestation.description - schemas.VulnerabilityAttestation.description - schemas.VulnerabilityAttestation.id - schemas.VulnerabilityAttestation.properties.error.description - schemas.VulnerabilityAttestation.properties.error.type - schemas.VulnerabilityAttestation.properties.lastAttemptTime.description - schemas.VulnerabilityAttestation.properties.lastAttemptTime.format - schemas.VulnerabilityAttestation.properties.lastAttemptTime.type - schemas.VulnerabilityAttestation.properties.state.description - schemas.VulnerabilityAttestation.properties.state.enum - schemas.VulnerabilityAttestation.properties.state.enumDescriptions - schemas.VulnerabilityAttestation.properties.state.type - schemas.VulnerabilityAttestation.type
1 parent ae50ea9 commit f9fcce4

File tree

4 files changed

+112
-2
lines changed

4 files changed

+112
-2
lines changed

discovery/ondemandscanning-v1.json

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@
339339
}
340340
}
341341
},
342-
"revision": "20240429",
342+
"revision": "20240624",
343343
"rootUrl": "https://ondemandscanning.googleapis.com/",
344344
"schemas": {
345345
"AliasContext": {
@@ -1110,6 +1110,10 @@
11101110
"sbomStatus": {
11111111
"$ref": "SBOMStatus",
11121112
"description": "The status of an SBOM generation."
1113+
},
1114+
"vulnerabilityAttestation": {
1115+
"$ref": "VulnerabilityAttestation",
1116+
"description": "The status of an vulnerability attestation generation."
11131117
}
11141118
},
11151119
"type": "object"
@@ -2842,6 +2846,36 @@
28422846
},
28432847
"type": "object"
28442848
},
2849+
"VulnerabilityAttestation": {
2850+
"description": "The status of an vulnerability attestation generation.",
2851+
"id": "VulnerabilityAttestation",
2852+
"properties": {
2853+
"error": {
2854+
"description": "If failure, the error reason for why the attestation generation failed.",
2855+
"type": "string"
2856+
},
2857+
"lastAttemptTime": {
2858+
"description": "The last time we attempted to generate an attestation.",
2859+
"format": "google-datetime",
2860+
"type": "string"
2861+
},
2862+
"state": {
2863+
"description": "The success/failure state of the latest attestation attempt.",
2864+
"enum": [
2865+
"VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED",
2866+
"SUCCESS",
2867+
"FAILURE"
2868+
],
2869+
"enumDescriptions": [
2870+
"Default unknown state.",
2871+
"Attestation was successfully generated and stored.",
2872+
"Attestation was unsuccessfully generated and stored."
2873+
],
2874+
"type": "string"
2875+
}
2876+
},
2877+
"type": "object"
2878+
},
28452879
"VulnerabilityOccurrence": {
28462880
"description": "An occurrence of a severity vulnerability on a resource.",
28472881
"id": "VulnerabilityOccurrence",

discovery/ondemandscanning-v1beta1.json

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@
339339
}
340340
}
341341
},
342-
"revision": "20240429",
342+
"revision": "20240624",
343343
"rootUrl": "https://ondemandscanning.googleapis.com/",
344344
"schemas": {
345345
"AliasContext": {
@@ -1105,6 +1105,10 @@
11051105
"sbomStatus": {
11061106
"$ref": "SBOMStatus",
11071107
"description": "The status of an SBOM generation."
1108+
},
1109+
"vulnerabilityAttestation": {
1110+
"$ref": "VulnerabilityAttestation",
1111+
"description": "The status of an vulnerability attestation generation."
11081112
}
11091113
},
11101114
"type": "object"
@@ -2837,6 +2841,36 @@
28372841
},
28382842
"type": "object"
28392843
},
2844+
"VulnerabilityAttestation": {
2845+
"description": "The status of an vulnerability attestation generation.",
2846+
"id": "VulnerabilityAttestation",
2847+
"properties": {
2848+
"error": {
2849+
"description": "If failure, the error reason for why the attestation generation failed.",
2850+
"type": "string"
2851+
},
2852+
"lastAttemptTime": {
2853+
"description": "The last time we attempted to generate an attestation.",
2854+
"format": "google-datetime",
2855+
"type": "string"
2856+
},
2857+
"state": {
2858+
"description": "The success/failure state of the latest attestation attempt.",
2859+
"enum": [
2860+
"VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED",
2861+
"SUCCESS",
2862+
"FAILURE"
2863+
],
2864+
"enumDescriptions": [
2865+
"Default unknown state.",
2866+
"Attestation was successfully generated and stored.",
2867+
"Attestation was unsuccessfully generated and stored."
2868+
],
2869+
"type": "string"
2870+
}
2871+
},
2872+
"type": "object"
2873+
},
28402874
"VulnerabilityOccurrence": {
28412875
"description": "An occurrence of a severity vulnerability on a resource.",
28422876
"id": "VulnerabilityOccurrence",

src/apis/ondemandscanning/v1.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,10 @@ export namespace ondemandscanning_v1 {
541541
* The status of an SBOM generation.
542542
*/
543543
sbomStatus?: Schema$SBOMStatus;
544+
/**
545+
* The status of an vulnerability attestation generation.
546+
*/
547+
vulnerabilityAttestation?: Schema$VulnerabilityAttestation;
544548
}
545549
/**
546550
* Deprecated. Prefer to use a regular Occurrence, and populate the Envelope at the top level of the Occurrence.
@@ -1649,6 +1653,23 @@ export namespace ondemandscanning_v1 {
16491653
*/
16501654
vulnerabilityId?: string | null;
16511655
}
1656+
/**
1657+
* The status of an vulnerability attestation generation.
1658+
*/
1659+
export interface Schema$VulnerabilityAttestation {
1660+
/**
1661+
* If failure, the error reason for why the attestation generation failed.
1662+
*/
1663+
error?: string | null;
1664+
/**
1665+
* The last time we attempted to generate an attestation.
1666+
*/
1667+
lastAttemptTime?: string | null;
1668+
/**
1669+
* The success/failure state of the latest attestation attempt.
1670+
*/
1671+
state?: string | null;
1672+
}
16521673
/**
16531674
* An occurrence of a severity vulnerability on a resource.
16541675
*/

src/apis/ondemandscanning/v1beta1.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,10 @@ export namespace ondemandscanning_v1beta1 {
537537
* The status of an SBOM generation.
538538
*/
539539
sbomStatus?: Schema$SBOMStatus;
540+
/**
541+
* The status of an vulnerability attestation generation.
542+
*/
543+
vulnerabilityAttestation?: Schema$VulnerabilityAttestation;
540544
}
541545
/**
542546
* Deprecated. Prefer to use a regular Occurrence, and populate the Envelope at the top level of the Occurrence.
@@ -1645,6 +1649,23 @@ export namespace ondemandscanning_v1beta1 {
16451649
*/
16461650
vulnerabilityId?: string | null;
16471651
}
1652+
/**
1653+
* The status of an vulnerability attestation generation.
1654+
*/
1655+
export interface Schema$VulnerabilityAttestation {
1656+
/**
1657+
* If failure, the error reason for why the attestation generation failed.
1658+
*/
1659+
error?: string | null;
1660+
/**
1661+
* The last time we attempted to generate an attestation.
1662+
*/
1663+
lastAttemptTime?: string | null;
1664+
/**
1665+
* The success/failure state of the latest attestation attempt.
1666+
*/
1667+
state?: string | null;
1668+
}
16481669
/**
16491670
* An occurrence of a severity vulnerability on a resource.
16501671
*/

0 commit comments

Comments
 (0)