Skip to content

Commit

Permalink
feat(containeranalysis): update the API
Browse files Browse the repository at this point in the history
#### containeranalysis:v1alpha1

The following keys were added:
- schemas.Artifact.properties.name.deprecated
- schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions.properties.logging.enumDeprecated
- schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions.properties.workerPool.deprecated
- schemas.Discovered.properties.sbomStatus.$ref
- schemas.Discovered.properties.sbomStatus.description
- schemas.Discovered.properties.sbomStatus.readOnly
- schemas.RepoSource.deprecated
- schemas.SBOMStatus.description
- schemas.SBOMStatus.id
- schemas.SBOMStatus.properties.error.description
- schemas.SBOMStatus.properties.error.readOnly
- schemas.SBOMStatus.properties.error.type
- schemas.SBOMStatus.properties.sbomState.description
- schemas.SBOMStatus.properties.sbomState.enum
- schemas.SBOMStatus.properties.sbomState.enumDescriptions
- schemas.SBOMStatus.properties.sbomState.readOnly
- schemas.SBOMStatus.properties.sbomState.type
- schemas.SBOMStatus.type
- schemas.Source.properties.repoSource.deprecated
- schemas.Source.properties.storageSource.deprecated

The following keys were changed:
- schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions.properties.machineType.enum
- schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions.properties.machineType.enumDescriptions

#### containeranalysis:v1beta1

The following keys were added:
- resources.projects.resources.resources.methods.exportSBOM.description
- resources.projects.resources.resources.methods.exportSBOM.flatPath
- resources.projects.resources.resources.methods.exportSBOM.httpMethod
- resources.projects.resources.resources.methods.exportSBOM.id
- resources.projects.resources.resources.methods.exportSBOM.parameterOrder
- resources.projects.resources.resources.methods.exportSBOM.parameters.name.description
- resources.projects.resources.resources.methods.exportSBOM.parameters.name.location
- resources.projects.resources.resources.methods.exportSBOM.parameters.name.pattern
- resources.projects.resources.resources.methods.exportSBOM.parameters.name.required
- resources.projects.resources.resources.methods.exportSBOM.parameters.name.type
- resources.projects.resources.resources.methods.exportSBOM.path
- resources.projects.resources.resources.methods.exportSBOM.request.$ref
- resources.projects.resources.resources.methods.exportSBOM.response.$ref
- resources.projects.resources.resources.methods.exportSBOM.scopes
- schemas.BuildDefinition.id
- schemas.BuildDefinition.properties.buildType.type
- schemas.BuildDefinition.properties.externalParameters.additionalProperties.description
- schemas.BuildDefinition.properties.externalParameters.additionalProperties.type
- schemas.BuildDefinition.properties.externalParameters.type
- schemas.BuildDefinition.properties.internalParameters.additionalProperties.description
- schemas.BuildDefinition.properties.internalParameters.additionalProperties.type
- schemas.BuildDefinition.properties.internalParameters.type
- schemas.BuildDefinition.properties.resolvedDependencies.items.$ref
- schemas.BuildDefinition.properties.resolvedDependencies.type
- schemas.BuildDefinition.type
- schemas.BuildMetadata.id
- schemas.BuildMetadata.properties.finishedOn.format
- schemas.BuildMetadata.properties.finishedOn.type
- schemas.BuildMetadata.properties.invocationId.type
- schemas.BuildMetadata.properties.startedOn.format
- schemas.BuildMetadata.properties.startedOn.type
- schemas.BuildMetadata.type
- schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions.properties.logging.enumDeprecated
- schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions.properties.workerPool.deprecated
- schemas.Discovered.properties.sbomStatus.$ref
- schemas.Discovered.properties.sbomStatus.description
- schemas.ExportSBOMRequest.description
- schemas.ExportSBOMRequest.id
- schemas.ExportSBOMRequest.type
- schemas.ExportSBOMResponse.description
- schemas.ExportSBOMResponse.id
- schemas.ExportSBOMResponse.properties.discoveryOccurrenceId.description
- schemas.ExportSBOMResponse.properties.discoveryOccurrenceId.type
- schemas.ExportSBOMResponse.type
- schemas.GrafeasV1beta1BuildDetails.properties.inTotoSlsaProvenanceV1.$ref
- schemas.InTotoSlsaProvenanceV1.id
- schemas.InTotoSlsaProvenanceV1.properties._type.description
- schemas.InTotoSlsaProvenanceV1.properties._type.type
- schemas.InTotoSlsaProvenanceV1.properties.predicate.$ref
- schemas.InTotoSlsaProvenanceV1.properties.predicateType.type
- schemas.InTotoSlsaProvenanceV1.properties.subject.items.$ref
- schemas.InTotoSlsaProvenanceV1.properties.subject.type
- schemas.InTotoSlsaProvenanceV1.type
- schemas.ProvenanceBuilder.id
- schemas.ProvenanceBuilder.properties.builderDependencies.items.$ref
- schemas.ProvenanceBuilder.properties.builderDependencies.type
- schemas.ProvenanceBuilder.properties.id.type
- schemas.ProvenanceBuilder.properties.version.additionalProperties.type
- schemas.ProvenanceBuilder.properties.version.type
- schemas.ProvenanceBuilder.type
- schemas.Resource.properties.contentHash.deprecated
- schemas.Resource.properties.name.deprecated
- schemas.ResourceDescriptor.id
- schemas.ResourceDescriptor.properties.annotations.additionalProperties.type
- schemas.ResourceDescriptor.properties.annotations.type
- schemas.ResourceDescriptor.properties.content.format
- schemas.ResourceDescriptor.properties.content.type
- schemas.ResourceDescriptor.properties.digest.additionalProperties.type
- schemas.ResourceDescriptor.properties.digest.type
- schemas.ResourceDescriptor.properties.downloadLocation.type
- schemas.ResourceDescriptor.properties.mediaType.type
- schemas.ResourceDescriptor.properties.name.type
- schemas.ResourceDescriptor.properties.uri.type
- schemas.ResourceDescriptor.type
- schemas.RunDetails.id
- schemas.RunDetails.properties.builder.$ref
- schemas.RunDetails.properties.byproducts.items.$ref
- schemas.RunDetails.properties.byproducts.type
- schemas.RunDetails.properties.metadata.$ref
- schemas.RunDetails.type
- schemas.SBOMStatus.description
- schemas.SBOMStatus.id
- schemas.SBOMStatus.properties.error.description
- schemas.SBOMStatus.properties.error.type
- schemas.SBOMStatus.properties.sbomState.description
- schemas.SBOMStatus.properties.sbomState.enum
- schemas.SBOMStatus.properties.sbomState.enumDescriptions
- schemas.SBOMStatus.properties.sbomState.type
- schemas.SBOMStatus.type
- schemas.SlsaProvenanceV1.description
- schemas.SlsaProvenanceV1.id
- schemas.SlsaProvenanceV1.properties.buildDefinition.$ref
- schemas.SlsaProvenanceV1.properties.runDetails.$ref
- schemas.SlsaProvenanceV1.type

