Skip to content

Commit b77d12d

Browse files
feat(ondemandscanning): update the api
#### ondemandscanning:v1 The following keys were added: - schemas.ComplianceOccurrence (Total Keys: 5) - schemas.NonCompliantFile (Total Keys: 5) - schemas.Occurrence.properties.compliance.$ref (Total Keys: 1) #### ondemandscanning:v1beta1 The following keys were added: - schemas.ComplianceOccurrence (Total Keys: 5) - schemas.NonCompliantFile (Total Keys: 5) - schemas.Occurrence.properties.compliance.$ref (Total Keys: 1)
1 parent 65ab8cf commit b77d12d

4 files changed

+100
-2
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,16 @@ <h3>Method Details</h3>
244244
},
245245
&quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes.
246246
},
247+
&quot;compliance&quot;: { # An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason. # Describes a compliance violation on a linked resource.
248+
&quot;nonComplianceReason&quot;: &quot;A String&quot;,
249+
&quot;nonCompliantFiles&quot;: [
250+
{ # Details about files that caused a compliance check to fail.
251+
&quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
252+
&quot;path&quot;: &quot;A String&quot;, # display_command is a single command that can be used to display a list of non compliant files. When there is no such command, we can also iterate a list of non compliant file using &#x27;path&#x27;. Empty if `display_command` is set.
253+
&quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
254+
},
255+
],
256+
},
247257
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
248258
&quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
249259
&quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,16 @@ <h3>Method Details</h3>
244244
},
245245
&quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes.
246246
},
247+
&quot;compliance&quot;: { # An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason. # Describes a compliance violation on a linked resource.
248+
&quot;nonComplianceReason&quot;: &quot;A String&quot;,
249+
&quot;nonCompliantFiles&quot;: [
250+
{ # Details about files that caused a compliance check to fail.
251+
&quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
252+
&quot;path&quot;: &quot;A String&quot;, # display_command is a single command that can be used to display a list of non compliant files. When there is no such command, we can also iterate a list of non compliant file using &#x27;path&#x27;. Empty if `display_command` is set.
253+
&quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
254+
},
255+
],
256+
},
247257
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
248258
&quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
249259
&quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.

googleapiclient/discovery_cache/documents/ondemandscanning.v1.json

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@
339339
}
340340
}
341341
},
342-
"revision": "20210508",
342+
"revision": "20210524",
343343
"rootUrl": "https://ondemandscanning.googleapis.com/",
344344
"schemas": {
345345
"AliasContext": {
@@ -649,6 +649,22 @@
649649
},
650650
"type": "object"
651651
},
652+
"ComplianceOccurrence": {
653+
"description": "An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason.",
654+
"id": "ComplianceOccurrence",
655+
"properties": {
656+
"nonComplianceReason": {
657+
"type": "string"
658+
},
659+
"nonCompliantFiles": {
660+
"items": {
661+
"$ref": "NonCompliantFile"
662+
},
663+
"type": "array"
664+
}
665+
},
666+
"type": "object"
667+
},
652668
"DeploymentOccurrence": {
653669
"description": "The period during which some deployable was active in a runtime.",
654670
"id": "DeploymentOccurrence",
@@ -974,6 +990,25 @@
974990
},
975991
"type": "object"
976992
},
993+
"NonCompliantFile": {
994+
"description": "Details about files that caused a compliance check to fail.",
995+
"id": "NonCompliantFile",
996+
"properties": {
997+
"displayCommand": {
998+
"description": "Command to display the non-compliant files.",
999+
"type": "string"
1000+
},
1001+
"path": {
1002+
"description": "display_command is a single command that can be used to display a list of non compliant files. When there is no such command, we can also iterate a list of non compliant file using 'path'. Empty if `display_command` is set.",
1003+
"type": "string"
1004+
},
1005+
"reason": {
1006+
"description": "Explains why a file is non compliant for a CIS check.",
1007+
"type": "string"
1008+
}
1009+
},
1010+
"type": "object"
1011+
},
9771012
"Occurrence": {
9781013
"description": "An instance of an analysis type that has been found on a resource.",
9791014
"id": "Occurrence",
@@ -986,6 +1021,10 @@
9861021
"$ref": "BuildOccurrence",
9871022
"description": "Describes a verifiable build."
9881023
},
1024+
"compliance": {
1025+
"$ref": "ComplianceOccurrence",
1026+
"description": "Describes a compliance violation on a linked resource."
1027+
},
9891028
"createTime": {
9901029
"description": "Output only. The time this occurrence was created.",
9911030
"format": "google-datetime",

googleapiclient/discovery_cache/documents/ondemandscanning.v1beta1.json

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@
339339
}
340340
}
341341
},
342-
"revision": "20210508",
342+
"revision": "20210524",
343343
"rootUrl": "https://ondemandscanning.googleapis.com/",
344344
"schemas": {
345345
"AliasContext": {
@@ -649,6 +649,22 @@
649649
},
650650
"type": "object"
651651
},
652+
"ComplianceOccurrence": {
653+
"description": "An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason.",
654+
"id": "ComplianceOccurrence",
655+
"properties": {
656+
"nonComplianceReason": {
657+
"type": "string"
658+
},
659+
"nonCompliantFiles": {
660+
"items": {
661+
"$ref": "NonCompliantFile"
662+
},
663+
"type": "array"
664+
}
665+
},
666+
"type": "object"
667+
},
652668
"DeploymentOccurrence": {
653669
"description": "The period during which some deployable was active in a runtime.",
654670
"id": "DeploymentOccurrence",
@@ -974,6 +990,25 @@
974990
},
975991
"type": "object"
976992
},
993+
"NonCompliantFile": {
994+
"description": "Details about files that caused a compliance check to fail.",
995+
"id": "NonCompliantFile",
996+
"properties": {
997+
"displayCommand": {
998+
"description": "Command to display the non-compliant files.",
999+
"type": "string"
1000+
},
1001+
"path": {
1002+
"description": "display_command is a single command that can be used to display a list of non compliant files. When there is no such command, we can also iterate a list of non compliant file using 'path'. Empty if `display_command` is set.",
1003+
"type": "string"
1004+
},
1005+
"reason": {
1006+
"description": "Explains why a file is non compliant for a CIS check.",
1007+
"type": "string"
1008+
}
1009+
},
1010+
"type": "object"
1011+
},
9771012
"Occurrence": {
9781013
"description": "An instance of an analysis type that has been found on a resource.",
9791014
"id": "Occurrence",
@@ -986,6 +1021,10 @@
9861021
"$ref": "BuildOccurrence",
9871022
"description": "Describes a verifiable build."
9881023
},
1024+
"compliance": {
1025+
"$ref": "ComplianceOccurrence",
1026+
"description": "Describes a compliance violation on a linked resource."
1027+
},
9891028
"createTime": {
9901029
"description": "Output only. The time this occurrence was created.",
9911030
"format": "google-datetime",

0 commit comments

Comments
 (0)