The following keys were changed:
- schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions.properties.machineType.enum
- schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1BuildOptions.properties.machineType.enumDescriptions
  • Loading branch information
yoshi-automation authored and sofisl committed Jul 11, 2023
1 parent 538a298 commit f5911f9
Show file tree
Hide file tree
Showing 4 changed files with 542 additions and 6 deletions.
53 changes: 50 additions & 3 deletions discovery/containeranalysis-v1alpha1.json
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,7 @@
}
}
},
"revision": "20230612",
"revision": "20230707",
"rootUrl": "https://containeranalysis.googleapis.com/",
"schemas": {
"AnalysisCompleted": {
Expand Down Expand Up @@ -1263,6 +1263,7 @@
"type": "string"
},
"name": {
"deprecated": true,
"description": "Name of the artifact. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. This field is deprecated in favor of the plural `names` field; it continues to exist here to allow existing BuildProvenance serialized to json in google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to deserialize back into proto.",
"type": "string"
},
Expand Down Expand Up @@ -2507,6 +2508,14 @@
"CLOUD_LOGGING_ONLY",
"NONE"
],
"enumDeprecated": [
false,
false,
false,
true,
false,
false
],
"enumDescriptions": [
"The service determines the logging mode. The default is `LEGACY`. Do not rely on the default logging behavior as it may change in the future.",
"Build logs are stored in Cloud Logging and Cloud Storage.",
Expand All @@ -2524,14 +2533,16 @@
"N1_HIGHCPU_8",
"N1_HIGHCPU_32",
"E2_HIGHCPU_8",
"E2_HIGHCPU_32"
"E2_HIGHCPU_32",
"E2_MEDIUM"
],
"enumDescriptions": [
"Standard machine type.",
"Highcpu machine with 8 CPUs.",
"Highcpu machine with 32 CPUs.",
"Highcpu e2 machine with 8 CPUs.",
"Highcpu e2 machine with 32 CPUs."
"Highcpu e2 machine with 32 CPUs.",
"E2 machine with 1 CPU."
],
"type": "string"
},
Expand Down Expand Up @@ -2597,6 +2608,7 @@
"type": "array"
},
"workerPool": {
"deprecated": true,
"description": "This field deprecated; please use `pool.name` instead.",
"type": "string"
}
Expand Down Expand Up @@ -3490,6 +3502,11 @@
"operation": {
"$ref": "Operation",
"description": "Output only. An operation that indicates the status of the current scan. This field is deprecated, do not use."
},
"sbomStatus": {
"$ref": "SBOMStatus",
"description": "Output only. The status of an SBOM generation.",
"readOnly": true
}
},
"type": "object"
Expand Down Expand Up @@ -5604,6 +5621,7 @@
"type": "object"
},
"RepoSource": {
"deprecated": true,
"description": "RepoSource describes the location of the source in a Google Cloud Source Repository.",
"id": "RepoSource",
"properties": {
Expand Down Expand Up @@ -5686,6 +5704,33 @@
},
"type": "object"
},
"SBOMStatus": {
"description": "The status of an SBOM generation.",
"id": "SBOMStatus",
"properties": {
"error": {
"description": "Output only. If there was an error generating an SBOM, this will indicate what that error was.",
"readOnly": true,
"type": "string"
},
"sbomState": {
"description": "Output only. The progress of the SBOM generation.",
"enum": [
"SBOM_STATE_UNSPECIFIED",
"PENDING",
"COMPLETE"
],
"enumDescriptions": [
"Default unknown state.",
"SBOM scanning is pending.",
"SBOM scanning has completed."
],
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"SbomReferenceIntotoPayload": {
"description": "The actual payload that contains the SBOM Reference data. The payload follows the intoto statement specification. See https://github.com/in-toto/attestation/blob/main/spec/v1.0/statement.md for more details.",
"id": "SbomReferenceIntotoPayload",
Expand Down Expand Up @@ -5997,10 +6042,12 @@
},
"repoSource": {
"$ref": "RepoSource",
"deprecated": true,
"description": "If provided, get source from this location in a Cloud Repo."
},
"storageSource": {
"$ref": "StorageSource",
"deprecated": true,
"description": "If provided, get the source from this location in Google Cloud Storage."
}
},
Expand Down
Loading

0 comments on commit f5911f9

Please sign in to comment.