From eddb5dfb25b304fd7efa23d136c51ff5e3297865 Mon Sep 17 00:00:00 2001 From: Aysylu Greenberg Date: Tue, 25 Jun 2019 17:10:40 -0400 Subject: [PATCH 1/4] updated maven repo link to https Initial Swagger compatibility experiment --- generate/main.go | 205 +++++++++++++++++++++++++++++++++++++++++++++ generate_client.go | 4 +- 2 files changed, 206 insertions(+), 3 deletions(-) create mode 100644 generate/main.go diff --git a/generate/main.go b/generate/main.go new file mode 100644 index 0000000..a9b8f63 --- /dev/null +++ b/generate/main.go @@ -0,0 +1,205 @@ +package main + +import ( + "bufio" + "bytes" + "encoding/json" + "fmt" + "io" + "io/ioutil" + "log" + "net/http" + "os" + "os/exec" + "path" + "regexp" + "strings" +) + +// ServerVersion : the version from the upstream repository +var ServerVersion = getDefaultVersion() + +// GrafeasRepository : the repository of the Grafeas server to use for downloading Swagger files +var GrafeasRepository = "https://github.com/grafeas/grafeas" + +// Reference : the commit, branch, or tag to use for downloading Swagger files from the defined Grafeas repo +var Reference = "master" + +// APIVersion : the version of the Grafeas API per the Google Cloud scheme - https://github.com/grafeas/grafeas/blob/master/docs/versioning.md#api +var APIVersion = "v1beta1" + +// SwaggerCodegenVersion : the version of the Swagger CodeGen CLI to download +var SwaggerCodegenVersion = "2.4.5" + +// MergedClient : whether to keep the generated Swagger clients separate or to merge the paths +// TODO: implement function that merges the paths of each Swagger spec into one file before running codegen +var MergedClient = false + +// trimVersionTag : remove the "v" prefix from the version tag string +func trimVersionTag(tag string) string { + if strings.HasPrefix(tag, "v") { + return strings.TrimPrefix(tag, "v") + } + return tag +} + +func getDefaultVersion() string { + version := os.Getenv("VERSION") + if version == "" { + tag := getMostRecentTag() + trimmedVersion := trimVersionTag(tag) + version = trimmedVersion + } + return version +} + +func getMostRecentTag() string { + tagsBytes, _ := get("https://api.github.com/repos/grafeas/grafeas/tags") + var tags []map[string]interface{} + json.Unmarshal(tagsBytes, &tags) + return tags[0]["name"].(string) +} + +func swaggerCompatibility(jsonInput string) string { + re := regexp.MustCompile(`\/{.*(=.*)}`) + jsonOutput := re.ReplaceAllStringFunc(jsonInput, func(substringMatch string) string { + return strings.Split(substringMatch, "=")[0] + "}" + }) + return jsonOutput +} + +func get(url string) ([]byte, error) { + var responseData []byte + resp, err := http.Get(url) + if err != nil { + return responseData, err + } + defer resp.Body.Close() + + responseData, err = ioutil.ReadAll(resp.Body) + if err != nil { + return responseData, err + } + return responseData, err +} + +func downloadCompatibleSwaggerSpec(url string, filename string) error { + if filename == "" { + filename = path.Base(url) + } + responseBytes, err := get(url) + if err != nil { + return err + } + + swaggerString := swaggerCompatibility(string(responseBytes)) + + f, err := os.Create(filename) + if err != nil { + return err + } + defer f.Close() + responseReader := bytes.NewReader([]byte(swaggerString)) + + _, err = io.Copy(f, responseReader) + return err +} + +func downloadFile(url string, filename string) error { + if filename == "" { + filename = path.Base(url) + } + responseBytes, err := get(url) + if err != nil { + return err + } + + f, err := os.Create(filename) + if err != nil { + return err + } + defer f.Close() + responseReader := bytes.NewReader(responseBytes) + + _, err = io.Copy(f, responseReader) + return err +} + +type swaggerCodegenConfig struct { + language string + inputSpec string + outputDirectory string + configFile string + jar string +} + +func stringOrDefault(currentValue string, defaultValue string) string { + if currentValue == "" { + return defaultValue + } + return currentValue +} + +func (c *swaggerCodegenConfig) generate() { + c.language = stringOrDefault(c.language, "go") + c.jar = stringOrDefault(c.jar, "./swagger-codegen-cli.jar") + c.configFile = stringOrDefault(c.configFile, "./config.go.json") + c.outputDirectory = stringOrDefault(c.outputDirectory, ServerVersion) + args := []string{"-jar", c.jar, "generate", "-i", c.inputSpec, "-l", c.language, "-o", c.outputDirectory, "-c", c.configFile} + log.Println("[CMD] java " + strings.Join(args, " ")) + cmd := exec.Command("java", args...) + + stderr, _ := cmd.StderrPipe() + cmd.Start() + + scanner := bufio.NewScanner(stderr) + scanner.Split(bufio.ScanLines) + for scanner.Scan() { + m := scanner.Text() + fmt.Println(m) + } + cmd.Wait() +} + +func downloadSwaggerCodegenCli(version string) { + downloadURL := fmt.Sprintf("https://repo1.maven.org/maven2/io/swagger/swagger-codegen-cli/%s/swagger-codegen-cli-%s.jar", version, version) + downloadFile(downloadURL, "swagger-codegen-cli.jar") +} + +func getSwaggerNames() []string { + return []string{"grafeas.swagger.json", "project.swagger.json"} +} + +func swaggerGenerate(mergedClient bool) { + swaggerSpecNames := getSwaggerNames() + for _, swaggerSpecName := range swaggerSpecNames { + swaggerSpecURL := strings.Join([]string{GrafeasRepository, "/raw/", Reference, "/proto/", APIVersion, "/swagger/", swaggerSpecName}, "") + log.Printf("[DOWNLOAD] %s\n", swaggerSpecURL) + downloadCompatibleSwaggerSpec(swaggerSpecURL, "") + fileBasename := strings.Split(swaggerSpecName, ".")[0] + outputDirectory := strings.Join([]string{ServerVersion, fileBasename}, "/") + if fileBasename == "grafeas" && !mergedClient { + outputDirectory = ServerVersion + } + swaggerCodeGen := swaggerCodegenConfig{ + inputSpec: swaggerSpecName, + outputDirectory: outputDirectory, + } + swaggerCodeGen.generate() + } +} + +func main() { + log.Printf( + ` + +Grafeas Repository: %s +Reference: %s +Server Version: %s +API Version: %s +Swagger Codegen Version: %s + +`, GrafeasRepository, Reference, ServerVersion, APIVersion, SwaggerCodegenVersion) + downloadSwaggerCodegenCli(SwaggerCodegenVersion) + swaggerGenerate(MergedClient) +} diff --git a/generate_client.go b/generate_client.go index ecc5e35..389ee68 100755 --- a/generate_client.go +++ b/generate_client.go @@ -1,8 +1,6 @@ // Downloads v1beta1 grafeas.swagger.json, swagger-codegen CLI tool, // and generates Go client library from the downloaded Swagger spec. -//go:generate wget https://github.com/grafeas/grafeas/raw/master/proto/v1beta1/swagger/grafeas.swagger.json -//go:generate wget http://central.maven.org/maven2/io/swagger/swagger-codegen-cli/2.4.5/swagger-codegen-cli-2.4.5.jar -O swagger-codegen-cli.jar -//go:generate java -jar ./swagger-codegen-cli.jar generate -i ./grafeas.swagger.json -l go -o 0.1.0 -c ./config.go.json +//go:generate go run generate/main.go package generate_client From 189c28d99c9dc28a8bf1aef67e90fa42165a54d1 Mon Sep 17 00:00:00 2001 From: Ethan Anderson Date: Wed, 9 Feb 2022 11:37:06 -0600 Subject: [PATCH 2/4] Regenerate client after fixed openapi from grpc-gateway --- 0.2.0/grafeas/.gitignore | 24 + 0.2.0/grafeas/.swagger-codegen-ignore | 23 + 0.2.0/grafeas/.swagger-codegen/VERSION | 1 + 0.2.0/grafeas/.travis.yml | 8 + 0.2.0/grafeas/README.md | 160 + 0.2.0/grafeas/api/swagger.yaml | 7579 +++++++++++++++++ 0.2.0/grafeas/api_grafeas_v1_beta1.go | 1622 ++++ 0.2.0/grafeas/client.go | 464 + 0.2.0/grafeas/configuration.go | 72 + 0.2.0/grafeas/docs/AliasContextKind.md | 9 + 0.2.0/grafeas/docs/AttestationAttestation.md | 11 + 0.2.0/grafeas/docs/AttestationAuthority.md | 10 + .../AttestationGenericSignedAttestation.md | 12 + ...tionGenericSignedAttestationContentType.md | 9 + .../docs/AttestationPgpSignedAttestation.md | 12 + ...estationPgpSignedAttestationContentType.md | 9 + 0.2.0/grafeas/docs/AuthorityHint.md | 10 + 0.2.0/grafeas/docs/Body.md | 10 + 0.2.0/grafeas/docs/Body1.md | 10 + 0.2.0/grafeas/docs/BuildBuild.md | 11 + 0.2.0/grafeas/docs/BuildBuildSignature.md | 13 + 0.2.0/grafeas/docs/BuildSignatureKeyType.md | 9 + 0.2.0/grafeas/docs/CvssAttackComplexity.md | 9 + 0.2.0/grafeas/docs/CvssAttackVector.md | 9 + 0.2.0/grafeas/docs/CvssAuthentication.md | 9 + 0.2.0/grafeas/docs/CvssImpact.md | 9 + 0.2.0/grafeas/docs/CvssPrivilegesRequired.md | 9 + 0.2.0/grafeas/docs/CvssScope.md | 9 + 0.2.0/grafeas/docs/CvssUserInteraction.md | 9 + 0.2.0/grafeas/docs/DeploymentDeployable.md | 10 + 0.2.0/grafeas/docs/DeploymentDeployment.md | 16 + 0.2.0/grafeas/docs/DeploymentPlatform.md | 9 + .../grafeas/docs/DiscoveredAnalysisStatus.md | 9 + .../docs/DiscoveredContinuousAnalysis.md | 9 + 0.2.0/grafeas/docs/DiscoveryDiscovered.md | 13 + 0.2.0/grafeas/docs/DiscoveryDiscovery.md | 10 + 0.2.0/grafeas/docs/ExternalRefCategory.md | 9 + 0.2.0/grafeas/docs/FileNoteFileType.md | 9 + 0.2.0/grafeas/docs/GrafeasV1Beta1Api.md | 482 ++ 0.2.0/grafeas/docs/Grafeasv1beta1Signature.md | 11 + 0.2.0/grafeas/docs/HashHashType.md | 9 + 0.2.0/grafeas/docs/ImageBasis.md | 11 + 0.2.0/grafeas/docs/ImageDerived.md | 13 + 0.2.0/grafeas/docs/ImageFingerprint.md | 12 + 0.2.0/grafeas/docs/ImageLayer.md | 11 + 0.2.0/grafeas/docs/InTotoArtifactRule.md | 10 + 0.2.0/grafeas/docs/IntotoInToto.md | 15 + 0.2.0/grafeas/docs/IntotoLink.md | 14 + 0.2.0/grafeas/docs/IntotoLinkArtifact.md | 11 + 0.2.0/grafeas/docs/IntotoSigningKey.md | 13 + 0.2.0/grafeas/docs/LayerDirective.md | 9 + 0.2.0/grafeas/docs/LinkArtifactHashes.md | 10 + 0.2.0/grafeas/docs/LinkByProducts.md | 10 + 0.2.0/grafeas/docs/LinkEnvironment.md | 10 + 0.2.0/grafeas/docs/PackageArchitecture.md | 9 + 0.2.0/grafeas/docs/PackageDistribution.md | 15 + .../docs/PackageInfoNoteExternalRef.md | 13 + 0.2.0/grafeas/docs/PackageInstallation.md | 11 + 0.2.0/grafeas/docs/PackagePackage.md | 11 + 0.2.0/grafeas/docs/PackageVersion.md | 14 + 0.2.0/grafeas/docs/ProtobufAny.md | 10 + .../grafeas/docs/ProvenanceBuildProvenance.md | 22 + 0.2.0/grafeas/docs/ProvenanceCommand.md | 15 + 0.2.0/grafeas/docs/ProvenanceFileHashes.md | 10 + 0.2.0/grafeas/docs/ProvenanceHash.md | 11 + 0.2.0/grafeas/docs/ProvenanceSource.md | 13 + 0.2.0/grafeas/docs/RpcStatus.md | 12 + 0.2.0/grafeas/docs/SourceAliasContext.md | 11 + .../docs/SourceCloudRepoSourceContext.md | 12 + .../grafeas/docs/SourceGerritSourceContext.md | 13 + 0.2.0/grafeas/docs/SourceGitSourceContext.md | 11 + 0.2.0/grafeas/docs/SourceProjectRepoId.md | 11 + 0.2.0/grafeas/docs/SourceRepoId.md | 11 + 0.2.0/grafeas/docs/SourceSourceContext.md | 13 + 0.2.0/grafeas/docs/SpdxDocumentNote.md | 11 + 0.2.0/grafeas/docs/SpdxDocumentOccurrence.md | 18 + 0.2.0/grafeas/docs/SpdxFileNote.md | 12 + 0.2.0/grafeas/docs/SpdxFileOccurrence.md | 17 + 0.2.0/grafeas/docs/SpdxLicense.md | 11 + 0.2.0/grafeas/docs/SpdxPackageInfoNote.md | 26 + .../grafeas/docs/SpdxPackageInfoOccurrence.md | 19 + 0.2.0/grafeas/docs/SpdxRelationshipNote.md | 10 + .../docs/SpdxRelationshipOccurrence.md | 13 + 0.2.0/grafeas/docs/SpdxRelationshipType.md | 9 + .../docs/V1beta1BatchCreateNotesResponse.md | 10 + .../V1beta1BatchCreateOccurrencesResponse.md | 10 + 0.2.0/grafeas/docs/V1beta1Envelope.md | 12 + .../grafeas/docs/V1beta1EnvelopeSignature.md | 11 + .../V1beta1ListNoteOccurrencesResponse.md | 11 + .../grafeas/docs/V1beta1ListNotesResponse.md | 11 + .../docs/V1beta1ListOccurrencesResponse.md | 11 + 0.2.0/grafeas/docs/V1beta1Note.md | 30 + 0.2.0/grafeas/docs/V1beta1NoteKind.md | 9 + 0.2.0/grafeas/docs/V1beta1Occurrence.md | 29 + 0.2.0/grafeas/docs/V1beta1RelatedUrl.md | 11 + 0.2.0/grafeas/docs/V1beta1Resource.md | 12 + .../V1beta1VulnerabilityOccurrencesSummary.md | 10 + .../grafeas/docs/V1beta1attestationDetails.md | 10 + 0.2.0/grafeas/docs/V1beta1buildDetails.md | 11 + .../grafeas/docs/V1beta1deploymentDetails.md | 10 + 0.2.0/grafeas/docs/V1beta1discoveryDetails.md | 10 + 0.2.0/grafeas/docs/V1beta1imageDetails.md | 10 + 0.2.0/grafeas/docs/V1beta1intotoDetails.md | 11 + 0.2.0/grafeas/docs/V1beta1intotoSignature.md | 11 + 0.2.0/grafeas/docs/V1beta1packageDetails.md | 10 + 0.2.0/grafeas/docs/V1beta1packageLocation.md | 12 + .../grafeas/docs/V1beta1provenanceArtifact.md | 12 + .../docs/V1beta1vulnerabilityDetails.md | 17 + 0.2.0/grafeas/docs/VersionVersionKind.md | 9 + 0.2.0/grafeas/docs/VulnerabilityCvss.md | 21 + 0.2.0/grafeas/docs/VulnerabilityDetail.md | 21 + ...yOccurrencesSummaryFixableTotalByDigest.md | 13 + .../grafeas/docs/VulnerabilityPackageIssue.md | 14 + 0.2.0/grafeas/docs/VulnerabilitySeverity.md | 9 + .../docs/VulnerabilityVulnerability.md | 17 + .../VulnerabilityVulnerabilityLocation.md | 12 + .../docs/VulnerabilityWindowsDetail.md | 13 + .../docs/WindowsDetailKnowledgeBase.md | 11 + 0.2.0/grafeas/git_push.sh | 52 + 0.2.0/grafeas/model_alias_context_kind.go | 20 + .../grafeas/model_attestation_attestation.go | 18 + 0.2.0/grafeas/model_attestation_authority.go | 16 + ..._attestation_generic_signed_attestation.go | 20 + ...generic_signed_attestation_content_type.go | 18 + ...odel_attestation_pgp_signed_attestation.go | 20 + ...ion_pgp_signed_attestation_content_type.go | 18 + 0.2.0/grafeas/model_authority_hint.go | 16 + 0.2.0/grafeas/model_body.go | 16 + 0.2.0/grafeas/model_body_1.go | 16 + 0.2.0/grafeas/model_build_build.go | 18 + 0.2.0/grafeas/model_build_build_signature.go | 22 + .../grafeas/model_build_signature_key_type.go | 19 + 0.2.0/grafeas/model_cvss_attack_complexity.go | 19 + 0.2.0/grafeas/model_cvss_attack_vector.go | 21 + 0.2.0/grafeas/model_cvss_authentication.go | 20 + 0.2.0/grafeas/model_cvss_impact.go | 20 + .../grafeas/model_cvss_privileges_required.go | 20 + 0.2.0/grafeas/model_cvss_scope.go | 19 + 0.2.0/grafeas/model_cvss_user_interaction.go | 19 + 0.2.0/grafeas/model_deployment_deployable.go | 16 + 0.2.0/grafeas/model_deployment_deployment.go | 32 + 0.2.0/grafeas/model_deployment_platform.go | 20 + .../model_discovered_analysis_status.go | 22 + .../model_discovered_continuous_analysis.go | 19 + 0.2.0/grafeas/model_discovery_discovered.go | 26 + 0.2.0/grafeas/model_discovery_discovery.go | 16 + 0.2.0/grafeas/model_external_ref_category.go | 21 + 0.2.0/grafeas/model_file_note_file_type.go | 28 + .../grafeas/model_grafeasv1beta1_signature.go | 18 + 0.2.0/grafeas/model_hash_hash_type.go | 18 + 0.2.0/grafeas/model_image_basis.go | 18 + 0.2.0/grafeas/model_image_derived.go | 22 + 0.2.0/grafeas/model_image_fingerprint.go | 20 + 0.2.0/grafeas/model_image_layer.go | 18 + 0.2.0/grafeas/model_in_toto_artifact_rule.go | 14 + 0.2.0/grafeas/model_intoto_in_toto.go | 25 + 0.2.0/grafeas/model_intoto_link.go | 21 + 0.2.0/grafeas/model_intoto_link_artifact.go | 15 + 0.2.0/grafeas/model_intoto_signing_key.go | 22 + 0.2.0/grafeas/model_layer_directive.go | 34 + 0.2.0/grafeas/model_link_artifact_hashes.go | 15 + 0.2.0/grafeas/model_link_by_products.go | 15 + 0.2.0/grafeas/model_link_environment.go | 15 + 0.2.0/grafeas/model_package_architecture.go | 19 + 0.2.0/grafeas/model_package_distribution.go | 26 + .../model_package_info_note_external_ref.go | 17 + 0.2.0/grafeas/model_package_installation.go | 18 + 0.2.0/grafeas/model_package_package.go | 18 + 0.2.0/grafeas/model_package_version.go | 24 + 0.2.0/grafeas/model_protobuf_any.go | 16 + .../model_provenance_build_provenance.go | 44 + 0.2.0/grafeas/model_provenance_command.go | 26 + 0.2.0/grafeas/model_provenance_file_hashes.go | 16 + 0.2.0/grafeas/model_provenance_hash.go | 18 + 0.2.0/grafeas/model_provenance_source.go | 22 + 0.2.0/grafeas/model_rpc_status.go | 20 + 0.2.0/grafeas/model_source_alias_context.go | 18 + .../model_source_cloud_repo_source_context.go | 20 + .../model_source_gerrit_source_context.go | 22 + .../model_source_git_source_context.go | 18 + 0.2.0/grafeas/model_source_project_repo_id.go | 18 + 0.2.0/grafeas/model_source_repo_id.go | 18 + 0.2.0/grafeas/model_source_source_context.go | 22 + 0.2.0/grafeas/model_spdx_document_note.go | 15 + .../grafeas/model_spdx_document_occurrence.go | 26 + 0.2.0/grafeas/model_spdx_file_note.go | 16 + 0.2.0/grafeas/model_spdx_file_occurrence.go | 21 + 0.2.0/grafeas/model_spdx_license.go | 15 + 0.2.0/grafeas/model_spdx_package_info_note.go | 31 + .../model_spdx_package_info_occurrence.go | 24 + 0.2.0/grafeas/model_spdx_relationship_note.go | 14 + .../model_spdx_relationship_occurrence.go | 17 + 0.2.0/grafeas/model_spdx_relationship_type.go | 60 + ...del_v1beta1_batch_create_notes_response.go | 16 + ...beta1_batch_create_occurrences_response.go | 16 + 0.2.0/grafeas/model_v1beta1_envelope.go | 17 + .../model_v1beta1_envelope_signature.go | 15 + ..._v1beta1_list_note_occurrences_response.go | 18 + .../model_v1beta1_list_notes_response.go | 18 + ...model_v1beta1_list_occurrences_response.go | 18 + 0.2.0/grafeas/model_v1beta1_note.go | 60 + 0.2.0/grafeas/model_v1beta1_note_kind.go | 29 + 0.2.0/grafeas/model_v1beta1_occurrence.go | 57 + 0.2.0/grafeas/model_v1beta1_related_url.go | 18 + 0.2.0/grafeas/model_v1beta1_resource.go | 20 + ...beta1_vulnerability_occurrences_summary.go | 16 + .../model_v1beta1attestation_details.go | 16 + 0.2.0/grafeas/model_v1beta1build_details.go | 18 + .../model_v1beta1deployment_details.go | 16 + .../grafeas/model_v1beta1discovery_details.go | 16 + 0.2.0/grafeas/model_v1beta1image_details.go | 16 + 0.2.0/grafeas/model_v1beta1intoto_details.go | 16 + .../grafeas/model_v1beta1intoto_signature.go | 16 + 0.2.0/grafeas/model_v1beta1package_details.go | 16 + .../grafeas/model_v1beta1package_location.go | 20 + .../model_v1beta1provenance_artifact.go | 20 + .../model_v1beta1vulnerability_details.go | 29 + 0.2.0/grafeas/model_version_version_kind.go | 20 + 0.2.0/grafeas/model_vulnerability_cvss.go | 27 + 0.2.0/grafeas/model_vulnerability_detail.go | 41 + ...rrences_summary_fixable_total_by_digest.go | 22 + .../model_vulnerability_package_issue.go | 24 + 0.2.0/grafeas/model_vulnerability_severity.go | 22 + .../model_vulnerability_vulnerability.go | 33 + ...el_vulnerability_vulnerability_location.go | 20 + .../model_vulnerability_windows_detail.go | 21 + .../model_windows_detail_knowledge_base.go | 16 + 0.2.0/grafeas/response.go | 43 + 0.2.0/project/.gitignore | 24 + 0.2.0/project/.swagger-codegen-ignore | 23 + 0.2.0/project/.swagger-codegen/VERSION | 1 + 0.2.0/project/.travis.yml | 8 + 0.2.0/project/README.md | 45 + 0.2.0/project/api/swagger.yaml | 163 + 0.2.0/project/api_projects.go | 442 + 0.2.0/project/client.go | 464 + 0.2.0/project/configuration.go | 72 + .../docs/ProjectListProjectsResponse.md | 11 + 0.2.0/project/docs/ProjectProject.md | 10 + 0.2.0/project/docs/ProjectsApi.md | 125 + 0.2.0/project/docs/ProtobufAny.md | 10 + 0.2.0/project/docs/RpcStatus.md | 12 + 0.2.0/project/git_push.sh | 52 + .../model_project_list_projects_response.go | 18 + 0.2.0/project/model_project_project.go | 16 + 0.2.0/project/model_protobuf_any.go | 14 + 0.2.0/project/model_rpc_status.go | 16 + 0.2.0/project/response.go | 43 + config.go.json | 2 +- generate/main.go | 16 +- go.mod | 15 + go.sum | 364 + project.swagger.json | 219 + 253 files changed, 16283 insertions(+), 15 deletions(-) create mode 100644 0.2.0/grafeas/.gitignore create mode 100644 0.2.0/grafeas/.swagger-codegen-ignore create mode 100644 0.2.0/grafeas/.swagger-codegen/VERSION create mode 100644 0.2.0/grafeas/.travis.yml create mode 100644 0.2.0/grafeas/README.md create mode 100644 0.2.0/grafeas/api/swagger.yaml create mode 100644 0.2.0/grafeas/api_grafeas_v1_beta1.go create mode 100644 0.2.0/grafeas/client.go create mode 100644 0.2.0/grafeas/configuration.go create mode 100644 0.2.0/grafeas/docs/AliasContextKind.md create mode 100644 0.2.0/grafeas/docs/AttestationAttestation.md create mode 100644 0.2.0/grafeas/docs/AttestationAuthority.md create mode 100644 0.2.0/grafeas/docs/AttestationGenericSignedAttestation.md create mode 100644 0.2.0/grafeas/docs/AttestationGenericSignedAttestationContentType.md create mode 100644 0.2.0/grafeas/docs/AttestationPgpSignedAttestation.md create mode 100644 0.2.0/grafeas/docs/AttestationPgpSignedAttestationContentType.md create mode 100644 0.2.0/grafeas/docs/AuthorityHint.md create mode 100644 0.2.0/grafeas/docs/Body.md create mode 100644 0.2.0/grafeas/docs/Body1.md create mode 100644 0.2.0/grafeas/docs/BuildBuild.md create mode 100644 0.2.0/grafeas/docs/BuildBuildSignature.md create mode 100644 0.2.0/grafeas/docs/BuildSignatureKeyType.md create mode 100644 0.2.0/grafeas/docs/CvssAttackComplexity.md create mode 100644 0.2.0/grafeas/docs/CvssAttackVector.md create mode 100644 0.2.0/grafeas/docs/CvssAuthentication.md create mode 100644 0.2.0/grafeas/docs/CvssImpact.md create mode 100644 0.2.0/grafeas/docs/CvssPrivilegesRequired.md create mode 100644 0.2.0/grafeas/docs/CvssScope.md create mode 100644 0.2.0/grafeas/docs/CvssUserInteraction.md create mode 100644 0.2.0/grafeas/docs/DeploymentDeployable.md create mode 100644 0.2.0/grafeas/docs/DeploymentDeployment.md create mode 100644 0.2.0/grafeas/docs/DeploymentPlatform.md create mode 100644 0.2.0/grafeas/docs/DiscoveredAnalysisStatus.md create mode 100644 0.2.0/grafeas/docs/DiscoveredContinuousAnalysis.md create mode 100644 0.2.0/grafeas/docs/DiscoveryDiscovered.md create mode 100644 0.2.0/grafeas/docs/DiscoveryDiscovery.md create mode 100644 0.2.0/grafeas/docs/ExternalRefCategory.md create mode 100644 0.2.0/grafeas/docs/FileNoteFileType.md create mode 100644 0.2.0/grafeas/docs/GrafeasV1Beta1Api.md create mode 100644 0.2.0/grafeas/docs/Grafeasv1beta1Signature.md create mode 100644 0.2.0/grafeas/docs/HashHashType.md create mode 100644 0.2.0/grafeas/docs/ImageBasis.md create mode 100644 0.2.0/grafeas/docs/ImageDerived.md create mode 100644 0.2.0/grafeas/docs/ImageFingerprint.md create mode 100644 0.2.0/grafeas/docs/ImageLayer.md create mode 100644 0.2.0/grafeas/docs/InTotoArtifactRule.md create mode 100644 0.2.0/grafeas/docs/IntotoInToto.md create mode 100644 0.2.0/grafeas/docs/IntotoLink.md create mode 100644 0.2.0/grafeas/docs/IntotoLinkArtifact.md create mode 100644 0.2.0/grafeas/docs/IntotoSigningKey.md create mode 100644 0.2.0/grafeas/docs/LayerDirective.md create mode 100644 0.2.0/grafeas/docs/LinkArtifactHashes.md create mode 100644 0.2.0/grafeas/docs/LinkByProducts.md create mode 100644 0.2.0/grafeas/docs/LinkEnvironment.md create mode 100644 0.2.0/grafeas/docs/PackageArchitecture.md create mode 100644 0.2.0/grafeas/docs/PackageDistribution.md create mode 100644 0.2.0/grafeas/docs/PackageInfoNoteExternalRef.md create mode 100644 0.2.0/grafeas/docs/PackageInstallation.md create mode 100644 0.2.0/grafeas/docs/PackagePackage.md create mode 100644 0.2.0/grafeas/docs/PackageVersion.md create mode 100644 0.2.0/grafeas/docs/ProtobufAny.md create mode 100644 0.2.0/grafeas/docs/ProvenanceBuildProvenance.md create mode 100644 0.2.0/grafeas/docs/ProvenanceCommand.md create mode 100644 0.2.0/grafeas/docs/ProvenanceFileHashes.md create mode 100644 0.2.0/grafeas/docs/ProvenanceHash.md create mode 100644 0.2.0/grafeas/docs/ProvenanceSource.md create mode 100644 0.2.0/grafeas/docs/RpcStatus.md create mode 100644 0.2.0/grafeas/docs/SourceAliasContext.md create mode 100644 0.2.0/grafeas/docs/SourceCloudRepoSourceContext.md create mode 100644 0.2.0/grafeas/docs/SourceGerritSourceContext.md create mode 100644 0.2.0/grafeas/docs/SourceGitSourceContext.md create mode 100644 0.2.0/grafeas/docs/SourceProjectRepoId.md create mode 100644 0.2.0/grafeas/docs/SourceRepoId.md create mode 100644 0.2.0/grafeas/docs/SourceSourceContext.md create mode 100644 0.2.0/grafeas/docs/SpdxDocumentNote.md create mode 100644 0.2.0/grafeas/docs/SpdxDocumentOccurrence.md create mode 100644 0.2.0/grafeas/docs/SpdxFileNote.md create mode 100644 0.2.0/grafeas/docs/SpdxFileOccurrence.md create mode 100644 0.2.0/grafeas/docs/SpdxLicense.md create mode 100644 0.2.0/grafeas/docs/SpdxPackageInfoNote.md create mode 100644 0.2.0/grafeas/docs/SpdxPackageInfoOccurrence.md create mode 100644 0.2.0/grafeas/docs/SpdxRelationshipNote.md create mode 100644 0.2.0/grafeas/docs/SpdxRelationshipOccurrence.md create mode 100644 0.2.0/grafeas/docs/SpdxRelationshipType.md create mode 100644 0.2.0/grafeas/docs/V1beta1BatchCreateNotesResponse.md create mode 100644 0.2.0/grafeas/docs/V1beta1BatchCreateOccurrencesResponse.md create mode 100644 0.2.0/grafeas/docs/V1beta1Envelope.md create mode 100644 0.2.0/grafeas/docs/V1beta1EnvelopeSignature.md create mode 100644 0.2.0/grafeas/docs/V1beta1ListNoteOccurrencesResponse.md create mode 100644 0.2.0/grafeas/docs/V1beta1ListNotesResponse.md create mode 100644 0.2.0/grafeas/docs/V1beta1ListOccurrencesResponse.md create mode 100644 0.2.0/grafeas/docs/V1beta1Note.md create mode 100644 0.2.0/grafeas/docs/V1beta1NoteKind.md create mode 100644 0.2.0/grafeas/docs/V1beta1Occurrence.md create mode 100644 0.2.0/grafeas/docs/V1beta1RelatedUrl.md create mode 100644 0.2.0/grafeas/docs/V1beta1Resource.md create mode 100644 0.2.0/grafeas/docs/V1beta1VulnerabilityOccurrencesSummary.md create mode 100644 0.2.0/grafeas/docs/V1beta1attestationDetails.md create mode 100644 0.2.0/grafeas/docs/V1beta1buildDetails.md create mode 100644 0.2.0/grafeas/docs/V1beta1deploymentDetails.md create mode 100644 0.2.0/grafeas/docs/V1beta1discoveryDetails.md create mode 100644 0.2.0/grafeas/docs/V1beta1imageDetails.md create mode 100644 0.2.0/grafeas/docs/V1beta1intotoDetails.md create mode 100644 0.2.0/grafeas/docs/V1beta1intotoSignature.md create mode 100644 0.2.0/grafeas/docs/V1beta1packageDetails.md create mode 100644 0.2.0/grafeas/docs/V1beta1packageLocation.md create mode 100644 0.2.0/grafeas/docs/V1beta1provenanceArtifact.md create mode 100644 0.2.0/grafeas/docs/V1beta1vulnerabilityDetails.md create mode 100644 0.2.0/grafeas/docs/VersionVersionKind.md create mode 100644 0.2.0/grafeas/docs/VulnerabilityCvss.md create mode 100644 0.2.0/grafeas/docs/VulnerabilityDetail.md create mode 100644 0.2.0/grafeas/docs/VulnerabilityOccurrencesSummaryFixableTotalByDigest.md create mode 100644 0.2.0/grafeas/docs/VulnerabilityPackageIssue.md create mode 100644 0.2.0/grafeas/docs/VulnerabilitySeverity.md create mode 100644 0.2.0/grafeas/docs/VulnerabilityVulnerability.md create mode 100644 0.2.0/grafeas/docs/VulnerabilityVulnerabilityLocation.md create mode 100644 0.2.0/grafeas/docs/VulnerabilityWindowsDetail.md create mode 100644 0.2.0/grafeas/docs/WindowsDetailKnowledgeBase.md create mode 100644 0.2.0/grafeas/git_push.sh create mode 100644 0.2.0/grafeas/model_alias_context_kind.go create mode 100644 0.2.0/grafeas/model_attestation_attestation.go create mode 100644 0.2.0/grafeas/model_attestation_authority.go create mode 100644 0.2.0/grafeas/model_attestation_generic_signed_attestation.go create mode 100644 0.2.0/grafeas/model_attestation_generic_signed_attestation_content_type.go create mode 100644 0.2.0/grafeas/model_attestation_pgp_signed_attestation.go create mode 100644 0.2.0/grafeas/model_attestation_pgp_signed_attestation_content_type.go create mode 100644 0.2.0/grafeas/model_authority_hint.go create mode 100644 0.2.0/grafeas/model_body.go create mode 100644 0.2.0/grafeas/model_body_1.go create mode 100644 0.2.0/grafeas/model_build_build.go create mode 100644 0.2.0/grafeas/model_build_build_signature.go create mode 100644 0.2.0/grafeas/model_build_signature_key_type.go create mode 100644 0.2.0/grafeas/model_cvss_attack_complexity.go create mode 100644 0.2.0/grafeas/model_cvss_attack_vector.go create mode 100644 0.2.0/grafeas/model_cvss_authentication.go create mode 100644 0.2.0/grafeas/model_cvss_impact.go create mode 100644 0.2.0/grafeas/model_cvss_privileges_required.go create mode 100644 0.2.0/grafeas/model_cvss_scope.go create mode 100644 0.2.0/grafeas/model_cvss_user_interaction.go create mode 100644 0.2.0/grafeas/model_deployment_deployable.go create mode 100644 0.2.0/grafeas/model_deployment_deployment.go create mode 100644 0.2.0/grafeas/model_deployment_platform.go create mode 100644 0.2.0/grafeas/model_discovered_analysis_status.go create mode 100644 0.2.0/grafeas/model_discovered_continuous_analysis.go create mode 100644 0.2.0/grafeas/model_discovery_discovered.go create mode 100644 0.2.0/grafeas/model_discovery_discovery.go create mode 100644 0.2.0/grafeas/model_external_ref_category.go create mode 100644 0.2.0/grafeas/model_file_note_file_type.go create mode 100644 0.2.0/grafeas/model_grafeasv1beta1_signature.go create mode 100644 0.2.0/grafeas/model_hash_hash_type.go create mode 100644 0.2.0/grafeas/model_image_basis.go create mode 100644 0.2.0/grafeas/model_image_derived.go create mode 100644 0.2.0/grafeas/model_image_fingerprint.go create mode 100644 0.2.0/grafeas/model_image_layer.go create mode 100644 0.2.0/grafeas/model_in_toto_artifact_rule.go create mode 100644 0.2.0/grafeas/model_intoto_in_toto.go create mode 100644 0.2.0/grafeas/model_intoto_link.go create mode 100644 0.2.0/grafeas/model_intoto_link_artifact.go create mode 100644 0.2.0/grafeas/model_intoto_signing_key.go create mode 100644 0.2.0/grafeas/model_layer_directive.go create mode 100644 0.2.0/grafeas/model_link_artifact_hashes.go create mode 100644 0.2.0/grafeas/model_link_by_products.go create mode 100644 0.2.0/grafeas/model_link_environment.go create mode 100644 0.2.0/grafeas/model_package_architecture.go create mode 100644 0.2.0/grafeas/model_package_distribution.go create mode 100644 0.2.0/grafeas/model_package_info_note_external_ref.go create mode 100644 0.2.0/grafeas/model_package_installation.go create mode 100644 0.2.0/grafeas/model_package_package.go create mode 100644 0.2.0/grafeas/model_package_version.go create mode 100644 0.2.0/grafeas/model_protobuf_any.go create mode 100644 0.2.0/grafeas/model_provenance_build_provenance.go create mode 100644 0.2.0/grafeas/model_provenance_command.go create mode 100644 0.2.0/grafeas/model_provenance_file_hashes.go create mode 100644 0.2.0/grafeas/model_provenance_hash.go create mode 100644 0.2.0/grafeas/model_provenance_source.go create mode 100644 0.2.0/grafeas/model_rpc_status.go create mode 100644 0.2.0/grafeas/model_source_alias_context.go create mode 100644 0.2.0/grafeas/model_source_cloud_repo_source_context.go create mode 100644 0.2.0/grafeas/model_source_gerrit_source_context.go create mode 100644 0.2.0/grafeas/model_source_git_source_context.go create mode 100644 0.2.0/grafeas/model_source_project_repo_id.go create mode 100644 0.2.0/grafeas/model_source_repo_id.go create mode 100644 0.2.0/grafeas/model_source_source_context.go create mode 100644 0.2.0/grafeas/model_spdx_document_note.go create mode 100644 0.2.0/grafeas/model_spdx_document_occurrence.go create mode 100644 0.2.0/grafeas/model_spdx_file_note.go create mode 100644 0.2.0/grafeas/model_spdx_file_occurrence.go create mode 100644 0.2.0/grafeas/model_spdx_license.go create mode 100644 0.2.0/grafeas/model_spdx_package_info_note.go create mode 100644 0.2.0/grafeas/model_spdx_package_info_occurrence.go create mode 100644 0.2.0/grafeas/model_spdx_relationship_note.go create mode 100644 0.2.0/grafeas/model_spdx_relationship_occurrence.go create mode 100644 0.2.0/grafeas/model_spdx_relationship_type.go create mode 100644 0.2.0/grafeas/model_v1beta1_batch_create_notes_response.go create mode 100644 0.2.0/grafeas/model_v1beta1_batch_create_occurrences_response.go create mode 100644 0.2.0/grafeas/model_v1beta1_envelope.go create mode 100644 0.2.0/grafeas/model_v1beta1_envelope_signature.go create mode 100644 0.2.0/grafeas/model_v1beta1_list_note_occurrences_response.go create mode 100644 0.2.0/grafeas/model_v1beta1_list_notes_response.go create mode 100644 0.2.0/grafeas/model_v1beta1_list_occurrences_response.go create mode 100644 0.2.0/grafeas/model_v1beta1_note.go create mode 100644 0.2.0/grafeas/model_v1beta1_note_kind.go create mode 100644 0.2.0/grafeas/model_v1beta1_occurrence.go create mode 100644 0.2.0/grafeas/model_v1beta1_related_url.go create mode 100644 0.2.0/grafeas/model_v1beta1_resource.go create mode 100644 0.2.0/grafeas/model_v1beta1_vulnerability_occurrences_summary.go create mode 100644 0.2.0/grafeas/model_v1beta1attestation_details.go create mode 100644 0.2.0/grafeas/model_v1beta1build_details.go create mode 100644 0.2.0/grafeas/model_v1beta1deployment_details.go create mode 100644 0.2.0/grafeas/model_v1beta1discovery_details.go create mode 100644 0.2.0/grafeas/model_v1beta1image_details.go create mode 100644 0.2.0/grafeas/model_v1beta1intoto_details.go create mode 100644 0.2.0/grafeas/model_v1beta1intoto_signature.go create mode 100644 0.2.0/grafeas/model_v1beta1package_details.go create mode 100644 0.2.0/grafeas/model_v1beta1package_location.go create mode 100644 0.2.0/grafeas/model_v1beta1provenance_artifact.go create mode 100644 0.2.0/grafeas/model_v1beta1vulnerability_details.go create mode 100644 0.2.0/grafeas/model_version_version_kind.go create mode 100644 0.2.0/grafeas/model_vulnerability_cvss.go create mode 100644 0.2.0/grafeas/model_vulnerability_detail.go create mode 100644 0.2.0/grafeas/model_vulnerability_occurrences_summary_fixable_total_by_digest.go create mode 100644 0.2.0/grafeas/model_vulnerability_package_issue.go create mode 100644 0.2.0/grafeas/model_vulnerability_severity.go create mode 100644 0.2.0/grafeas/model_vulnerability_vulnerability.go create mode 100644 0.2.0/grafeas/model_vulnerability_vulnerability_location.go create mode 100644 0.2.0/grafeas/model_vulnerability_windows_detail.go create mode 100644 0.2.0/grafeas/model_windows_detail_knowledge_base.go create mode 100644 0.2.0/grafeas/response.go create mode 100644 0.2.0/project/.gitignore create mode 100644 0.2.0/project/.swagger-codegen-ignore create mode 100644 0.2.0/project/.swagger-codegen/VERSION create mode 100644 0.2.0/project/.travis.yml create mode 100644 0.2.0/project/README.md create mode 100644 0.2.0/project/api/swagger.yaml create mode 100644 0.2.0/project/api_projects.go create mode 100644 0.2.0/project/client.go create mode 100644 0.2.0/project/configuration.go create mode 100644 0.2.0/project/docs/ProjectListProjectsResponse.md create mode 100644 0.2.0/project/docs/ProjectProject.md create mode 100644 0.2.0/project/docs/ProjectsApi.md create mode 100644 0.2.0/project/docs/ProtobufAny.md create mode 100644 0.2.0/project/docs/RpcStatus.md create mode 100644 0.2.0/project/git_push.sh create mode 100644 0.2.0/project/model_project_list_projects_response.go create mode 100644 0.2.0/project/model_project_project.go create mode 100644 0.2.0/project/model_protobuf_any.go create mode 100644 0.2.0/project/model_rpc_status.go create mode 100644 0.2.0/project/response.go create mode 100644 go.mod create mode 100644 go.sum create mode 100644 project.swagger.json diff --git a/0.2.0/grafeas/.gitignore b/0.2.0/grafeas/.gitignore new file mode 100644 index 0000000..daf913b --- /dev/null +++ b/0.2.0/grafeas/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/0.2.0/grafeas/.swagger-codegen-ignore b/0.2.0/grafeas/.swagger-codegen-ignore new file mode 100644 index 0000000..c5fa491 --- /dev/null +++ b/0.2.0/grafeas/.swagger-codegen-ignore @@ -0,0 +1,23 @@ +# Swagger Codegen Ignore +# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/0.2.0/grafeas/.swagger-codegen/VERSION b/0.2.0/grafeas/.swagger-codegen/VERSION new file mode 100644 index 0000000..26f8b8b --- /dev/null +++ b/0.2.0/grafeas/.swagger-codegen/VERSION @@ -0,0 +1 @@ +2.4.5 \ No newline at end of file diff --git a/0.2.0/grafeas/.travis.yml b/0.2.0/grafeas/.travis.yml new file mode 100644 index 0000000..f5cb2ce --- /dev/null +++ b/0.2.0/grafeas/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/0.2.0/grafeas/README.md b/0.2.0/grafeas/README.md new file mode 100644 index 0000000..1565fd9 --- /dev/null +++ b/0.2.0/grafeas/README.md @@ -0,0 +1,160 @@ +# Go API client for grafeas + +No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + +## Overview +This API client was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [swagger-spec](https://github.com/swagger-api/swagger-spec) from a remote server, you can easily generate an API client. + +- API version: version not set +- Package version: 0.2.0 +- Build package: io.swagger.codegen.languages.GoClientCodegen + +## Installation +Put the package under your project folder and add the following in import: +```golang +import "./grafeas" +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*GrafeasV1Beta1Api* | [**GrafeasV1Beta1BatchCreateNotes**](docs/GrafeasV1Beta1Api.md#grafeasv1beta1batchcreatenotes) | **Post** /v1beta1/{parent}/notes:batchCreate | Creates new notes in batch. +*GrafeasV1Beta1Api* | [**GrafeasV1Beta1BatchCreateOccurrences**](docs/GrafeasV1Beta1Api.md#grafeasv1beta1batchcreateoccurrences) | **Post** /v1beta1/{parent}/occurrences:batchCreate | Creates new occurrences in batch. +*GrafeasV1Beta1Api* | [**GrafeasV1Beta1CreateNote**](docs/GrafeasV1Beta1Api.md#grafeasv1beta1createnote) | **Post** /v1beta1/{parent}/notes | Creates a new note. +*GrafeasV1Beta1Api* | [**GrafeasV1Beta1CreateOccurrence**](docs/GrafeasV1Beta1Api.md#grafeasv1beta1createoccurrence) | **Post** /v1beta1/{parent}/occurrences | Creates a new occurrence. +*GrafeasV1Beta1Api* | [**GrafeasV1Beta1DeleteNote**](docs/GrafeasV1Beta1Api.md#grafeasv1beta1deletenote) | **Delete** /v1beta1/{name_1} | Deletes the specified note. +*GrafeasV1Beta1Api* | [**GrafeasV1Beta1DeleteOccurrence**](docs/GrafeasV1Beta1Api.md#grafeasv1beta1deleteoccurrence) | **Delete** /v1beta1/{name} | Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource. +*GrafeasV1Beta1Api* | [**GrafeasV1Beta1GetNote**](docs/GrafeasV1Beta1Api.md#grafeasv1beta1getnote) | **Get** /v1beta1/{name_1} | Gets the specified note. +*GrafeasV1Beta1Api* | [**GrafeasV1Beta1GetOccurrence**](docs/GrafeasV1Beta1Api.md#grafeasv1beta1getoccurrence) | **Get** /v1beta1/{name} | Gets the specified occurrence. +*GrafeasV1Beta1Api* | [**GrafeasV1Beta1GetOccurrenceNote**](docs/GrafeasV1Beta1Api.md#grafeasv1beta1getoccurrencenote) | **Get** /v1beta1/{name}/notes | Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project. +*GrafeasV1Beta1Api* | [**GrafeasV1Beta1GetVulnerabilityOccurrencesSummary**](docs/GrafeasV1Beta1Api.md#grafeasv1beta1getvulnerabilityoccurrencessummary) | **Get** /v1beta1/{parent}/occurrences:vulnerabilitySummary | Gets a summary of the number and severity of occurrences. +*GrafeasV1Beta1Api* | [**GrafeasV1Beta1ListNoteOccurrences**](docs/GrafeasV1Beta1Api.md#grafeasv1beta1listnoteoccurrences) | **Get** /v1beta1/{name}/occurrences | Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note. +*GrafeasV1Beta1Api* | [**GrafeasV1Beta1ListNotes**](docs/GrafeasV1Beta1Api.md#grafeasv1beta1listnotes) | **Get** /v1beta1/{parent}/notes | Lists notes for the specified project. +*GrafeasV1Beta1Api* | [**GrafeasV1Beta1ListOccurrences**](docs/GrafeasV1Beta1Api.md#grafeasv1beta1listoccurrences) | **Get** /v1beta1/{parent}/occurrences | Lists occurrences for the specified project. +*GrafeasV1Beta1Api* | [**GrafeasV1Beta1UpdateNote**](docs/GrafeasV1Beta1Api.md#grafeasv1beta1updatenote) | **Patch** /v1beta1/{name_1} | Updates the specified note. +*GrafeasV1Beta1Api* | [**GrafeasV1Beta1UpdateOccurrence**](docs/GrafeasV1Beta1Api.md#grafeasv1beta1updateoccurrence) | **Patch** /v1beta1/{name} | Updates the specified occurrence. + + +## Documentation For Models + + - [AliasContextKind](docs/AliasContextKind.md) + - [AttestationAttestation](docs/AttestationAttestation.md) + - [AttestationAuthority](docs/AttestationAuthority.md) + - [AttestationGenericSignedAttestation](docs/AttestationGenericSignedAttestation.md) + - [AttestationGenericSignedAttestationContentType](docs/AttestationGenericSignedAttestationContentType.md) + - [AttestationPgpSignedAttestation](docs/AttestationPgpSignedAttestation.md) + - [AttestationPgpSignedAttestationContentType](docs/AttestationPgpSignedAttestationContentType.md) + - [AuthorityHint](docs/AuthorityHint.md) + - [Body](docs/Body.md) + - [Body1](docs/Body1.md) + - [BuildBuild](docs/BuildBuild.md) + - [BuildBuildSignature](docs/BuildBuildSignature.md) + - [BuildSignatureKeyType](docs/BuildSignatureKeyType.md) + - [CvssAttackComplexity](docs/CvssAttackComplexity.md) + - [CvssAttackVector](docs/CvssAttackVector.md) + - [CvssAuthentication](docs/CvssAuthentication.md) + - [CvssImpact](docs/CvssImpact.md) + - [CvssPrivilegesRequired](docs/CvssPrivilegesRequired.md) + - [CvssScope](docs/CvssScope.md) + - [CvssUserInteraction](docs/CvssUserInteraction.md) + - [DeploymentDeployable](docs/DeploymentDeployable.md) + - [DeploymentDeployment](docs/DeploymentDeployment.md) + - [DeploymentPlatform](docs/DeploymentPlatform.md) + - [DiscoveredAnalysisStatus](docs/DiscoveredAnalysisStatus.md) + - [DiscoveredContinuousAnalysis](docs/DiscoveredContinuousAnalysis.md) + - [DiscoveryDiscovered](docs/DiscoveryDiscovered.md) + - [DiscoveryDiscovery](docs/DiscoveryDiscovery.md) + - [ExternalRefCategory](docs/ExternalRefCategory.md) + - [FileNoteFileType](docs/FileNoteFileType.md) + - [Grafeasv1beta1Signature](docs/Grafeasv1beta1Signature.md) + - [HashHashType](docs/HashHashType.md) + - [ImageBasis](docs/ImageBasis.md) + - [ImageDerived](docs/ImageDerived.md) + - [ImageFingerprint](docs/ImageFingerprint.md) + - [ImageLayer](docs/ImageLayer.md) + - [InTotoArtifactRule](docs/InTotoArtifactRule.md) + - [IntotoInToto](docs/IntotoInToto.md) + - [IntotoLink](docs/IntotoLink.md) + - [IntotoLinkArtifact](docs/IntotoLinkArtifact.md) + - [IntotoSigningKey](docs/IntotoSigningKey.md) + - [LayerDirective](docs/LayerDirective.md) + - [LinkArtifactHashes](docs/LinkArtifactHashes.md) + - [LinkByProducts](docs/LinkByProducts.md) + - [LinkEnvironment](docs/LinkEnvironment.md) + - [PackageArchitecture](docs/PackageArchitecture.md) + - [PackageDistribution](docs/PackageDistribution.md) + - [PackageInfoNoteExternalRef](docs/PackageInfoNoteExternalRef.md) + - [PackageInstallation](docs/PackageInstallation.md) + - [PackagePackage](docs/PackagePackage.md) + - [PackageVersion](docs/PackageVersion.md) + - [ProtobufAny](docs/ProtobufAny.md) + - [ProvenanceBuildProvenance](docs/ProvenanceBuildProvenance.md) + - [ProvenanceCommand](docs/ProvenanceCommand.md) + - [ProvenanceFileHashes](docs/ProvenanceFileHashes.md) + - [ProvenanceHash](docs/ProvenanceHash.md) + - [ProvenanceSource](docs/ProvenanceSource.md) + - [RpcStatus](docs/RpcStatus.md) + - [SourceAliasContext](docs/SourceAliasContext.md) + - [SourceCloudRepoSourceContext](docs/SourceCloudRepoSourceContext.md) + - [SourceGerritSourceContext](docs/SourceGerritSourceContext.md) + - [SourceGitSourceContext](docs/SourceGitSourceContext.md) + - [SourceProjectRepoId](docs/SourceProjectRepoId.md) + - [SourceRepoId](docs/SourceRepoId.md) + - [SourceSourceContext](docs/SourceSourceContext.md) + - [SpdxDocumentNote](docs/SpdxDocumentNote.md) + - [SpdxDocumentOccurrence](docs/SpdxDocumentOccurrence.md) + - [SpdxFileNote](docs/SpdxFileNote.md) + - [SpdxFileOccurrence](docs/SpdxFileOccurrence.md) + - [SpdxLicense](docs/SpdxLicense.md) + - [SpdxPackageInfoNote](docs/SpdxPackageInfoNote.md) + - [SpdxPackageInfoOccurrence](docs/SpdxPackageInfoOccurrence.md) + - [SpdxRelationshipNote](docs/SpdxRelationshipNote.md) + - [SpdxRelationshipOccurrence](docs/SpdxRelationshipOccurrence.md) + - [SpdxRelationshipType](docs/SpdxRelationshipType.md) + - [V1beta1BatchCreateNotesResponse](docs/V1beta1BatchCreateNotesResponse.md) + - [V1beta1BatchCreateOccurrencesResponse](docs/V1beta1BatchCreateOccurrencesResponse.md) + - [V1beta1Envelope](docs/V1beta1Envelope.md) + - [V1beta1EnvelopeSignature](docs/V1beta1EnvelopeSignature.md) + - [V1beta1ListNoteOccurrencesResponse](docs/V1beta1ListNoteOccurrencesResponse.md) + - [V1beta1ListNotesResponse](docs/V1beta1ListNotesResponse.md) + - [V1beta1ListOccurrencesResponse](docs/V1beta1ListOccurrencesResponse.md) + - [V1beta1Note](docs/V1beta1Note.md) + - [V1beta1NoteKind](docs/V1beta1NoteKind.md) + - [V1beta1Occurrence](docs/V1beta1Occurrence.md) + - [V1beta1RelatedUrl](docs/V1beta1RelatedUrl.md) + - [V1beta1Resource](docs/V1beta1Resource.md) + - [V1beta1VulnerabilityOccurrencesSummary](docs/V1beta1VulnerabilityOccurrencesSummary.md) + - [V1beta1attestationDetails](docs/V1beta1attestationDetails.md) + - [V1beta1buildDetails](docs/V1beta1buildDetails.md) + - [V1beta1deploymentDetails](docs/V1beta1deploymentDetails.md) + - [V1beta1discoveryDetails](docs/V1beta1discoveryDetails.md) + - [V1beta1imageDetails](docs/V1beta1imageDetails.md) + - [V1beta1intotoDetails](docs/V1beta1intotoDetails.md) + - [V1beta1intotoSignature](docs/V1beta1intotoSignature.md) + - [V1beta1packageDetails](docs/V1beta1packageDetails.md) + - [V1beta1packageLocation](docs/V1beta1packageLocation.md) + - [V1beta1provenanceArtifact](docs/V1beta1provenanceArtifact.md) + - [V1beta1vulnerabilityDetails](docs/V1beta1vulnerabilityDetails.md) + - [VersionVersionKind](docs/VersionVersionKind.md) + - [VulnerabilityCvss](docs/VulnerabilityCvss.md) + - [VulnerabilityDetail](docs/VulnerabilityDetail.md) + - [VulnerabilityOccurrencesSummaryFixableTotalByDigest](docs/VulnerabilityOccurrencesSummaryFixableTotalByDigest.md) + - [VulnerabilityPackageIssue](docs/VulnerabilityPackageIssue.md) + - [VulnerabilitySeverity](docs/VulnerabilitySeverity.md) + - [VulnerabilityVulnerability](docs/VulnerabilityVulnerability.md) + - [VulnerabilityVulnerabilityLocation](docs/VulnerabilityVulnerabilityLocation.md) + - [VulnerabilityWindowsDetail](docs/VulnerabilityWindowsDetail.md) + - [WindowsDetailKnowledgeBase](docs/WindowsDetailKnowledgeBase.md) + + +## Documentation For Authorization + Endpoints do not require authorization. + + +## Author + + + diff --git a/0.2.0/grafeas/api/swagger.yaml b/0.2.0/grafeas/api/swagger.yaml new file mode 100644 index 0000000..6ad0333 --- /dev/null +++ b/0.2.0/grafeas/api/swagger.yaml @@ -0,0 +1,7579 @@ +--- +swagger: "2.0" +info: + version: "version not set" + title: "grafeas.proto" +tags: +- name: "GrafeasV1Beta1" +consumes: +- "application/json" +produces: +- "application/json" +paths: + /v1beta1/{name_1}: + get: + tags: + - "GrafeasV1Beta1" + summary: "Gets the specified note." + operationId: "GrafeasV1Beta1_GetNote" + parameters: + - name: "name_1" + in: "path" + description: "The name of the note in the form of\n`projects/[PROVIDER_ID]/notes/[NOTE_ID]`." + required: true + type: "string" + pattern: "projects/[^/]+/notes/[^/]+" + x-exportParamName: "Name1" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/v1beta1Note" + default: + description: "An unexpected error response." + schema: + $ref: "#/definitions/rpcStatus" + delete: + tags: + - "GrafeasV1Beta1" + summary: "Deletes the specified note." + operationId: "GrafeasV1Beta1_DeleteNote" + parameters: + - name: "name_1" + in: "path" + description: "The name of the note in the form of\n`projects/[PROVIDER_ID]/notes/[NOTE_ID]`." + required: true + type: "string" + pattern: "projects/[^/]+/notes/[^/]+" + x-exportParamName: "Name1" + responses: + 200: + description: "A successful response." + schema: {} + default: + description: "An unexpected error response." + schema: + $ref: "#/definitions/rpcStatus" + patch: + tags: + - "GrafeasV1Beta1" + summary: "Updates the specified note." + operationId: "GrafeasV1Beta1_UpdateNote" + parameters: + - name: "name_1" + in: "path" + description: "The name of the note in the form of\n`projects/[PROVIDER_ID]/notes/[NOTE_ID]`." + required: true + type: "string" + pattern: "projects/[^/]+/notes/[^/]+" + x-exportParamName: "Name1" + - in: "body" + name: "body" + description: "The updated note." + required: true + schema: + $ref: "#/definitions/v1beta1Note" + x-exportParamName: "Body" + - name: "updateMask" + in: "query" + description: "The fields to update." + required: false + type: "string" + x-exportParamName: "UpdateMask" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/v1beta1Note" + default: + description: "An unexpected error response." + schema: + $ref: "#/definitions/rpcStatus" + /v1beta1/{name}: + get: + tags: + - "GrafeasV1Beta1" + summary: "Gets the specified occurrence." + operationId: "GrafeasV1Beta1_GetOccurrence" + parameters: + - name: "name" + in: "path" + description: "The name of the occurrence in the form of\n`projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`." + required: true + type: "string" + pattern: "projects/[^/]+/occurrences/[^/]+" + x-exportParamName: "Name" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/v1beta1Occurrence" + default: + description: "An unexpected error response." + schema: + $ref: "#/definitions/rpcStatus" + delete: + tags: + - "GrafeasV1Beta1" + summary: "Deletes the specified occurrence. For example, use this method to\ + \ delete an\noccurrence when the occurrence is no longer applicable for the\ + \ given\nresource." + operationId: "GrafeasV1Beta1_DeleteOccurrence" + parameters: + - name: "name" + in: "path" + description: "The name of the occurrence in the form of\n`projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`." + required: true + type: "string" + pattern: "projects/[^/]+/occurrences/[^/]+" + x-exportParamName: "Name" + responses: + 200: + description: "A successful response." + schema: {} + default: + description: "An unexpected error response." + schema: + $ref: "#/definitions/rpcStatus" + patch: + tags: + - "GrafeasV1Beta1" + summary: "Updates the specified occurrence." + operationId: "GrafeasV1Beta1_UpdateOccurrence" + parameters: + - name: "name" + in: "path" + description: "The name of the occurrence in the form of\n`projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`." + required: true + type: "string" + pattern: "projects/[^/]+/occurrences/[^/]+" + x-exportParamName: "Name" + - in: "body" + name: "body" + description: "The updated occurrence." + required: true + schema: + $ref: "#/definitions/v1beta1Occurrence" + x-exportParamName: "Body" + - name: "updateMask" + in: "query" + description: "The fields to update." + required: false + type: "string" + x-exportParamName: "UpdateMask" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/v1beta1Occurrence" + default: + description: "An unexpected error response." + schema: + $ref: "#/definitions/rpcStatus" + /v1beta1/{name}/notes: + get: + tags: + - "GrafeasV1Beta1" + summary: "Gets the note attached to the specified occurrence. Consumer projects\ + \ can\nuse this method to get a note that belongs to a provider project." + operationId: "GrafeasV1Beta1_GetOccurrenceNote" + parameters: + - name: "name" + in: "path" + description: "The name of the occurrence in the form of\n`projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`." + required: true + type: "string" + pattern: "projects/[^/]+/occurrences/[^/]+" + x-exportParamName: "Name" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/v1beta1Note" + default: + description: "An unexpected error response." + schema: + $ref: "#/definitions/rpcStatus" + /v1beta1/{name}/occurrences: + get: + tags: + - "GrafeasV1Beta1" + summary: "Lists occurrences referencing the specified note. Provider projects\ + \ can use\nthis method to get all occurrences across consumer projects referencing\ + \ the\nspecified note." + operationId: "GrafeasV1Beta1_ListNoteOccurrences" + parameters: + - name: "name" + in: "path" + description: "The name of the note to list occurrences for in the form of\n\ + `projects/[PROVIDER_ID]/notes/[NOTE_ID]`." + required: true + type: "string" + pattern: "projects/[^/]+/notes/[^/]+" + x-exportParamName: "Name" + - name: "filter" + in: "query" + description: "The filter expression." + required: false + type: "string" + x-exportParamName: "Filter" + x-optionalDataType: "String" + - name: "pageSize" + in: "query" + description: "Number of occurrences to return in the list." + required: false + type: "integer" + format: "int32" + x-exportParamName: "PageSize" + x-optionalDataType: "Int32" + - name: "pageToken" + in: "query" + description: "Token to provide to skip to a particular spot in the list." + required: false + type: "string" + x-exportParamName: "PageToken" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/v1beta1ListNoteOccurrencesResponse" + default: + description: "An unexpected error response." + schema: + $ref: "#/definitions/rpcStatus" + /v1beta1/{parent}/notes: + get: + tags: + - "GrafeasV1Beta1" + summary: "Lists notes for the specified project." + operationId: "GrafeasV1Beta1_ListNotes" + parameters: + - name: "parent" + in: "path" + description: "The name of the project to list notes for in the form of\n`projects/[PROJECT_ID]`." + required: true + type: "string" + pattern: "projects/[^/]+" + x-exportParamName: "Parent" + - name: "filter" + in: "query" + description: "The filter expression." + required: false + type: "string" + x-exportParamName: "Filter" + x-optionalDataType: "String" + - name: "pageSize" + in: "query" + description: "Number of notes to return in the list. Must be positive. Max\ + \ allowed page\nsize is 1000. If not specified, page size defaults to 20." + required: false + type: "integer" + format: "int32" + x-exportParamName: "PageSize" + x-optionalDataType: "Int32" + - name: "pageToken" + in: "query" + description: "Token to provide to skip to a particular spot in the list." + required: false + type: "string" + x-exportParamName: "PageToken" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/v1beta1ListNotesResponse" + default: + description: "An unexpected error response." + schema: + $ref: "#/definitions/rpcStatus" + post: + tags: + - "GrafeasV1Beta1" + summary: "Creates a new note." + operationId: "GrafeasV1Beta1_CreateNote" + parameters: + - name: "parent" + in: "path" + description: "The name of the project in the form of `projects/[PROJECT_ID]`,\ + \ under which\nthe note is to be created." + required: true + type: "string" + pattern: "projects/[^/]+" + x-exportParamName: "Parent" + - in: "body" + name: "body" + description: "The note to create." + required: true + schema: + $ref: "#/definitions/v1beta1Note" + x-exportParamName: "Body" + - name: "noteId" + in: "query" + description: "The ID to use for this note." + required: true + type: "string" + x-exportParamName: "NoteId" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/v1beta1Note" + default: + description: "An unexpected error response." + schema: + $ref: "#/definitions/rpcStatus" + /v1beta1/{parent}/notes:batchCreate: + post: + tags: + - "GrafeasV1Beta1" + summary: "Creates new notes in batch." + operationId: "GrafeasV1Beta1_BatchCreateNotes" + parameters: + - name: "parent" + in: "path" + description: "The name of the project in the form of `projects/[PROJECT_ID]`,\ + \ under which\nthe notes are to be created." + required: true + type: "string" + pattern: "projects/[^/]+" + x-exportParamName: "Parent" + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/body" + x-exportParamName: "Body" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/v1beta1BatchCreateNotesResponse" + default: + description: "An unexpected error response." + schema: + $ref: "#/definitions/rpcStatus" + /v1beta1/{parent}/occurrences: + get: + tags: + - "GrafeasV1Beta1" + summary: "Lists occurrences for the specified project." + operationId: "GrafeasV1Beta1_ListOccurrences" + parameters: + - name: "parent" + in: "path" + description: "The name of the project to list occurrences for in the form\ + \ of\n`projects/[PROJECT_ID]`." + required: true + type: "string" + pattern: "projects/[^/]+" + x-exportParamName: "Parent" + - name: "filter" + in: "query" + description: "The filter expression." + required: false + type: "string" + x-exportParamName: "Filter" + x-optionalDataType: "String" + - name: "pageSize" + in: "query" + description: "Number of occurrences to return in the list. Must be positive.\ + \ Max allowed\npage size is 1000. If not specified, page size defaults to\ + \ 20." + required: false + type: "integer" + format: "int32" + x-exportParamName: "PageSize" + x-optionalDataType: "Int32" + - name: "pageToken" + in: "query" + description: "Token to provide to skip to a particular spot in the list." + required: false + type: "string" + x-exportParamName: "PageToken" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/v1beta1ListOccurrencesResponse" + default: + description: "An unexpected error response." + schema: + $ref: "#/definitions/rpcStatus" + post: + tags: + - "GrafeasV1Beta1" + summary: "Creates a new occurrence." + operationId: "GrafeasV1Beta1_CreateOccurrence" + parameters: + - name: "parent" + in: "path" + description: "The name of the project in the form of `projects/[PROJECT_ID]`,\ + \ under which\nthe occurrence is to be created." + required: true + type: "string" + pattern: "projects/[^/]+" + x-exportParamName: "Parent" + - in: "body" + name: "body" + description: "The occurrence to create." + required: true + schema: + $ref: "#/definitions/v1beta1Occurrence" + x-exportParamName: "Body" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/v1beta1Occurrence" + default: + description: "An unexpected error response." + schema: + $ref: "#/definitions/rpcStatus" + /v1beta1/{parent}/occurrences:batchCreate: + post: + tags: + - "GrafeasV1Beta1" + summary: "Creates new occurrences in batch." + operationId: "GrafeasV1Beta1_BatchCreateOccurrences" + parameters: + - name: "parent" + in: "path" + description: "The name of the project in the form of `projects/[PROJECT_ID]`,\ + \ under which\nthe occurrences are to be created." + required: true + type: "string" + pattern: "projects/[^/]+" + x-exportParamName: "Parent" + - in: "body" + name: "body" + required: true + schema: + $ref: "#/definitions/body_1" + x-exportParamName: "Body" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/v1beta1BatchCreateOccurrencesResponse" + default: + description: "An unexpected error response." + schema: + $ref: "#/definitions/rpcStatus" + /v1beta1/{parent}/occurrences:vulnerabilitySummary: + get: + tags: + - "GrafeasV1Beta1" + summary: "Gets a summary of the number and severity of occurrences." + operationId: "GrafeasV1Beta1_GetVulnerabilityOccurrencesSummary" + parameters: + - name: "parent" + in: "path" + description: "The name of the project to get a vulnerability summary for in\ + \ the form of\n`projects/[PROJECT_ID]`." + required: true + type: "string" + pattern: "projects/[^/]+" + x-exportParamName: "Parent" + - name: "filter" + in: "query" + description: "The filter expression." + required: false + type: "string" + x-exportParamName: "Filter" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/v1beta1VulnerabilityOccurrencesSummary" + default: + description: "An unexpected error response." + schema: + $ref: "#/definitions/rpcStatus" +definitions: + AliasContextKind: + type: "string" + description: "The type of an alias.\n\n - KIND_UNSPECIFIED: Unknown.\n - FIXED:\ + \ Git tag.\n - MOVABLE: Git branch.\n - OTHER: Used to specify non-standard\ + \ aliases. For example, if a Git repo has a\nref named \"refs/foo/bar\"." + enum: + - "KIND_UNSPECIFIED" + - "FIXED" + - "MOVABLE" + - "OTHER" + default: "KIND_UNSPECIFIED" + AuthorityHint: + type: "object" + properties: + humanReadableName: + type: "string" + description: "Required. The human readable name of this attestation authority,\ + \ for\nexample \"qa\"." + description: "This submessage provides human-readable hints about the purpose\ + \ of the\nauthority. Because the name of a note acts as its resource reference,\ + \ it is\nimportant to disambiguate the canonical name of the Note (which might\ + \ be a\nUUID for security purposes) from \"readable\" names more suitable for\ + \ debug\noutput. Note that these hints should not be used to look up authorities\ + \ in\nsecurity sensitive contexts, such as when looking up attestations to\n\ + verify." + example: + humanReadableName: "humanReadableName" + BuildSignatureKeyType: + type: "string" + description: "Public key formats.\n\n - KEY_TYPE_UNSPECIFIED: `KeyType` is not\ + \ set.\n - PGP_ASCII_ARMORED: `PGP ASCII Armored` public key.\n - PKIX_PEM:\ + \ `PKIX PEM` public key." + enum: + - "KEY_TYPE_UNSPECIFIED" + - "PGP_ASCII_ARMORED" + - "PKIX_PEM" + default: "KEY_TYPE_UNSPECIFIED" + CVSSAttackComplexity: + type: "string" + enum: + - "ATTACK_COMPLEXITY_UNSPECIFIED" + - "ATTACK_COMPLEXITY_LOW" + - "ATTACK_COMPLEXITY_HIGH" + default: "ATTACK_COMPLEXITY_UNSPECIFIED" + CVSSAttackVector: + type: "string" + enum: + - "ATTACK_VECTOR_UNSPECIFIED" + - "ATTACK_VECTOR_NETWORK" + - "ATTACK_VECTOR_ADJACENT" + - "ATTACK_VECTOR_LOCAL" + - "ATTACK_VECTOR_PHYSICAL" + default: "ATTACK_VECTOR_UNSPECIFIED" + CVSSAuthentication: + type: "string" + enum: + - "AUTHENTICATION_UNSPECIFIED" + - "AUTHENTICATION_MULTIPLE" + - "AUTHENTICATION_SINGLE" + - "AUTHENTICATION_NONE" + default: "AUTHENTICATION_UNSPECIFIED" + CVSSImpact: + type: "string" + enum: + - "IMPACT_UNSPECIFIED" + - "IMPACT_HIGH" + - "IMPACT_LOW" + - "IMPACT_NONE" + default: "IMPACT_UNSPECIFIED" + CVSSPrivilegesRequired: + type: "string" + enum: + - "PRIVILEGES_REQUIRED_UNSPECIFIED" + - "PRIVILEGES_REQUIRED_NONE" + - "PRIVILEGES_REQUIRED_LOW" + - "PRIVILEGES_REQUIRED_HIGH" + default: "PRIVILEGES_REQUIRED_UNSPECIFIED" + CVSSScope: + type: "string" + enum: + - "SCOPE_UNSPECIFIED" + - "SCOPE_UNCHANGED" + - "SCOPE_CHANGED" + default: "SCOPE_UNSPECIFIED" + CVSSUserInteraction: + type: "string" + enum: + - "USER_INTERACTION_UNSPECIFIED" + - "USER_INTERACTION_NONE" + - "USER_INTERACTION_REQUIRED" + default: "USER_INTERACTION_UNSPECIFIED" + DeploymentPlatform: + type: "string" + description: "Types of platforms.\n\n - PLATFORM_UNSPECIFIED: Unknown.\n - GKE:\ + \ Google Container Engine.\n - FLEX: Google App Engine: Flexible Environment.\n\ + \ - CUSTOM: Custom user-defined platform." + enum: + - "PLATFORM_UNSPECIFIED" + - "GKE" + - "FLEX" + - "CUSTOM" + default: "PLATFORM_UNSPECIFIED" + DiscoveredAnalysisStatus: + type: "string" + description: "Analysis status for a resource. Currently for initial analysis only\ + \ (not\nupdated in continuous analysis).\n\n - ANALYSIS_STATUS_UNSPECIFIED:\ + \ Unknown.\n - PENDING: Resource is known but no action has been taken yet.\n\ + \ - SCANNING: Resource is being analyzed.\n - FINISHED_SUCCESS: Analysis has\ + \ finished successfully.\n - FINISHED_FAILED: Analysis has finished unsuccessfully,\ + \ the analysis itself is in a bad\nstate.\n - FINISHED_UNSUPPORTED: The resource\ + \ is known not to be supported" + enum: + - "ANALYSIS_STATUS_UNSPECIFIED" + - "PENDING" + - "SCANNING" + - "FINISHED_SUCCESS" + - "FINISHED_FAILED" + - "FINISHED_UNSUPPORTED" + default: "ANALYSIS_STATUS_UNSPECIFIED" + DiscoveredContinuousAnalysis: + type: "string" + description: "Whether the resource is continuously analyzed.\n\n - CONTINUOUS_ANALYSIS_UNSPECIFIED:\ + \ Unknown.\n - ACTIVE: The resource is continuously analyzed.\n - INACTIVE:\ + \ The resource is ignored for continuous analysis." + enum: + - "CONTINUOUS_ANALYSIS_UNSPECIFIED" + - "ACTIVE" + - "INACTIVE" + default: "CONTINUOUS_ANALYSIS_UNSPECIFIED" + ExternalRefCategory: + type: "string" + title: "The category of the external reference" + description: "- CATEGORY_UNSPECIFIED: Unspecified\n - SECURITY: Security (e.g.\ + \ cpe22Type, cpe23Type)\n - PACKAGE_MANAGER: Package Manager (e.g. maven-central,\ + \ npm, nuget, bower, purl)\n - PERSISTENT_ID: Persistent-Id (e.g. swh)\n - OTHER:\ + \ Other" + enum: + - "CATEGORY_UNSPECIFIED" + - "SECURITY" + - "PACKAGE_MANAGER" + - "PERSISTENT_ID" + - "OTHER" + default: "CATEGORY_UNSPECIFIED" + FileNoteFileType: + type: "string" + title: "File Type is intrinsic to the file, independent of how the file is being\n\ + used" + description: "- FILE_TYPE_UNSPECIFIED: Unspecified\n - SOURCE: The file is human\ + \ readable source code (.c, .html, etc.)\n - BINARY: The file is a compiled\ + \ object, target image or binary executable (.o, .a,\netc.)\n - ARCHIVE: The\ + \ file represents an archive (.tar, .jar, etc.)\n - APPLICATION: The file is\ + \ associated with a specific application type (MIME type of\napplication/*)\n\ + \ - AUDIO: The file is associated with an audio file (MIME type of audio/* ,\ + \ e.g.\n.mp3)\n - IMAGE: The file is associated with an picture image file (MIME\ + \ type of image/*,\ne.g., .jpg, .gif)\n - TEXT: The file is human readable text\ + \ file (MIME type of text/*)\n - VIDEO: The file is associated with a video\ + \ file type (MIME type of video/*)\n - DOCUMENTATION: The file serves as documentation\n\ + \ - SPDX: The file is an SPDX document\n - OTHER: The file doesn't fit into\ + \ the above categories (generated artifacts, data\nfiles, etc.)" + enum: + - "FILE_TYPE_UNSPECIFIED" + - "SOURCE" + - "BINARY" + - "ARCHIVE" + - "APPLICATION" + - "AUDIO" + - "IMAGE" + - "TEXT" + - "VIDEO" + - "DOCUMENTATION" + - "SPDX" + - "OTHER" + default: "FILE_TYPE_UNSPECIFIED" + HashHashType: + type: "string" + description: "Specifies the hash algorithm.\n\n - HASH_TYPE_UNSPECIFIED: Unknown.\n\ + \ - SHA256: A SHA-256 hash." + enum: + - "HASH_TYPE_UNSPECIFIED" + - "SHA256" + default: "HASH_TYPE_UNSPECIFIED" + InTotoArtifactRule: + type: "object" + properties: + artifactRule: + type: "array" + items: + type: "string" + title: "Defines an object to declare an in-toto artifact rule" + example: + artifactRule: + - "artifactRule" + - "artifactRule" + LayerDirective: + type: "string" + description: "Instructions from Dockerfile.\n\n - DIRECTIVE_UNSPECIFIED: Default\ + \ value for unsupported/missing directive.\n - MAINTAINER: https://docs.docker.com/engine/reference/builder/\n\ + \ - RUN: https://docs.docker.com/engine/reference/builder/\n - CMD: https://docs.docker.com/engine/reference/builder/\n\ + \ - LABEL: https://docs.docker.com/engine/reference/builder/\n - EXPOSE: https://docs.docker.com/engine/reference/builder/\n\ + \ - ENV: https://docs.docker.com/engine/reference/builder/\n - ADD: https://docs.docker.com/engine/reference/builder/\n\ + \ - COPY: https://docs.docker.com/engine/reference/builder/\n - ENTRYPOINT:\ + \ https://docs.docker.com/engine/reference/builder/\n - VOLUME: https://docs.docker.com/engine/reference/builder/\n\ + \ - USER: https://docs.docker.com/engine/reference/builder/\n - WORKDIR: https://docs.docker.com/engine/reference/builder/\n\ + \ - ARG: https://docs.docker.com/engine/reference/builder/\n - ONBUILD: https://docs.docker.com/engine/reference/builder/\n\ + \ - STOPSIGNAL: https://docs.docker.com/engine/reference/builder/\n - HEALTHCHECK:\ + \ https://docs.docker.com/engine/reference/builder/\n - SHELL: https://docs.docker.com/engine/reference/builder/" + enum: + - "DIRECTIVE_UNSPECIFIED" + - "MAINTAINER" + - "RUN" + - "CMD" + - "LABEL" + - "EXPOSE" + - "ENV" + - "ADD" + - "COPY" + - "ENTRYPOINT" + - "VOLUME" + - "USER" + - "WORKDIR" + - "ARG" + - "ONBUILD" + - "STOPSIGNAL" + - "HEALTHCHECK" + - "SHELL" + default: "DIRECTIVE_UNSPECIFIED" + LinkArtifactHashes: + type: "object" + properties: + sha256: + type: "string" + description: "Defines a hash object for use in Materials and Products." + example: + sha256: "sha256" + LinkByProducts: + type: "object" + properties: + customValues: + type: "object" + additionalProperties: + type: "string" + description: "Defines an object for the byproducts field in in-toto links. The\ + \ suggested\nfields are \"stderr\", \"stdout\", and \"return-value\"." + example: + customValues: + key: "customValues" + LinkEnvironment: + type: "object" + properties: + customValues: + type: "object" + additionalProperties: + type: "string" + description: "Defines an object for the environment field in in-toto links. The\ + \ suggested\nfields are \"variables\", \"filesystem\", and \"workdir\"." + example: + customValues: + key: "customValues" + PackageInfoNoteExternalRef: + type: "object" + properties: + category: + title: "An External Reference allows a Package to reference an external source\ + \ of\nadditional information, metadata, enumerations, asset identifiers,\ + \ or\ndownloadable content believed to be relevant to the Package" + $ref: "#/definitions/ExternalRefCategory" + type: + type: "string" + title: "Type of category (e.g. 'npm' for the PACKAGE_MANAGER category)" + locator: + type: "string" + title: "The unique string with no spaces necessary to access the package-specific\n\ + information, metadata, or content within the target location" + comment: + type: "string" + title: "Human-readable information about the purpose and target of the reference" + title: "An External Reference allows a Package to reference an external source\ + \ of\nadditional information, metadata, enumerations, asset identifiers, or\n\ + downloadable content believed to be relevant to the Package" + example: + comment: "comment" + category: {} + type: "type" + locator: "locator" + VersionVersionKind: + type: "string" + description: "Whether this is an ordinary package version or a sentinel MIN/MAX\ + \ version.\n\n - VERSION_KIND_UNSPECIFIED: Unknown.\n - NORMAL: A standard package\ + \ version.\n - MINIMUM: A special version representing negative infinity.\n\ + \ - MAXIMUM: A special version representing positive infinity." + enum: + - "VERSION_KIND_UNSPECIFIED" + - "NORMAL" + - "MINIMUM" + - "MAXIMUM" + default: "VERSION_KIND_UNSPECIFIED" + VulnerabilityDetail: + type: "object" + properties: + cpeUri: + type: "string" + description: "Required. The CPE URI in\n[cpe format](https://cpe.mitre.org/specification/)\ + \ in which the\nvulnerability manifests. Examples include distro or storage\ + \ location for\nvulnerable jar." + package: + type: "string" + description: "Required. The name of the package where the vulnerability was\ + \ found." + minAffectedVersion: + description: "The min version of the package in which the vulnerability exists." + $ref: "#/definitions/packageVersion" + maxAffectedVersion: + description: "The max version of the package in which the vulnerability exists." + $ref: "#/definitions/packageVersion" + severityName: + type: "string" + description: "The severity (eg: distro assigned severity) for this vulnerability." + description: + type: "string" + description: "A vendor-specific description of this note." + fixedLocation: + description: "The fix for this specific package version." + $ref: "#/definitions/vulnerabilityVulnerabilityLocation" + packageType: + type: "string" + description: "The type of package; whether native or non native(ruby gems,\ + \ node.js\npackages etc)." + isObsolete: + type: "boolean" + description: "Whether this detail is obsolete. Occurrences are expected not\ + \ to point to\nobsolete details." + sourceUpdateTime: + type: "string" + format: "date-time" + description: "The time this information was last changed at the source. This\ + \ is an\nupstream timestamp from the underlying information source - e.g.\ + \ Ubuntu\nsecurity tracker." + source: + type: "string" + description: "The source from which the information in this Detail was obtained." + vendor: + type: "string" + description: "The name of the vendor of the product." + title: "Identifies all appearances of this vulnerability in the package for a\n\ + specific distro/location. For example: glibc in\ncpe:/o:debian:debian_linux:8\ + \ for versions 2.1 - 2.2" + example: + package: "package" + minAffectedVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + maxAffectedVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + vendor: "vendor" + description: "description" + sourceUpdateTime: "2000-01-23T04:56:07.000+00:00" + isObsolete: true + source: "source" + cpeUri: "cpeUri" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + VulnerabilityOccurrencesSummaryFixableTotalByDigest: + type: "object" + properties: + resource: + description: "The affected resource." + $ref: "#/definitions/v1beta1Resource" + severity: + description: "The severity for this count. SEVERITY_UNSPECIFIED indicates\ + \ total across\nall severities." + $ref: "#/definitions/vulnerabilitySeverity" + fixableCount: + type: "string" + format: "int64" + description: "The number of fixable vulnerabilities associated with this resource." + totalCount: + type: "string" + format: "int64" + description: "The total number of vulnerabilities associated with this resource." + description: "Per resource and severity counts of fixable and total vulnerabilities." + example: + severity: {} + fixableCount: "fixableCount" + resource: + name: "name" + uri: "uri" + contentHash: + type: {} + value: "value" + totalCount: "totalCount" + VulnerabilityWindowsDetail: + type: "object" + properties: + cpeUri: + type: "string" + description: "Required. The CPE URI in\n[cpe format](https://cpe.mitre.org/specification/)\ + \ in which the\nvulnerability manifests. Examples include distro or storage\ + \ location for\nvulnerable jar." + name: + type: "string" + description: "Required. The name of the vulnerability." + description: + type: "string" + description: "The description of the vulnerability." + fixingKbs: + type: "array" + description: "Required. The names of the KBs which have hotfixes to mitigate\ + \ this\nvulnerability. Note that there may be multiple hotfixes (and thus\n\ + multiple KBs) that mitigate a given vulnerability. Currently any listed\n\ + kb's presence is considered a fix." + items: + $ref: "#/definitions/WindowsDetailKnowledgeBase" + example: + name: "name" + description: "description" + fixingKbs: + - name: "name" + url: "url" + - name: "name" + url: "url" + cpeUri: "cpeUri" + WindowsDetailKnowledgeBase: + type: "object" + properties: + name: + type: "string" + description: "The KB name (generally of the form KB[0-9]+ i.e. KB123456)." + url: + type: "string" + title: "A link to the KB in the Windows update catalog -\nhttps://www.catalog.update.microsoft.com/" + example: + name: "name" + url: "url" + attestationAttestation: + type: "object" + properties: + pgpSignedAttestation: + description: "A PGP signed attestation." + $ref: "#/definitions/attestationPgpSignedAttestation" + genericSignedAttestation: + description: "An attestation that supports multiple `Signature`s\nover the\ + \ same attestation payload. The signatures\n(defined in common.proto) support\ + \ a superset of\npublic key types and IDs compared to PgpSignedAttestation." + $ref: "#/definitions/attestationGenericSignedAttestation" + description: "Occurrence that represents a single \"attestation\". The authenticity\ + \ of an\nattestation can be verified using the attached signature. If the verifier\n\ + trusts the public key of the signer, then verifying the signature is\nsufficient\ + \ to establish trust. In this circumstance, the authority to which\nthis attestation\ + \ is attached is primarily useful for look-up (how to find\nthis attestation\ + \ if you already know the authority and artifact to be\nverified) and intent\ + \ (which authority was this attestation intended to sign\nfor)." + example: + genericSignedAttestation: + serializedPayload: "serializedPayload" + contentType: {} + signatures: + - signature: "signature" + publicKeyId: "publicKeyId" + - signature: "signature" + publicKeyId: "publicKeyId" + pgpSignedAttestation: + signature: "signature" + pgpKeyId: "pgpKeyId" + contentType: {} + attestationAuthority: + type: "object" + properties: + hint: + description: "Hint hints at the purpose of the attestation authority." + $ref: "#/definitions/AuthorityHint" + description: "Note kind that represents a logical attestation \"role\" or \"authority\"\ + . For\nexample, an organization might have one `Authority` for \"QA\" and one\ + \ for\n\"build\". This note is intended to act strictly as a grouping mechanism\ + \ for\nthe attached occurrences (Attestations). This grouping mechanism also\n\ + provides a security boundary, since IAM ACLs gate the ability for a principle\n\ + to attach an occurrence to a given note. It also provides a single point of\n\ + lookup to find all attached attestation occurrences, even if they don't all\n\ + live in the same project." + example: + hint: + humanReadableName: "humanReadableName" + attestationGenericSignedAttestation: + type: "object" + properties: + contentType: + description: "Type (for example schema) of the attestation payload that was\ + \ signed.\nThe verifier must ensure that the provided type is one that the\ + \ verifier\nsupports, and that the attestation payload is a valid instantiation\ + \ of that\ntype (for example by validating a JSON schema)." + $ref: "#/definitions/attestationGenericSignedAttestationContentType" + serializedPayload: + type: "string" + format: "byte" + description: "The serialized payload that is verified by one or more `signatures`.\n\ + The encoding and semantic meaning of this payload must match what is set\ + \ in\n`content_type`." + pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" + signatures: + type: "array" + description: "One or more signatures over `serialized_payload`. Verifier\ + \ implementations\nshould consider this attestation message verified if\ + \ at least one\n`signature` verifies `serialized_payload`. See `Signature`\ + \ in common.proto\nfor more details on signature structure and verification." + items: + $ref: "#/definitions/grafeasv1beta1Signature" + description: "An attestation wrapper that uses the Grafeas `Signature` message.\n\ + This attestation must define the `serialized_payload` that the `signatures`\ + \ verify\nand any metadata necessary to interpret that plaintext. The signatures\n\ + should always be over the `serialized_payload` bytestring." + example: + serializedPayload: "serializedPayload" + contentType: {} + signatures: + - signature: "signature" + publicKeyId: "publicKeyId" + - signature: "signature" + publicKeyId: "publicKeyId" + attestationGenericSignedAttestationContentType: + type: "string" + description: "Type of the attestation plaintext that was signed.\n\n - CONTENT_TYPE_UNSPECIFIED:\ + \ `ContentType` is not set.\n - SIMPLE_SIGNING_JSON: Atomic format attestation\ + \ signature. See\nhttps://github.com/containers/image/blob/8a5d2f82a6e3263290c8e0276c3e0f64e77723e7/docs/atomic-signature.md\n\ + The payload extracted in `plaintext` is a JSON blob conforming to the\nlinked\ + \ schema." + enum: + - "CONTENT_TYPE_UNSPECIFIED" + - "SIMPLE_SIGNING_JSON" + default: "CONTENT_TYPE_UNSPECIFIED" + attestationPgpSignedAttestation: + type: "object" + properties: + signature: + type: "string" + description: "Required. The raw content of the signature, as output by GNU\ + \ Privacy Guard\n(GPG) or equivalent. Since this message only supports attached\ + \ signatures,\nthe payload that was signed must be attached. While the signature\ + \ format\nsupported is dependent on the verification implementation, currently\ + \ only\nASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather\ + \ than\n`--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor\n\ + --output=signature.gpg payload.json` will create the signature content\n\ + expected in this field in `signature.gpg` for the `payload.json`\nattestation\ + \ payload." + contentType: + description: "Type (for example schema) of the attestation payload that was\ + \ signed.\nThe verifier must ensure that the provided type is one that the\ + \ verifier\nsupports, and that the attestation payload is a valid instantiation\ + \ of that\ntype (for example by validating a JSON schema)." + $ref: "#/definitions/attestationPgpSignedAttestationContentType" + pgpKeyId: + type: "string" + description: "The cryptographic fingerprint of the key used to generate the\ + \ signature,\nas output by, e.g. `gpg --list-keys`. This should be the version\ + \ 4, full\n160-bit fingerprint, expressed as a 40 character hexadecimal\ + \ string. See\nhttps://tools.ietf.org/html/rfc4880#section-12.2 for details.\n\ + Implementations may choose to acknowledge \"LONG\", \"SHORT\", or other\n\ + abbreviated key IDs, but only the full fingerprint is guaranteed to work.\n\ + In gpg, the full fingerprint can be retrieved from the `fpr` field\nreturned\ + \ when calling --list-keys with --with-colons. For example:\n```\ngpg --with-colons\ + \ --with-fingerprint --force-v4-certs \\\n --list-keys attester@example.com\n\ + tru::1:1513631572:0:3:1:5\npub:......\nfpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB:\n\ + ```\nAbove, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`." + description: "An attestation wrapper with a PGP-compatible signature. This message\ + \ only\nsupports `ATTACHED` signatures, where the payload that is signed is\ + \ included\nalongside the signature itself in the same file." + example: + signature: "signature" + pgpKeyId: "pgpKeyId" + contentType: {} + attestationPgpSignedAttestationContentType: + type: "string" + description: "Type (for example schema) of the attestation payload that was signed.\n\ + \n - CONTENT_TYPE_UNSPECIFIED: `ContentType` is not set.\n - SIMPLE_SIGNING_JSON:\ + \ Atomic format attestation signature. See\nhttps://github.com/containers/image/blob/8a5d2f82a6e3263290c8e0276c3e0f64e77723e7/docs/atomic-signature.md\n\ + The payload extracted from `signature` is a JSON blob conforming to the\nlinked\ + \ schema." + enum: + - "CONTENT_TYPE_UNSPECIFIED" + - "SIMPLE_SIGNING_JSON" + default: "CONTENT_TYPE_UNSPECIFIED" + buildBuild: + type: "object" + properties: + builderVersion: + type: "string" + description: "Required. Immutable. Version of the builder which produced this\ + \ build." + signature: + description: "Signature of the build in occurrences pointing to this build\ + \ note\ncontaining build details." + $ref: "#/definitions/buildBuildSignature" + description: "Note holding the version of the provider's builder and the signature\ + \ of the\nprovenance message in the build details occurrence." + example: + signature: + signature: "signature" + keyId: "keyId" + publicKey: "publicKey" + keyType: {} + builderVersion: "builderVersion" + buildBuildSignature: + type: "object" + properties: + publicKey: + type: "string" + description: "Public key of the builder which can be used to verify that the\ + \ related\nfindings are valid and unchanged. If `key_type` is empty, this\ + \ defaults\nto PEM encoded public keys.\n\nThis field may be empty if `key_id`\ + \ references an external key.\n\nFor Cloud Build based signatures, this\ + \ is a PEM encoded public\nkey. To verify the Cloud Build signature, place\ + \ the contents of\nthis field into a file (public.pem). The signature field\ + \ is base64-decoded\ninto its binary representation in signature.bin, and\ + \ the provenance bytes\nfrom `BuildDetails` are base64-decoded into a binary\ + \ representation in\nsigned.bin. OpenSSL can then verify the signature:\n\ + `openssl sha256 -verify public.pem -signature signature.bin signed.bin`" + signature: + type: "string" + format: "byte" + description: "Required. Signature of the related `BuildProvenance`. In JSON,\ + \ this is\nbase-64 encoded." + pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" + keyId: + type: "string" + description: "An ID for the key used to sign. This could be either an ID for\ + \ the key\nstored in `public_key` (such as the ID or fingerprint for a PGP\ + \ key, or the\nCN for a cert), or a reference to an external key (such as\ + \ a reference to a\nkey in Cloud Key Management Service)." + keyType: + description: "The type of the key, either stored in `public_key` or referenced\ + \ in\n`key_id`." + $ref: "#/definitions/BuildSignatureKeyType" + description: "Message encapsulating the signature of the verified build." + example: + signature: "signature" + keyId: "keyId" + publicKey: "publicKey" + keyType: {} + deploymentDeployable: + type: "object" + properties: + resourceUri: + type: "array" + description: "Required. Resource URI for the artifact being deployed." + items: + type: "string" + description: "An artifact that can be deployed in some runtime." + example: + resourceUri: + - "resourceUri" + - "resourceUri" + deploymentDeployment: + type: "object" + properties: + userEmail: + type: "string" + description: "Identity of the user that triggered this deployment." + deployTime: + type: "string" + format: "date-time" + description: "Required. Beginning of the lifetime of this deployment." + undeployTime: + type: "string" + format: "date-time" + description: "End of the lifetime of this deployment." + config: + type: "string" + description: "Configuration used to create this deployment." + address: + type: "string" + description: "Address of the runtime element hosting this deployment." + resourceUri: + type: "array" + description: "Output only. Resource URI for the artifact being deployed taken\ + \ from\nthe deployable field with the same name." + readOnly: true + items: + type: "string" + platform: + description: "Platform hosting this deployment." + $ref: "#/definitions/DeploymentPlatform" + description: "The period during which some deployable was active in a runtime." + example: + address: "address" + undeployTime: "2000-01-23T04:56:07.000+00:00" + userEmail: "userEmail" + deployTime: "2000-01-23T04:56:07.000+00:00" + resourceUri: + - "resourceUri" + - "resourceUri" + config: "config" + platform: {} + discoveryDiscovered: + type: "object" + properties: + continuousAnalysis: + description: "Whether the resource is continuously analyzed." + $ref: "#/definitions/DiscoveredContinuousAnalysis" + lastAnalysisTime: + type: "string" + format: "date-time" + description: "The last time continuous analysis was done for this resource.\n\ + Deprecated, do not use." + analysisStatus: + description: "The status of discovery for the resource." + $ref: "#/definitions/DiscoveredAnalysisStatus" + analysisStatusError: + description: "When an error is encountered this will contain a LocalizedMessage\ + \ under\ndetails to show to the user. The LocalizedMessage is output only\ + \ and\npopulated by the API." + $ref: "#/definitions/rpcStatus" + description: "Provides information about the analysis status of a discovered resource." + example: + analysisStatusError: + code: 1 + details: + - '@type': "@type" + - '@type': "@type" + message: "message" + continuousAnalysis: {} + lastAnalysisTime: "2000-01-23T04:56:07.000+00:00" + analysisStatus: {} + discoveryDiscovery: + type: "object" + properties: + analysisKind: + description: "Required. Immutable. The kind of analysis that is handled by\ + \ this\ndiscovery." + $ref: "#/definitions/v1beta1NoteKind" + description: "A note that indicates a type of analysis a provider would perform.\ + \ This note\nexists in a provider's project. A `Discovery` occurrence is created\ + \ in a\nconsumer's project at the start of analysis." + example: {} + grafeasv1beta1Signature: + type: "object" + properties: + signature: + type: "string" + format: "byte" + description: "The content of the signature, an opaque bytestring.\nThe payload\ + \ that this signature verifies MUST be unambiguously provided\nwith the\ + \ Signature during verification. A wrapper message might provide\nthe payload\ + \ explicitly. Alternatively, a message might have a canonical\nserialization\ + \ that can always be unambiguously computed to derive the\npayload." + pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" + publicKeyId: + type: "string" + description: "The identifier for the public key that verifies this signature.\n\ + \ * The `public_key_id` is required.\n * The `public_key_id` SHOULD be\ + \ an RFC3986 conformant URI.\n * When possible, the `public_key_id` SHOULD\ + \ be an immutable reference,\n such as a cryptographic digest.\n\nExamples\ + \ of valid `public_key_id`s:\n\nOpenPGP V4 public key fingerprint:\n *\ + \ \"openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA\"\nSee https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr\ + \ for more\ndetails on this scheme.\n\nRFC6920 digest-named SubjectPublicKeyInfo\ + \ (digest of the DER\nserialization):\n * \"ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU\"\ + \n * \"nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5\"" + description: "Verifiers (e.g. Kritis implementations) MUST verify signatures\n\ + with respect to the trust anchors defined in policy (e.g. a Kritis policy).\n\ + Typically this means that the verifier has been configured with a map from\n\ + `public_key_id` to public key material (and any required parameters, e.g.\n\ + signing algorithm).\n\nIn particular, verification implementations MUST NOT\ + \ treat the signature\n`public_key_id` as anything more than a key lookup hint.\ + \ The `public_key_id`\nDOES NOT validate or authenticate a public key; it only\ + \ provides a mechanism\nfor quickly selecting a public key ALREADY CONFIGURED\ + \ on the verifier through\na trusted channel. Verification implementations MUST\ + \ reject signatures in any\nof the following circumstances:\n * The `public_key_id`\ + \ is not recognized by the verifier.\n * The public key that `public_key_id`\ + \ refers to does not verify the\n signature with respect to the payload.\n\ + \nThe `signature` contents SHOULD NOT be \"attached\" (where the payload is\n\ + included with the serialized `signature` bytes). Verifiers MUST ignore any\n\ + \"attached\" payload and only verify signatures with respect to explicitly\n\ + provided payload (e.g. a `payload` field on the proto message that holds\nthis\ + \ Signature, or the canonical serialization of the proto message that\nholds\ + \ this signature)." + example: + signature: "signature" + publicKeyId: "publicKeyId" + imageBasis: + type: "object" + properties: + resourceUrl: + type: "string" + description: "Required. Immutable. The resource_url for the resource representing\ + \ the\nbasis of associated occurrence images." + fingerprint: + description: "Required. Immutable. The fingerprint of the base image." + $ref: "#/definitions/imageFingerprint" + description: "Basis describes the base image portion (Note) of the DockerImage\n\ + relationship. Linked occurrences are derived from this or an\nequivalent image\ + \ via:\n FROM \nOr an equivalent reference, e.g. a tag\ + \ of the resource_url." + example: + resourceUrl: "resourceUrl" + fingerprint: + v1Name: "v1Name" + v2Blob: + - "v2Blob" + - "v2Blob" + v2Name: "v2Name" + imageDerived: + type: "object" + properties: + fingerprint: + description: "Required. The fingerprint of the derived image." + $ref: "#/definitions/imageFingerprint" + distance: + type: "integer" + format: "int32" + description: "Output only. The number of layers by which this image differs\ + \ from the\nassociated image basis." + readOnly: true + layerInfo: + type: "array" + description: "This contains layer-specific metadata, if populated it has length\n\ + \"distance\" and is ordered with [distance] being the layer immediately\n\ + following the base image and [1] being the final layer." + items: + $ref: "#/definitions/imageLayer" + baseResourceUrl: + type: "string" + description: "Output only. This contains the base image URL for the derived\ + \ image\noccurrence." + readOnly: true + description: "Derived describes the derived image portion (Occurrence) of the\ + \ DockerImage\nrelationship. This image would be produced from a Dockerfile\ + \ with FROM\n." + example: + distance: 6 + fingerprint: + v1Name: "v1Name" + v2Blob: + - "v2Blob" + - "v2Blob" + v2Name: "v2Name" + baseResourceUrl: "baseResourceUrl" + layerInfo: + - arguments: "arguments" + directive: {} + - arguments: "arguments" + directive: {} + imageFingerprint: + type: "object" + properties: + v1Name: + type: "string" + description: "Required. The layer ID of the final layer in the Docker image's\ + \ v1\nrepresentation." + v2Blob: + type: "array" + description: "Required. The ordered list of v2 blobs that represent a given\ + \ image." + items: + type: "string" + v2Name: + type: "string" + description: "Output only. The name of the image's v2 blobs computed via:\n\ + \ [bottom] := v2_blob[bottom]\n [N] := sha256(v2_blob[N] + \" \" + v2_name[N+1])\n\ + Only the name of the final blob is kept." + readOnly: true + description: "A set of properties that uniquely identify a given Docker image." + example: + v1Name: "v1Name" + v2Blob: + - "v2Blob" + - "v2Blob" + v2Name: "v2Name" + imageLayer: + type: "object" + properties: + directive: + description: "Required. The recovered Dockerfile directive used to construct\ + \ this layer." + $ref: "#/definitions/LayerDirective" + arguments: + type: "string" + description: "The recovered arguments to the Dockerfile directive." + description: "Layer holds metadata specific to a layer of a Docker image." + example: + arguments: "arguments" + directive: {} + intotoInToto: + type: "object" + properties: + stepName: + type: "string" + description: "This field identifies the name of the step in the supply chain." + signingKeys: + type: "array" + description: "This field contains the public keys that can be used to verify\ + \ the\nsignatures on the step metadata." + items: + $ref: "#/definitions/intotoSigningKey" + expectedMaterials: + type: "array" + description: "The following fields contain in-toto artifact rules identifying\ + \ the\nartifacts that enter this supply chain step, and exit the supply\ + \ chain\nstep, i.e. materials and products of the step." + items: + $ref: "#/definitions/InTotoArtifactRule" + expectedProducts: + type: "array" + items: + $ref: "#/definitions/InTotoArtifactRule" + expectedCommand: + type: "array" + description: "This field contains the expected command used to perform the\ + \ step." + items: + type: "string" + threshold: + type: "string" + format: "int64" + description: "This field contains a value that indicates the minimum number\ + \ of keys that\nneed to be used to sign the step's in-toto link." + description: "This contains the fields corresponding to the definition of a software\ + \ supply\nchain step in an in-toto layout. This information goes into a Grafeas\ + \ note." + example: + expectedMaterials: + - artifactRule: + - "artifactRule" + - "artifactRule" + - artifactRule: + - "artifactRule" + - "artifactRule" + signingKeys: + - publicKeyValue: "publicKeyValue" + keyId: "keyId" + keyType: "keyType" + keyScheme: "keyScheme" + - publicKeyValue: "publicKeyValue" + keyId: "keyId" + keyType: "keyType" + keyScheme: "keyScheme" + expectedProducts: + - artifactRule: + - "artifactRule" + - "artifactRule" + - artifactRule: + - "artifactRule" + - "artifactRule" + stepName: "stepName" + threshold: "threshold" + expectedCommand: + - "expectedCommand" + - "expectedCommand" + intotoLink: + type: "object" + properties: + command: + type: "array" + title: "This field contains the full command executed for the step. This can\ + \ also\nbe empty if links are generated for operations that aren't directly\ + \ mapped\nto a specific command. Each term in the command is an independent\ + \ string\nin the list. An example of a command in the in-toto metadata field\ + \ is:\n\"command\": [\"git\", \"clone\", \"https://github.com/in-toto/demo-project.git\"\ + ]" + items: + type: "string" + materials: + type: "array" + title: "Materials are the supply chain artifacts that go into the step and\ + \ are used\nfor the operation performed. The key of the map is the path\ + \ of the artifact\nand the structure contains the recorded hash information.\ + \ An example is:\n\"materials\": [\n {\n \"resource_uri\": \"foo/bar\"\ + ,\n \"hashes\": {\n \"sha256\": \"ebebf...\",\n : \n }\n }\n]" + items: + $ref: "#/definitions/intotoLinkArtifact" + products: + type: "array" + description: "Products are the supply chain artifacts generated as a result\ + \ of the step.\nThe structure is identical to that of materials." + items: + $ref: "#/definitions/intotoLinkArtifact" + byproducts: + description: "ByProducts are data generated as part of a software supply chain\ + \ step, but\nare not the actual result of the step." + $ref: "#/definitions/LinkByProducts" + environment: + title: "This is a field that can be used to capture information about the\n\ + environment. It is suggested for this field to contain information that\n\ + details environment variables, filesystem information, and the present\n\ + working directory. The recommended structure of this field is:\n\"environment\"\ + : {\n \"custom_values\": {\n \"variables\": \"\",\n \"filesystem\"\ + : \"\",\n \"workdir\": \"\",\n \"\"\ + : \"...\"\n }\n}" + $ref: "#/definitions/LinkEnvironment" + description: "This corresponds to an in-toto link." + example: + environment: + customValues: + key: "customValues" + materials: + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + byproducts: + customValues: + key: "customValues" + command: + - "command" + - "command" + products: + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + intotoLinkArtifact: + type: "object" + properties: + resourceUri: + type: "string" + hashes: + $ref: "#/definitions/LinkArtifactHashes" + example: + hashes: + sha256: "sha256" + resourceUri: "resourceUri" + intotoSigningKey: + type: "object" + properties: + keyId: + type: "string" + description: "key_id is an identifier for the signing key." + keyType: + type: "string" + description: "This field identifies the specific signing method. Eg: \"rsa\"\ + , \"ed25519\",\nand \"ecdsa\"." + publicKeyValue: + type: "string" + description: "This field contains the actual public key." + keyScheme: + type: "string" + description: "This field contains the corresponding signature scheme.\nEg:\ + \ \"rsassa-pss-sha256\"." + description: "This defines the format used to record keys used in the software\ + \ supply\nchain. An in-toto link is attested using one or more keys defined\ + \ in the\nin-toto layout. An example of this is:\n{\n \"key_id\": \"776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...\"\ + ,\n \"key_type\": \"rsa\",\n \"public_key_value\": \"-----BEGIN PUBLIC KEY-----\\\ + nMIIBojANBgkqhkiG9w0B...\",\n \"key_scheme\": \"rsassa-pss-sha256\"\n}\nThe\ + \ format for in-toto's key definition can be found in section 4.2 of the\nin-toto\ + \ specification." + example: + publicKeyValue: "publicKeyValue" + keyId: "keyId" + keyType: "keyType" + keyScheme: "keyScheme" + packageArchitecture: + type: "string" + description: "Instruction set architectures supported by various package managers.\n\ + \n - ARCHITECTURE_UNSPECIFIED: Unknown architecture.\n - X86: X86 architecture.\n\ + \ - X64: X64 architecture." + enum: + - "ARCHITECTURE_UNSPECIFIED" + - "X86" + - "X64" + default: "ARCHITECTURE_UNSPECIFIED" + packageDistribution: + type: "object" + properties: + cpeUri: + type: "string" + description: "Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)\n\ + denoting the package manager version distributing a package." + architecture: + description: "The CPU architecture for which packages in this distribution\ + \ channel were\nbuilt." + $ref: "#/definitions/packageArchitecture" + latestVersion: + description: "The latest available version of this package in this distribution\ + \ channel." + $ref: "#/definitions/packageVersion" + maintainer: + type: "string" + description: "A freeform string denoting the maintainer of this package." + url: + type: "string" + description: "The distribution channel-specific homepage for this package." + description: + type: "string" + description: "The distribution channel-specific description of this package." + description: "This represents a particular channel of distribution for a given\ + \ package.\nE.g., Debian's jessie-backports dpkg mirror." + example: + latestVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + description: "description" + cpeUri: "cpeUri" + maintainer: "maintainer" + url: "url" + architecture: {} + packageInstallation: + type: "object" + properties: + name: + type: "string" + description: "Output only. The name of the installed package." + readOnly: true + location: + type: "array" + description: "Required. All of the places within the filesystem versions of\ + \ this package\nhave been found." + items: + $ref: "#/definitions/v1beta1packageLocation" + description: "This represents how a particular software package may be installed\ + \ on a\nsystem." + example: + name: "name" + location: + - path: "path" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + - path: "path" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packagePackage: + type: "object" + properties: + name: + type: "string" + description: "Required. Immutable. The name of the package." + distribution: + type: "array" + description: "The various channels by which a package is distributed." + items: + $ref: "#/definitions/packageDistribution" + description: "This represents a particular package that is distributed over various\n\ + channels. E.g., glibc (aka libc6) is distributed by many, at various\nversions." + example: + name: "name" + distribution: + - latestVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + description: "description" + cpeUri: "cpeUri" + maintainer: "maintainer" + url: "url" + architecture: {} + - latestVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + description: "description" + cpeUri: "cpeUri" + maintainer: "maintainer" + url: "url" + architecture: {} + packageVersion: + type: "object" + properties: + epoch: + type: "integer" + format: "int32" + description: "Used to correct mistakes in the version numbering scheme." + name: + type: "string" + description: "Required only when version kind is NORMAL. The main part of\ + \ the version\nname." + revision: + type: "string" + description: "The iteration of the package build from the above version." + inclusive: + type: "boolean" + description: "Whether this version is specifying part of an inclusive range.\ + \ Grafeas\ndoes not have the capability to specify version ranges; instead\ + \ we have\nfields that specify start version and end versions. At times\ + \ this is\ninsufficient - we also need to specify whether the version is\ + \ included in\nthe range or is excluded from the range. This boolean is\ + \ expected to be set\nto true when the version is included in a range." + kind: + description: "Required. Distinguishes between sentinel MIN/MAX versions and\ + \ normal\nversions." + $ref: "#/definitions/VersionVersionKind" + description: "Version contains structured information about the version of a package." + example: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + protobufAny: + type: "object" + properties: + '@type': + type: "string" + description: "A URL/resource name that uniquely identifies the type of the\ + \ serialized\nprotocol buffer message. This string must contain at least\n\ + one \"/\" character. The last segment of the URL's path must represent\n\ + the fully qualified name of the type (as in\n`path/google.protobuf.Duration`).\ + \ The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\ + \nIn practice, teams usually precompile into the binary all types that they\n\ + expect it to use in the context of Any. However, for URLs which use the\n\ + scheme `http`, `https`, or no scheme, one can optionally set up a type\n\ + server that maps type URLs to message definitions as follows:\n\n* If no\ + \ scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must\ + \ yield a [google.protobuf.Type][]\n value in binary format, or produce\ + \ an error.\n* Applications are allowed to cache lookup results based on\ + \ the\n URL, or have them precompiled into a binary to avoid any\n lookup.\ + \ Therefore, binary compatibility needs to be preserved\n on changes to\ + \ types. (Use versioned type names to manage\n breaking changes.)\n\nNote:\ + \ this functionality is not currently available in the official\nprotobuf\ + \ release, and it is not used for type URLs beginning with\ntype.googleapis.com.\n\ + \nSchemes other than `http`, `https` (or the empty scheme) might be\nused\ + \ with implementation specific semantics." + description: "`Any` contains an arbitrary serialized protocol buffer message along\ + \ with a\nURL that describes the type of the serialized message.\n\nProtobuf\ + \ library provides support to pack/unpack Any values in the form\nof utility\ + \ functions or additional generated methods of the Any type.\n\nExample 1: Pack\ + \ and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n\ + \ ...\n if (any.UnpackTo(&foo)) {\n ...\n }\n\nExample 2: Pack\ + \ and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n\ + \ ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n\ + \ }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n\ + \ any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n\ + \ any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in\ + \ Go\n\n foo := &pb.Foo{...}\n any, err := ptypes.MarshalAny(foo)\n\ + \ ...\n foo := &pb.Foo{}\n if err := ptypes.UnmarshalAny(any, foo);\ + \ err != nil {\n ...\n }\n\nThe pack methods provided by protobuf\ + \ library will by default use\n'type.googleapis.com/full.type.name' as the type\ + \ URL and the unpack\nmethods only use the fully qualified type name after the\ + \ last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\n\ + name \"y.z\".\n\n\nJSON\n====\nThe JSON representation of an `Any` value uses\ + \ the regular\nrepresentation of the deserialized, embedded message, with an\n\ + additional field `@type` which contains the type URL. Example:\n\n package\ + \ google.profile;\n message Person {\n string first_name = 1;\n \ + \ string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\"\ + ,\n \"firstName\": ,\n \"lastName\": \n }\n\nIf\ + \ the embedded message type is well-known and has a custom JSON\nrepresentation,\ + \ that representation will be embedded adding a field\n`value` which holds the\ + \ custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\ + \n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n\ + \ \"value\": \"1.212s\"\n }" + example: + '@type': "@type" + additionalProperties: {} + provenanceBuildProvenance: + type: "object" + properties: + id: + type: "string" + description: "Required. Unique identifier of the build." + projectId: + type: "string" + description: "ID of the project." + commands: + type: "array" + description: "Commands requested by the build." + items: + $ref: "#/definitions/provenanceCommand" + builtArtifacts: + type: "array" + description: "Output of the build." + items: + $ref: "#/definitions/v1beta1provenanceArtifact" + createTime: + type: "string" + format: "date-time" + description: "Time at which the build was created." + startTime: + type: "string" + format: "date-time" + description: "Time at which execution of the build was started." + endTime: + type: "string" + format: "date-time" + description: "Time at which execution of the build was finished." + creator: + type: "string" + description: "E-mail address of the user who initiated this build. Note that\ + \ this was the\nuser's e-mail address at the time the build was initiated;\ + \ this address may\nnot represent the same end-user for all time." + logsUri: + type: "string" + description: "URI where any logs for this provenance were written." + sourceProvenance: + description: "Details of the Source input to the build." + $ref: "#/definitions/provenanceSource" + triggerId: + type: "string" + description: "Trigger identifier if the build was triggered automatically;\ + \ empty if not." + buildOptions: + type: "object" + description: "Special options applied to this build. This is a catch-all field\ + \ where\nbuild providers can enter any desired additional details." + additionalProperties: + type: "string" + builderVersion: + type: "string" + description: "Version string of the builder at the time this build was executed." + description: "Provenance of a build. Contains all information needed to verify\ + \ the full\ndetails about the build from source to completion." + example: + creator: "creator" + triggerId: "triggerId" + buildOptions: + key: "buildOptions" + sourceProvenance: + additionalContexts: + - git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + - git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + artifactStorageSourceUri: "artifactStorageSourceUri" + context: + git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + fileHashes: + key: + fileHash: + - type: {} + value: "value" + - type: {} + value: "value" + createTime: "2000-01-23T04:56:07.000+00:00" + logsUri: "logsUri" + builderVersion: "builderVersion" + builtArtifacts: + - names: + - "names" + - "names" + checksum: "checksum" + id: "id" + - names: + - "names" + - "names" + checksum: "checksum" + id: "id" + startTime: "2000-01-23T04:56:07.000+00:00" + id: "id" + endTime: "2000-01-23T04:56:07.000+00:00" + projectId: "projectId" + commands: + - args: + - "args" + - "args" + name: "name" + id: "id" + env: + - "env" + - "env" + dir: "dir" + waitFor: + - "waitFor" + - "waitFor" + - args: + - "args" + - "args" + name: "name" + id: "id" + env: + - "env" + - "env" + dir: "dir" + waitFor: + - "waitFor" + - "waitFor" + provenanceCommand: + type: "object" + properties: + name: + type: "string" + description: "Required. Name of the command, as presented on the command line,\ + \ or if the\ncommand is packaged as a Docker container, as presented to\ + \ `docker pull`." + env: + type: "array" + description: "Environment variables set before running this command." + items: + type: "string" + args: + type: "array" + description: "Command-line arguments used when executing this command." + items: + type: "string" + dir: + type: "string" + description: "Working directory (relative to project source root) used when\ + \ running this\ncommand." + id: + type: "string" + description: "Optional unique identifier for this command, used in wait_for\ + \ to reference\nthis command as a dependency." + waitFor: + type: "array" + description: "The ID(s) of the command(s) that this command depends on." + items: + type: "string" + description: "Command describes a step performed as part of the build pipeline." + example: + args: + - "args" + - "args" + name: "name" + id: "id" + env: + - "env" + - "env" + dir: "dir" + waitFor: + - "waitFor" + - "waitFor" + provenanceFileHashes: + type: "object" + properties: + fileHash: + type: "array" + description: "Required. Collection of file hashes." + items: + $ref: "#/definitions/provenanceHash" + description: "Container message for hashes of byte content of files, used in source\n\ + messages to verify integrity of source input to the build." + example: + fileHash: + - type: {} + value: "value" + - type: {} + value: "value" + provenanceHash: + type: "object" + properties: + type: + description: "Required. The type of hash that was performed." + $ref: "#/definitions/HashHashType" + value: + type: "string" + format: "byte" + description: "Required. The hash value." + pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" + description: "Container message for hash values." + example: + type: {} + value: "value" + provenanceSource: + type: "object" + properties: + artifactStorageSourceUri: + type: "string" + description: "If provided, the input binary artifacts for the build came from\ + \ this\nlocation." + fileHashes: + type: "object" + description: "Hash(es) of the build source, which can be used to verify that\ + \ the original\nsource integrity was maintained in the build.\n\nThe keys\ + \ to this map are file paths used as build source and the values\ncontain\ + \ the hash values for those files.\n\nIf the build source came in a single\ + \ package such as a gzipped tarfile\n(.tar.gz), the FileHash will be for\ + \ the single path to that file." + additionalProperties: + $ref: "#/definitions/provenanceFileHashes" + context: + description: "If provided, the source code used for the build came from this\ + \ location." + $ref: "#/definitions/sourceSourceContext" + additionalContexts: + type: "array" + description: "If provided, some of the source code used for the build may\ + \ be found in\nthese locations, in the case where the source repository\ + \ had multiple\nremotes or submodules. This list will not include the context\ + \ specified in\nthe context field." + items: + $ref: "#/definitions/sourceSourceContext" + description: "Source describes the location of the source used for the build." + example: + additionalContexts: + - git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + - git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + artifactStorageSourceUri: "artifactStorageSourceUri" + context: + git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + fileHashes: + key: + fileHash: + - type: {} + value: "value" + - type: {} + value: "value" + rpcStatus: + type: "object" + properties: + code: + type: "integer" + format: "int32" + description: "The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]." + message: + type: "string" + description: "A developer-facing error message, which should be in English.\ + \ Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details]\ + \ field, or localized by the client." + details: + type: "array" + description: "A list of messages that carry the error details. There is a\ + \ common set of\nmessage types for APIs to use." + items: + $ref: "#/definitions/protobufAny" + title: "The `Status` type defines a logical error model that is suitable for different\n\ + programming environments, including REST APIs and RPC APIs. It is used by\n\ + [gRPC](https://github.com/grpc). The error model is designed to be:" + description: "- Simple to use and understand for most users\n- Flexible enough\ + \ to meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three\ + \ pieces of data: error code, error message,\nand error details. The error code\ + \ should be an enum value of\n[google.rpc.Code][google.rpc.Code], but it may\ + \ accept additional error codes if needed. The\nerror message should be a developer-facing\ + \ English message that helps\ndevelopers *understand* and *resolve* the error.\ + \ If a localized user-facing\nerror message is needed, put the localized message\ + \ in the error details or\nlocalize it in the client. The optional error details\ + \ may contain arbitrary\ninformation about the error. There is a predefined\ + \ set of error detail types\nin the package `google.rpc` that can be used for\ + \ common error conditions.\n\n# Language mapping\n\nThe `Status` message is\ + \ the logical representation of the error model, but it\nis not necessarily\ + \ the actual wire format. When the `Status` message is\nexposed in different\ + \ client libraries and different wire protocols, it can be\nmapped differently.\ + \ For example, it will likely be mapped to some exceptions\nin Java, but more\ + \ likely mapped to some error codes in C.\n\n# Other uses\n\nThe error model\ + \ and the `Status` message can be used in a variety of\nenvironments, either\ + \ with or without APIs, to provide a\nconsistent developer experience across\ + \ different environments.\n\nExample uses of this error model include:\n\n-\ + \ Partial errors. If a service needs to return partial errors to the client,\n\ + \ it may embed the `Status` in the normal response to indicate the partial\n\ + \ errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each\ + \ step may\n have a `Status` message for error reporting.\n\n- Batch operations.\ + \ If a client uses batch request and batch response, the\n `Status` message\ + \ should be used directly inside batch response, one for\n each error sub-response.\n\ + \n- Asynchronous operations. If an API call embeds asynchronous operation\n\ + \ results in its response, the status of those operations should be\n \ + \ represented directly using the `Status` message.\n\n- Logging. If some API\ + \ errors are stored in logs, the message `Status` could\n be used directly\ + \ after any stripping needed for security/privacy reasons." + example: + code: 1 + details: + - '@type': "@type" + - '@type': "@type" + message: "message" + sourceAliasContext: + type: "object" + properties: + kind: + description: "The alias kind." + $ref: "#/definitions/AliasContextKind" + name: + type: "string" + description: "The alias name." + description: "An alias to a repo revision." + example: + kind: {} + name: "name" + sourceCloudRepoSourceContext: + type: "object" + properties: + repoId: + description: "The ID of the repo." + $ref: "#/definitions/sourceRepoId" + revisionId: + type: "string" + description: "A revision ID." + aliasContext: + description: "An alias, which may be a branch or tag." + $ref: "#/definitions/sourceAliasContext" + description: "A CloudRepoSourceContext denotes a particular revision in a Google\ + \ Cloud\nSource Repo." + example: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + sourceGerritSourceContext: + type: "object" + properties: + hostUri: + type: "string" + description: "The URI of a running Gerrit instance." + gerritProject: + type: "string" + description: "The full project name within the host. Projects may be nested,\ + \ so\n\"project/subproject\" is a valid project name. The \"repo name\"\ + \ is the\nhostURI/project." + revisionId: + type: "string" + description: "A revision (commit) ID." + aliasContext: + description: "An alias, which may be a branch or tag." + $ref: "#/definitions/sourceAliasContext" + description: "A SourceContext referring to a Gerrit project." + example: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + sourceGitSourceContext: + type: "object" + properties: + url: + type: "string" + description: "Git repository URL." + revisionId: + type: "string" + description: "Git commit hash." + description: "A GitSourceContext denotes a particular revision in a third party\ + \ Git\nrepository (e.g., GitHub)." + example: + revisionId: "revisionId" + url: "url" + sourceProjectRepoId: + type: "object" + properties: + projectId: + type: "string" + description: "The ID of the project." + repoName: + type: "string" + description: "The name of the repo. Leave empty for the default repo." + description: "Selects a repo using a Google Cloud Platform project ID (e.g.,\n\ + winged-cargo-31) and a repo name within that project." + example: + repoName: "repoName" + projectId: "projectId" + sourceRepoId: + type: "object" + properties: + projectRepoId: + description: "A combination of a project ID and a repo name." + $ref: "#/definitions/sourceProjectRepoId" + uid: + type: "string" + description: "A server-assigned, globally unique identifier." + description: "A unique identifier for a Cloud Repo." + example: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + sourceSourceContext: + type: "object" + properties: + cloudRepo: + description: "A SourceContext referring to a revision in a Google Cloud Source\ + \ Repo." + $ref: "#/definitions/sourceCloudRepoSourceContext" + gerrit: + description: "A SourceContext referring to a Gerrit project." + $ref: "#/definitions/sourceGerritSourceContext" + git: + description: "A SourceContext referring to any third party Git repo (e.g.,\ + \ GitHub)." + $ref: "#/definitions/sourceGitSourceContext" + labels: + type: "object" + description: "Labels with user defined metadata." + additionalProperties: + type: "string" + description: "A SourceContext is a reference to a tree of files. A SourceContext\ + \ together\nwith a path point to a unique revision of a single file or directory." + example: + git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + spdxDocumentNote: + type: "object" + properties: + spdxVersion: + type: "string" + title: "Provide a reference number that can be used to understand how to parse\ + \ and\ninterpret the rest of the file" + dataLicence: + type: "string" + title: "Compliance with the SPDX specification includes populating the SPDX\ + \ fields\ntherein with data related to such fields (\"SPDX-Metadata\")" + title: "DocumentNote represents an SPDX Document Creation Information section:\n\ + https://spdx.github.io/spdx-spec/2-document-creation-information/" + example: + dataLicence: "dataLicence" + spdxVersion: "spdxVersion" + spdxDocumentOccurrence: + type: "object" + properties: + id: + type: "string" + title: "Identify the current SPDX document which may be referenced in relationships\n\ + by other files, packages internally and documents externally" + title: + type: "string" + title: "Identify name of this document as designated by creator" + namespace: + type: "string" + title: "Provide an SPDX document specific namespace as a unique absolute Uniform\n\ + Resource Identifier (URI) as specified in RFC-3986, with the exception of\n\ + the ‘#’ delimiter" + externalDocumentRefs: + type: "array" + title: "Identify any external SPDX documents referenced within this SPDX document" + items: + type: "string" + licenseListVersion: + type: "string" + title: "A field for creators of the SPDX file to provide the version of\n\ + the SPDX License List used when the SPDX file was created" + creators: + type: "array" + title: "Identify who (or what, in the case of a tool) created the SPDX file.\ + \ If the\nSPDX file was created by an individual, indicate the person's\ + \ name" + items: + type: "string" + createTime: + type: "string" + format: "date-time" + title: "Identify when the SPDX file was originally created. The date is to\ + \ be\nspecified according to combined date and time in UTC format as specified\ + \ in\nISO 8601 standard" + creatorComment: + type: "string" + title: "A field for creators of the SPDX file to provide general comments\n\ + about the creation of the SPDX file or any other relevant comment not\n\ + included in the other fields" + documentComment: + type: "string" + title: "A field for creators of the SPDX file content to provide comments\n\ + to the consumers of the SPDX document" + title: "DocumentOccurrence represents an SPDX Document Creation Information\n\ + section: https://spdx.github.io/spdx-spec/2-document-creation-information/" + example: + creatorComment: "creatorComment" + documentComment: "documentComment" + licenseListVersion: "licenseListVersion" + createTime: "2000-01-23T04:56:07.000+00:00" + creators: + - "creators" + - "creators" + namespace: "namespace" + id: "id" + externalDocumentRefs: + - "externalDocumentRefs" + - "externalDocumentRefs" + title: "title" + spdxFileNote: + type: "object" + properties: + title: + type: "string" + title: "Identify the full path and filename that corresponds to the file\n\ + information in this section" + fileType: + title: "This field provides information about the type of file identified" + $ref: "#/definitions/FileNoteFileType" + checksum: + type: "array" + title: "Provide a unique identifier to match analysis information on each\ + \ specific\nfile in a package" + items: + type: "string" + title: "FileNote represents an SPDX File Information\nsection: https://spdx.github.io/spdx-spec/4-file-information/" + example: + checksum: + - "checksum" + - "checksum" + title: "title" + fileType: {} + spdxFileOccurrence: + type: "object" + properties: + id: + type: "string" + title: "Uniquely identify any element in an SPDX document which may be referenced\n\ + by other elements" + licenseConcluded: + title: "This field contains the license the SPDX file creator has concluded\ + \ as\ngoverning the file or alternative values if the governing license\ + \ cannot be\ndetermined" + $ref: "#/definitions/spdxLicense" + filesLicenseInfo: + type: "array" + title: "This field contains the license information actually found in the\ + \ file, if\nany" + items: + type: "string" + copyright: + type: "string" + title: "Identify the copyright holder of the file, as well as any dates present" + comment: + type: "string" + title: "This field provides a place for the SPDX file creator to record any\ + \ general\ncomments about the file" + notice: + type: "string" + title: "This field provides a place for the SPDX file creator to record license\n\ + notices or other such related notices found in the file" + contributors: + type: "array" + title: "This field provides a place for the SPDX file creator to record file\n\ + contributors" + items: + type: "string" + attributions: + type: "array" + title: "This field provides a place for the SPDX data creator to record, at\ + \ the\nfile level, acknowledgements that may be needed to be communicated\ + \ in\nsome contexts" + items: + type: "string" + title: "FileOccurrence represents an SPDX File Information\nsection: https://spdx.github.io/spdx-spec/4-file-information/" + example: + copyright: "copyright" + licenseConcluded: + expression: "expression" + comments: "comments" + filesLicenseInfo: + - "filesLicenseInfo" + - "filesLicenseInfo" + comment: "comment" + id: "id" + contributors: + - "contributors" + - "contributors" + attributions: + - "attributions" + - "attributions" + notice: "notice" + spdxLicense: + type: "object" + properties: + expression: + type: "string" + title: "Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/" + comments: + type: "string" + title: "Comments" + title: "License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license" + example: + expression: "expression" + comments: "comments" + spdxPackageInfoNote: + type: "object" + properties: + title: + type: "string" + title: "Identify the full name of the package as given by the Package Originator" + version: + type: "string" + title: "Identify the version of the package" + supplier: + type: "string" + title: "Identify the actual distribution source for the package/directory\n\ + identified in the SPDX file" + originator: + type: "string" + title: "If the package identified in the SPDX file originated from a different\n\ + person or organization than identified as Package Supplier, this field\n\ + identifies from where or whom the package originally came" + downloadLocation: + type: "string" + title: "This section identifies the download Universal Resource Locator (URL),\ + \ or\n a specific location within a version control system (VCS) for the\ + \ package\n at the time that the SPDX file was created" + analyzed: + type: "boolean" + title: "Indicates whether the file content of this package has been available\ + \ for\nor subjected to analysis when creating the SPDX document" + verificationCode: + type: "string" + title: "This field provides an independently reproducible mechanism identifying\n\ + specific contents of a package based on the actual files (except the SPDX\n\ + file itself, if it is included in the package) that make up each package\n\ + and that correlates to the data in this SPDX file" + checksum: + type: "string" + title: "Provide an independently reproducible mechanism that permits unique\n\ + identification of a specific package that correlates to the data in this\n\ + SPDX file" + homePage: + type: "string" + title: "Provide a place for the SPDX file creator to record a web site that\ + \ serves\nas the package's home page" + filesLicenseInfo: + type: "array" + title: "Contain the license the SPDX file creator has concluded as governing\ + \ the\nThis field is to contain a list of all licenses found in the package.\ + \ The\nrelationship between licenses (i.e., conjunctive, disjunctive) is\ + \ not\nspecified in this field – it is simply a listing of all licenses\ + \ found" + items: + type: "string" + licenseDeclared: + title: "List the licenses that have been declared by the authors of the package" + $ref: "#/definitions/spdxLicense" + copyright: + type: "string" + title: "Identify the copyright holders of the package, as well as any dates\ + \ present" + summaryDescription: + type: "string" + title: "A short description of the package" + detailedDescription: + type: "string" + title: "A more detailed description of the package" + externalRefs: + type: "array" + title: "ExternalRef" + items: + $ref: "#/definitions/PackageInfoNoteExternalRef" + attribution: + type: "string" + title: "A place for the SPDX data creator to record, at the package level,\n\ + acknowledgements that may be needed to be communicated in some contexts" + packageType: + type: "string" + description: "The type of package: OS, MAVEN, GO, GO_STDLIB, etc." + title: "PackageInfoNote represents an SPDX Package Information\nsection: https://spdx.github.io/spdx-spec/3-package-information/" + example: + copyright: "copyright" + filesLicenseInfo: + - "filesLicenseInfo" + - "filesLicenseInfo" + analyzed: true + externalRefs: + - comment: "comment" + category: {} + type: "type" + locator: "locator" + - comment: "comment" + category: {} + type: "type" + locator: "locator" + downloadLocation: "downloadLocation" + originator: "originator" + title: "title" + version: "version" + homePage: "homePage" + packageType: "packageType" + verificationCode: "verificationCode" + detailedDescription: "detailedDescription" + supplier: "supplier" + checksum: "checksum" + attribution: "attribution" + licenseDeclared: + expression: "expression" + comments: "comments" + summaryDescription: "summaryDescription" + spdxPackageInfoOccurrence: + type: "object" + properties: + id: + type: "string" + title: "Uniquely identify any element in an SPDX document which may be referenced\n\ + by other elements" + filename: + type: "string" + title: "Provide the actual file name of the package, or path of the directory\ + \ being\ntreated as a package" + sourceInfo: + type: "string" + title: "Provide a place for the SPDX file creator to record any relevant background\n\ + information or additional comments about the origin of the package" + licenseConcluded: + title: "package or alternative values, if the governing license cannot be\n\ + determined" + $ref: "#/definitions/spdxLicense" + comment: + type: "string" + title: "A place for the SPDX file creator to record any general\ncomments\ + \ about the package being described" + packageType: + type: "string" + description: "The type of package: OS, MAVEN, GO, GO_STDLIB, etc." + readOnly: true + title: + type: "string" + title: "Identify the full name of the package as given by the Package Originator" + readOnly: true + version: + type: "string" + title: "Identify the version of the package" + readOnly: true + homePage: + type: "string" + title: "Provide a place for the SPDX file creator to record a web site that\ + \ serves\nas the package's home page" + readOnly: true + summaryDescription: + type: "string" + title: "A short description of the package" + readOnly: true + title: "PackageInfoOccurrence represents an SPDX Package Information\nsection:\ + \ https://spdx.github.io/spdx-spec/3-package-information/" + example: + sourceInfo: "sourceInfo" + filename: "filename" + licenseConcluded: + expression: "expression" + comments: "comments" + comment: "comment" + id: "id" + title: "title" + packageType: "packageType" + version: "version" + homePage: "homePage" + summaryDescription: "summaryDescription" + spdxRelationshipNote: + type: "object" + properties: + type: + title: "The type of relationship between the source and target SPDX elements" + $ref: "#/definitions/spdxRelationshipType" + title: "RelationshipNote represents an SPDX Relationship\nsection:\nhttps://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/" + example: + type: {} + spdxRelationshipOccurrence: + type: "object" + properties: + source: + type: "string" + title: "Also referred to as SPDXRef-A\nThe source SPDX element (file, package,\ + \ etc)" + target: + type: "string" + title: "Also referred to as SPDXRef-B\nThe target SPDC element (file, package,\ + \ etc)\nIn cases where there are \"known unknowns\", the use of the keyword\n\ + NOASSERTION can be used The keywords NONE can be used to indicate that an\n\ + SPDX element (package/file/snippet) has no other elements connected by\n\ + some relationship to it" + type: + title: "The type of relationship between the source and target SPDX elements" + $ref: "#/definitions/spdxRelationshipType" + comment: + type: "string" + title: "A place for the SPDX file creator to record any general comments about\n\ + the relationship" + title: "RelationshipOccurrence represents an SPDX Relationship\nsection:\nhttps://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/" + example: + comment: "comment" + source: "source" + type: {} + target: "target" + spdxRelationshipType: + type: "string" + title: "The type of relationship between the source and target SPDX elements\n\ + RelationshipOccurrence represents an SPDX Relationship section:\nhttps://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/" + description: "- RELATIONSHIP_TYPE_UNSPECIFIED: Unspecified\n - DESCRIBES: Is to\ + \ be used when SPDXRef-DOCUMENT describes SPDXRef-A\n - DESCRIBED_BY: Is to\ + \ be used when SPDXRef-A is described by SPDXREF-Document\n - CONTAINS: Is to\ + \ be used when SPDXRef-A contains SPDXRef-B\n - CONTAINED_BY: Is to be used\ + \ when SPDXRef-A is contained by SPDXRef-B\n - DEPENDS_ON: Is to be used when\ + \ SPDXRef-A depends on SPDXRef-B\n - DEPENDENCY_OF: Is to be used when SPDXRef-A\ + \ is dependency of SPDXRef-B\n - DEPENDENCY_MANIFEST_OF: Is to be used when\ + \ SPDXRef-A is a manifest file that lists a set of\ndependencies for SPDXRef-B\n\ + \ - BUILD_DEPENDENCY_OF: Is to be used when SPDXRef-A is a build dependency\ + \ of SPDXRef-B\n - DEV_DEPENDENCY_OF: Is to be used when SPDXRef-A is a development\ + \ dependency of SPDXRef-B\n - OPTIONAL_DEPENDENCY_OF: Is to be used when SPDXRef-A\ + \ is an optional dependency of SPDXRef-B\n - PROVIDED_DEPENDENCY_OF: Is to be\ + \ used when SPDXRef-A is a to be provided dependency of\nSPDXRef-B\n - TEST_DEPENDENCY_OF:\ + \ Is to be used when SPDXRef-A is a test dependency of SPDXRef-B\n - RUNTIME_DEPENDENCY_OF:\ + \ Is to be used when SPDXRef-A is a dependency required for the execution\n\ + of SPDXRef-B\n - EXAMPLE_OF: Is to be used when SPDXRef-A is an example of SPDXRef-B\n\ + \ - GENERATES: Is to be used when SPDXRef-A generates SPDXRef-B\n - GENERATED_FROM:\ + \ Is to be used when SPDXRef-A was generated from SPDXRef-B\n - ANCESTOR_OF:\ + \ Is to be used when SPDXRef-A is an ancestor (same lineage but\npre-dates)\ + \ SPDXRef-B\n - DESCENDANT_OF: Is to be used when SPDXRef-A is a descendant\ + \ of (same lineage but\npostdates) SPDXRef-B\n - VARIANT_OF: Is to be used when\ + \ SPDXRef-A is a variant of (same lineage but not\nclear which came first) SPDXRef-B\n\ + \ - DISTRIBUTION_ARTIFACT: Is to be used when distributing SPDXRef-A requires\ + \ that SPDXRef-B also\nbe distributed\n - PATCH_FOR: Is to be used when SPDXRef-A\ + \ is a patch file for (to be applied to)\nSPDXRef-B\n - PATCH_APPLIED: Is to\ + \ be used when SPDXRef-A is a patch file that has been applied to\nSPDXRef-B\n\ + \ - COPY_OF: Is to be used when SPDXRef-A is an exact copy of SPDXRef-B\n -\ + \ FILE_ADDED: Is to be used when SPDXRef-A is a file that was added to SPDXRef-B\n\ + \ - FILE_DELETED: Is to be used when SPDXRef-A is a file that was deleted from\ + \ SPDXRef-B\n - FILE_MODIFIED: Is to be used when SPDXRef-A is a file that was\ + \ modified from SPDXRef-B\n - EXPANDED_FROM_ARCHIVE: Is to be used when SPDXRef-A\ + \ is expanded from the archive SPDXRef-B\n - DYNAMIC_LINK: Is to be used when\ + \ SPDXRef-A dynamically links to SPDXRef-B\n - STATIC_LINK: Is to be used when\ + \ SPDXRef-A statically links to SPDXRef-B\n - DATA_FILE_OF: Is to be used when\ + \ SPDXRef-A is a data file used in SPDXRef-B\n - TEST_CASE_OF: Is to be used\ + \ when SPDXRef-A is a test case used in testing SPDXRef-B\n - BUILD_TOOL_OF:\ + \ Is to be used when SPDXRef-A is used to build SPDXRef-B\n - DEV_TOOL_OF: Is\ + \ to be used when SPDXRef-A is used as a development tool for\nSPDXRef-B\n -\ + \ TEST_OF: Is to be used when SPDXRef-A is used for testing SPDXRef-B\n - TEST_TOOL_OF:\ + \ Is to be used when SPDXRef-A is used as a test tool for SPDXRef-B\n - DOCUMENTATION_OF:\ + \ Is to be used when SPDXRef-A provides documentation of SPDXRef-B\n - OPTIONAL_COMPONENT_OF:\ + \ Is to be used when SPDXRef-A is an optional component of SPDXRef-B\n - METAFILE_OF:\ + \ Is to be used when SPDXRef-A is a metafile of SPDXRef-B\n - PACKAGE_OF: Is\ + \ to be used when SPDXRef-A is used as a package as part of SPDXRef-B\n - AMENDS:\ + \ Is to be used when (current) SPDXRef-DOCUMENT amends the SPDX\ninformation\ + \ in SPDXRef-B\n - PREREQUISITE_FOR: Is to be used when SPDXRef-A is a prerequisite\ + \ for SPDXRef-B\n - HAS_PREREQUISITE: Is to be used when SPDXRef-A has as a\ + \ prerequisite SPDXRef-B\n - OTHER: Is to be used for a relationship which has\ + \ not been defined in the\nformal SPDX specification. A description of the relationship\ + \ should be\nincluded in the Relationship comments field" + enum: + - "RELATIONSHIP_TYPE_UNSPECIFIED" + - "DESCRIBES" + - "DESCRIBED_BY" + - "CONTAINS" + - "CONTAINED_BY" + - "DEPENDS_ON" + - "DEPENDENCY_OF" + - "DEPENDENCY_MANIFEST_OF" + - "BUILD_DEPENDENCY_OF" + - "DEV_DEPENDENCY_OF" + - "OPTIONAL_DEPENDENCY_OF" + - "PROVIDED_DEPENDENCY_OF" + - "TEST_DEPENDENCY_OF" + - "RUNTIME_DEPENDENCY_OF" + - "EXAMPLE_OF" + - "GENERATES" + - "GENERATED_FROM" + - "ANCESTOR_OF" + - "DESCENDANT_OF" + - "VARIANT_OF" + - "DISTRIBUTION_ARTIFACT" + - "PATCH_FOR" + - "PATCH_APPLIED" + - "COPY_OF" + - "FILE_ADDED" + - "FILE_DELETED" + - "FILE_MODIFIED" + - "EXPANDED_FROM_ARCHIVE" + - "DYNAMIC_LINK" + - "STATIC_LINK" + - "DATA_FILE_OF" + - "TEST_CASE_OF" + - "BUILD_TOOL_OF" + - "DEV_TOOL_OF" + - "TEST_OF" + - "TEST_TOOL_OF" + - "DOCUMENTATION_OF" + - "OPTIONAL_COMPONENT_OF" + - "METAFILE_OF" + - "PACKAGE_OF" + - "AMENDS" + - "PREREQUISITE_FOR" + - "HAS_PREREQUISITE" + - "OTHER" + default: "RELATIONSHIP_TYPE_UNSPECIFIED" + v1beta1BatchCreateNotesResponse: + type: "object" + properties: + notes: + type: "array" + description: "The notes that were created." + items: + $ref: "#/definitions/v1beta1Note" + description: "Response for creating notes in batch." + example: + notes: + - longDescription: "longDescription" + package: + name: "name" + distribution: + - latestVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + description: "description" + cpeUri: "cpeUri" + maintainer: "maintainer" + url: "url" + architecture: {} + - latestVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + description: "description" + cpeUri: "cpeUri" + maintainer: "maintainer" + url: "url" + architecture: {} + kind: {} + baseImage: + resourceUrl: "resourceUrl" + fingerprint: + v1Name: "v1Name" + v2Blob: + - "v2Blob" + - "v2Blob" + v2Name: "v2Name" + attestationAuthority: + hint: + humanReadableName: "humanReadableName" + updateTime: "2000-01-23T04:56:07.000+00:00" + intoto: + expectedMaterials: + - artifactRule: + - "artifactRule" + - "artifactRule" + - artifactRule: + - "artifactRule" + - "artifactRule" + signingKeys: + - publicKeyValue: "publicKeyValue" + keyId: "keyId" + keyType: "keyType" + keyScheme: "keyScheme" + - publicKeyValue: "publicKeyValue" + keyId: "keyId" + keyType: "keyType" + keyScheme: "keyScheme" + expectedProducts: + - artifactRule: + - "artifactRule" + - "artifactRule" + - artifactRule: + - "artifactRule" + - "artifactRule" + stepName: "stepName" + threshold: "threshold" + expectedCommand: + - "expectedCommand" + - "expectedCommand" + shortDescription: "shortDescription" + vulnerability: + severity: {} + cwe: + - "cwe" + - "cwe" + cvssScore: 0.8008282 + cvssV3: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} + details: + - package: "package" + minAffectedVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + maxAffectedVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + vendor: "vendor" + description: "description" + sourceUpdateTime: "2000-01-23T04:56:07.000+00:00" + isObsolete: true + source: "source" + cpeUri: "cpeUri" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + - package: "package" + minAffectedVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + maxAffectedVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + vendor: "vendor" + description: "description" + sourceUpdateTime: "2000-01-23T04:56:07.000+00:00" + isObsolete: true + source: "source" + cpeUri: "cpeUri" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + sourceUpdateTime: "2000-01-23T04:56:07.000+00:00" + cvssV2: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} + windowsDetails: + - name: "name" + description: "description" + fixingKbs: + - name: "name" + url: "url" + - name: "name" + url: "url" + cpeUri: "cpeUri" + - name: "name" + description: "description" + fixingKbs: + - name: "name" + url: "url" + - name: "name" + url: "url" + cpeUri: "cpeUri" + spdxRelationship: + type: {} + relatedNoteNames: + - "relatedNoteNames" + - "relatedNoteNames" + spdxFile: + checksum: + - "checksum" + - "checksum" + title: "title" + fileType: {} + deployable: + resourceUri: + - "resourceUri" + - "resourceUri" + createTime: "2000-01-23T04:56:07.000+00:00" + build: + signature: + signature: "signature" + keyId: "keyId" + publicKey: "publicKey" + keyType: {} + builderVersion: "builderVersion" + expirationTime: "2000-01-23T04:56:07.000+00:00" + discovery: {} + spdxPackage: + copyright: "copyright" + filesLicenseInfo: + - "filesLicenseInfo" + - "filesLicenseInfo" + analyzed: true + externalRefs: + - comment: "comment" + category: {} + type: "type" + locator: "locator" + - comment: "comment" + category: {} + type: "type" + locator: "locator" + downloadLocation: "downloadLocation" + originator: "originator" + title: "title" + version: "version" + homePage: "homePage" + packageType: "packageType" + verificationCode: "verificationCode" + detailedDescription: "detailedDescription" + supplier: "supplier" + checksum: "checksum" + attribution: "attribution" + licenseDeclared: + expression: "expression" + comments: "comments" + summaryDescription: "summaryDescription" + name: "name" + sbom: + dataLicence: "dataLicence" + spdxVersion: "spdxVersion" + relatedUrl: + - label: "label" + url: "url" + - label: "label" + url: "url" + - longDescription: "longDescription" + package: + name: "name" + distribution: + - latestVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + description: "description" + cpeUri: "cpeUri" + maintainer: "maintainer" + url: "url" + architecture: {} + - latestVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + description: "description" + cpeUri: "cpeUri" + maintainer: "maintainer" + url: "url" + architecture: {} + kind: {} + baseImage: + resourceUrl: "resourceUrl" + fingerprint: + v1Name: "v1Name" + v2Blob: + - "v2Blob" + - "v2Blob" + v2Name: "v2Name" + attestationAuthority: + hint: + humanReadableName: "humanReadableName" + updateTime: "2000-01-23T04:56:07.000+00:00" + intoto: + expectedMaterials: + - artifactRule: + - "artifactRule" + - "artifactRule" + - artifactRule: + - "artifactRule" + - "artifactRule" + signingKeys: + - publicKeyValue: "publicKeyValue" + keyId: "keyId" + keyType: "keyType" + keyScheme: "keyScheme" + - publicKeyValue: "publicKeyValue" + keyId: "keyId" + keyType: "keyType" + keyScheme: "keyScheme" + expectedProducts: + - artifactRule: + - "artifactRule" + - "artifactRule" + - artifactRule: + - "artifactRule" + - "artifactRule" + stepName: "stepName" + threshold: "threshold" + expectedCommand: + - "expectedCommand" + - "expectedCommand" + shortDescription: "shortDescription" + vulnerability: + severity: {} + cwe: + - "cwe" + - "cwe" + cvssScore: 0.8008282 + cvssV3: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} + details: + - package: "package" + minAffectedVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + maxAffectedVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + vendor: "vendor" + description: "description" + sourceUpdateTime: "2000-01-23T04:56:07.000+00:00" + isObsolete: true + source: "source" + cpeUri: "cpeUri" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + - package: "package" + minAffectedVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + maxAffectedVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + vendor: "vendor" + description: "description" + sourceUpdateTime: "2000-01-23T04:56:07.000+00:00" + isObsolete: true + source: "source" + cpeUri: "cpeUri" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + sourceUpdateTime: "2000-01-23T04:56:07.000+00:00" + cvssV2: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} + windowsDetails: + - name: "name" + description: "description" + fixingKbs: + - name: "name" + url: "url" + - name: "name" + url: "url" + cpeUri: "cpeUri" + - name: "name" + description: "description" + fixingKbs: + - name: "name" + url: "url" + - name: "name" + url: "url" + cpeUri: "cpeUri" + spdxRelationship: + type: {} + relatedNoteNames: + - "relatedNoteNames" + - "relatedNoteNames" + spdxFile: + checksum: + - "checksum" + - "checksum" + title: "title" + fileType: {} + deployable: + resourceUri: + - "resourceUri" + - "resourceUri" + createTime: "2000-01-23T04:56:07.000+00:00" + build: + signature: + signature: "signature" + keyId: "keyId" + publicKey: "publicKey" + keyType: {} + builderVersion: "builderVersion" + expirationTime: "2000-01-23T04:56:07.000+00:00" + discovery: {} + spdxPackage: + copyright: "copyright" + filesLicenseInfo: + - "filesLicenseInfo" + - "filesLicenseInfo" + analyzed: true + externalRefs: + - comment: "comment" + category: {} + type: "type" + locator: "locator" + - comment: "comment" + category: {} + type: "type" + locator: "locator" + downloadLocation: "downloadLocation" + originator: "originator" + title: "title" + version: "version" + homePage: "homePage" + packageType: "packageType" + verificationCode: "verificationCode" + detailedDescription: "detailedDescription" + supplier: "supplier" + checksum: "checksum" + attribution: "attribution" + licenseDeclared: + expression: "expression" + comments: "comments" + summaryDescription: "summaryDescription" + name: "name" + sbom: + dataLicence: "dataLicence" + spdxVersion: "spdxVersion" + relatedUrl: + - label: "label" + url: "url" + - label: "label" + url: "url" + v1beta1BatchCreateOccurrencesResponse: + type: "object" + properties: + occurrences: + type: "array" + description: "The occurrences that were created." + items: + $ref: "#/definitions/v1beta1Occurrence" + description: "Response for creating occurrences in batch." + example: + occurrences: + - discovered: + discovered: + analysisStatusError: + code: 1 + details: + - '@type': "@type" + - '@type': "@type" + message: "message" + continuousAnalysis: {} + lastAnalysisTime: "2000-01-23T04:56:07.000+00:00" + analysisStatus: {} + attestation: + attestation: + genericSignedAttestation: + serializedPayload: "serializedPayload" + contentType: {} + signatures: + - signature: "signature" + publicKeyId: "publicKeyId" + - signature: "signature" + publicKeyId: "publicKeyId" + pgpSignedAttestation: + signature: "signature" + pgpKeyId: "pgpKeyId" + contentType: {} + resource: + name: "name" + uri: "uri" + contentHash: + type: {} + value: "value" + noteName: "noteName" + kind: {} + updateTime: "2000-01-23T04:56:07.000+00:00" + intoto: + signed: + environment: + customValues: + key: "customValues" + materials: + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + byproducts: + customValues: + key: "customValues" + command: + - "command" + - "command" + products: + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + signatures: + - sig: "sig" + keyid: "keyid" + - sig: "sig" + keyid: "keyid" + vulnerability: + severity: {} + longDescription: "longDescription" + cvssScore: 0.8008282 + relatedUrls: + - label: "label" + url: "url" + - label: "label" + url: "url" + packageIssue: + - affectedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + - affectedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + shortDescription: "shortDescription" + type: "type" + spdxRelationship: + comment: "comment" + source: "source" + type: {} + target: "target" + spdxFile: + copyright: "copyright" + licenseConcluded: + expression: "expression" + comments: "comments" + filesLicenseInfo: + - "filesLicenseInfo" + - "filesLicenseInfo" + comment: "comment" + id: "id" + contributors: + - "contributors" + - "contributors" + attributions: + - "attributions" + - "attributions" + notice: "notice" + remediation: "remediation" + envelope: + payloadType: "payloadType" + payload: "payload" + signatures: + - sig: "sig" + keyid: "keyid" + - sig: "sig" + keyid: "keyid" + createTime: "2000-01-23T04:56:07.000+00:00" + build: + provenance: + creator: "creator" + triggerId: "triggerId" + buildOptions: + key: "buildOptions" + sourceProvenance: + additionalContexts: + - git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + - git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + artifactStorageSourceUri: "artifactStorageSourceUri" + context: + git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + fileHashes: + key: + fileHash: + - type: {} + value: "value" + - type: {} + value: "value" + createTime: "2000-01-23T04:56:07.000+00:00" + logsUri: "logsUri" + builderVersion: "builderVersion" + builtArtifacts: + - names: + - "names" + - "names" + checksum: "checksum" + id: "id" + - names: + - "names" + - "names" + checksum: "checksum" + id: "id" + startTime: "2000-01-23T04:56:07.000+00:00" + id: "id" + endTime: "2000-01-23T04:56:07.000+00:00" + projectId: "projectId" + commands: + - args: + - "args" + - "args" + name: "name" + id: "id" + env: + - "env" + - "env" + dir: "dir" + waitFor: + - "waitFor" + - "waitFor" + - args: + - "args" + - "args" + name: "name" + id: "id" + env: + - "env" + - "env" + dir: "dir" + waitFor: + - "waitFor" + - "waitFor" + provenanceBytes: "provenanceBytes" + spdxPackage: + sourceInfo: "sourceInfo" + filename: "filename" + licenseConcluded: + expression: "expression" + comments: "comments" + comment: "comment" + id: "id" + title: "title" + packageType: "packageType" + version: "version" + homePage: "homePage" + summaryDescription: "summaryDescription" + installation: + installation: + name: "name" + location: + - path: "path" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + - path: "path" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + name: "name" + sbom: + creatorComment: "creatorComment" + documentComment: "documentComment" + licenseListVersion: "licenseListVersion" + createTime: "2000-01-23T04:56:07.000+00:00" + creators: + - "creators" + - "creators" + namespace: "namespace" + id: "id" + externalDocumentRefs: + - "externalDocumentRefs" + - "externalDocumentRefs" + title: "title" + derivedImage: + derivedImage: + distance: 6 + fingerprint: + v1Name: "v1Name" + v2Blob: + - "v2Blob" + - "v2Blob" + v2Name: "v2Name" + baseResourceUrl: "baseResourceUrl" + layerInfo: + - arguments: "arguments" + directive: {} + - arguments: "arguments" + directive: {} + deployment: + deployment: + address: "address" + undeployTime: "2000-01-23T04:56:07.000+00:00" + userEmail: "userEmail" + deployTime: "2000-01-23T04:56:07.000+00:00" + resourceUri: + - "resourceUri" + - "resourceUri" + config: "config" + platform: {} + - discovered: + discovered: + analysisStatusError: + code: 1 + details: + - '@type': "@type" + - '@type': "@type" + message: "message" + continuousAnalysis: {} + lastAnalysisTime: "2000-01-23T04:56:07.000+00:00" + analysisStatus: {} + attestation: + attestation: + genericSignedAttestation: + serializedPayload: "serializedPayload" + contentType: {} + signatures: + - signature: "signature" + publicKeyId: "publicKeyId" + - signature: "signature" + publicKeyId: "publicKeyId" + pgpSignedAttestation: + signature: "signature" + pgpKeyId: "pgpKeyId" + contentType: {} + resource: + name: "name" + uri: "uri" + contentHash: + type: {} + value: "value" + noteName: "noteName" + kind: {} + updateTime: "2000-01-23T04:56:07.000+00:00" + intoto: + signed: + environment: + customValues: + key: "customValues" + materials: + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + byproducts: + customValues: + key: "customValues" + command: + - "command" + - "command" + products: + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + signatures: + - sig: "sig" + keyid: "keyid" + - sig: "sig" + keyid: "keyid" + vulnerability: + severity: {} + longDescription: "longDescription" + cvssScore: 0.8008282 + relatedUrls: + - label: "label" + url: "url" + - label: "label" + url: "url" + packageIssue: + - affectedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + - affectedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + shortDescription: "shortDescription" + type: "type" + spdxRelationship: + comment: "comment" + source: "source" + type: {} + target: "target" + spdxFile: + copyright: "copyright" + licenseConcluded: + expression: "expression" + comments: "comments" + filesLicenseInfo: + - "filesLicenseInfo" + - "filesLicenseInfo" + comment: "comment" + id: "id" + contributors: + - "contributors" + - "contributors" + attributions: + - "attributions" + - "attributions" + notice: "notice" + remediation: "remediation" + envelope: + payloadType: "payloadType" + payload: "payload" + signatures: + - sig: "sig" + keyid: "keyid" + - sig: "sig" + keyid: "keyid" + createTime: "2000-01-23T04:56:07.000+00:00" + build: + provenance: + creator: "creator" + triggerId: "triggerId" + buildOptions: + key: "buildOptions" + sourceProvenance: + additionalContexts: + - git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + - git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + artifactStorageSourceUri: "artifactStorageSourceUri" + context: + git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + fileHashes: + key: + fileHash: + - type: {} + value: "value" + - type: {} + value: "value" + createTime: "2000-01-23T04:56:07.000+00:00" + logsUri: "logsUri" + builderVersion: "builderVersion" + builtArtifacts: + - names: + - "names" + - "names" + checksum: "checksum" + id: "id" + - names: + - "names" + - "names" + checksum: "checksum" + id: "id" + startTime: "2000-01-23T04:56:07.000+00:00" + id: "id" + endTime: "2000-01-23T04:56:07.000+00:00" + projectId: "projectId" + commands: + - args: + - "args" + - "args" + name: "name" + id: "id" + env: + - "env" + - "env" + dir: "dir" + waitFor: + - "waitFor" + - "waitFor" + - args: + - "args" + - "args" + name: "name" + id: "id" + env: + - "env" + - "env" + dir: "dir" + waitFor: + - "waitFor" + - "waitFor" + provenanceBytes: "provenanceBytes" + spdxPackage: + sourceInfo: "sourceInfo" + filename: "filename" + licenseConcluded: + expression: "expression" + comments: "comments" + comment: "comment" + id: "id" + title: "title" + packageType: "packageType" + version: "version" + homePage: "homePage" + summaryDescription: "summaryDescription" + installation: + installation: + name: "name" + location: + - path: "path" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + - path: "path" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + name: "name" + sbom: + creatorComment: "creatorComment" + documentComment: "documentComment" + licenseListVersion: "licenseListVersion" + createTime: "2000-01-23T04:56:07.000+00:00" + creators: + - "creators" + - "creators" + namespace: "namespace" + id: "id" + externalDocumentRefs: + - "externalDocumentRefs" + - "externalDocumentRefs" + title: "title" + derivedImage: + derivedImage: + distance: 6 + fingerprint: + v1Name: "v1Name" + v2Blob: + - "v2Blob" + - "v2Blob" + v2Name: "v2Name" + baseResourceUrl: "baseResourceUrl" + layerInfo: + - arguments: "arguments" + directive: {} + - arguments: "arguments" + directive: {} + deployment: + deployment: + address: "address" + undeployTime: "2000-01-23T04:56:07.000+00:00" + userEmail: "userEmail" + deployTime: "2000-01-23T04:56:07.000+00:00" + resourceUri: + - "resourceUri" + - "resourceUri" + config: "config" + platform: {} + v1beta1Envelope: + type: "object" + properties: + payload: + type: "string" + format: "byte" + pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" + payloadType: + type: "string" + signatures: + type: "array" + items: + $ref: "#/definitions/v1beta1EnvelopeSignature" + description: "MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto.\n\ + An authenticated message of arbitrary type." + example: + payloadType: "payloadType" + payload: "payload" + signatures: + - sig: "sig" + keyid: "keyid" + - sig: "sig" + keyid: "keyid" + v1beta1EnvelopeSignature: + type: "object" + properties: + sig: + type: "string" + format: "byte" + pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" + keyid: + type: "string" + example: + sig: "sig" + keyid: "keyid" + v1beta1ListNoteOccurrencesResponse: + type: "object" + properties: + occurrences: + type: "array" + description: "The occurrences attached to the specified note." + items: + $ref: "#/definitions/v1beta1Occurrence" + nextPageToken: + type: "string" + description: "Token to provide to skip to a particular spot in the list." + description: "Response for listing occurrences for a note." + example: + occurrences: + - discovered: + discovered: + analysisStatusError: + code: 1 + details: + - '@type': "@type" + - '@type': "@type" + message: "message" + continuousAnalysis: {} + lastAnalysisTime: "2000-01-23T04:56:07.000+00:00" + analysisStatus: {} + attestation: + attestation: + genericSignedAttestation: + serializedPayload: "serializedPayload" + contentType: {} + signatures: + - signature: "signature" + publicKeyId: "publicKeyId" + - signature: "signature" + publicKeyId: "publicKeyId" + pgpSignedAttestation: + signature: "signature" + pgpKeyId: "pgpKeyId" + contentType: {} + resource: + name: "name" + uri: "uri" + contentHash: + type: {} + value: "value" + noteName: "noteName" + kind: {} + updateTime: "2000-01-23T04:56:07.000+00:00" + intoto: + signed: + environment: + customValues: + key: "customValues" + materials: + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + byproducts: + customValues: + key: "customValues" + command: + - "command" + - "command" + products: + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + signatures: + - sig: "sig" + keyid: "keyid" + - sig: "sig" + keyid: "keyid" + vulnerability: + severity: {} + longDescription: "longDescription" + cvssScore: 0.8008282 + relatedUrls: + - label: "label" + url: "url" + - label: "label" + url: "url" + packageIssue: + - affectedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + - affectedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + shortDescription: "shortDescription" + type: "type" + spdxRelationship: + comment: "comment" + source: "source" + type: {} + target: "target" + spdxFile: + copyright: "copyright" + licenseConcluded: + expression: "expression" + comments: "comments" + filesLicenseInfo: + - "filesLicenseInfo" + - "filesLicenseInfo" + comment: "comment" + id: "id" + contributors: + - "contributors" + - "contributors" + attributions: + - "attributions" + - "attributions" + notice: "notice" + remediation: "remediation" + envelope: + payloadType: "payloadType" + payload: "payload" + signatures: + - sig: "sig" + keyid: "keyid" + - sig: "sig" + keyid: "keyid" + createTime: "2000-01-23T04:56:07.000+00:00" + build: + provenance: + creator: "creator" + triggerId: "triggerId" + buildOptions: + key: "buildOptions" + sourceProvenance: + additionalContexts: + - git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + - git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + artifactStorageSourceUri: "artifactStorageSourceUri" + context: + git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + fileHashes: + key: + fileHash: + - type: {} + value: "value" + - type: {} + value: "value" + createTime: "2000-01-23T04:56:07.000+00:00" + logsUri: "logsUri" + builderVersion: "builderVersion" + builtArtifacts: + - names: + - "names" + - "names" + checksum: "checksum" + id: "id" + - names: + - "names" + - "names" + checksum: "checksum" + id: "id" + startTime: "2000-01-23T04:56:07.000+00:00" + id: "id" + endTime: "2000-01-23T04:56:07.000+00:00" + projectId: "projectId" + commands: + - args: + - "args" + - "args" + name: "name" + id: "id" + env: + - "env" + - "env" + dir: "dir" + waitFor: + - "waitFor" + - "waitFor" + - args: + - "args" + - "args" + name: "name" + id: "id" + env: + - "env" + - "env" + dir: "dir" + waitFor: + - "waitFor" + - "waitFor" + provenanceBytes: "provenanceBytes" + spdxPackage: + sourceInfo: "sourceInfo" + filename: "filename" + licenseConcluded: + expression: "expression" + comments: "comments" + comment: "comment" + id: "id" + title: "title" + packageType: "packageType" + version: "version" + homePage: "homePage" + summaryDescription: "summaryDescription" + installation: + installation: + name: "name" + location: + - path: "path" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + - path: "path" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + name: "name" + sbom: + creatorComment: "creatorComment" + documentComment: "documentComment" + licenseListVersion: "licenseListVersion" + createTime: "2000-01-23T04:56:07.000+00:00" + creators: + - "creators" + - "creators" + namespace: "namespace" + id: "id" + externalDocumentRefs: + - "externalDocumentRefs" + - "externalDocumentRefs" + title: "title" + derivedImage: + derivedImage: + distance: 6 + fingerprint: + v1Name: "v1Name" + v2Blob: + - "v2Blob" + - "v2Blob" + v2Name: "v2Name" + baseResourceUrl: "baseResourceUrl" + layerInfo: + - arguments: "arguments" + directive: {} + - arguments: "arguments" + directive: {} + deployment: + deployment: + address: "address" + undeployTime: "2000-01-23T04:56:07.000+00:00" + userEmail: "userEmail" + deployTime: "2000-01-23T04:56:07.000+00:00" + resourceUri: + - "resourceUri" + - "resourceUri" + config: "config" + platform: {} + - discovered: + discovered: + analysisStatusError: + code: 1 + details: + - '@type': "@type" + - '@type': "@type" + message: "message" + continuousAnalysis: {} + lastAnalysisTime: "2000-01-23T04:56:07.000+00:00" + analysisStatus: {} + attestation: + attestation: + genericSignedAttestation: + serializedPayload: "serializedPayload" + contentType: {} + signatures: + - signature: "signature" + publicKeyId: "publicKeyId" + - signature: "signature" + publicKeyId: "publicKeyId" + pgpSignedAttestation: + signature: "signature" + pgpKeyId: "pgpKeyId" + contentType: {} + resource: + name: "name" + uri: "uri" + contentHash: + type: {} + value: "value" + noteName: "noteName" + kind: {} + updateTime: "2000-01-23T04:56:07.000+00:00" + intoto: + signed: + environment: + customValues: + key: "customValues" + materials: + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + byproducts: + customValues: + key: "customValues" + command: + - "command" + - "command" + products: + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + signatures: + - sig: "sig" + keyid: "keyid" + - sig: "sig" + keyid: "keyid" + vulnerability: + severity: {} + longDescription: "longDescription" + cvssScore: 0.8008282 + relatedUrls: + - label: "label" + url: "url" + - label: "label" + url: "url" + packageIssue: + - affectedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + - affectedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + shortDescription: "shortDescription" + type: "type" + spdxRelationship: + comment: "comment" + source: "source" + type: {} + target: "target" + spdxFile: + copyright: "copyright" + licenseConcluded: + expression: "expression" + comments: "comments" + filesLicenseInfo: + - "filesLicenseInfo" + - "filesLicenseInfo" + comment: "comment" + id: "id" + contributors: + - "contributors" + - "contributors" + attributions: + - "attributions" + - "attributions" + notice: "notice" + remediation: "remediation" + envelope: + payloadType: "payloadType" + payload: "payload" + signatures: + - sig: "sig" + keyid: "keyid" + - sig: "sig" + keyid: "keyid" + createTime: "2000-01-23T04:56:07.000+00:00" + build: + provenance: + creator: "creator" + triggerId: "triggerId" + buildOptions: + key: "buildOptions" + sourceProvenance: + additionalContexts: + - git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + - git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + artifactStorageSourceUri: "artifactStorageSourceUri" + context: + git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + fileHashes: + key: + fileHash: + - type: {} + value: "value" + - type: {} + value: "value" + createTime: "2000-01-23T04:56:07.000+00:00" + logsUri: "logsUri" + builderVersion: "builderVersion" + builtArtifacts: + - names: + - "names" + - "names" + checksum: "checksum" + id: "id" + - names: + - "names" + - "names" + checksum: "checksum" + id: "id" + startTime: "2000-01-23T04:56:07.000+00:00" + id: "id" + endTime: "2000-01-23T04:56:07.000+00:00" + projectId: "projectId" + commands: + - args: + - "args" + - "args" + name: "name" + id: "id" + env: + - "env" + - "env" + dir: "dir" + waitFor: + - "waitFor" + - "waitFor" + - args: + - "args" + - "args" + name: "name" + id: "id" + env: + - "env" + - "env" + dir: "dir" + waitFor: + - "waitFor" + - "waitFor" + provenanceBytes: "provenanceBytes" + spdxPackage: + sourceInfo: "sourceInfo" + filename: "filename" + licenseConcluded: + expression: "expression" + comments: "comments" + comment: "comment" + id: "id" + title: "title" + packageType: "packageType" + version: "version" + homePage: "homePage" + summaryDescription: "summaryDescription" + installation: + installation: + name: "name" + location: + - path: "path" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + - path: "path" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + name: "name" + sbom: + creatorComment: "creatorComment" + documentComment: "documentComment" + licenseListVersion: "licenseListVersion" + createTime: "2000-01-23T04:56:07.000+00:00" + creators: + - "creators" + - "creators" + namespace: "namespace" + id: "id" + externalDocumentRefs: + - "externalDocumentRefs" + - "externalDocumentRefs" + title: "title" + derivedImage: + derivedImage: + distance: 6 + fingerprint: + v1Name: "v1Name" + v2Blob: + - "v2Blob" + - "v2Blob" + v2Name: "v2Name" + baseResourceUrl: "baseResourceUrl" + layerInfo: + - arguments: "arguments" + directive: {} + - arguments: "arguments" + directive: {} + deployment: + deployment: + address: "address" + undeployTime: "2000-01-23T04:56:07.000+00:00" + userEmail: "userEmail" + deployTime: "2000-01-23T04:56:07.000+00:00" + resourceUri: + - "resourceUri" + - "resourceUri" + config: "config" + platform: {} + nextPageToken: "nextPageToken" + v1beta1ListNotesResponse: + type: "object" + properties: + notes: + type: "array" + description: "The notes requested." + items: + $ref: "#/definitions/v1beta1Note" + nextPageToken: + type: "string" + description: "The next pagination token in the list response. It should be\ + \ used as\n`page_token` for the following request. An empty value means\ + \ no more\nresults." + description: "Response for listing notes." + example: + notes: + - longDescription: "longDescription" + package: + name: "name" + distribution: + - latestVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + description: "description" + cpeUri: "cpeUri" + maintainer: "maintainer" + url: "url" + architecture: {} + - latestVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + description: "description" + cpeUri: "cpeUri" + maintainer: "maintainer" + url: "url" + architecture: {} + kind: {} + baseImage: + resourceUrl: "resourceUrl" + fingerprint: + v1Name: "v1Name" + v2Blob: + - "v2Blob" + - "v2Blob" + v2Name: "v2Name" + attestationAuthority: + hint: + humanReadableName: "humanReadableName" + updateTime: "2000-01-23T04:56:07.000+00:00" + intoto: + expectedMaterials: + - artifactRule: + - "artifactRule" + - "artifactRule" + - artifactRule: + - "artifactRule" + - "artifactRule" + signingKeys: + - publicKeyValue: "publicKeyValue" + keyId: "keyId" + keyType: "keyType" + keyScheme: "keyScheme" + - publicKeyValue: "publicKeyValue" + keyId: "keyId" + keyType: "keyType" + keyScheme: "keyScheme" + expectedProducts: + - artifactRule: + - "artifactRule" + - "artifactRule" + - artifactRule: + - "artifactRule" + - "artifactRule" + stepName: "stepName" + threshold: "threshold" + expectedCommand: + - "expectedCommand" + - "expectedCommand" + shortDescription: "shortDescription" + vulnerability: + severity: {} + cwe: + - "cwe" + - "cwe" + cvssScore: 0.8008282 + cvssV3: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} + details: + - package: "package" + minAffectedVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + maxAffectedVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + vendor: "vendor" + description: "description" + sourceUpdateTime: "2000-01-23T04:56:07.000+00:00" + isObsolete: true + source: "source" + cpeUri: "cpeUri" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + - package: "package" + minAffectedVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + maxAffectedVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + vendor: "vendor" + description: "description" + sourceUpdateTime: "2000-01-23T04:56:07.000+00:00" + isObsolete: true + source: "source" + cpeUri: "cpeUri" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + sourceUpdateTime: "2000-01-23T04:56:07.000+00:00" + cvssV2: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} + windowsDetails: + - name: "name" + description: "description" + fixingKbs: + - name: "name" + url: "url" + - name: "name" + url: "url" + cpeUri: "cpeUri" + - name: "name" + description: "description" + fixingKbs: + - name: "name" + url: "url" + - name: "name" + url: "url" + cpeUri: "cpeUri" + spdxRelationship: + type: {} + relatedNoteNames: + - "relatedNoteNames" + - "relatedNoteNames" + spdxFile: + checksum: + - "checksum" + - "checksum" + title: "title" + fileType: {} + deployable: + resourceUri: + - "resourceUri" + - "resourceUri" + createTime: "2000-01-23T04:56:07.000+00:00" + build: + signature: + signature: "signature" + keyId: "keyId" + publicKey: "publicKey" + keyType: {} + builderVersion: "builderVersion" + expirationTime: "2000-01-23T04:56:07.000+00:00" + discovery: {} + spdxPackage: + copyright: "copyright" + filesLicenseInfo: + - "filesLicenseInfo" + - "filesLicenseInfo" + analyzed: true + externalRefs: + - comment: "comment" + category: {} + type: "type" + locator: "locator" + - comment: "comment" + category: {} + type: "type" + locator: "locator" + downloadLocation: "downloadLocation" + originator: "originator" + title: "title" + version: "version" + homePage: "homePage" + packageType: "packageType" + verificationCode: "verificationCode" + detailedDescription: "detailedDescription" + supplier: "supplier" + checksum: "checksum" + attribution: "attribution" + licenseDeclared: + expression: "expression" + comments: "comments" + summaryDescription: "summaryDescription" + name: "name" + sbom: + dataLicence: "dataLicence" + spdxVersion: "spdxVersion" + relatedUrl: + - label: "label" + url: "url" + - label: "label" + url: "url" + - longDescription: "longDescription" + package: + name: "name" + distribution: + - latestVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + description: "description" + cpeUri: "cpeUri" + maintainer: "maintainer" + url: "url" + architecture: {} + - latestVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + description: "description" + cpeUri: "cpeUri" + maintainer: "maintainer" + url: "url" + architecture: {} + kind: {} + baseImage: + resourceUrl: "resourceUrl" + fingerprint: + v1Name: "v1Name" + v2Blob: + - "v2Blob" + - "v2Blob" + v2Name: "v2Name" + attestationAuthority: + hint: + humanReadableName: "humanReadableName" + updateTime: "2000-01-23T04:56:07.000+00:00" + intoto: + expectedMaterials: + - artifactRule: + - "artifactRule" + - "artifactRule" + - artifactRule: + - "artifactRule" + - "artifactRule" + signingKeys: + - publicKeyValue: "publicKeyValue" + keyId: "keyId" + keyType: "keyType" + keyScheme: "keyScheme" + - publicKeyValue: "publicKeyValue" + keyId: "keyId" + keyType: "keyType" + keyScheme: "keyScheme" + expectedProducts: + - artifactRule: + - "artifactRule" + - "artifactRule" + - artifactRule: + - "artifactRule" + - "artifactRule" + stepName: "stepName" + threshold: "threshold" + expectedCommand: + - "expectedCommand" + - "expectedCommand" + shortDescription: "shortDescription" + vulnerability: + severity: {} + cwe: + - "cwe" + - "cwe" + cvssScore: 0.8008282 + cvssV3: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} + details: + - package: "package" + minAffectedVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + maxAffectedVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + vendor: "vendor" + description: "description" + sourceUpdateTime: "2000-01-23T04:56:07.000+00:00" + isObsolete: true + source: "source" + cpeUri: "cpeUri" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + - package: "package" + minAffectedVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + maxAffectedVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + vendor: "vendor" + description: "description" + sourceUpdateTime: "2000-01-23T04:56:07.000+00:00" + isObsolete: true + source: "source" + cpeUri: "cpeUri" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + sourceUpdateTime: "2000-01-23T04:56:07.000+00:00" + cvssV2: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} + windowsDetails: + - name: "name" + description: "description" + fixingKbs: + - name: "name" + url: "url" + - name: "name" + url: "url" + cpeUri: "cpeUri" + - name: "name" + description: "description" + fixingKbs: + - name: "name" + url: "url" + - name: "name" + url: "url" + cpeUri: "cpeUri" + spdxRelationship: + type: {} + relatedNoteNames: + - "relatedNoteNames" + - "relatedNoteNames" + spdxFile: + checksum: + - "checksum" + - "checksum" + title: "title" + fileType: {} + deployable: + resourceUri: + - "resourceUri" + - "resourceUri" + createTime: "2000-01-23T04:56:07.000+00:00" + build: + signature: + signature: "signature" + keyId: "keyId" + publicKey: "publicKey" + keyType: {} + builderVersion: "builderVersion" + expirationTime: "2000-01-23T04:56:07.000+00:00" + discovery: {} + spdxPackage: + copyright: "copyright" + filesLicenseInfo: + - "filesLicenseInfo" + - "filesLicenseInfo" + analyzed: true + externalRefs: + - comment: "comment" + category: {} + type: "type" + locator: "locator" + - comment: "comment" + category: {} + type: "type" + locator: "locator" + downloadLocation: "downloadLocation" + originator: "originator" + title: "title" + version: "version" + homePage: "homePage" + packageType: "packageType" + verificationCode: "verificationCode" + detailedDescription: "detailedDescription" + supplier: "supplier" + checksum: "checksum" + attribution: "attribution" + licenseDeclared: + expression: "expression" + comments: "comments" + summaryDescription: "summaryDescription" + name: "name" + sbom: + dataLicence: "dataLicence" + spdxVersion: "spdxVersion" + relatedUrl: + - label: "label" + url: "url" + - label: "label" + url: "url" + nextPageToken: "nextPageToken" + v1beta1ListOccurrencesResponse: + type: "object" + properties: + occurrences: + type: "array" + description: "The occurrences requested." + items: + $ref: "#/definitions/v1beta1Occurrence" + nextPageToken: + type: "string" + description: "The next pagination token in the list response. It should be\ + \ used as\n`page_token` for the following request. An empty value means\ + \ no more\nresults." + description: "Response for listing occurrences." + example: + occurrences: + - discovered: + discovered: + analysisStatusError: + code: 1 + details: + - '@type': "@type" + - '@type': "@type" + message: "message" + continuousAnalysis: {} + lastAnalysisTime: "2000-01-23T04:56:07.000+00:00" + analysisStatus: {} + attestation: + attestation: + genericSignedAttestation: + serializedPayload: "serializedPayload" + contentType: {} + signatures: + - signature: "signature" + publicKeyId: "publicKeyId" + - signature: "signature" + publicKeyId: "publicKeyId" + pgpSignedAttestation: + signature: "signature" + pgpKeyId: "pgpKeyId" + contentType: {} + resource: + name: "name" + uri: "uri" + contentHash: + type: {} + value: "value" + noteName: "noteName" + kind: {} + updateTime: "2000-01-23T04:56:07.000+00:00" + intoto: + signed: + environment: + customValues: + key: "customValues" + materials: + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + byproducts: + customValues: + key: "customValues" + command: + - "command" + - "command" + products: + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + signatures: + - sig: "sig" + keyid: "keyid" + - sig: "sig" + keyid: "keyid" + vulnerability: + severity: {} + longDescription: "longDescription" + cvssScore: 0.8008282 + relatedUrls: + - label: "label" + url: "url" + - label: "label" + url: "url" + packageIssue: + - affectedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + - affectedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + shortDescription: "shortDescription" + type: "type" + spdxRelationship: + comment: "comment" + source: "source" + type: {} + target: "target" + spdxFile: + copyright: "copyright" + licenseConcluded: + expression: "expression" + comments: "comments" + filesLicenseInfo: + - "filesLicenseInfo" + - "filesLicenseInfo" + comment: "comment" + id: "id" + contributors: + - "contributors" + - "contributors" + attributions: + - "attributions" + - "attributions" + notice: "notice" + remediation: "remediation" + envelope: + payloadType: "payloadType" + payload: "payload" + signatures: + - sig: "sig" + keyid: "keyid" + - sig: "sig" + keyid: "keyid" + createTime: "2000-01-23T04:56:07.000+00:00" + build: + provenance: + creator: "creator" + triggerId: "triggerId" + buildOptions: + key: "buildOptions" + sourceProvenance: + additionalContexts: + - git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + - git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + artifactStorageSourceUri: "artifactStorageSourceUri" + context: + git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + fileHashes: + key: + fileHash: + - type: {} + value: "value" + - type: {} + value: "value" + createTime: "2000-01-23T04:56:07.000+00:00" + logsUri: "logsUri" + builderVersion: "builderVersion" + builtArtifacts: + - names: + - "names" + - "names" + checksum: "checksum" + id: "id" + - names: + - "names" + - "names" + checksum: "checksum" + id: "id" + startTime: "2000-01-23T04:56:07.000+00:00" + id: "id" + endTime: "2000-01-23T04:56:07.000+00:00" + projectId: "projectId" + commands: + - args: + - "args" + - "args" + name: "name" + id: "id" + env: + - "env" + - "env" + dir: "dir" + waitFor: + - "waitFor" + - "waitFor" + - args: + - "args" + - "args" + name: "name" + id: "id" + env: + - "env" + - "env" + dir: "dir" + waitFor: + - "waitFor" + - "waitFor" + provenanceBytes: "provenanceBytes" + spdxPackage: + sourceInfo: "sourceInfo" + filename: "filename" + licenseConcluded: + expression: "expression" + comments: "comments" + comment: "comment" + id: "id" + title: "title" + packageType: "packageType" + version: "version" + homePage: "homePage" + summaryDescription: "summaryDescription" + installation: + installation: + name: "name" + location: + - path: "path" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + - path: "path" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + name: "name" + sbom: + creatorComment: "creatorComment" + documentComment: "documentComment" + licenseListVersion: "licenseListVersion" + createTime: "2000-01-23T04:56:07.000+00:00" + creators: + - "creators" + - "creators" + namespace: "namespace" + id: "id" + externalDocumentRefs: + - "externalDocumentRefs" + - "externalDocumentRefs" + title: "title" + derivedImage: + derivedImage: + distance: 6 + fingerprint: + v1Name: "v1Name" + v2Blob: + - "v2Blob" + - "v2Blob" + v2Name: "v2Name" + baseResourceUrl: "baseResourceUrl" + layerInfo: + - arguments: "arguments" + directive: {} + - arguments: "arguments" + directive: {} + deployment: + deployment: + address: "address" + undeployTime: "2000-01-23T04:56:07.000+00:00" + userEmail: "userEmail" + deployTime: "2000-01-23T04:56:07.000+00:00" + resourceUri: + - "resourceUri" + - "resourceUri" + config: "config" + platform: {} + - discovered: + discovered: + analysisStatusError: + code: 1 + details: + - '@type': "@type" + - '@type': "@type" + message: "message" + continuousAnalysis: {} + lastAnalysisTime: "2000-01-23T04:56:07.000+00:00" + analysisStatus: {} + attestation: + attestation: + genericSignedAttestation: + serializedPayload: "serializedPayload" + contentType: {} + signatures: + - signature: "signature" + publicKeyId: "publicKeyId" + - signature: "signature" + publicKeyId: "publicKeyId" + pgpSignedAttestation: + signature: "signature" + pgpKeyId: "pgpKeyId" + contentType: {} + resource: + name: "name" + uri: "uri" + contentHash: + type: {} + value: "value" + noteName: "noteName" + kind: {} + updateTime: "2000-01-23T04:56:07.000+00:00" + intoto: + signed: + environment: + customValues: + key: "customValues" + materials: + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + byproducts: + customValues: + key: "customValues" + command: + - "command" + - "command" + products: + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + signatures: + - sig: "sig" + keyid: "keyid" + - sig: "sig" + keyid: "keyid" + vulnerability: + severity: {} + longDescription: "longDescription" + cvssScore: 0.8008282 + relatedUrls: + - label: "label" + url: "url" + - label: "label" + url: "url" + packageIssue: + - affectedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + - affectedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + shortDescription: "shortDescription" + type: "type" + spdxRelationship: + comment: "comment" + source: "source" + type: {} + target: "target" + spdxFile: + copyright: "copyright" + licenseConcluded: + expression: "expression" + comments: "comments" + filesLicenseInfo: + - "filesLicenseInfo" + - "filesLicenseInfo" + comment: "comment" + id: "id" + contributors: + - "contributors" + - "contributors" + attributions: + - "attributions" + - "attributions" + notice: "notice" + remediation: "remediation" + envelope: + payloadType: "payloadType" + payload: "payload" + signatures: + - sig: "sig" + keyid: "keyid" + - sig: "sig" + keyid: "keyid" + createTime: "2000-01-23T04:56:07.000+00:00" + build: + provenance: + creator: "creator" + triggerId: "triggerId" + buildOptions: + key: "buildOptions" + sourceProvenance: + additionalContexts: + - git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + - git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + artifactStorageSourceUri: "artifactStorageSourceUri" + context: + git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + fileHashes: + key: + fileHash: + - type: {} + value: "value" + - type: {} + value: "value" + createTime: "2000-01-23T04:56:07.000+00:00" + logsUri: "logsUri" + builderVersion: "builderVersion" + builtArtifacts: + - names: + - "names" + - "names" + checksum: "checksum" + id: "id" + - names: + - "names" + - "names" + checksum: "checksum" + id: "id" + startTime: "2000-01-23T04:56:07.000+00:00" + id: "id" + endTime: "2000-01-23T04:56:07.000+00:00" + projectId: "projectId" + commands: + - args: + - "args" + - "args" + name: "name" + id: "id" + env: + - "env" + - "env" + dir: "dir" + waitFor: + - "waitFor" + - "waitFor" + - args: + - "args" + - "args" + name: "name" + id: "id" + env: + - "env" + - "env" + dir: "dir" + waitFor: + - "waitFor" + - "waitFor" + provenanceBytes: "provenanceBytes" + spdxPackage: + sourceInfo: "sourceInfo" + filename: "filename" + licenseConcluded: + expression: "expression" + comments: "comments" + comment: "comment" + id: "id" + title: "title" + packageType: "packageType" + version: "version" + homePage: "homePage" + summaryDescription: "summaryDescription" + installation: + installation: + name: "name" + location: + - path: "path" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + - path: "path" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + name: "name" + sbom: + creatorComment: "creatorComment" + documentComment: "documentComment" + licenseListVersion: "licenseListVersion" + createTime: "2000-01-23T04:56:07.000+00:00" + creators: + - "creators" + - "creators" + namespace: "namespace" + id: "id" + externalDocumentRefs: + - "externalDocumentRefs" + - "externalDocumentRefs" + title: "title" + derivedImage: + derivedImage: + distance: 6 + fingerprint: + v1Name: "v1Name" + v2Blob: + - "v2Blob" + - "v2Blob" + v2Name: "v2Name" + baseResourceUrl: "baseResourceUrl" + layerInfo: + - arguments: "arguments" + directive: {} + - arguments: "arguments" + directive: {} + deployment: + deployment: + address: "address" + undeployTime: "2000-01-23T04:56:07.000+00:00" + userEmail: "userEmail" + deployTime: "2000-01-23T04:56:07.000+00:00" + resourceUri: + - "resourceUri" + - "resourceUri" + config: "config" + platform: {} + nextPageToken: "nextPageToken" + v1beta1Note: + type: "object" + properties: + name: + type: "string" + description: "Output only. The name of the note in the form of\n`projects/[PROVIDER_ID]/notes/[NOTE_ID]`." + readOnly: true + shortDescription: + type: "string" + description: "A one sentence description of this note." + longDescription: + type: "string" + description: "A detailed description of this note." + kind: + description: "Output only. The type of analysis. This field can be used as\ + \ a filter in\nlist requests." + readOnly: true + $ref: "#/definitions/v1beta1NoteKind" + relatedUrl: + type: "array" + description: "URLs associated with this note." + items: + $ref: "#/definitions/v1beta1RelatedUrl" + expirationTime: + type: "string" + format: "date-time" + description: "Time of expiration for this note. Empty if note does not expire." + createTime: + type: "string" + format: "date-time" + description: "Output only. The time this note was created. This field can\ + \ be used as a\nfilter in list requests." + readOnly: true + updateTime: + type: "string" + format: "date-time" + description: "Output only. The time this note was last updated. This field\ + \ can be used as\na filter in list requests." + readOnly: true + relatedNoteNames: + type: "array" + description: "Other notes related to this note." + items: + type: "string" + vulnerability: + description: "A note describing a package vulnerability." + $ref: "#/definitions/vulnerabilityVulnerability" + build: + description: "A note describing build provenance for a verifiable build." + $ref: "#/definitions/buildBuild" + baseImage: + description: "A note describing a base image." + $ref: "#/definitions/imageBasis" + package: + description: "A note describing a package hosted by various package managers." + $ref: "#/definitions/packagePackage" + deployable: + description: "A note describing something that can be deployed." + $ref: "#/definitions/deploymentDeployable" + discovery: + description: "A note describing the initial analysis of a resource." + $ref: "#/definitions/discoveryDiscovery" + attestationAuthority: + description: "A note describing an attestation role." + $ref: "#/definitions/attestationAuthority" + intoto: + description: "A note describing an in-toto link." + $ref: "#/definitions/intotoInToto" + sbom: + description: "A note describing a software bill of materials." + $ref: "#/definitions/spdxDocumentNote" + spdxPackage: + description: "A note describing an SPDX Package." + $ref: "#/definitions/spdxPackageInfoNote" + spdxFile: + description: "A note describing an SPDX File." + $ref: "#/definitions/spdxFileNote" + spdxRelationship: + description: "A note describing an SPDX File." + $ref: "#/definitions/spdxRelationshipNote" + description: "A type of analysis that can be done for a resource." + example: + longDescription: "longDescription" + package: + name: "name" + distribution: + - latestVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + description: "description" + cpeUri: "cpeUri" + maintainer: "maintainer" + url: "url" + architecture: {} + - latestVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + description: "description" + cpeUri: "cpeUri" + maintainer: "maintainer" + url: "url" + architecture: {} + kind: {} + baseImage: + resourceUrl: "resourceUrl" + fingerprint: + v1Name: "v1Name" + v2Blob: + - "v2Blob" + - "v2Blob" + v2Name: "v2Name" + attestationAuthority: + hint: + humanReadableName: "humanReadableName" + updateTime: "2000-01-23T04:56:07.000+00:00" + intoto: + expectedMaterials: + - artifactRule: + - "artifactRule" + - "artifactRule" + - artifactRule: + - "artifactRule" + - "artifactRule" + signingKeys: + - publicKeyValue: "publicKeyValue" + keyId: "keyId" + keyType: "keyType" + keyScheme: "keyScheme" + - publicKeyValue: "publicKeyValue" + keyId: "keyId" + keyType: "keyType" + keyScheme: "keyScheme" + expectedProducts: + - artifactRule: + - "artifactRule" + - "artifactRule" + - artifactRule: + - "artifactRule" + - "artifactRule" + stepName: "stepName" + threshold: "threshold" + expectedCommand: + - "expectedCommand" + - "expectedCommand" + shortDescription: "shortDescription" + vulnerability: + severity: {} + cwe: + - "cwe" + - "cwe" + cvssScore: 0.8008282 + cvssV3: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} + details: + - package: "package" + minAffectedVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + maxAffectedVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + vendor: "vendor" + description: "description" + sourceUpdateTime: "2000-01-23T04:56:07.000+00:00" + isObsolete: true + source: "source" + cpeUri: "cpeUri" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + - package: "package" + minAffectedVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + maxAffectedVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + vendor: "vendor" + description: "description" + sourceUpdateTime: "2000-01-23T04:56:07.000+00:00" + isObsolete: true + source: "source" + cpeUri: "cpeUri" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + sourceUpdateTime: "2000-01-23T04:56:07.000+00:00" + cvssV2: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} + windowsDetails: + - name: "name" + description: "description" + fixingKbs: + - name: "name" + url: "url" + - name: "name" + url: "url" + cpeUri: "cpeUri" + - name: "name" + description: "description" + fixingKbs: + - name: "name" + url: "url" + - name: "name" + url: "url" + cpeUri: "cpeUri" + spdxRelationship: + type: {} + relatedNoteNames: + - "relatedNoteNames" + - "relatedNoteNames" + spdxFile: + checksum: + - "checksum" + - "checksum" + title: "title" + fileType: {} + deployable: + resourceUri: + - "resourceUri" + - "resourceUri" + createTime: "2000-01-23T04:56:07.000+00:00" + build: + signature: + signature: "signature" + keyId: "keyId" + publicKey: "publicKey" + keyType: {} + builderVersion: "builderVersion" + expirationTime: "2000-01-23T04:56:07.000+00:00" + discovery: {} + spdxPackage: + copyright: "copyright" + filesLicenseInfo: + - "filesLicenseInfo" + - "filesLicenseInfo" + analyzed: true + externalRefs: + - comment: "comment" + category: {} + type: "type" + locator: "locator" + - comment: "comment" + category: {} + type: "type" + locator: "locator" + downloadLocation: "downloadLocation" + originator: "originator" + title: "title" + version: "version" + homePage: "homePage" + packageType: "packageType" + verificationCode: "verificationCode" + detailedDescription: "detailedDescription" + supplier: "supplier" + checksum: "checksum" + attribution: "attribution" + licenseDeclared: + expression: "expression" + comments: "comments" + summaryDescription: "summaryDescription" + name: "name" + sbom: + dataLicence: "dataLicence" + spdxVersion: "spdxVersion" + relatedUrl: + - label: "label" + url: "url" + - label: "label" + url: "url" + v1beta1NoteKind: + type: "string" + description: "Kind represents the kinds of notes supported.\n\n - NOTE_KIND_UNSPECIFIED:\ + \ Default value. This value is unused.\n - VULNERABILITY: The note and occurrence\ + \ represent a package vulnerability.\n - BUILD: The note and occurrence assert\ + \ build provenance.\n - IMAGE: This represents an image basis relationship.\n\ + \ - PACKAGE: This represents a package installed via a package manager.\n -\ + \ DEPLOYMENT: The note and occurrence track deployment events.\n - DISCOVERY:\ + \ The note and occurrence track the initial discovery status of a resource.\n\ + \ - ATTESTATION: This represents a logical \"role\" that can attest to artifacts.\n\ + \ - INTOTO: This represents an in-toto link.\n - SBOM: This represents a software\ + \ bill of materials.\n - SPDX_PACKAGE: This represents an SPDX Package.\n -\ + \ SPDX_FILE: This represents an SPDX File.\n - SPDX_RELATIONSHIP: This represents\ + \ an SPDX Relationship." + enum: + - "NOTE_KIND_UNSPECIFIED" + - "VULNERABILITY" + - "BUILD" + - "IMAGE" + - "PACKAGE" + - "DEPLOYMENT" + - "DISCOVERY" + - "ATTESTATION" + - "INTOTO" + - "SBOM" + - "SPDX_PACKAGE" + - "SPDX_FILE" + - "SPDX_RELATIONSHIP" + default: "NOTE_KIND_UNSPECIFIED" + v1beta1Occurrence: + type: "object" + properties: + name: + type: "string" + description: "Output only. The name of the occurrence in the form of\n`projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`." + readOnly: true + resource: + description: "Required. Immutable. The resource for which the occurrence applies." + $ref: "#/definitions/v1beta1Resource" + noteName: + type: "string" + description: "Required. Immutable. The analysis note associated with this\ + \ occurrence, in\nthe form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.\ + \ This field can be\nused as a filter in list requests." + kind: + description: "Output only. This explicitly denotes which of the occurrence\ + \ details are\nspecified. This field can be used as a filter in list requests." + readOnly: true + $ref: "#/definitions/v1beta1NoteKind" + remediation: + type: "string" + description: "A description of actions that can be taken to remedy the note." + createTime: + type: "string" + format: "date-time" + description: "Output only. The time this occurrence was created." + readOnly: true + updateTime: + type: "string" + format: "date-time" + description: "Output only. The time this occurrence was last updated." + readOnly: true + vulnerability: + description: "Describes a security vulnerability." + $ref: "#/definitions/v1beta1vulnerabilityDetails" + build: + description: "Describes a verifiable build." + $ref: "#/definitions/v1beta1buildDetails" + derivedImage: + description: "Describes how this resource derives from the basis in the associated\n\ + note." + $ref: "#/definitions/v1beta1imageDetails" + installation: + description: "Describes the installation of a package on the linked resource." + $ref: "#/definitions/v1beta1packageDetails" + deployment: + description: "Describes the deployment of an artifact on a runtime." + $ref: "#/definitions/v1beta1deploymentDetails" + discovered: + description: "Describes when a resource was discovered." + $ref: "#/definitions/v1beta1discoveryDetails" + attestation: + description: "Describes an attestation of an artifact." + $ref: "#/definitions/v1beta1attestationDetails" + intoto: + description: "Describes a specific in-toto link." + $ref: "#/definitions/v1beta1intotoDetails" + sbom: + description: "Describes a specific software bill of materials document." + $ref: "#/definitions/spdxDocumentOccurrence" + spdxPackage: + description: "Describes a specific SPDX Package." + $ref: "#/definitions/spdxPackageInfoOccurrence" + spdxFile: + description: "Describes a specific SPDX File." + $ref: "#/definitions/spdxFileOccurrence" + spdxRelationship: + description: "Describes a specific SPDX Relationship." + $ref: "#/definitions/spdxRelationshipOccurrence" + envelope: + title: "https://github.com/secure-systems-lab/dsse" + $ref: "#/definitions/v1beta1Envelope" + description: "An instance of an analysis type that has been found on a resource." + example: + discovered: + discovered: + analysisStatusError: + code: 1 + details: + - '@type': "@type" + - '@type': "@type" + message: "message" + continuousAnalysis: {} + lastAnalysisTime: "2000-01-23T04:56:07.000+00:00" + analysisStatus: {} + attestation: + attestation: + genericSignedAttestation: + serializedPayload: "serializedPayload" + contentType: {} + signatures: + - signature: "signature" + publicKeyId: "publicKeyId" + - signature: "signature" + publicKeyId: "publicKeyId" + pgpSignedAttestation: + signature: "signature" + pgpKeyId: "pgpKeyId" + contentType: {} + resource: + name: "name" + uri: "uri" + contentHash: + type: {} + value: "value" + noteName: "noteName" + kind: {} + updateTime: "2000-01-23T04:56:07.000+00:00" + intoto: + signed: + environment: + customValues: + key: "customValues" + materials: + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + byproducts: + customValues: + key: "customValues" + command: + - "command" + - "command" + products: + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + signatures: + - sig: "sig" + keyid: "keyid" + - sig: "sig" + keyid: "keyid" + vulnerability: + severity: {} + longDescription: "longDescription" + cvssScore: 0.8008282 + relatedUrls: + - label: "label" + url: "url" + - label: "label" + url: "url" + packageIssue: + - affectedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + - affectedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + shortDescription: "shortDescription" + type: "type" + spdxRelationship: + comment: "comment" + source: "source" + type: {} + target: "target" + spdxFile: + copyright: "copyright" + licenseConcluded: + expression: "expression" + comments: "comments" + filesLicenseInfo: + - "filesLicenseInfo" + - "filesLicenseInfo" + comment: "comment" + id: "id" + contributors: + - "contributors" + - "contributors" + attributions: + - "attributions" + - "attributions" + notice: "notice" + remediation: "remediation" + envelope: + payloadType: "payloadType" + payload: "payload" + signatures: + - sig: "sig" + keyid: "keyid" + - sig: "sig" + keyid: "keyid" + createTime: "2000-01-23T04:56:07.000+00:00" + build: + provenance: + creator: "creator" + triggerId: "triggerId" + buildOptions: + key: "buildOptions" + sourceProvenance: + additionalContexts: + - git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + - git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + artifactStorageSourceUri: "artifactStorageSourceUri" + context: + git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + fileHashes: + key: + fileHash: + - type: {} + value: "value" + - type: {} + value: "value" + createTime: "2000-01-23T04:56:07.000+00:00" + logsUri: "logsUri" + builderVersion: "builderVersion" + builtArtifacts: + - names: + - "names" + - "names" + checksum: "checksum" + id: "id" + - names: + - "names" + - "names" + checksum: "checksum" + id: "id" + startTime: "2000-01-23T04:56:07.000+00:00" + id: "id" + endTime: "2000-01-23T04:56:07.000+00:00" + projectId: "projectId" + commands: + - args: + - "args" + - "args" + name: "name" + id: "id" + env: + - "env" + - "env" + dir: "dir" + waitFor: + - "waitFor" + - "waitFor" + - args: + - "args" + - "args" + name: "name" + id: "id" + env: + - "env" + - "env" + dir: "dir" + waitFor: + - "waitFor" + - "waitFor" + provenanceBytes: "provenanceBytes" + spdxPackage: + sourceInfo: "sourceInfo" + filename: "filename" + licenseConcluded: + expression: "expression" + comments: "comments" + comment: "comment" + id: "id" + title: "title" + packageType: "packageType" + version: "version" + homePage: "homePage" + summaryDescription: "summaryDescription" + installation: + installation: + name: "name" + location: + - path: "path" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + - path: "path" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + name: "name" + sbom: + creatorComment: "creatorComment" + documentComment: "documentComment" + licenseListVersion: "licenseListVersion" + createTime: "2000-01-23T04:56:07.000+00:00" + creators: + - "creators" + - "creators" + namespace: "namespace" + id: "id" + externalDocumentRefs: + - "externalDocumentRefs" + - "externalDocumentRefs" + title: "title" + derivedImage: + derivedImage: + distance: 6 + fingerprint: + v1Name: "v1Name" + v2Blob: + - "v2Blob" + - "v2Blob" + v2Name: "v2Name" + baseResourceUrl: "baseResourceUrl" + layerInfo: + - arguments: "arguments" + directive: {} + - arguments: "arguments" + directive: {} + deployment: + deployment: + address: "address" + undeployTime: "2000-01-23T04:56:07.000+00:00" + userEmail: "userEmail" + deployTime: "2000-01-23T04:56:07.000+00:00" + resourceUri: + - "resourceUri" + - "resourceUri" + config: "config" + platform: {} + v1beta1RelatedUrl: + type: "object" + properties: + url: + type: "string" + description: "Specific URL associated with the resource." + label: + type: "string" + description: "Label to describe usage of the URL." + description: "Metadata for any related URL information." + example: + label: "label" + url: "url" + v1beta1Resource: + type: "object" + properties: + name: + type: "string" + description: "Deprecated, do not use. Use uri instead.\n\nThe name of the\ + \ resource. For example, the name of a Docker image -\n\"Debian\"." + uri: + type: "string" + description: "Required. The unique URI of the resource. For example,\n`https://gcr.io/project/image@sha256:foo`\ + \ for a Docker image." + contentHash: + description: "Deprecated, do not use. Use uri instead.\n\nThe hash of the\ + \ resource content. For example, the Docker digest." + $ref: "#/definitions/provenanceHash" + description: "An entity that can have metadata. For example, a Docker image." + example: + name: "name" + uri: "uri" + contentHash: + type: {} + value: "value" + v1beta1VulnerabilityOccurrencesSummary: + type: "object" + properties: + counts: + type: "array" + description: "A listing by resource of the number of fixable and total vulnerabilities." + items: + $ref: "#/definitions/VulnerabilityOccurrencesSummaryFixableTotalByDigest" + description: "A summary of how many vulnerability occurrences there are per resource\ + \ and\nseverity type." + example: + counts: + - severity: {} + fixableCount: "fixableCount" + resource: + name: "name" + uri: "uri" + contentHash: + type: {} + value: "value" + totalCount: "totalCount" + - severity: {} + fixableCount: "fixableCount" + resource: + name: "name" + uri: "uri" + contentHash: + type: {} + value: "value" + totalCount: "totalCount" + v1beta1attestationDetails: + type: "object" + properties: + attestation: + description: "Required. Attestation for the resource." + $ref: "#/definitions/attestationAttestation" + description: "Details of an attestation occurrence." + example: + attestation: + genericSignedAttestation: + serializedPayload: "serializedPayload" + contentType: {} + signatures: + - signature: "signature" + publicKeyId: "publicKeyId" + - signature: "signature" + publicKeyId: "publicKeyId" + pgpSignedAttestation: + signature: "signature" + pgpKeyId: "pgpKeyId" + contentType: {} + v1beta1buildDetails: + type: "object" + properties: + provenance: + description: "Required. The actual provenance for the build." + $ref: "#/definitions/provenanceBuildProvenance" + provenanceBytes: + type: "string" + description: "Serialized JSON representation of the provenance, used in generating\ + \ the\nbuild signature in the corresponding build note. After verifying\ + \ the\nsignature, `provenance_bytes` can be unmarshalled and compared to\ + \ the\nprovenance to confirm that it is unchanged. A base64-encoded string\n\ + representation of the provenance bytes is used for the signature in order\n\ + to interoperate with openssl which expects this format for signature\nverification.\n\ + \nThe serialized form is captured both to avoid ambiguity in how the\nprovenance\ + \ is marshalled to json as well to prevent incompatibilities with\nfuture\ + \ changes." + description: "Details of a build occurrence." + example: + provenance: + creator: "creator" + triggerId: "triggerId" + buildOptions: + key: "buildOptions" + sourceProvenance: + additionalContexts: + - git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + - git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + artifactStorageSourceUri: "artifactStorageSourceUri" + context: + git: + revisionId: "revisionId" + url: "url" + gerrit: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + hostUri: "hostUri" + gerritProject: "gerritProject" + cloudRepo: + revisionId: "revisionId" + aliasContext: + kind: {} + name: "name" + repoId: + uid: "uid" + projectRepoId: + repoName: "repoName" + projectId: "projectId" + labels: + key: "labels" + fileHashes: + key: + fileHash: + - type: {} + value: "value" + - type: {} + value: "value" + createTime: "2000-01-23T04:56:07.000+00:00" + logsUri: "logsUri" + builderVersion: "builderVersion" + builtArtifacts: + - names: + - "names" + - "names" + checksum: "checksum" + id: "id" + - names: + - "names" + - "names" + checksum: "checksum" + id: "id" + startTime: "2000-01-23T04:56:07.000+00:00" + id: "id" + endTime: "2000-01-23T04:56:07.000+00:00" + projectId: "projectId" + commands: + - args: + - "args" + - "args" + name: "name" + id: "id" + env: + - "env" + - "env" + dir: "dir" + waitFor: + - "waitFor" + - "waitFor" + - args: + - "args" + - "args" + name: "name" + id: "id" + env: + - "env" + - "env" + dir: "dir" + waitFor: + - "waitFor" + - "waitFor" + provenanceBytes: "provenanceBytes" + v1beta1deploymentDetails: + type: "object" + properties: + deployment: + description: "Required. Deployment history for the resource." + $ref: "#/definitions/deploymentDeployment" + description: "Details of a deployment occurrence." + example: + deployment: + address: "address" + undeployTime: "2000-01-23T04:56:07.000+00:00" + userEmail: "userEmail" + deployTime: "2000-01-23T04:56:07.000+00:00" + resourceUri: + - "resourceUri" + - "resourceUri" + config: "config" + platform: {} + v1beta1discoveryDetails: + type: "object" + properties: + discovered: + description: "Required. Analysis status for the discovered resource." + $ref: "#/definitions/discoveryDiscovered" + description: "Details of a discovery occurrence." + example: + discovered: + analysisStatusError: + code: 1 + details: + - '@type': "@type" + - '@type': "@type" + message: "message" + continuousAnalysis: {} + lastAnalysisTime: "2000-01-23T04:56:07.000+00:00" + analysisStatus: {} + v1beta1imageDetails: + type: "object" + properties: + derivedImage: + description: "Required. Immutable. The child image derived from the base image." + $ref: "#/definitions/imageDerived" + description: "Details of an image occurrence." + example: + derivedImage: + distance: 6 + fingerprint: + v1Name: "v1Name" + v2Blob: + - "v2Blob" + - "v2Blob" + v2Name: "v2Name" + baseResourceUrl: "baseResourceUrl" + layerInfo: + - arguments: "arguments" + directive: {} + - arguments: "arguments" + directive: {} + v1beta1intotoDetails: + type: "object" + properties: + signatures: + type: "array" + items: + $ref: "#/definitions/v1beta1intotoSignature" + signed: + $ref: "#/definitions/intotoLink" + description: "This corresponds to a signed in-toto link - it is made up of one\ + \ or more\nsignatures and the in-toto link itself. This is used for occurrences\ + \ of a\nGrafeas in-toto note." + example: + signed: + environment: + customValues: + key: "customValues" + materials: + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + byproducts: + customValues: + key: "customValues" + command: + - "command" + - "command" + products: + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + - hashes: + sha256: "sha256" + resourceUri: "resourceUri" + signatures: + - sig: "sig" + keyid: "keyid" + - sig: "sig" + keyid: "keyid" + v1beta1intotoSignature: + type: "object" + properties: + keyid: + type: "string" + sig: + type: "string" + description: "A signature object consists of the KeyID used and the signature\ + \ itself." + example: + sig: "sig" + keyid: "keyid" + v1beta1packageDetails: + type: "object" + properties: + installation: + description: "Required. Where the package was installed." + $ref: "#/definitions/packageInstallation" + description: "Details of a package occurrence." + example: + installation: + name: "name" + location: + - path: "path" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + - path: "path" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + v1beta1packageLocation: + type: "object" + properties: + cpeUri: + type: "string" + description: "Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/)\n\ + denoting the package manager version distributing a package." + version: + description: "The version installed at this location." + $ref: "#/definitions/packageVersion" + path: + type: "string" + description: "The path from which we gathered that this package/version is\ + \ installed." + description: "An occurrence of a particular package installation found within\ + \ a system's\nfilesystem. E.g., glibc was found in `/var/lib/dpkg/status`." + example: + path: "path" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + v1beta1provenanceArtifact: + type: "object" + properties: + checksum: + type: "string" + description: "Hash or checksum value of a binary, or Docker Registry 2.0 digest\ + \ of a\ncontainer." + id: + type: "string" + description: "Artifact ID, if any; for container images, this will be a URL\ + \ by digest\nlike `gcr.io/projectID/imagename@sha256:123456`." + names: + type: "array" + description: "Related artifact names. This may be the path to a binary or\ + \ jar file, or in\nthe case of a container build, the name used to push\ + \ the container image to\nGoogle Container Registry, as presented to `docker\ + \ push`. Note that a\nsingle Artifact ID can have multiple names, for example\ + \ if two tags are\napplied to one image." + items: + type: "string" + description: "Artifact describes a build product." + example: + names: + - "names" + - "names" + checksum: "checksum" + id: "id" + v1beta1vulnerabilityDetails: + type: "object" + properties: + type: + type: "string" + title: "The type of package; whether native or non native(ruby gems, node.js\n\ + packages etc)" + severity: + description: "Output only. The note provider assigned Severity of the vulnerability." + readOnly: true + $ref: "#/definitions/vulnerabilitySeverity" + cvssScore: + type: "number" + format: "float" + description: "Output only. The CVSS score of this vulnerability. CVSS score\ + \ is on a\nscale of 0-10 where 0 indicates low severity and 10 indicates\ + \ high\nseverity." + readOnly: true + packageIssue: + type: "array" + description: "Required. The set of affected locations and their fixes (if\ + \ available)\nwithin the associated resource." + items: + $ref: "#/definitions/vulnerabilityPackageIssue" + shortDescription: + type: "string" + description: "Output only. A one sentence description of this vulnerability." + readOnly: true + longDescription: + type: "string" + description: "Output only. A detailed description of this vulnerability." + readOnly: true + relatedUrls: + type: "array" + description: "Output only. URLs related to this vulnerability." + readOnly: true + items: + $ref: "#/definitions/v1beta1RelatedUrl" + effectiveSeverity: + description: "The distro assigned severity for this vulnerability when it\ + \ is\navailable, and note provider assigned severity when distro has not\ + \ yet\nassigned a severity for this vulnerability.\n\nWhen there are multiple\ + \ PackageIssues for this vulnerability, they can have\ndifferent effective\ + \ severities because some might be provided by the distro\nwhile others\ + \ are provided by the language ecosystem for a language pack.\nFor this\ + \ reason, it is advised to use the effective severity on the\nPackageIssue\ + \ level. In the case where multiple PackageIssues have differing\neffective\ + \ severities, this field should be the highest severity for any of\nthe\ + \ PackageIssues." + $ref: "#/definitions/vulnerabilitySeverity" + description: "Details of a vulnerability Occurrence." + example: + severity: {} + longDescription: "longDescription" + cvssScore: 0.8008282 + relatedUrls: + - label: "label" + url: "url" + - label: "label" + url: "url" + packageIssue: + - affectedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + - affectedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + shortDescription: "shortDescription" + type: "type" + vulnerabilityCVSS: + type: "object" + properties: + baseScore: + type: "number" + format: "float" + description: "The base score is a function of the base metric scores." + exploitabilityScore: + type: "number" + format: "float" + impactScore: + type: "number" + format: "float" + attackVector: + description: "Base Metrics\nRepresents the intrinsic characteristics of a\ + \ vulnerability that are\nconstant over time and across user environments." + $ref: "#/definitions/CVSSAttackVector" + attackComplexity: + $ref: "#/definitions/CVSSAttackComplexity" + authentication: + $ref: "#/definitions/CVSSAuthentication" + privilegesRequired: + $ref: "#/definitions/CVSSPrivilegesRequired" + userInteraction: + $ref: "#/definitions/CVSSUserInteraction" + scope: + $ref: "#/definitions/CVSSScope" + confidentialityImpact: + $ref: "#/definitions/CVSSImpact" + integrityImpact: + $ref: "#/definitions/CVSSImpact" + availabilityImpact: + $ref: "#/definitions/CVSSImpact" + title: "Common Vulnerability Scoring System.\nFor details, see https://www.first.org/cvss/specification-document" + example: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} + vulnerabilityPackageIssue: + type: "object" + properties: + affectedLocation: + description: "Required. The location of the vulnerability." + $ref: "#/definitions/vulnerabilityVulnerabilityLocation" + fixedLocation: + description: "The location of the available fix for vulnerability." + $ref: "#/definitions/vulnerabilityVulnerabilityLocation" + severityName: + type: "string" + description: "Deprecated, use Details.effective_severity instead\nThe severity\ + \ (e.g., distro assigned severity) for this vulnerability." + packageType: + type: "string" + description: "The type of package (e.g. OS, MAVEN, GO)." + effectiveSeverity: + description: "The distro or language system assigned severity for this vulnerability\n\ + when that is available and note provider assigned severity when it is not\n\ + available." + $ref: "#/definitions/vulnerabilitySeverity" + description: "This message wraps a location affected by a vulnerability and its\n\ + associated fix (if one is available)." + example: + affectedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + vulnerabilitySeverity: + type: "string" + description: "Note provider-assigned severity/impact ranking.\n\n - SEVERITY_UNSPECIFIED:\ + \ Unknown.\n - MINIMAL: Minimal severity.\n - LOW: Low severity.\n - MEDIUM:\ + \ Medium severity.\n - HIGH: High severity.\n - CRITICAL: Critical severity." + enum: + - "SEVERITY_UNSPECIFIED" + - "MINIMAL" + - "LOW" + - "MEDIUM" + - "HIGH" + - "CRITICAL" + default: "SEVERITY_UNSPECIFIED" + vulnerabilityVulnerability: + type: "object" + properties: + cvssScore: + type: "number" + format: "float" + description: "The CVSS score for this vulnerability." + severity: + description: "Note provider assigned impact of the vulnerability." + $ref: "#/definitions/vulnerabilitySeverity" + details: + type: "array" + description: "All information about the package to specifically identify this\n\ + vulnerability. One entry per (version range and cpe_uri) the package\nvulnerability\ + \ has manifested in." + items: + $ref: "#/definitions/VulnerabilityDetail" + cvssV3: + description: "The full description of the CVSS for version 3." + $ref: "#/definitions/vulnerabilityCVSS" + windowsDetails: + type: "array" + description: "Windows details get their own format because the information\ + \ format and\nmodel don't match a normal detail. Specifically Windows updates\ + \ are done as\npatches, thus Windows vulnerabilities really are a missing\ + \ package, rather\nthan a package being at an incorrect version." + items: + $ref: "#/definitions/VulnerabilityWindowsDetail" + sourceUpdateTime: + type: "string" + format: "date-time" + description: "The time this information was last changed at the source. This\ + \ is an\nupstream timestamp from the underlying information source - e.g.\ + \ Ubuntu\nsecurity tracker." + cvssV2: + description: "The full description of the CVSS for version 2." + $ref: "#/definitions/vulnerabilityCVSS" + cwe: + type: "array" + title: "A list of CWE for this vulnerability.\nFor details, see: https://cwe.mitre.org/index.html" + items: + type: "string" + description: "Vulnerability provides metadata about a security vulnerability in\ + \ a Note." + example: + severity: {} + cwe: + - "cwe" + - "cwe" + cvssScore: 0.8008282 + cvssV3: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} + details: + - package: "package" + minAffectedVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + maxAffectedVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + vendor: "vendor" + description: "description" + sourceUpdateTime: "2000-01-23T04:56:07.000+00:00" + isObsolete: true + source: "source" + cpeUri: "cpeUri" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + - package: "package" + minAffectedVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + maxAffectedVersion: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + vendor: "vendor" + description: "description" + sourceUpdateTime: "2000-01-23T04:56:07.000+00:00" + isObsolete: true + source: "source" + cpeUri: "cpeUri" + fixedLocation: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + packageType: "packageType" + severityName: "severityName" + sourceUpdateTime: "2000-01-23T04:56:07.000+00:00" + cvssV2: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} + windowsDetails: + - name: "name" + description: "description" + fixingKbs: + - name: "name" + url: "url" + - name: "name" + url: "url" + cpeUri: "cpeUri" + - name: "name" + description: "description" + fixingKbs: + - name: "name" + url: "url" + - name: "name" + url: "url" + cpeUri: "cpeUri" + vulnerabilityVulnerabilityLocation: + type: "object" + properties: + cpeUri: + type: "string" + description: "Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/)\n\ + format. Examples include distro or storage location for vulnerable jar." + package: + type: "string" + description: "Required. The package being described." + version: + description: "Required. The version of the package being described." + $ref: "#/definitions/packageVersion" + description: "The location of the vulnerability." + example: + package: "package" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + body: + type: "object" + required: + - "notes" + properties: + notes: + type: "object" + description: "The notes to create, the key is expected to be the note ID.\ + \ Max allowed length is 1000." + additionalProperties: + $ref: "#/definitions/v1beta1Note" + description: "Request to create notes in batch." + body_1: + type: "object" + required: + - "occurrences" + properties: + occurrences: + type: "array" + description: "The occurrences to create. Max allowed length is 1000." + items: + $ref: "#/definitions/v1beta1Occurrence" + description: "Request to create occurrences in batch." diff --git a/0.2.0/grafeas/api_grafeas_v1_beta1.go b/0.2.0/grafeas/api_grafeas_v1_beta1.go new file mode 100644 index 0000000..ee69aae --- /dev/null +++ b/0.2.0/grafeas/api_grafeas_v1_beta1.go @@ -0,0 +1,1622 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "fmt" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type GrafeasV1Beta1ApiService service + +/* +GrafeasV1Beta1ApiService Creates new notes in batch. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param parent The name of the project in the form of `projects/[PROJECT_ID]`, under which the notes are to be created. + * @param body + +@return V1beta1BatchCreateNotesResponse +*/ +func (a *GrafeasV1Beta1ApiService) GrafeasV1Beta1BatchCreateNotes(ctx context.Context, parent string, body Body) (V1beta1BatchCreateNotesResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue V1beta1BatchCreateNotesResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/v1beta1/{parent}/notes:batchCreate" + localVarPath = strings.Replace(localVarPath, "{"+"parent"+"}", fmt.Sprintf("%v", parent), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v V1beta1BatchCreateNotesResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 0 { + var v RpcStatus + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +GrafeasV1Beta1ApiService Creates new occurrences in batch. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param parent The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrences are to be created. + * @param body + +@return V1beta1BatchCreateOccurrencesResponse +*/ +func (a *GrafeasV1Beta1ApiService) GrafeasV1Beta1BatchCreateOccurrences(ctx context.Context, parent string, body Body1) (V1beta1BatchCreateOccurrencesResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue V1beta1BatchCreateOccurrencesResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/v1beta1/{parent}/occurrences:batchCreate" + localVarPath = strings.Replace(localVarPath, "{"+"parent"+"}", fmt.Sprintf("%v", parent), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v V1beta1BatchCreateOccurrencesResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 0 { + var v RpcStatus + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +GrafeasV1Beta1ApiService Creates a new note. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param parent The name of the project in the form of `projects/[PROJECT_ID]`, under which the note is to be created. + * @param body The note to create. + * @param noteId The ID to use for this note. + +@return V1beta1Note +*/ +func (a *GrafeasV1Beta1ApiService) GrafeasV1Beta1CreateNote(ctx context.Context, parent string, body V1beta1Note, noteId string) (V1beta1Note, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue V1beta1Note + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/v1beta1/{parent}/notes" + localVarPath = strings.Replace(localVarPath, "{"+"parent"+"}", fmt.Sprintf("%v", parent), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + localVarQueryParams.Add("noteId", parameterToString(noteId, "")) + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v V1beta1Note + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 0 { + var v RpcStatus + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +GrafeasV1Beta1ApiService Creates a new occurrence. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param parent The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrence is to be created. + * @param body The occurrence to create. + +@return V1beta1Occurrence +*/ +func (a *GrafeasV1Beta1ApiService) GrafeasV1Beta1CreateOccurrence(ctx context.Context, parent string, body V1beta1Occurrence) (V1beta1Occurrence, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue V1beta1Occurrence + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/v1beta1/{parent}/occurrences" + localVarPath = strings.Replace(localVarPath, "{"+"parent"+"}", fmt.Sprintf("%v", parent), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v V1beta1Occurrence + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 0 { + var v RpcStatus + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +GrafeasV1Beta1ApiService Deletes the specified note. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name1 The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + +@return interface{} +*/ +func (a *GrafeasV1Beta1ApiService) GrafeasV1Beta1DeleteNote(ctx context.Context, name1 string) (interface{}, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue interface{} + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/v1beta1/{name_1}" + localVarPath = strings.Replace(localVarPath, "{"+"name_1"+"}", fmt.Sprintf("%v", name1), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v interface{} + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 0 { + var v RpcStatus + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +GrafeasV1Beta1ApiService Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + +@return interface{} +*/ +func (a *GrafeasV1Beta1ApiService) GrafeasV1Beta1DeleteOccurrence(ctx context.Context, name string) (interface{}, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue interface{} + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/v1beta1/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v interface{} + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 0 { + var v RpcStatus + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +GrafeasV1Beta1ApiService Gets the specified note. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name1 The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + +@return V1beta1Note +*/ +func (a *GrafeasV1Beta1ApiService) GrafeasV1Beta1GetNote(ctx context.Context, name1 string) (V1beta1Note, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue V1beta1Note + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/v1beta1/{name_1}" + localVarPath = strings.Replace(localVarPath, "{"+"name_1"+"}", fmt.Sprintf("%v", name1), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v V1beta1Note + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 0 { + var v RpcStatus + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +GrafeasV1Beta1ApiService Gets the specified occurrence. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + +@return V1beta1Occurrence +*/ +func (a *GrafeasV1Beta1ApiService) GrafeasV1Beta1GetOccurrence(ctx context.Context, name string) (V1beta1Occurrence, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue V1beta1Occurrence + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/v1beta1/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v V1beta1Occurrence + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 0 { + var v RpcStatus + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +GrafeasV1Beta1ApiService Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + +@return V1beta1Note +*/ +func (a *GrafeasV1Beta1ApiService) GrafeasV1Beta1GetOccurrenceNote(ctx context.Context, name string) (V1beta1Note, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue V1beta1Note + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/v1beta1/{name}/notes" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v V1beta1Note + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 0 { + var v RpcStatus + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +GrafeasV1Beta1ApiService Gets a summary of the number and severity of occurrences. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param parent The name of the project to get a vulnerability summary for in the form of `projects/[PROJECT_ID]`. + * @param optional nil or *GrafeasV1Beta1GetVulnerabilityOccurrencesSummaryOpts - Optional Parameters: + * @param "Filter" (optional.String) - The filter expression. + +@return V1beta1VulnerabilityOccurrencesSummary +*/ + +type GrafeasV1Beta1GetVulnerabilityOccurrencesSummaryOpts struct { + Filter optional.String +} + +func (a *GrafeasV1Beta1ApiService) GrafeasV1Beta1GetVulnerabilityOccurrencesSummary(ctx context.Context, parent string, localVarOptionals *GrafeasV1Beta1GetVulnerabilityOccurrencesSummaryOpts) (V1beta1VulnerabilityOccurrencesSummary, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue V1beta1VulnerabilityOccurrencesSummary + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/v1beta1/{parent}/occurrences:vulnerabilitySummary" + localVarPath = strings.Replace(localVarPath, "{"+"parent"+"}", fmt.Sprintf("%v", parent), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Filter.IsSet() { + localVarQueryParams.Add("filter", parameterToString(localVarOptionals.Filter.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v V1beta1VulnerabilityOccurrencesSummary + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 0 { + var v RpcStatus + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +GrafeasV1Beta1ApiService Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name The name of the note to list occurrences for in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + * @param optional nil or *GrafeasV1Beta1ListNoteOccurrencesOpts - Optional Parameters: + * @param "Filter" (optional.String) - The filter expression. + * @param "PageSize" (optional.Int32) - Number of occurrences to return in the list. + * @param "PageToken" (optional.String) - Token to provide to skip to a particular spot in the list. + +@return V1beta1ListNoteOccurrencesResponse +*/ + +type GrafeasV1Beta1ListNoteOccurrencesOpts struct { + Filter optional.String + PageSize optional.Int32 + PageToken optional.String +} + +func (a *GrafeasV1Beta1ApiService) GrafeasV1Beta1ListNoteOccurrences(ctx context.Context, name string, localVarOptionals *GrafeasV1Beta1ListNoteOccurrencesOpts) (V1beta1ListNoteOccurrencesResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue V1beta1ListNoteOccurrencesResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/v1beta1/{name}/occurrences" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Filter.IsSet() { + localVarQueryParams.Add("filter", parameterToString(localVarOptionals.Filter.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.PageSize.IsSet() { + localVarQueryParams.Add("pageSize", parameterToString(localVarOptionals.PageSize.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.PageToken.IsSet() { + localVarQueryParams.Add("pageToken", parameterToString(localVarOptionals.PageToken.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v V1beta1ListNoteOccurrencesResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 0 { + var v RpcStatus + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +GrafeasV1Beta1ApiService Lists notes for the specified project. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param parent The name of the project to list notes for in the form of `projects/[PROJECT_ID]`. + * @param optional nil or *GrafeasV1Beta1ListNotesOpts - Optional Parameters: + * @param "Filter" (optional.String) - The filter expression. + * @param "PageSize" (optional.Int32) - Number of notes to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20. + * @param "PageToken" (optional.String) - Token to provide to skip to a particular spot in the list. + +@return V1beta1ListNotesResponse +*/ + +type GrafeasV1Beta1ListNotesOpts struct { + Filter optional.String + PageSize optional.Int32 + PageToken optional.String +} + +func (a *GrafeasV1Beta1ApiService) GrafeasV1Beta1ListNotes(ctx context.Context, parent string, localVarOptionals *GrafeasV1Beta1ListNotesOpts) (V1beta1ListNotesResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue V1beta1ListNotesResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/v1beta1/{parent}/notes" + localVarPath = strings.Replace(localVarPath, "{"+"parent"+"}", fmt.Sprintf("%v", parent), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Filter.IsSet() { + localVarQueryParams.Add("filter", parameterToString(localVarOptionals.Filter.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.PageSize.IsSet() { + localVarQueryParams.Add("pageSize", parameterToString(localVarOptionals.PageSize.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.PageToken.IsSet() { + localVarQueryParams.Add("pageToken", parameterToString(localVarOptionals.PageToken.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v V1beta1ListNotesResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 0 { + var v RpcStatus + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +GrafeasV1Beta1ApiService Lists occurrences for the specified project. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param parent The name of the project to list occurrences for in the form of `projects/[PROJECT_ID]`. + * @param optional nil or *GrafeasV1Beta1ListOccurrencesOpts - Optional Parameters: + * @param "Filter" (optional.String) - The filter expression. + * @param "PageSize" (optional.Int32) - Number of occurrences to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20. + * @param "PageToken" (optional.String) - Token to provide to skip to a particular spot in the list. + +@return V1beta1ListOccurrencesResponse +*/ + +type GrafeasV1Beta1ListOccurrencesOpts struct { + Filter optional.String + PageSize optional.Int32 + PageToken optional.String +} + +func (a *GrafeasV1Beta1ApiService) GrafeasV1Beta1ListOccurrences(ctx context.Context, parent string, localVarOptionals *GrafeasV1Beta1ListOccurrencesOpts) (V1beta1ListOccurrencesResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue V1beta1ListOccurrencesResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/v1beta1/{parent}/occurrences" + localVarPath = strings.Replace(localVarPath, "{"+"parent"+"}", fmt.Sprintf("%v", parent), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Filter.IsSet() { + localVarQueryParams.Add("filter", parameterToString(localVarOptionals.Filter.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.PageSize.IsSet() { + localVarQueryParams.Add("pageSize", parameterToString(localVarOptionals.PageSize.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.PageToken.IsSet() { + localVarQueryParams.Add("pageToken", parameterToString(localVarOptionals.PageToken.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v V1beta1ListOccurrencesResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 0 { + var v RpcStatus + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +GrafeasV1Beta1ApiService Updates the specified note. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name1 The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + * @param body The updated note. + * @param optional nil or *GrafeasV1Beta1UpdateNoteOpts - Optional Parameters: + * @param "UpdateMask" (optional.String) - The fields to update. + +@return V1beta1Note +*/ + +type GrafeasV1Beta1UpdateNoteOpts struct { + UpdateMask optional.String +} + +func (a *GrafeasV1Beta1ApiService) GrafeasV1Beta1UpdateNote(ctx context.Context, name1 string, body V1beta1Note, localVarOptionals *GrafeasV1Beta1UpdateNoteOpts) (V1beta1Note, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Patch") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue V1beta1Note + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/v1beta1/{name_1}" + localVarPath = strings.Replace(localVarPath, "{"+"name_1"+"}", fmt.Sprintf("%v", name1), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.UpdateMask.IsSet() { + localVarQueryParams.Add("updateMask", parameterToString(localVarOptionals.UpdateMask.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v V1beta1Note + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 0 { + var v RpcStatus + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +GrafeasV1Beta1ApiService Updates the specified occurrence. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + * @param body The updated occurrence. + * @param optional nil or *GrafeasV1Beta1UpdateOccurrenceOpts - Optional Parameters: + * @param "UpdateMask" (optional.String) - The fields to update. + +@return V1beta1Occurrence +*/ + +type GrafeasV1Beta1UpdateOccurrenceOpts struct { + UpdateMask optional.String +} + +func (a *GrafeasV1Beta1ApiService) GrafeasV1Beta1UpdateOccurrence(ctx context.Context, name string, body V1beta1Occurrence, localVarOptionals *GrafeasV1Beta1UpdateOccurrenceOpts) (V1beta1Occurrence, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Patch") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue V1beta1Occurrence + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/v1beta1/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.UpdateMask.IsSet() { + localVarQueryParams.Add("updateMask", parameterToString(localVarOptionals.UpdateMask.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v V1beta1Occurrence + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 0 { + var v RpcStatus + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} diff --git a/0.2.0/grafeas/client.go b/0.2.0/grafeas/client.go new file mode 100644 index 0000000..fa81d90 --- /dev/null +++ b/0.2.0/grafeas/client.go @@ -0,0 +1,464 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "mime/multipart" + "net/http" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + + "golang.org/x/oauth2" +) + +var ( + jsonCheck = regexp.MustCompile("(?i:[application|text]/json)") + xmlCheck = regexp.MustCompile("(?i:[application|text]/xml)") +) + +// APIClient manages communication with the grafeas.proto API vversion not set +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + GrafeasV1Beta1Api *GrafeasV1Beta1ApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.GrafeasV1Beta1Api = (*GrafeasV1Beta1ApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insenstive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.ToLower(a) == strings.ToLower(needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("Expected %s to be of type %s but received %s.", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +// parameterToString convert interface{} parameters to string, using a delimiter if format is provided. +func parameterToString(obj interface{}, collectionFormat string) string { + var delimiter string + + switch collectionFormat { + case "pipes": + delimiter = "|" + case "ssv": + delimiter = " " + case "tsv": + delimiter = "\t" + case "csv": + delimiter = "," + } + + if reflect.TypeOf(obj).Kind() == reflect.Slice { + return strings.Trim(strings.Replace(fmt.Sprint(obj), " ", delimiter, -1), "[]") + } + + return fmt.Sprintf("%v", obj) +} + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + return c.cfg.HTTPClient.Do(request) +} + +// Change base path to allow switching to mocks +func (c *APIClient) ChangeBasePath(path string) { + c.cfg.BasePath = path +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + ctx context.Context, + path string, method string, + postBody interface{}, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, + fileName string, + fileBytes []byte) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // Detect postBody type and post. + if postBody != nil { + contentType := headerParams["Content-Type"] + if contentType == "" { + contentType = detectContentType(postBody) + headerParams["Content-Type"] = contentType + } + + body, err = setBody(postBody, contentType) + if err != nil { + return nil, err + } + } + + // add form parameters and file if available. + if len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + if len(fileBytes) > 0 && fileName != "" { + w.Boundary() + //_, fileNm := filepath.Split(fileName) + part, err := w.CreateFormFile("file", filepath.Base(fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(fileBytes) + if err != nil { + return nil, err + } + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + } + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = query.Encode() + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers.Set(h, v) + } + localVarRequest.Header = headers + } + + // Override request host, if applicable + if c.cfg.Host != "" { + localVarRequest.Host = c.cfg.Host + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + // OAuth2 authentication + if tok, ok := ctx.Value(ContextOAuth2).(oauth2.TokenSource); ok { + // We were able to grab an oauth2 token from the context + var latestToken *oauth2.Token + if latestToken, err = tok.Token(); err != nil { + return nil, err + } + + latestToken.SetAuthHeader(localVarRequest) + } + + // Basic HTTP Authentication + if auth, ok := ctx.Value(ContextBasicAuth).(BasicAuth); ok { + localVarRequest.SetBasicAuth(auth.UserName, auth.Password) + } + + // AccessToken Authentication + if auth, ok := ctx.Value(ContextAccessToken).(string); ok { + localVarRequest.Header.Add("Authorization", "Bearer "+auth) + } + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if strings.Contains(contentType, "application/xml") { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } else if strings.Contains(contentType, "application/json") { + if err = json.Unmarshal(b, v); err != nil { + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(path) + if err != nil { + return err + } + defer file.Close() + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("Invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } + expires = now.Add(lifetime) + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericSwaggerError Provides access to the body, error and model on returned errors. +type GenericSwaggerError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericSwaggerError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericSwaggerError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericSwaggerError) Model() interface{} { + return e.model +} \ No newline at end of file diff --git a/0.2.0/grafeas/configuration.go b/0.2.0/grafeas/configuration.go new file mode 100644 index 0000000..3827565 --- /dev/null +++ b/0.2.0/grafeas/configuration.go @@ -0,0 +1,72 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +import ( + "net/http" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextOAuth2 takes a oauth2.TokenSource as authentication for the request. + ContextOAuth2 = contextKey("token") + + // ContextBasicAuth takes BasicAuth as authentication for the request. + ContextBasicAuth = contextKey("basic") + + // ContextAccessToken takes a string oauth2 access token as authentication for the request. + ContextAccessToken = contextKey("accesstoken") + + // ContextAPIKey takes an APIKey as authentication for the request + ContextAPIKey = contextKey("apikey") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +type Configuration struct { + BasePath string `json:"basePath,omitempty"` + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + HTTPClient *http.Client +} + +func NewConfiguration() *Configuration { + cfg := &Configuration{ + BasePath: "https://localhost", + DefaultHeader: make(map[string]string), + UserAgent: "Swagger-Codegen/0.2.0/go", + } + return cfg +} + +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} diff --git a/0.2.0/grafeas/docs/AliasContextKind.md b/0.2.0/grafeas/docs/AliasContextKind.md new file mode 100644 index 0000000..78893df --- /dev/null +++ b/0.2.0/grafeas/docs/AliasContextKind.md @@ -0,0 +1,9 @@ +# AliasContextKind + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/AttestationAttestation.md b/0.2.0/grafeas/docs/AttestationAttestation.md new file mode 100644 index 0000000..c832120 --- /dev/null +++ b/0.2.0/grafeas/docs/AttestationAttestation.md @@ -0,0 +1,11 @@ +# AttestationAttestation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PgpSignedAttestation** | [***AttestationPgpSignedAttestation**](attestationPgpSignedAttestation.md) | A PGP signed attestation. | [optional] [default to null] +**GenericSignedAttestation** | [***AttestationGenericSignedAttestation**](attestationGenericSignedAttestation.md) | An attestation that supports multiple `Signature`s over the same attestation payload. The signatures (defined in common.proto) support a superset of public key types and IDs compared to PgpSignedAttestation. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/AttestationAuthority.md b/0.2.0/grafeas/docs/AttestationAuthority.md new file mode 100644 index 0000000..437d26f --- /dev/null +++ b/0.2.0/grafeas/docs/AttestationAuthority.md @@ -0,0 +1,10 @@ +# AttestationAuthority + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Hint** | [***AuthorityHint**](AuthorityHint.md) | Hint hints at the purpose of the attestation authority. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/AttestationGenericSignedAttestation.md b/0.2.0/grafeas/docs/AttestationGenericSignedAttestation.md new file mode 100644 index 0000000..a833299 --- /dev/null +++ b/0.2.0/grafeas/docs/AttestationGenericSignedAttestation.md @@ -0,0 +1,12 @@ +# AttestationGenericSignedAttestation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContentType** | [***AttestationGenericSignedAttestationContentType**](attestationGenericSignedAttestationContentType.md) | Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema). | [optional] [default to null] +**SerializedPayload** | **string** | The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`. | [optional] [default to null] +**Signatures** | [**[]Grafeasv1beta1Signature**](grafeasv1beta1Signature.md) | One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/AttestationGenericSignedAttestationContentType.md b/0.2.0/grafeas/docs/AttestationGenericSignedAttestationContentType.md new file mode 100644 index 0000000..8c358b6 --- /dev/null +++ b/0.2.0/grafeas/docs/AttestationGenericSignedAttestationContentType.md @@ -0,0 +1,9 @@ +# AttestationGenericSignedAttestationContentType + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/AttestationPgpSignedAttestation.md b/0.2.0/grafeas/docs/AttestationPgpSignedAttestation.md new file mode 100644 index 0000000..04d5227 --- /dev/null +++ b/0.2.0/grafeas/docs/AttestationPgpSignedAttestation.md @@ -0,0 +1,12 @@ +# AttestationPgpSignedAttestation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Signature** | **string** | Required. The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload. | [optional] [default to null] +**ContentType** | [***AttestationPgpSignedAttestationContentType**](attestationPgpSignedAttestationContentType.md) | Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema). | [optional] [default to null] +**PgpKeyId** | **string** | The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexadecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge \"LONG\", \"SHORT\", or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \\ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...<SNIP>... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/AttestationPgpSignedAttestationContentType.md b/0.2.0/grafeas/docs/AttestationPgpSignedAttestationContentType.md new file mode 100644 index 0000000..5c1320d --- /dev/null +++ b/0.2.0/grafeas/docs/AttestationPgpSignedAttestationContentType.md @@ -0,0 +1,9 @@ +# AttestationPgpSignedAttestationContentType + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/AuthorityHint.md b/0.2.0/grafeas/docs/AuthorityHint.md new file mode 100644 index 0000000..71ac518 --- /dev/null +++ b/0.2.0/grafeas/docs/AuthorityHint.md @@ -0,0 +1,10 @@ +# AuthorityHint + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**HumanReadableName** | **string** | Required. The human readable name of this attestation authority, for example \"qa\". | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/Body.md b/0.2.0/grafeas/docs/Body.md new file mode 100644 index 0000000..e4c9f99 --- /dev/null +++ b/0.2.0/grafeas/docs/Body.md @@ -0,0 +1,10 @@ +# Body + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Notes** | [**map[string]V1beta1Note**](v1beta1Note.md) | The notes to create, the key is expected to be the note ID. Max allowed length is 1000. | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/Body1.md b/0.2.0/grafeas/docs/Body1.md new file mode 100644 index 0000000..5f56e15 --- /dev/null +++ b/0.2.0/grafeas/docs/Body1.md @@ -0,0 +1,10 @@ +# Body1 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Occurrences** | [**[]V1beta1Occurrence**](v1beta1Occurrence.md) | The occurrences to create. Max allowed length is 1000. | [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/BuildBuild.md b/0.2.0/grafeas/docs/BuildBuild.md new file mode 100644 index 0000000..5ba54df --- /dev/null +++ b/0.2.0/grafeas/docs/BuildBuild.md @@ -0,0 +1,11 @@ +# BuildBuild + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BuilderVersion** | **string** | Required. Immutable. Version of the builder which produced this build. | [optional] [default to null] +**Signature** | [***BuildBuildSignature**](buildBuildSignature.md) | Signature of the build in occurrences pointing to this build note containing build details. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/BuildBuildSignature.md b/0.2.0/grafeas/docs/BuildBuildSignature.md new file mode 100644 index 0000000..375e755 --- /dev/null +++ b/0.2.0/grafeas/docs/BuildBuildSignature.md @@ -0,0 +1,13 @@ +# BuildBuildSignature + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PublicKey** | **string** | Public key of the builder which can be used to verify that the related findings are valid and unchanged. If `key_type` is empty, this defaults to PEM encoded public keys. This field may be empty if `key_id` references an external key. For Cloud Build based signatures, this is a PEM encoded public key. To verify the Cloud Build signature, place the contents of this field into a file (public.pem). The signature field is base64-decoded into its binary representation in signature.bin, and the provenance bytes from `BuildDetails` are base64-decoded into a binary representation in signed.bin. OpenSSL can then verify the signature: `openssl sha256 -verify public.pem -signature signature.bin signed.bin` | [optional] [default to null] +**Signature** | **string** | Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded. | [optional] [default to null] +**KeyId** | **string** | An ID for the key used to sign. This could be either an ID for the key stored in `public_key` (such as the ID or fingerprint for a PGP key, or the CN for a cert), or a reference to an external key (such as a reference to a key in Cloud Key Management Service). | [optional] [default to null] +**KeyType** | [***BuildSignatureKeyType**](BuildSignatureKeyType.md) | The type of the key, either stored in `public_key` or referenced in `key_id`. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/BuildSignatureKeyType.md b/0.2.0/grafeas/docs/BuildSignatureKeyType.md new file mode 100644 index 0000000..c422692 --- /dev/null +++ b/0.2.0/grafeas/docs/BuildSignatureKeyType.md @@ -0,0 +1,9 @@ +# BuildSignatureKeyType + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/CvssAttackComplexity.md b/0.2.0/grafeas/docs/CvssAttackComplexity.md new file mode 100644 index 0000000..179da4e --- /dev/null +++ b/0.2.0/grafeas/docs/CvssAttackComplexity.md @@ -0,0 +1,9 @@ +# CvssAttackComplexity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/CvssAttackVector.md b/0.2.0/grafeas/docs/CvssAttackVector.md new file mode 100644 index 0000000..e345649 --- /dev/null +++ b/0.2.0/grafeas/docs/CvssAttackVector.md @@ -0,0 +1,9 @@ +# CvssAttackVector + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/CvssAuthentication.md b/0.2.0/grafeas/docs/CvssAuthentication.md new file mode 100644 index 0000000..78f1b80 --- /dev/null +++ b/0.2.0/grafeas/docs/CvssAuthentication.md @@ -0,0 +1,9 @@ +# CvssAuthentication + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/CvssImpact.md b/0.2.0/grafeas/docs/CvssImpact.md new file mode 100644 index 0000000..8bd3437 --- /dev/null +++ b/0.2.0/grafeas/docs/CvssImpact.md @@ -0,0 +1,9 @@ +# CvssImpact + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/CvssPrivilegesRequired.md b/0.2.0/grafeas/docs/CvssPrivilegesRequired.md new file mode 100644 index 0000000..3c3450f --- /dev/null +++ b/0.2.0/grafeas/docs/CvssPrivilegesRequired.md @@ -0,0 +1,9 @@ +# CvssPrivilegesRequired + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/CvssScope.md b/0.2.0/grafeas/docs/CvssScope.md new file mode 100644 index 0000000..b0b761e --- /dev/null +++ b/0.2.0/grafeas/docs/CvssScope.md @@ -0,0 +1,9 @@ +# CvssScope + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/CvssUserInteraction.md b/0.2.0/grafeas/docs/CvssUserInteraction.md new file mode 100644 index 0000000..cc519e9 --- /dev/null +++ b/0.2.0/grafeas/docs/CvssUserInteraction.md @@ -0,0 +1,9 @@ +# CvssUserInteraction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/DeploymentDeployable.md b/0.2.0/grafeas/docs/DeploymentDeployable.md new file mode 100644 index 0000000..1ae869d --- /dev/null +++ b/0.2.0/grafeas/docs/DeploymentDeployable.md @@ -0,0 +1,10 @@ +# DeploymentDeployable + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResourceUri** | **[]string** | Required. Resource URI for the artifact being deployed. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/DeploymentDeployment.md b/0.2.0/grafeas/docs/DeploymentDeployment.md new file mode 100644 index 0000000..901e9f4 --- /dev/null +++ b/0.2.0/grafeas/docs/DeploymentDeployment.md @@ -0,0 +1,16 @@ +# DeploymentDeployment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UserEmail** | **string** | Identity of the user that triggered this deployment. | [optional] [default to null] +**DeployTime** | [**time.Time**](time.Time.md) | Required. Beginning of the lifetime of this deployment. | [optional] [default to null] +**UndeployTime** | [**time.Time**](time.Time.md) | End of the lifetime of this deployment. | [optional] [default to null] +**Config** | **string** | Configuration used to create this deployment. | [optional] [default to null] +**Address** | **string** | Address of the runtime element hosting this deployment. | [optional] [default to null] +**ResourceUri** | **[]string** | Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name. | [optional] [default to null] +**Platform** | [***DeploymentPlatform**](DeploymentPlatform.md) | Platform hosting this deployment. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/DeploymentPlatform.md b/0.2.0/grafeas/docs/DeploymentPlatform.md new file mode 100644 index 0000000..fd5e055 --- /dev/null +++ b/0.2.0/grafeas/docs/DeploymentPlatform.md @@ -0,0 +1,9 @@ +# DeploymentPlatform + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/DiscoveredAnalysisStatus.md b/0.2.0/grafeas/docs/DiscoveredAnalysisStatus.md new file mode 100644 index 0000000..5cf66c8 --- /dev/null +++ b/0.2.0/grafeas/docs/DiscoveredAnalysisStatus.md @@ -0,0 +1,9 @@ +# DiscoveredAnalysisStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/DiscoveredContinuousAnalysis.md b/0.2.0/grafeas/docs/DiscoveredContinuousAnalysis.md new file mode 100644 index 0000000..61e65fc --- /dev/null +++ b/0.2.0/grafeas/docs/DiscoveredContinuousAnalysis.md @@ -0,0 +1,9 @@ +# DiscoveredContinuousAnalysis + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/DiscoveryDiscovered.md b/0.2.0/grafeas/docs/DiscoveryDiscovered.md new file mode 100644 index 0000000..b15ab2f --- /dev/null +++ b/0.2.0/grafeas/docs/DiscoveryDiscovered.md @@ -0,0 +1,13 @@ +# DiscoveryDiscovered + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContinuousAnalysis** | [***DiscoveredContinuousAnalysis**](DiscoveredContinuousAnalysis.md) | Whether the resource is continuously analyzed. | [optional] [default to null] +**LastAnalysisTime** | [**time.Time**](time.Time.md) | The last time continuous analysis was done for this resource. Deprecated, do not use. | [optional] [default to null] +**AnalysisStatus** | [***DiscoveredAnalysisStatus**](DiscoveredAnalysisStatus.md) | The status of discovery for the resource. | [optional] [default to null] +**AnalysisStatusError** | [***RpcStatus**](rpcStatus.md) | When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/DiscoveryDiscovery.md b/0.2.0/grafeas/docs/DiscoveryDiscovery.md new file mode 100644 index 0000000..87047b4 --- /dev/null +++ b/0.2.0/grafeas/docs/DiscoveryDiscovery.md @@ -0,0 +1,10 @@ +# DiscoveryDiscovery + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AnalysisKind** | [***V1beta1NoteKind**](v1beta1NoteKind.md) | Required. Immutable. The kind of analysis that is handled by this discovery. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/ExternalRefCategory.md b/0.2.0/grafeas/docs/ExternalRefCategory.md new file mode 100644 index 0000000..441552f --- /dev/null +++ b/0.2.0/grafeas/docs/ExternalRefCategory.md @@ -0,0 +1,9 @@ +# ExternalRefCategory + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/FileNoteFileType.md b/0.2.0/grafeas/docs/FileNoteFileType.md new file mode 100644 index 0000000..3b2e059 --- /dev/null +++ b/0.2.0/grafeas/docs/FileNoteFileType.md @@ -0,0 +1,9 @@ +# FileNoteFileType + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/GrafeasV1Beta1Api.md b/0.2.0/grafeas/docs/GrafeasV1Beta1Api.md new file mode 100644 index 0000000..19a1fa5 --- /dev/null +++ b/0.2.0/grafeas/docs/GrafeasV1Beta1Api.md @@ -0,0 +1,482 @@ +# \GrafeasV1Beta1Api + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GrafeasV1Beta1BatchCreateNotes**](GrafeasV1Beta1Api.md#GrafeasV1Beta1BatchCreateNotes) | **Post** /v1beta1/{parent}/notes:batchCreate | Creates new notes in batch. +[**GrafeasV1Beta1BatchCreateOccurrences**](GrafeasV1Beta1Api.md#GrafeasV1Beta1BatchCreateOccurrences) | **Post** /v1beta1/{parent}/occurrences:batchCreate | Creates new occurrences in batch. +[**GrafeasV1Beta1CreateNote**](GrafeasV1Beta1Api.md#GrafeasV1Beta1CreateNote) | **Post** /v1beta1/{parent}/notes | Creates a new note. +[**GrafeasV1Beta1CreateOccurrence**](GrafeasV1Beta1Api.md#GrafeasV1Beta1CreateOccurrence) | **Post** /v1beta1/{parent}/occurrences | Creates a new occurrence. +[**GrafeasV1Beta1DeleteNote**](GrafeasV1Beta1Api.md#GrafeasV1Beta1DeleteNote) | **Delete** /v1beta1/{name_1} | Deletes the specified note. +[**GrafeasV1Beta1DeleteOccurrence**](GrafeasV1Beta1Api.md#GrafeasV1Beta1DeleteOccurrence) | **Delete** /v1beta1/{name} | Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource. +[**GrafeasV1Beta1GetNote**](GrafeasV1Beta1Api.md#GrafeasV1Beta1GetNote) | **Get** /v1beta1/{name_1} | Gets the specified note. +[**GrafeasV1Beta1GetOccurrence**](GrafeasV1Beta1Api.md#GrafeasV1Beta1GetOccurrence) | **Get** /v1beta1/{name} | Gets the specified occurrence. +[**GrafeasV1Beta1GetOccurrenceNote**](GrafeasV1Beta1Api.md#GrafeasV1Beta1GetOccurrenceNote) | **Get** /v1beta1/{name}/notes | Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project. +[**GrafeasV1Beta1GetVulnerabilityOccurrencesSummary**](GrafeasV1Beta1Api.md#GrafeasV1Beta1GetVulnerabilityOccurrencesSummary) | **Get** /v1beta1/{parent}/occurrences:vulnerabilitySummary | Gets a summary of the number and severity of occurrences. +[**GrafeasV1Beta1ListNoteOccurrences**](GrafeasV1Beta1Api.md#GrafeasV1Beta1ListNoteOccurrences) | **Get** /v1beta1/{name}/occurrences | Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note. +[**GrafeasV1Beta1ListNotes**](GrafeasV1Beta1Api.md#GrafeasV1Beta1ListNotes) | **Get** /v1beta1/{parent}/notes | Lists notes for the specified project. +[**GrafeasV1Beta1ListOccurrences**](GrafeasV1Beta1Api.md#GrafeasV1Beta1ListOccurrences) | **Get** /v1beta1/{parent}/occurrences | Lists occurrences for the specified project. +[**GrafeasV1Beta1UpdateNote**](GrafeasV1Beta1Api.md#GrafeasV1Beta1UpdateNote) | **Patch** /v1beta1/{name_1} | Updates the specified note. +[**GrafeasV1Beta1UpdateOccurrence**](GrafeasV1Beta1Api.md#GrafeasV1Beta1UpdateOccurrence) | **Patch** /v1beta1/{name} | Updates the specified occurrence. + + +# **GrafeasV1Beta1BatchCreateNotes** +> V1beta1BatchCreateNotesResponse GrafeasV1Beta1BatchCreateNotes(ctx, parent, body) +Creates new notes in batch. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **parent** | **string**| The name of the project in the form of `projects/[PROJECT_ID]`, under which the notes are to be created. | + **body** | [**Body**](Body.md)| | + +### Return type + +[**V1beta1BatchCreateNotesResponse**](v1beta1BatchCreateNotesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **GrafeasV1Beta1BatchCreateOccurrences** +> V1beta1BatchCreateOccurrencesResponse GrafeasV1Beta1BatchCreateOccurrences(ctx, parent, body) +Creates new occurrences in batch. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **parent** | **string**| The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrences are to be created. | + **body** | [**Body1**](Body1.md)| | + +### Return type + +[**V1beta1BatchCreateOccurrencesResponse**](v1beta1BatchCreateOccurrencesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **GrafeasV1Beta1CreateNote** +> V1beta1Note GrafeasV1Beta1CreateNote(ctx, parent, body, noteId) +Creates a new note. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **parent** | **string**| The name of the project in the form of `projects/[PROJECT_ID]`, under which the note is to be created. | + **body** | [**V1beta1Note**](V1beta1Note.md)| The note to create. | + **noteId** | **string**| The ID to use for this note. | + +### Return type + +[**V1beta1Note**](v1beta1Note.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **GrafeasV1Beta1CreateOccurrence** +> V1beta1Occurrence GrafeasV1Beta1CreateOccurrence(ctx, parent, body) +Creates a new occurrence. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **parent** | **string**| The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrence is to be created. | + **body** | [**V1beta1Occurrence**](V1beta1Occurrence.md)| The occurrence to create. | + +### Return type + +[**V1beta1Occurrence**](v1beta1Occurrence.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **GrafeasV1Beta1DeleteNote** +> interface{} GrafeasV1Beta1DeleteNote(ctx, name1) +Deletes the specified note. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name1** | **string**| The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. | + +### Return type + +[**interface{}**](interface{}.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **GrafeasV1Beta1DeleteOccurrence** +> interface{} GrafeasV1Beta1DeleteOccurrence(ctx, name) +Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. | + +### Return type + +[**interface{}**](interface{}.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **GrafeasV1Beta1GetNote** +> V1beta1Note GrafeasV1Beta1GetNote(ctx, name1) +Gets the specified note. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name1** | **string**| The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. | + +### Return type + +[**V1beta1Note**](v1beta1Note.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **GrafeasV1Beta1GetOccurrence** +> V1beta1Occurrence GrafeasV1Beta1GetOccurrence(ctx, name) +Gets the specified occurrence. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. | + +### Return type + +[**V1beta1Occurrence**](v1beta1Occurrence.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **GrafeasV1Beta1GetOccurrenceNote** +> V1beta1Note GrafeasV1Beta1GetOccurrenceNote(ctx, name) +Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. | + +### Return type + +[**V1beta1Note**](v1beta1Note.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **GrafeasV1Beta1GetVulnerabilityOccurrencesSummary** +> V1beta1VulnerabilityOccurrencesSummary GrafeasV1Beta1GetVulnerabilityOccurrencesSummary(ctx, parent, optional) +Gets a summary of the number and severity of occurrences. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **parent** | **string**| The name of the project to get a vulnerability summary for in the form of `projects/[PROJECT_ID]`. | + **optional** | ***GrafeasV1Beta1GetVulnerabilityOccurrencesSummaryOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a GrafeasV1Beta1GetVulnerabilityOccurrencesSummaryOpts struct + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **filter** | **optional.String**| The filter expression. | + +### Return type + +[**V1beta1VulnerabilityOccurrencesSummary**](v1beta1VulnerabilityOccurrencesSummary.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **GrafeasV1Beta1ListNoteOccurrences** +> V1beta1ListNoteOccurrencesResponse GrafeasV1Beta1ListNoteOccurrences(ctx, name, optional) +Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| The name of the note to list occurrences for in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. | + **optional** | ***GrafeasV1Beta1ListNoteOccurrencesOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a GrafeasV1Beta1ListNoteOccurrencesOpts struct + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **filter** | **optional.String**| The filter expression. | + **pageSize** | **optional.Int32**| Number of occurrences to return in the list. | + **pageToken** | **optional.String**| Token to provide to skip to a particular spot in the list. | + +### Return type + +[**V1beta1ListNoteOccurrencesResponse**](v1beta1ListNoteOccurrencesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **GrafeasV1Beta1ListNotes** +> V1beta1ListNotesResponse GrafeasV1Beta1ListNotes(ctx, parent, optional) +Lists notes for the specified project. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **parent** | **string**| The name of the project to list notes for in the form of `projects/[PROJECT_ID]`. | + **optional** | ***GrafeasV1Beta1ListNotesOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a GrafeasV1Beta1ListNotesOpts struct + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **filter** | **optional.String**| The filter expression. | + **pageSize** | **optional.Int32**| Number of notes to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20. | + **pageToken** | **optional.String**| Token to provide to skip to a particular spot in the list. | + +### Return type + +[**V1beta1ListNotesResponse**](v1beta1ListNotesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **GrafeasV1Beta1ListOccurrences** +> V1beta1ListOccurrencesResponse GrafeasV1Beta1ListOccurrences(ctx, parent, optional) +Lists occurrences for the specified project. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **parent** | **string**| The name of the project to list occurrences for in the form of `projects/[PROJECT_ID]`. | + **optional** | ***GrafeasV1Beta1ListOccurrencesOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a GrafeasV1Beta1ListOccurrencesOpts struct + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **filter** | **optional.String**| The filter expression. | + **pageSize** | **optional.Int32**| Number of occurrences to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20. | + **pageToken** | **optional.String**| Token to provide to skip to a particular spot in the list. | + +### Return type + +[**V1beta1ListOccurrencesResponse**](v1beta1ListOccurrencesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **GrafeasV1Beta1UpdateNote** +> V1beta1Note GrafeasV1Beta1UpdateNote(ctx, name1, body, optional) +Updates the specified note. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name1** | **string**| The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. | + **body** | [**V1beta1Note**](V1beta1Note.md)| The updated note. | + **optional** | ***GrafeasV1Beta1UpdateNoteOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a GrafeasV1Beta1UpdateNoteOpts struct + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **updateMask** | **optional.String**| The fields to update. | + +### Return type + +[**V1beta1Note**](v1beta1Note.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **GrafeasV1Beta1UpdateOccurrence** +> V1beta1Occurrence GrafeasV1Beta1UpdateOccurrence(ctx, name, body, optional) +Updates the specified occurrence. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. | + **body** | [**V1beta1Occurrence**](V1beta1Occurrence.md)| The updated occurrence. | + **optional** | ***GrafeasV1Beta1UpdateOccurrenceOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a GrafeasV1Beta1UpdateOccurrenceOpts struct + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **updateMask** | **optional.String**| The fields to update. | + +### Return type + +[**V1beta1Occurrence**](v1beta1Occurrence.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/0.2.0/grafeas/docs/Grafeasv1beta1Signature.md b/0.2.0/grafeas/docs/Grafeasv1beta1Signature.md new file mode 100644 index 0000000..6329fdc --- /dev/null +++ b/0.2.0/grafeas/docs/Grafeasv1beta1Signature.md @@ -0,0 +1,11 @@ +# Grafeasv1beta1Signature + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Signature** | **string** | The content of the signature, an opaque bytestring. The payload that this signature verifies MUST be unambiguously provided with the Signature during verification. A wrapper message might provide the payload explicitly. Alternatively, a message might have a canonical serialization that can always be unambiguously computed to derive the payload. | [optional] [default to null] +**PublicKeyId** | **string** | The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 conformant URI. * When possible, the `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: OpenPGP V4 public key fingerprint: * \"openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA\" See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more details on this scheme. RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER serialization): * \"ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU\" * \"nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5\" | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/HashHashType.md b/0.2.0/grafeas/docs/HashHashType.md new file mode 100644 index 0000000..5c1fdd8 --- /dev/null +++ b/0.2.0/grafeas/docs/HashHashType.md @@ -0,0 +1,9 @@ +# HashHashType + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/ImageBasis.md b/0.2.0/grafeas/docs/ImageBasis.md new file mode 100644 index 0000000..9b48cb9 --- /dev/null +++ b/0.2.0/grafeas/docs/ImageBasis.md @@ -0,0 +1,11 @@ +# ImageBasis + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResourceUrl** | **string** | Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images. | [optional] [default to null] +**Fingerprint** | [***ImageFingerprint**](imageFingerprint.md) | Required. Immutable. The fingerprint of the base image. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/ImageDerived.md b/0.2.0/grafeas/docs/ImageDerived.md new file mode 100644 index 0000000..4e53809 --- /dev/null +++ b/0.2.0/grafeas/docs/ImageDerived.md @@ -0,0 +1,13 @@ +# ImageDerived + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Fingerprint** | [***ImageFingerprint**](imageFingerprint.md) | Required. The fingerprint of the derived image. | [optional] [default to null] +**Distance** | **int32** | Output only. The number of layers by which this image differs from the associated image basis. | [optional] [default to null] +**LayerInfo** | [**[]ImageLayer**](imageLayer.md) | This contains layer-specific metadata, if populated it has length \"distance\" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer. | [optional] [default to null] +**BaseResourceUrl** | **string** | Output only. This contains the base image URL for the derived image occurrence. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/ImageFingerprint.md b/0.2.0/grafeas/docs/ImageFingerprint.md new file mode 100644 index 0000000..6500afd --- /dev/null +++ b/0.2.0/grafeas/docs/ImageFingerprint.md @@ -0,0 +1,12 @@ +# ImageFingerprint + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**V1Name** | **string** | Required. The layer ID of the final layer in the Docker image's v1 representation. | [optional] [default to null] +**V2Blob** | **[]string** | Required. The ordered list of v2 blobs that represent a given image. | [optional] [default to null] +**V2Name** | **string** | Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blob[bottom] [N] := sha256(v2_blob[N] + \" \" + v2_name[N+1]) Only the name of the final blob is kept. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/ImageLayer.md b/0.2.0/grafeas/docs/ImageLayer.md new file mode 100644 index 0000000..28fc2da --- /dev/null +++ b/0.2.0/grafeas/docs/ImageLayer.md @@ -0,0 +1,11 @@ +# ImageLayer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Directive** | [***LayerDirective**](LayerDirective.md) | Required. The recovered Dockerfile directive used to construct this layer. | [optional] [default to null] +**Arguments** | **string** | The recovered arguments to the Dockerfile directive. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/InTotoArtifactRule.md b/0.2.0/grafeas/docs/InTotoArtifactRule.md new file mode 100644 index 0000000..f10e519 --- /dev/null +++ b/0.2.0/grafeas/docs/InTotoArtifactRule.md @@ -0,0 +1,10 @@ +# InTotoArtifactRule + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ArtifactRule** | **[]string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/IntotoInToto.md b/0.2.0/grafeas/docs/IntotoInToto.md new file mode 100644 index 0000000..09d2d33 --- /dev/null +++ b/0.2.0/grafeas/docs/IntotoInToto.md @@ -0,0 +1,15 @@ +# IntotoInToto + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StepName** | **string** | This field identifies the name of the step in the supply chain. | [optional] [default to null] +**SigningKeys** | [**[]IntotoSigningKey**](intotoSigningKey.md) | This field contains the public keys that can be used to verify the signatures on the step metadata. | [optional] [default to null] +**ExpectedMaterials** | [**[]InTotoArtifactRule**](InTotoArtifactRule.md) | The following fields contain in-toto artifact rules identifying the artifacts that enter this supply chain step, and exit the supply chain step, i.e. materials and products of the step. | [optional] [default to null] +**ExpectedProducts** | [**[]InTotoArtifactRule**](InTotoArtifactRule.md) | | [optional] [default to null] +**ExpectedCommand** | **[]string** | This field contains the expected command used to perform the step. | [optional] [default to null] +**Threshold** | **string** | This field contains a value that indicates the minimum number of keys that need to be used to sign the step's in-toto link. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/IntotoLink.md b/0.2.0/grafeas/docs/IntotoLink.md new file mode 100644 index 0000000..56ab55b --- /dev/null +++ b/0.2.0/grafeas/docs/IntotoLink.md @@ -0,0 +1,14 @@ +# IntotoLink + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Command** | **[]string** | | [optional] [default to null] +**Materials** | [**[]IntotoLinkArtifact**](intotoLinkArtifact.md) | | [optional] [default to null] +**Products** | [**[]IntotoLinkArtifact**](intotoLinkArtifact.md) | Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials. | [optional] [default to null] +**Byproducts** | [***LinkByProducts**](LinkByProducts.md) | ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step. | [optional] [default to null] +**Environment** | [***LinkEnvironment**](LinkEnvironment.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/IntotoLinkArtifact.md b/0.2.0/grafeas/docs/IntotoLinkArtifact.md new file mode 100644 index 0000000..688d3ac --- /dev/null +++ b/0.2.0/grafeas/docs/IntotoLinkArtifact.md @@ -0,0 +1,11 @@ +# IntotoLinkArtifact + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResourceUri** | **string** | | [optional] [default to null] +**Hashes** | [***LinkArtifactHashes**](LinkArtifactHashes.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/IntotoSigningKey.md b/0.2.0/grafeas/docs/IntotoSigningKey.md new file mode 100644 index 0000000..a25b71f --- /dev/null +++ b/0.2.0/grafeas/docs/IntotoSigningKey.md @@ -0,0 +1,13 @@ +# IntotoSigningKey + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**KeyId** | **string** | key_id is an identifier for the signing key. | [optional] [default to null] +**KeyType** | **string** | This field identifies the specific signing method. Eg: \"rsa\", \"ed25519\", and \"ecdsa\". | [optional] [default to null] +**PublicKeyValue** | **string** | This field contains the actual public key. | [optional] [default to null] +**KeyScheme** | **string** | This field contains the corresponding signature scheme. Eg: \"rsassa-pss-sha256\". | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/LayerDirective.md b/0.2.0/grafeas/docs/LayerDirective.md new file mode 100644 index 0000000..445dd91 --- /dev/null +++ b/0.2.0/grafeas/docs/LayerDirective.md @@ -0,0 +1,9 @@ +# LayerDirective + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/LinkArtifactHashes.md b/0.2.0/grafeas/docs/LinkArtifactHashes.md new file mode 100644 index 0000000..d6042f5 --- /dev/null +++ b/0.2.0/grafeas/docs/LinkArtifactHashes.md @@ -0,0 +1,10 @@ +# LinkArtifactHashes + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Sha256** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/LinkByProducts.md b/0.2.0/grafeas/docs/LinkByProducts.md new file mode 100644 index 0000000..ddf72c7 --- /dev/null +++ b/0.2.0/grafeas/docs/LinkByProducts.md @@ -0,0 +1,10 @@ +# LinkByProducts + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CustomValues** | **map[string]string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/LinkEnvironment.md b/0.2.0/grafeas/docs/LinkEnvironment.md new file mode 100644 index 0000000..4647157 --- /dev/null +++ b/0.2.0/grafeas/docs/LinkEnvironment.md @@ -0,0 +1,10 @@ +# LinkEnvironment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CustomValues** | **map[string]string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/PackageArchitecture.md b/0.2.0/grafeas/docs/PackageArchitecture.md new file mode 100644 index 0000000..903eb48 --- /dev/null +++ b/0.2.0/grafeas/docs/PackageArchitecture.md @@ -0,0 +1,9 @@ +# PackageArchitecture + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/PackageDistribution.md b/0.2.0/grafeas/docs/PackageDistribution.md new file mode 100644 index 0000000..c15a9fc --- /dev/null +++ b/0.2.0/grafeas/docs/PackageDistribution.md @@ -0,0 +1,15 @@ +# PackageDistribution + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CpeUri** | **string** | Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. | [optional] [default to null] +**Architecture** | [***PackageArchitecture**](packageArchitecture.md) | The CPU architecture for which packages in this distribution channel were built. | [optional] [default to null] +**LatestVersion** | [***PackageVersion**](packageVersion.md) | The latest available version of this package in this distribution channel. | [optional] [default to null] +**Maintainer** | **string** | A freeform string denoting the maintainer of this package. | [optional] [default to null] +**Url** | **string** | The distribution channel-specific homepage for this package. | [optional] [default to null] +**Description** | **string** | The distribution channel-specific description of this package. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/PackageInfoNoteExternalRef.md b/0.2.0/grafeas/docs/PackageInfoNoteExternalRef.md new file mode 100644 index 0000000..7a226d2 --- /dev/null +++ b/0.2.0/grafeas/docs/PackageInfoNoteExternalRef.md @@ -0,0 +1,13 @@ +# PackageInfoNoteExternalRef + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Category** | [***ExternalRefCategory**](ExternalRefCategory.md) | | [optional] [default to null] +**Type_** | **string** | | [optional] [default to null] +**Locator** | **string** | | [optional] [default to null] +**Comment** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/PackageInstallation.md b/0.2.0/grafeas/docs/PackageInstallation.md new file mode 100644 index 0000000..0589f78 --- /dev/null +++ b/0.2.0/grafeas/docs/PackageInstallation.md @@ -0,0 +1,11 @@ +# PackageInstallation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Output only. The name of the installed package. | [optional] [default to null] +**Location** | [**[]V1beta1packageLocation**](v1beta1packageLocation.md) | Required. All of the places within the filesystem versions of this package have been found. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/PackagePackage.md b/0.2.0/grafeas/docs/PackagePackage.md new file mode 100644 index 0000000..c250883 --- /dev/null +++ b/0.2.0/grafeas/docs/PackagePackage.md @@ -0,0 +1,11 @@ +# PackagePackage + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Required. Immutable. The name of the package. | [optional] [default to null] +**Distribution** | [**[]PackageDistribution**](packageDistribution.md) | The various channels by which a package is distributed. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/PackageVersion.md b/0.2.0/grafeas/docs/PackageVersion.md new file mode 100644 index 0000000..f425e87 --- /dev/null +++ b/0.2.0/grafeas/docs/PackageVersion.md @@ -0,0 +1,14 @@ +# PackageVersion + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Epoch** | **int32** | Used to correct mistakes in the version numbering scheme. | [optional] [default to null] +**Name** | **string** | Required only when version kind is NORMAL. The main part of the version name. | [optional] [default to null] +**Revision** | **string** | The iteration of the package build from the above version. | [optional] [default to null] +**Inclusive** | **bool** | 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. | [optional] [default to null] +**Kind** | [***VersionVersionKind**](VersionVersionKind.md) | Required. Distinguishes between sentinel MIN/MAX versions and normal versions. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/ProtobufAny.md b/0.2.0/grafeas/docs/ProtobufAny.md new file mode 100644 index 0000000..b70aaa3 --- /dev/null +++ b/0.2.0/grafeas/docs/ProtobufAny.md @@ -0,0 +1,10 @@ +# ProtobufAny + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type_** | **string** | A URL/resource name that uniquely identifies the type of the serialized protocol buffer message. This string must contain at least one \"/\" character. The last segment of the URL's path must represent the fully qualified name of the type (as in `path/google.protobuf.Duration`). The name should be in a canonical form (e.g., leading \".\" is not accepted). In practice, teams usually precompile into the binary all types that they expect it to use in the context of Any. However, for URLs which use the scheme `http`, `https`, or no scheme, one can optionally set up a type server that maps type URLs to message definitions as follows: * If no scheme is provided, `https` is assumed. * An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error. * Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.) Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be used with implementation specific semantics. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/ProvenanceBuildProvenance.md b/0.2.0/grafeas/docs/ProvenanceBuildProvenance.md new file mode 100644 index 0000000..1fe7a09 --- /dev/null +++ b/0.2.0/grafeas/docs/ProvenanceBuildProvenance.md @@ -0,0 +1,22 @@ +# ProvenanceBuildProvenance + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | Required. Unique identifier of the build. | [optional] [default to null] +**ProjectId** | **string** | ID of the project. | [optional] [default to null] +**Commands** | [**[]ProvenanceCommand**](provenanceCommand.md) | Commands requested by the build. | [optional] [default to null] +**BuiltArtifacts** | [**[]V1beta1provenanceArtifact**](v1beta1provenanceArtifact.md) | Output of the build. | [optional] [default to null] +**CreateTime** | [**time.Time**](time.Time.md) | Time at which the build was created. | [optional] [default to null] +**StartTime** | [**time.Time**](time.Time.md) | Time at which execution of the build was started. | [optional] [default to null] +**EndTime** | [**time.Time**](time.Time.md) | Time at which execution of the build was finished. | [optional] [default to null] +**Creator** | **string** | E-mail address of the user who initiated this build. Note that this was the user's e-mail address at the time the build was initiated; this address may not represent the same end-user for all time. | [optional] [default to null] +**LogsUri** | **string** | URI where any logs for this provenance were written. | [optional] [default to null] +**SourceProvenance** | [***ProvenanceSource**](provenanceSource.md) | Details of the Source input to the build. | [optional] [default to null] +**TriggerId** | **string** | Trigger identifier if the build was triggered automatically; empty if not. | [optional] [default to null] +**BuildOptions** | **map[string]string** | Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details. | [optional] [default to null] +**BuilderVersion** | **string** | Version string of the builder at the time this build was executed. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/ProvenanceCommand.md b/0.2.0/grafeas/docs/ProvenanceCommand.md new file mode 100644 index 0000000..45507b6 --- /dev/null +++ b/0.2.0/grafeas/docs/ProvenanceCommand.md @@ -0,0 +1,15 @@ +# ProvenanceCommand + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Required. Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`. | [optional] [default to null] +**Env** | **[]string** | Environment variables set before running this command. | [optional] [default to null] +**Args** | **[]string** | Command-line arguments used when executing this command. | [optional] [default to null] +**Dir** | **string** | Working directory (relative to project source root) used when running this command. | [optional] [default to null] +**Id** | **string** | Optional unique identifier for this command, used in wait_for to reference this command as a dependency. | [optional] [default to null] +**WaitFor** | **[]string** | The ID(s) of the command(s) that this command depends on. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/ProvenanceFileHashes.md b/0.2.0/grafeas/docs/ProvenanceFileHashes.md new file mode 100644 index 0000000..266e581 --- /dev/null +++ b/0.2.0/grafeas/docs/ProvenanceFileHashes.md @@ -0,0 +1,10 @@ +# ProvenanceFileHashes + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FileHash** | [**[]ProvenanceHash**](provenanceHash.md) | Required. Collection of file hashes. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/ProvenanceHash.md b/0.2.0/grafeas/docs/ProvenanceHash.md new file mode 100644 index 0000000..fe9aede --- /dev/null +++ b/0.2.0/grafeas/docs/ProvenanceHash.md @@ -0,0 +1,11 @@ +# ProvenanceHash + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type_** | [***HashHashType**](HashHashType.md) | Required. The type of hash that was performed. | [optional] [default to null] +**Value** | **string** | Required. The hash value. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/ProvenanceSource.md b/0.2.0/grafeas/docs/ProvenanceSource.md new file mode 100644 index 0000000..ce4cbbe --- /dev/null +++ b/0.2.0/grafeas/docs/ProvenanceSource.md @@ -0,0 +1,13 @@ +# ProvenanceSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ArtifactStorageSourceUri** | **string** | If provided, the input binary artifacts for the build came from this location. | [optional] [default to null] +**FileHashes** | [**map[string]ProvenanceFileHashes**](provenanceFileHashes.md) | Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (.tar.gz), the FileHash will be for the single path to that file. | [optional] [default to null] +**Context** | [***SourceSourceContext**](sourceSourceContext.md) | If provided, the source code used for the build came from this location. | [optional] [default to null] +**AdditionalContexts** | [**[]SourceSourceContext**](sourceSourceContext.md) | If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/RpcStatus.md b/0.2.0/grafeas/docs/RpcStatus.md new file mode 100644 index 0000000..52a1849 --- /dev/null +++ b/0.2.0/grafeas/docs/RpcStatus.md @@ -0,0 +1,12 @@ +# RpcStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Code** | **int32** | The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. | [optional] [default to null] +**Message** | **string** | A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client. | [optional] [default to null] +**Details** | [**[]ProtobufAny**](protobufAny.md) | A list of messages that carry the error details. There is a common set of message types for APIs to use. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/SourceAliasContext.md b/0.2.0/grafeas/docs/SourceAliasContext.md new file mode 100644 index 0000000..988ee0c --- /dev/null +++ b/0.2.0/grafeas/docs/SourceAliasContext.md @@ -0,0 +1,11 @@ +# SourceAliasContext + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Kind** | [***AliasContextKind**](AliasContextKind.md) | The alias kind. | [optional] [default to null] +**Name** | **string** | The alias name. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/SourceCloudRepoSourceContext.md b/0.2.0/grafeas/docs/SourceCloudRepoSourceContext.md new file mode 100644 index 0000000..8d99968 --- /dev/null +++ b/0.2.0/grafeas/docs/SourceCloudRepoSourceContext.md @@ -0,0 +1,12 @@ +# SourceCloudRepoSourceContext + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RepoId** | [***SourceRepoId**](sourceRepoId.md) | The ID of the repo. | [optional] [default to null] +**RevisionId** | **string** | A revision ID. | [optional] [default to null] +**AliasContext** | [***SourceAliasContext**](sourceAliasContext.md) | An alias, which may be a branch or tag. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/SourceGerritSourceContext.md b/0.2.0/grafeas/docs/SourceGerritSourceContext.md new file mode 100644 index 0000000..cfd0d74 --- /dev/null +++ b/0.2.0/grafeas/docs/SourceGerritSourceContext.md @@ -0,0 +1,13 @@ +# SourceGerritSourceContext + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**HostUri** | **string** | The URI of a running Gerrit instance. | [optional] [default to null] +**GerritProject** | **string** | The full project name within the host. Projects may be nested, so \"project/subproject\" is a valid project name. The \"repo name\" is the hostURI/project. | [optional] [default to null] +**RevisionId** | **string** | A revision (commit) ID. | [optional] [default to null] +**AliasContext** | [***SourceAliasContext**](sourceAliasContext.md) | An alias, which may be a branch or tag. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/SourceGitSourceContext.md b/0.2.0/grafeas/docs/SourceGitSourceContext.md new file mode 100644 index 0000000..2ad3cf4 --- /dev/null +++ b/0.2.0/grafeas/docs/SourceGitSourceContext.md @@ -0,0 +1,11 @@ +# SourceGitSourceContext + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Url** | **string** | Git repository URL. | [optional] [default to null] +**RevisionId** | **string** | Git commit hash. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/SourceProjectRepoId.md b/0.2.0/grafeas/docs/SourceProjectRepoId.md new file mode 100644 index 0000000..ad514c1 --- /dev/null +++ b/0.2.0/grafeas/docs/SourceProjectRepoId.md @@ -0,0 +1,11 @@ +# SourceProjectRepoId + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProjectId** | **string** | The ID of the project. | [optional] [default to null] +**RepoName** | **string** | The name of the repo. Leave empty for the default repo. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/SourceRepoId.md b/0.2.0/grafeas/docs/SourceRepoId.md new file mode 100644 index 0000000..cf9a0c9 --- /dev/null +++ b/0.2.0/grafeas/docs/SourceRepoId.md @@ -0,0 +1,11 @@ +# SourceRepoId + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProjectRepoId** | [***SourceProjectRepoId**](sourceProjectRepoId.md) | A combination of a project ID and a repo name. | [optional] [default to null] +**Uid** | **string** | A server-assigned, globally unique identifier. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/SourceSourceContext.md b/0.2.0/grafeas/docs/SourceSourceContext.md new file mode 100644 index 0000000..2f33d3d --- /dev/null +++ b/0.2.0/grafeas/docs/SourceSourceContext.md @@ -0,0 +1,13 @@ +# SourceSourceContext + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CloudRepo** | [***SourceCloudRepoSourceContext**](sourceCloudRepoSourceContext.md) | A SourceContext referring to a revision in a Google Cloud Source Repo. | [optional] [default to null] +**Gerrit** | [***SourceGerritSourceContext**](sourceGerritSourceContext.md) | A SourceContext referring to a Gerrit project. | [optional] [default to null] +**Git** | [***SourceGitSourceContext**](sourceGitSourceContext.md) | A SourceContext referring to any third party Git repo (e.g., GitHub). | [optional] [default to null] +**Labels** | **map[string]string** | Labels with user defined metadata. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/SpdxDocumentNote.md b/0.2.0/grafeas/docs/SpdxDocumentNote.md new file mode 100644 index 0000000..ccf85ac --- /dev/null +++ b/0.2.0/grafeas/docs/SpdxDocumentNote.md @@ -0,0 +1,11 @@ +# SpdxDocumentNote + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SpdxVersion** | **string** | | [optional] [default to null] +**DataLicence** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/SpdxDocumentOccurrence.md b/0.2.0/grafeas/docs/SpdxDocumentOccurrence.md new file mode 100644 index 0000000..dca2a99 --- /dev/null +++ b/0.2.0/grafeas/docs/SpdxDocumentOccurrence.md @@ -0,0 +1,18 @@ +# SpdxDocumentOccurrence + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | [optional] [default to null] +**Title** | **string** | | [optional] [default to null] +**Namespace** | **string** | | [optional] [default to null] +**ExternalDocumentRefs** | **[]string** | | [optional] [default to null] +**LicenseListVersion** | **string** | | [optional] [default to null] +**Creators** | **[]string** | | [optional] [default to null] +**CreateTime** | [**time.Time**](time.Time.md) | | [optional] [default to null] +**CreatorComment** | **string** | | [optional] [default to null] +**DocumentComment** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/SpdxFileNote.md b/0.2.0/grafeas/docs/SpdxFileNote.md new file mode 100644 index 0000000..06c209e --- /dev/null +++ b/0.2.0/grafeas/docs/SpdxFileNote.md @@ -0,0 +1,12 @@ +# SpdxFileNote + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Title** | **string** | | [optional] [default to null] +**FileType** | [***FileNoteFileType**](FileNoteFileType.md) | | [optional] [default to null] +**Checksum** | **[]string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/SpdxFileOccurrence.md b/0.2.0/grafeas/docs/SpdxFileOccurrence.md new file mode 100644 index 0000000..6c7fa96 --- /dev/null +++ b/0.2.0/grafeas/docs/SpdxFileOccurrence.md @@ -0,0 +1,17 @@ +# SpdxFileOccurrence + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | [optional] [default to null] +**LicenseConcluded** | [***SpdxLicense**](spdxLicense.md) | | [optional] [default to null] +**FilesLicenseInfo** | **[]string** | | [optional] [default to null] +**Copyright** | **string** | | [optional] [default to null] +**Comment** | **string** | | [optional] [default to null] +**Notice** | **string** | | [optional] [default to null] +**Contributors** | **[]string** | | [optional] [default to null] +**Attributions** | **[]string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/SpdxLicense.md b/0.2.0/grafeas/docs/SpdxLicense.md new file mode 100644 index 0000000..fd82686 --- /dev/null +++ b/0.2.0/grafeas/docs/SpdxLicense.md @@ -0,0 +1,11 @@ +# SpdxLicense + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Expression** | **string** | | [optional] [default to null] +**Comments** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/SpdxPackageInfoNote.md b/0.2.0/grafeas/docs/SpdxPackageInfoNote.md new file mode 100644 index 0000000..6547b72 --- /dev/null +++ b/0.2.0/grafeas/docs/SpdxPackageInfoNote.md @@ -0,0 +1,26 @@ +# SpdxPackageInfoNote + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Title** | **string** | | [optional] [default to null] +**Version** | **string** | | [optional] [default to null] +**Supplier** | **string** | | [optional] [default to null] +**Originator** | **string** | | [optional] [default to null] +**DownloadLocation** | **string** | | [optional] [default to null] +**Analyzed** | **bool** | | [optional] [default to null] +**VerificationCode** | **string** | | [optional] [default to null] +**Checksum** | **string** | | [optional] [default to null] +**HomePage** | **string** | | [optional] [default to null] +**FilesLicenseInfo** | **[]string** | | [optional] [default to null] +**LicenseDeclared** | [***SpdxLicense**](spdxLicense.md) | | [optional] [default to null] +**Copyright** | **string** | | [optional] [default to null] +**SummaryDescription** | **string** | | [optional] [default to null] +**DetailedDescription** | **string** | | [optional] [default to null] +**ExternalRefs** | [**[]PackageInfoNoteExternalRef**](PackageInfoNoteExternalRef.md) | | [optional] [default to null] +**Attribution** | **string** | | [optional] [default to null] +**PackageType** | **string** | The type of package: OS, MAVEN, GO, GO_STDLIB, etc. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/SpdxPackageInfoOccurrence.md b/0.2.0/grafeas/docs/SpdxPackageInfoOccurrence.md new file mode 100644 index 0000000..6212eff --- /dev/null +++ b/0.2.0/grafeas/docs/SpdxPackageInfoOccurrence.md @@ -0,0 +1,19 @@ +# SpdxPackageInfoOccurrence + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | | [optional] [default to null] +**Filename** | **string** | | [optional] [default to null] +**SourceInfo** | **string** | | [optional] [default to null] +**LicenseConcluded** | [***SpdxLicense**](spdxLicense.md) | | [optional] [default to null] +**Comment** | **string** | | [optional] [default to null] +**PackageType** | **string** | The type of package: OS, MAVEN, GO, GO_STDLIB, etc. | [optional] [default to null] +**Title** | **string** | | [optional] [default to null] +**Version** | **string** | | [optional] [default to null] +**HomePage** | **string** | | [optional] [default to null] +**SummaryDescription** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/SpdxRelationshipNote.md b/0.2.0/grafeas/docs/SpdxRelationshipNote.md new file mode 100644 index 0000000..f6bbc65 --- /dev/null +++ b/0.2.0/grafeas/docs/SpdxRelationshipNote.md @@ -0,0 +1,10 @@ +# SpdxRelationshipNote + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type_** | [***SpdxRelationshipType**](spdxRelationshipType.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/SpdxRelationshipOccurrence.md b/0.2.0/grafeas/docs/SpdxRelationshipOccurrence.md new file mode 100644 index 0000000..524b182 --- /dev/null +++ b/0.2.0/grafeas/docs/SpdxRelationshipOccurrence.md @@ -0,0 +1,13 @@ +# SpdxRelationshipOccurrence + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Source** | **string** | | [optional] [default to null] +**Target** | **string** | | [optional] [default to null] +**Type_** | [***SpdxRelationshipType**](spdxRelationshipType.md) | | [optional] [default to null] +**Comment** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/SpdxRelationshipType.md b/0.2.0/grafeas/docs/SpdxRelationshipType.md new file mode 100644 index 0000000..1fb5769 --- /dev/null +++ b/0.2.0/grafeas/docs/SpdxRelationshipType.md @@ -0,0 +1,9 @@ +# SpdxRelationshipType + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/V1beta1BatchCreateNotesResponse.md b/0.2.0/grafeas/docs/V1beta1BatchCreateNotesResponse.md new file mode 100644 index 0000000..64251e6 --- /dev/null +++ b/0.2.0/grafeas/docs/V1beta1BatchCreateNotesResponse.md @@ -0,0 +1,10 @@ +# V1beta1BatchCreateNotesResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Notes** | [**[]V1beta1Note**](v1beta1Note.md) | The notes that were created. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/V1beta1BatchCreateOccurrencesResponse.md b/0.2.0/grafeas/docs/V1beta1BatchCreateOccurrencesResponse.md new file mode 100644 index 0000000..4c96b60 --- /dev/null +++ b/0.2.0/grafeas/docs/V1beta1BatchCreateOccurrencesResponse.md @@ -0,0 +1,10 @@ +# V1beta1BatchCreateOccurrencesResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Occurrences** | [**[]V1beta1Occurrence**](v1beta1Occurrence.md) | The occurrences that were created. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/V1beta1Envelope.md b/0.2.0/grafeas/docs/V1beta1Envelope.md new file mode 100644 index 0000000..6a62076 --- /dev/null +++ b/0.2.0/grafeas/docs/V1beta1Envelope.md @@ -0,0 +1,12 @@ +# V1beta1Envelope + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Payload** | **string** | | [optional] [default to null] +**PayloadType** | **string** | | [optional] [default to null] +**Signatures** | [**[]V1beta1EnvelopeSignature**](v1beta1EnvelopeSignature.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/V1beta1EnvelopeSignature.md b/0.2.0/grafeas/docs/V1beta1EnvelopeSignature.md new file mode 100644 index 0000000..fc44da7 --- /dev/null +++ b/0.2.0/grafeas/docs/V1beta1EnvelopeSignature.md @@ -0,0 +1,11 @@ +# V1beta1EnvelopeSignature + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Sig** | **string** | | [optional] [default to null] +**Keyid** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/V1beta1ListNoteOccurrencesResponse.md b/0.2.0/grafeas/docs/V1beta1ListNoteOccurrencesResponse.md new file mode 100644 index 0000000..92b9ca2 --- /dev/null +++ b/0.2.0/grafeas/docs/V1beta1ListNoteOccurrencesResponse.md @@ -0,0 +1,11 @@ +# V1beta1ListNoteOccurrencesResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Occurrences** | [**[]V1beta1Occurrence**](v1beta1Occurrence.md) | The occurrences attached to the specified note. | [optional] [default to null] +**NextPageToken** | **string** | Token to provide to skip to a particular spot in the list. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/V1beta1ListNotesResponse.md b/0.2.0/grafeas/docs/V1beta1ListNotesResponse.md new file mode 100644 index 0000000..ed31ab9 --- /dev/null +++ b/0.2.0/grafeas/docs/V1beta1ListNotesResponse.md @@ -0,0 +1,11 @@ +# V1beta1ListNotesResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Notes** | [**[]V1beta1Note**](v1beta1Note.md) | The notes requested. | [optional] [default to null] +**NextPageToken** | **string** | The next pagination token in the list response. It should be used as `page_token` for the following request. An empty value means no more results. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/V1beta1ListOccurrencesResponse.md b/0.2.0/grafeas/docs/V1beta1ListOccurrencesResponse.md new file mode 100644 index 0000000..08b4e98 --- /dev/null +++ b/0.2.0/grafeas/docs/V1beta1ListOccurrencesResponse.md @@ -0,0 +1,11 @@ +# V1beta1ListOccurrencesResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Occurrences** | [**[]V1beta1Occurrence**](v1beta1Occurrence.md) | The occurrences requested. | [optional] [default to null] +**NextPageToken** | **string** | The next pagination token in the list response. It should be used as `page_token` for the following request. An empty value means no more results. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/V1beta1Note.md b/0.2.0/grafeas/docs/V1beta1Note.md new file mode 100644 index 0000000..c58c436 --- /dev/null +++ b/0.2.0/grafeas/docs/V1beta1Note.md @@ -0,0 +1,30 @@ +# V1beta1Note + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. | [optional] [default to null] +**ShortDescription** | **string** | A one sentence description of this note. | [optional] [default to null] +**LongDescription** | **string** | A detailed description of this note. | [optional] [default to null] +**Kind** | [***V1beta1NoteKind**](v1beta1NoteKind.md) | Output only. The type of analysis. This field can be used as a filter in list requests. | [optional] [default to null] +**RelatedUrl** | [**[]V1beta1RelatedUrl**](v1beta1RelatedUrl.md) | URLs associated with this note. | [optional] [default to null] +**ExpirationTime** | [**time.Time**](time.Time.md) | Time of expiration for this note. Empty if note does not expire. | [optional] [default to null] +**CreateTime** | [**time.Time**](time.Time.md) | Output only. The time this note was created. This field can be used as a filter in list requests. | [optional] [default to null] +**UpdateTime** | [**time.Time**](time.Time.md) | Output only. The time this note was last updated. This field can be used as a filter in list requests. | [optional] [default to null] +**RelatedNoteNames** | **[]string** | Other notes related to this note. | [optional] [default to null] +**Vulnerability** | [***VulnerabilityVulnerability**](vulnerabilityVulnerability.md) | A note describing a package vulnerability. | [optional] [default to null] +**Build** | [***BuildBuild**](buildBuild.md) | A note describing build provenance for a verifiable build. | [optional] [default to null] +**BaseImage** | [***ImageBasis**](imageBasis.md) | A note describing a base image. | [optional] [default to null] +**Package_** | [***PackagePackage**](packagePackage.md) | A note describing a package hosted by various package managers. | [optional] [default to null] +**Deployable** | [***DeploymentDeployable**](deploymentDeployable.md) | A note describing something that can be deployed. | [optional] [default to null] +**Discovery** | [***DiscoveryDiscovery**](discoveryDiscovery.md) | A note describing the initial analysis of a resource. | [optional] [default to null] +**AttestationAuthority** | [***AttestationAuthority**](attestationAuthority.md) | A note describing an attestation role. | [optional] [default to null] +**Intoto** | [***IntotoInToto**](intotoInToto.md) | A note describing an in-toto link. | [optional] [default to null] +**Sbom** | [***SpdxDocumentNote**](spdxDocumentNote.md) | A note describing a software bill of materials. | [optional] [default to null] +**SpdxPackage** | [***SpdxPackageInfoNote**](spdxPackageInfoNote.md) | A note describing an SPDX Package. | [optional] [default to null] +**SpdxFile** | [***SpdxFileNote**](spdxFileNote.md) | A note describing an SPDX File. | [optional] [default to null] +**SpdxRelationship** | [***SpdxRelationshipNote**](spdxRelationshipNote.md) | A note describing an SPDX File. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/V1beta1NoteKind.md b/0.2.0/grafeas/docs/V1beta1NoteKind.md new file mode 100644 index 0000000..35294be --- /dev/null +++ b/0.2.0/grafeas/docs/V1beta1NoteKind.md @@ -0,0 +1,9 @@ +# V1beta1NoteKind + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/V1beta1Occurrence.md b/0.2.0/grafeas/docs/V1beta1Occurrence.md new file mode 100644 index 0000000..a99d7d3 --- /dev/null +++ b/0.2.0/grafeas/docs/V1beta1Occurrence.md @@ -0,0 +1,29 @@ +# V1beta1Occurrence + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. | [optional] [default to null] +**Resource** | [***V1beta1Resource**](v1beta1Resource.md) | Required. Immutable. The resource for which the occurrence applies. | [optional] [default to null] +**NoteName** | **string** | 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. | [optional] [default to null] +**Kind** | [***V1beta1NoteKind**](v1beta1NoteKind.md) | Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. | [optional] [default to null] +**Remediation** | **string** | A description of actions that can be taken to remedy the note. | [optional] [default to null] +**CreateTime** | [**time.Time**](time.Time.md) | Output only. The time this occurrence was created. | [optional] [default to null] +**UpdateTime** | [**time.Time**](time.Time.md) | Output only. The time this occurrence was last updated. | [optional] [default to null] +**Vulnerability** | [***V1beta1vulnerabilityDetails**](v1beta1vulnerabilityDetails.md) | Describes a security vulnerability. | [optional] [default to null] +**Build** | [***V1beta1buildDetails**](v1beta1buildDetails.md) | Describes a verifiable build. | [optional] [default to null] +**DerivedImage** | [***V1beta1imageDetails**](v1beta1imageDetails.md) | Describes how this resource derives from the basis in the associated note. | [optional] [default to null] +**Installation** | [***V1beta1packageDetails**](v1beta1packageDetails.md) | Describes the installation of a package on the linked resource. | [optional] [default to null] +**Deployment** | [***V1beta1deploymentDetails**](v1beta1deploymentDetails.md) | Describes the deployment of an artifact on a runtime. | [optional] [default to null] +**Discovered** | [***V1beta1discoveryDetails**](v1beta1discoveryDetails.md) | Describes when a resource was discovered. | [optional] [default to null] +**Attestation** | [***V1beta1attestationDetails**](v1beta1attestationDetails.md) | Describes an attestation of an artifact. | [optional] [default to null] +**Intoto** | [***V1beta1intotoDetails**](v1beta1intotoDetails.md) | Describes a specific in-toto link. | [optional] [default to null] +**Sbom** | [***SpdxDocumentOccurrence**](spdxDocumentOccurrence.md) | Describes a specific software bill of materials document. | [optional] [default to null] +**SpdxPackage** | [***SpdxPackageInfoOccurrence**](spdxPackageInfoOccurrence.md) | Describes a specific SPDX Package. | [optional] [default to null] +**SpdxFile** | [***SpdxFileOccurrence**](spdxFileOccurrence.md) | Describes a specific SPDX File. | [optional] [default to null] +**SpdxRelationship** | [***SpdxRelationshipOccurrence**](spdxRelationshipOccurrence.md) | Describes a specific SPDX Relationship. | [optional] [default to null] +**Envelope** | [***V1beta1Envelope**](v1beta1Envelope.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/V1beta1RelatedUrl.md b/0.2.0/grafeas/docs/V1beta1RelatedUrl.md new file mode 100644 index 0000000..4d78105 --- /dev/null +++ b/0.2.0/grafeas/docs/V1beta1RelatedUrl.md @@ -0,0 +1,11 @@ +# V1beta1RelatedUrl + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Url** | **string** | Specific URL associated with the resource. | [optional] [default to null] +**Label** | **string** | Label to describe usage of the URL. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/V1beta1Resource.md b/0.2.0/grafeas/docs/V1beta1Resource.md new file mode 100644 index 0000000..f9add51 --- /dev/null +++ b/0.2.0/grafeas/docs/V1beta1Resource.md @@ -0,0 +1,12 @@ +# V1beta1Resource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - \"Debian\". | [optional] [default to null] +**Uri** | **string** | Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image. | [optional] [default to null] +**ContentHash** | [***ProvenanceHash**](provenanceHash.md) | Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/V1beta1VulnerabilityOccurrencesSummary.md b/0.2.0/grafeas/docs/V1beta1VulnerabilityOccurrencesSummary.md new file mode 100644 index 0000000..b76bd36 --- /dev/null +++ b/0.2.0/grafeas/docs/V1beta1VulnerabilityOccurrencesSummary.md @@ -0,0 +1,10 @@ +# V1beta1VulnerabilityOccurrencesSummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Counts** | [**[]VulnerabilityOccurrencesSummaryFixableTotalByDigest**](VulnerabilityOccurrencesSummaryFixableTotalByDigest.md) | A listing by resource of the number of fixable and total vulnerabilities. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/V1beta1attestationDetails.md b/0.2.0/grafeas/docs/V1beta1attestationDetails.md new file mode 100644 index 0000000..f41c0b6 --- /dev/null +++ b/0.2.0/grafeas/docs/V1beta1attestationDetails.md @@ -0,0 +1,10 @@ +# V1beta1attestationDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attestation** | [***AttestationAttestation**](attestationAttestation.md) | Required. Attestation for the resource. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/V1beta1buildDetails.md b/0.2.0/grafeas/docs/V1beta1buildDetails.md new file mode 100644 index 0000000..d8ea357 --- /dev/null +++ b/0.2.0/grafeas/docs/V1beta1buildDetails.md @@ -0,0 +1,11 @@ +# V1beta1buildDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Provenance** | [***ProvenanceBuildProvenance**](provenanceBuildProvenance.md) | Required. The actual provenance for the build. | [optional] [default to null] +**ProvenanceBytes** | **string** | 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. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/V1beta1deploymentDetails.md b/0.2.0/grafeas/docs/V1beta1deploymentDetails.md new file mode 100644 index 0000000..f256d9f --- /dev/null +++ b/0.2.0/grafeas/docs/V1beta1deploymentDetails.md @@ -0,0 +1,10 @@ +# V1beta1deploymentDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Deployment** | [***DeploymentDeployment**](deploymentDeployment.md) | Required. Deployment history for the resource. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/V1beta1discoveryDetails.md b/0.2.0/grafeas/docs/V1beta1discoveryDetails.md new file mode 100644 index 0000000..b1159b5 --- /dev/null +++ b/0.2.0/grafeas/docs/V1beta1discoveryDetails.md @@ -0,0 +1,10 @@ +# V1beta1discoveryDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Discovered** | [***DiscoveryDiscovered**](discoveryDiscovered.md) | Required. Analysis status for the discovered resource. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/V1beta1imageDetails.md b/0.2.0/grafeas/docs/V1beta1imageDetails.md new file mode 100644 index 0000000..8f14be1 --- /dev/null +++ b/0.2.0/grafeas/docs/V1beta1imageDetails.md @@ -0,0 +1,10 @@ +# V1beta1imageDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DerivedImage** | [***ImageDerived**](imageDerived.md) | Required. Immutable. The child image derived from the base image. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/V1beta1intotoDetails.md b/0.2.0/grafeas/docs/V1beta1intotoDetails.md new file mode 100644 index 0000000..43ab266 --- /dev/null +++ b/0.2.0/grafeas/docs/V1beta1intotoDetails.md @@ -0,0 +1,11 @@ +# V1beta1intotoDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Signatures** | [**[]V1beta1intotoSignature**](v1beta1intotoSignature.md) | | [optional] [default to null] +**Signed** | [***IntotoLink**](intotoLink.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/V1beta1intotoSignature.md b/0.2.0/grafeas/docs/V1beta1intotoSignature.md new file mode 100644 index 0000000..a56abf1 --- /dev/null +++ b/0.2.0/grafeas/docs/V1beta1intotoSignature.md @@ -0,0 +1,11 @@ +# V1beta1intotoSignature + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Keyid** | **string** | | [optional] [default to null] +**Sig** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/V1beta1packageDetails.md b/0.2.0/grafeas/docs/V1beta1packageDetails.md new file mode 100644 index 0000000..a840a24 --- /dev/null +++ b/0.2.0/grafeas/docs/V1beta1packageDetails.md @@ -0,0 +1,10 @@ +# V1beta1packageDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Installation** | [***PackageInstallation**](packageInstallation.md) | Required. Where the package was installed. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/V1beta1packageLocation.md b/0.2.0/grafeas/docs/V1beta1packageLocation.md new file mode 100644 index 0000000..20e8a17 --- /dev/null +++ b/0.2.0/grafeas/docs/V1beta1packageLocation.md @@ -0,0 +1,12 @@ +# V1beta1packageLocation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CpeUri** | **string** | Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. | [optional] [default to null] +**Version** | [***PackageVersion**](packageVersion.md) | The version installed at this location. | [optional] [default to null] +**Path** | **string** | The path from which we gathered that this package/version is installed. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/V1beta1provenanceArtifact.md b/0.2.0/grafeas/docs/V1beta1provenanceArtifact.md new file mode 100644 index 0000000..6584634 --- /dev/null +++ b/0.2.0/grafeas/docs/V1beta1provenanceArtifact.md @@ -0,0 +1,12 @@ +# V1beta1provenanceArtifact + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Checksum** | **string** | Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container. | [optional] [default to null] +**Id** | **string** | Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`. | [optional] [default to null] +**Names** | **[]string** | Related artifact names. 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`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/V1beta1vulnerabilityDetails.md b/0.2.0/grafeas/docs/V1beta1vulnerabilityDetails.md new file mode 100644 index 0000000..211f691 --- /dev/null +++ b/0.2.0/grafeas/docs/V1beta1vulnerabilityDetails.md @@ -0,0 +1,17 @@ +# V1beta1vulnerabilityDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type_** | **string** | | [optional] [default to null] +**Severity** | [***VulnerabilitySeverity**](vulnerabilitySeverity.md) | Output only. The note provider assigned Severity of the vulnerability. | [optional] [default to null] +**CvssScore** | **float32** | Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity. | [optional] [default to null] +**PackageIssue** | [**[]VulnerabilityPackageIssue**](vulnerabilityPackageIssue.md) | Required. The set of affected locations and their fixes (if available) within the associated resource. | [optional] [default to null] +**ShortDescription** | **string** | Output only. A one sentence description of this vulnerability. | [optional] [default to null] +**LongDescription** | **string** | Output only. A detailed description of this vulnerability. | [optional] [default to null] +**RelatedUrls** | [**[]V1beta1RelatedUrl**](v1beta1RelatedUrl.md) | Output only. URLs related to this vulnerability. | [optional] [default to null] +**EffectiveSeverity** | [***VulnerabilitySeverity**](vulnerabilitySeverity.md) | The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/VersionVersionKind.md b/0.2.0/grafeas/docs/VersionVersionKind.md new file mode 100644 index 0000000..6af2169 --- /dev/null +++ b/0.2.0/grafeas/docs/VersionVersionKind.md @@ -0,0 +1,9 @@ +# VersionVersionKind + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/VulnerabilityCvss.md b/0.2.0/grafeas/docs/VulnerabilityCvss.md new file mode 100644 index 0000000..888914b --- /dev/null +++ b/0.2.0/grafeas/docs/VulnerabilityCvss.md @@ -0,0 +1,21 @@ +# VulnerabilityCvss + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BaseScore** | **float32** | The base score is a function of the base metric scores. | [optional] [default to null] +**ExploitabilityScore** | **float32** | | [optional] [default to null] +**ImpactScore** | **float32** | | [optional] [default to null] +**AttackVector** | [***CvssAttackVector**](CVSSAttackVector.md) | Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. | [optional] [default to null] +**AttackComplexity** | [***CvssAttackComplexity**](CVSSAttackComplexity.md) | | [optional] [default to null] +**Authentication** | [***CvssAuthentication**](CVSSAuthentication.md) | | [optional] [default to null] +**PrivilegesRequired** | [***CvssPrivilegesRequired**](CVSSPrivilegesRequired.md) | | [optional] [default to null] +**UserInteraction** | [***CvssUserInteraction**](CVSSUserInteraction.md) | | [optional] [default to null] +**Scope** | [***CvssScope**](CVSSScope.md) | | [optional] [default to null] +**ConfidentialityImpact** | [***CvssImpact**](CVSSImpact.md) | | [optional] [default to null] +**IntegrityImpact** | [***CvssImpact**](CVSSImpact.md) | | [optional] [default to null] +**AvailabilityImpact** | [***CvssImpact**](CVSSImpact.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/VulnerabilityDetail.md b/0.2.0/grafeas/docs/VulnerabilityDetail.md new file mode 100644 index 0000000..7b7f3a3 --- /dev/null +++ b/0.2.0/grafeas/docs/VulnerabilityDetail.md @@ -0,0 +1,21 @@ +# VulnerabilityDetail + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CpeUri** | **string** | Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar. | [optional] [default to null] +**Package_** | **string** | Required. The name of the package where the vulnerability was found. | [optional] [default to null] +**MinAffectedVersion** | [***PackageVersion**](packageVersion.md) | The min version of the package in which the vulnerability exists. | [optional] [default to null] +**MaxAffectedVersion** | [***PackageVersion**](packageVersion.md) | The max version of the package in which the vulnerability exists. | [optional] [default to null] +**SeverityName** | **string** | The severity (eg: distro assigned severity) for this vulnerability. | [optional] [default to null] +**Description** | **string** | A vendor-specific description of this note. | [optional] [default to null] +**FixedLocation** | [***VulnerabilityVulnerabilityLocation**](vulnerabilityVulnerabilityLocation.md) | The fix for this specific package version. | [optional] [default to null] +**PackageType** | **string** | The type of package; whether native or non native(ruby gems, node.js packages etc). | [optional] [default to null] +**IsObsolete** | **bool** | Whether this detail is obsolete. Occurrences are expected not to point to obsolete details. | [optional] [default to null] +**SourceUpdateTime** | [**time.Time**](time.Time.md) | The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker. | [optional] [default to null] +**Source** | **string** | The source from which the information in this Detail was obtained. | [optional] [default to null] +**Vendor** | **string** | The name of the vendor of the product. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/VulnerabilityOccurrencesSummaryFixableTotalByDigest.md b/0.2.0/grafeas/docs/VulnerabilityOccurrencesSummaryFixableTotalByDigest.md new file mode 100644 index 0000000..ce4cced --- /dev/null +++ b/0.2.0/grafeas/docs/VulnerabilityOccurrencesSummaryFixableTotalByDigest.md @@ -0,0 +1,13 @@ +# VulnerabilityOccurrencesSummaryFixableTotalByDigest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Resource** | [***V1beta1Resource**](v1beta1Resource.md) | The affected resource. | [optional] [default to null] +**Severity** | [***VulnerabilitySeverity**](vulnerabilitySeverity.md) | The severity for this count. SEVERITY_UNSPECIFIED indicates total across all severities. | [optional] [default to null] +**FixableCount** | **string** | The number of fixable vulnerabilities associated with this resource. | [optional] [default to null] +**TotalCount** | **string** | The total number of vulnerabilities associated with this resource. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/VulnerabilityPackageIssue.md b/0.2.0/grafeas/docs/VulnerabilityPackageIssue.md new file mode 100644 index 0000000..0d2c261 --- /dev/null +++ b/0.2.0/grafeas/docs/VulnerabilityPackageIssue.md @@ -0,0 +1,14 @@ +# VulnerabilityPackageIssue + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AffectedLocation** | [***VulnerabilityVulnerabilityLocation**](vulnerabilityVulnerabilityLocation.md) | Required. The location of the vulnerability. | [optional] [default to null] +**FixedLocation** | [***VulnerabilityVulnerabilityLocation**](vulnerabilityVulnerabilityLocation.md) | The location of the available fix for vulnerability. | [optional] [default to null] +**SeverityName** | **string** | Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability. | [optional] [default to null] +**PackageType** | **string** | The type of package (e.g. OS, MAVEN, GO). | [optional] [default to null] +**EffectiveSeverity** | [***VulnerabilitySeverity**](vulnerabilitySeverity.md) | The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when it is not available. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/VulnerabilitySeverity.md b/0.2.0/grafeas/docs/VulnerabilitySeverity.md new file mode 100644 index 0000000..16d719a --- /dev/null +++ b/0.2.0/grafeas/docs/VulnerabilitySeverity.md @@ -0,0 +1,9 @@ +# VulnerabilitySeverity + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/VulnerabilityVulnerability.md b/0.2.0/grafeas/docs/VulnerabilityVulnerability.md new file mode 100644 index 0000000..1bebb3a --- /dev/null +++ b/0.2.0/grafeas/docs/VulnerabilityVulnerability.md @@ -0,0 +1,17 @@ +# VulnerabilityVulnerability + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CvssScore** | **float32** | The CVSS score for this vulnerability. | [optional] [default to null] +**Severity** | [***VulnerabilitySeverity**](vulnerabilitySeverity.md) | Note provider assigned impact of the vulnerability. | [optional] [default to null] +**Details** | [**[]VulnerabilityDetail**](VulnerabilityDetail.md) | All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in. | [optional] [default to null] +**CvssV3** | [***VulnerabilityCvss**](vulnerabilityCVSS.md) | The full description of the CVSS for version 3. | [optional] [default to null] +**WindowsDetails** | [**[]VulnerabilityWindowsDetail**](VulnerabilityWindowsDetail.md) | Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version. | [optional] [default to null] +**SourceUpdateTime** | [**time.Time**](time.Time.md) | The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker. | [optional] [default to null] +**CvssV2** | [***VulnerabilityCvss**](vulnerabilityCVSS.md) | The full description of the CVSS for version 2. | [optional] [default to null] +**Cwe** | **[]string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/VulnerabilityVulnerabilityLocation.md b/0.2.0/grafeas/docs/VulnerabilityVulnerabilityLocation.md new file mode 100644 index 0000000..bee8b22 --- /dev/null +++ b/0.2.0/grafeas/docs/VulnerabilityVulnerabilityLocation.md @@ -0,0 +1,12 @@ +# VulnerabilityVulnerabilityLocation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CpeUri** | **string** | Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. | [optional] [default to null] +**Package_** | **string** | Required. The package being described. | [optional] [default to null] +**Version** | [***PackageVersion**](packageVersion.md) | Required. The version of the package being described. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/VulnerabilityWindowsDetail.md b/0.2.0/grafeas/docs/VulnerabilityWindowsDetail.md new file mode 100644 index 0000000..cb9b9eb --- /dev/null +++ b/0.2.0/grafeas/docs/VulnerabilityWindowsDetail.md @@ -0,0 +1,13 @@ +# VulnerabilityWindowsDetail + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CpeUri** | **string** | Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar. | [optional] [default to null] +**Name** | **string** | Required. The name of the vulnerability. | [optional] [default to null] +**Description** | **string** | The description of the vulnerability. | [optional] [default to null] +**FixingKbs** | [**[]WindowsDetailKnowledgeBase**](WindowsDetailKnowledgeBase.md) | Required. The names of the KBs which have hotfixes to mitigate this vulnerability. Note that there may be multiple hotfixes (and thus multiple KBs) that mitigate a given vulnerability. Currently any listed kb's presence is considered a fix. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/WindowsDetailKnowledgeBase.md b/0.2.0/grafeas/docs/WindowsDetailKnowledgeBase.md new file mode 100644 index 0000000..f233947 --- /dev/null +++ b/0.2.0/grafeas/docs/WindowsDetailKnowledgeBase.md @@ -0,0 +1,11 @@ +# WindowsDetailKnowledgeBase + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The KB name (generally of the form KB[0-9]+ i.e. KB123456). | [optional] [default to null] +**Url** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/git_push.sh b/0.2.0/grafeas/git_push.sh new file mode 100644 index 0000000..ae01b18 --- /dev/null +++ b/0.2.0/grafeas/git_push.sh @@ -0,0 +1,52 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' + diff --git a/0.2.0/grafeas/model_alias_context_kind.go b/0.2.0/grafeas/model_alias_context_kind.go new file mode 100644 index 0000000..e3d5ad0 --- /dev/null +++ b/0.2.0/grafeas/model_alias_context_kind.go @@ -0,0 +1,20 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas +// AliasContextKind : The type of an alias. - KIND_UNSPECIFIED: Unknown. - FIXED: Git tag. - MOVABLE: Git branch. - OTHER: Used to specify non-standard aliases. For example, if a Git repo has a ref named \"refs/foo/bar\". +type AliasContextKind string + +// List of AliasContextKind +const ( + KIND_UNSPECIFIED_AliasContextKind AliasContextKind = "KIND_UNSPECIFIED" + FIXED_AliasContextKind AliasContextKind = "FIXED" + MOVABLE_AliasContextKind AliasContextKind = "MOVABLE" + OTHER_AliasContextKind AliasContextKind = "OTHER" +) diff --git a/0.2.0/grafeas/model_attestation_attestation.go b/0.2.0/grafeas/model_attestation_attestation.go new file mode 100644 index 0000000..428e544 --- /dev/null +++ b/0.2.0/grafeas/model_attestation_attestation.go @@ -0,0 +1,18 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Occurrence that represents a single \"attestation\". The authenticity of an attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the authority to which this attestation is attached is primarily useful for look-up (how to find this attestation if you already know the authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). +type AttestationAttestation struct { + // A PGP signed attestation. + PgpSignedAttestation *AttestationPgpSignedAttestation `json:"pgpSignedAttestation,omitempty"` + // An attestation that supports multiple `Signature`s over the same attestation payload. The signatures (defined in common.proto) support a superset of public key types and IDs compared to PgpSignedAttestation. + GenericSignedAttestation *AttestationGenericSignedAttestation `json:"genericSignedAttestation,omitempty"` +} diff --git a/0.2.0/grafeas/model_attestation_authority.go b/0.2.0/grafeas/model_attestation_authority.go new file mode 100644 index 0000000..4652ad4 --- /dev/null +++ b/0.2.0/grafeas/model_attestation_authority.go @@ -0,0 +1,16 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Note kind that represents a logical attestation \"role\" or \"authority\". For example, an organization might have one `Authority` for \"QA\" and one for \"build\". This note is intended to act strictly as a grouping mechanism for the attached occurrences (Attestations). This grouping mechanism also provides a security boundary, since IAM ACLs gate the ability for a principle to attach an occurrence to a given note. It also provides a single point of lookup to find all attached attestation occurrences, even if they don't all live in the same project. +type AttestationAuthority struct { + // Hint hints at the purpose of the attestation authority. + Hint *AuthorityHint `json:"hint,omitempty"` +} diff --git a/0.2.0/grafeas/model_attestation_generic_signed_attestation.go b/0.2.0/grafeas/model_attestation_generic_signed_attestation.go new file mode 100644 index 0000000..2de9f67 --- /dev/null +++ b/0.2.0/grafeas/model_attestation_generic_signed_attestation.go @@ -0,0 +1,20 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// An attestation wrapper that uses the Grafeas `Signature` message. This attestation must define the `serialized_payload` that the `signatures` verify and any metadata necessary to interpret that plaintext. The signatures should always be over the `serialized_payload` bytestring. +type AttestationGenericSignedAttestation struct { + // Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema). + ContentType *AttestationGenericSignedAttestationContentType `json:"contentType,omitempty"` + // The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`. + SerializedPayload string `json:"serializedPayload,omitempty"` + // One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification. + Signatures []Grafeasv1beta1Signature `json:"signatures,omitempty"` +} diff --git a/0.2.0/grafeas/model_attestation_generic_signed_attestation_content_type.go b/0.2.0/grafeas/model_attestation_generic_signed_attestation_content_type.go new file mode 100644 index 0000000..462abf9 --- /dev/null +++ b/0.2.0/grafeas/model_attestation_generic_signed_attestation_content_type.go @@ -0,0 +1,18 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas +// AttestationGenericSignedAttestationContentType : Type of the attestation plaintext that was signed. - CONTENT_TYPE_UNSPECIFIED: `ContentType` is not set. - SIMPLE_SIGNING_JSON: Atomic format attestation signature. See https://github.com/containers/image/blob/8a5d2f82a6e3263290c8e0276c3e0f64e77723e7/docs/atomic-signature.md The payload extracted in `plaintext` is a JSON blob conforming to the linked schema. +type AttestationGenericSignedAttestationContentType string + +// List of attestationGenericSignedAttestationContentType +const ( + CONTENT_TYPE_UNSPECIFIED_AttestationGenericSignedAttestationContentType AttestationGenericSignedAttestationContentType = "CONTENT_TYPE_UNSPECIFIED" + SIMPLE_SIGNING_JSON_AttestationGenericSignedAttestationContentType AttestationGenericSignedAttestationContentType = "SIMPLE_SIGNING_JSON" +) diff --git a/0.2.0/grafeas/model_attestation_pgp_signed_attestation.go b/0.2.0/grafeas/model_attestation_pgp_signed_attestation.go new file mode 100644 index 0000000..4b23370 --- /dev/null +++ b/0.2.0/grafeas/model_attestation_pgp_signed_attestation.go @@ -0,0 +1,20 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file. +type AttestationPgpSignedAttestation struct { + // Required. The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload. + Signature string `json:"signature,omitempty"` + // Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema). + ContentType *AttestationPgpSignedAttestationContentType `json:"contentType,omitempty"` + // The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexadecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge \"LONG\", \"SHORT\", or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \\ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`. + PgpKeyId string `json:"pgpKeyId,omitempty"` +} diff --git a/0.2.0/grafeas/model_attestation_pgp_signed_attestation_content_type.go b/0.2.0/grafeas/model_attestation_pgp_signed_attestation_content_type.go new file mode 100644 index 0000000..c1edb37 --- /dev/null +++ b/0.2.0/grafeas/model_attestation_pgp_signed_attestation_content_type.go @@ -0,0 +1,18 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas +// AttestationPgpSignedAttestationContentType : Type (for example schema) of the attestation payload that was signed. - CONTENT_TYPE_UNSPECIFIED: `ContentType` is not set. - SIMPLE_SIGNING_JSON: Atomic format attestation signature. See https://github.com/containers/image/blob/8a5d2f82a6e3263290c8e0276c3e0f64e77723e7/docs/atomic-signature.md The payload extracted from `signature` is a JSON blob conforming to the linked schema. +type AttestationPgpSignedAttestationContentType string + +// List of attestationPgpSignedAttestationContentType +const ( + CONTENT_TYPE_UNSPECIFIED_AttestationPgpSignedAttestationContentType AttestationPgpSignedAttestationContentType = "CONTENT_TYPE_UNSPECIFIED" + SIMPLE_SIGNING_JSON_AttestationPgpSignedAttestationContentType AttestationPgpSignedAttestationContentType = "SIMPLE_SIGNING_JSON" +) diff --git a/0.2.0/grafeas/model_authority_hint.go b/0.2.0/grafeas/model_authority_hint.go new file mode 100644 index 0000000..68ab5ae --- /dev/null +++ b/0.2.0/grafeas/model_authority_hint.go @@ -0,0 +1,16 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// This submessage provides human-readable hints about the purpose of the authority. Because the name of a note acts as its resource reference, it is important to disambiguate the canonical name of the Note (which might be a UUID for security purposes) from \"readable\" names more suitable for debug output. Note that these hints should not be used to look up authorities in security sensitive contexts, such as when looking up attestations to verify. +type AuthorityHint struct { + // Required. The human readable name of this attestation authority, for example \"qa\". + HumanReadableName string `json:"humanReadableName,omitempty"` +} diff --git a/0.2.0/grafeas/model_body.go b/0.2.0/grafeas/model_body.go new file mode 100644 index 0000000..ef3e5e8 --- /dev/null +++ b/0.2.0/grafeas/model_body.go @@ -0,0 +1,16 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Request to create notes in batch. +type Body struct { + // The notes to create, the key is expected to be the note ID. Max allowed length is 1000. + Notes map[string]V1beta1Note `json:"notes"` +} diff --git a/0.2.0/grafeas/model_body_1.go b/0.2.0/grafeas/model_body_1.go new file mode 100644 index 0000000..3062c2b --- /dev/null +++ b/0.2.0/grafeas/model_body_1.go @@ -0,0 +1,16 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Request to create occurrences in batch. +type Body1 struct { + // The occurrences to create. Max allowed length is 1000. + Occurrences []V1beta1Occurrence `json:"occurrences"` +} diff --git a/0.2.0/grafeas/model_build_build.go b/0.2.0/grafeas/model_build_build.go new file mode 100644 index 0000000..62b28d1 --- /dev/null +++ b/0.2.0/grafeas/model_build_build.go @@ -0,0 +1,18 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Note holding the version of the provider's builder and the signature of the provenance message in the build details occurrence. +type BuildBuild struct { + // Required. Immutable. Version of the builder which produced this build. + BuilderVersion string `json:"builderVersion,omitempty"` + // Signature of the build in occurrences pointing to this build note containing build details. + Signature *BuildBuildSignature `json:"signature,omitempty"` +} diff --git a/0.2.0/grafeas/model_build_build_signature.go b/0.2.0/grafeas/model_build_build_signature.go new file mode 100644 index 0000000..8cfdbec --- /dev/null +++ b/0.2.0/grafeas/model_build_build_signature.go @@ -0,0 +1,22 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Message encapsulating the signature of the verified build. +type BuildBuildSignature struct { + // Public key of the builder which can be used to verify that the related findings are valid and unchanged. If `key_type` is empty, this defaults to PEM encoded public keys. This field may be empty if `key_id` references an external key. For Cloud Build based signatures, this is a PEM encoded public key. To verify the Cloud Build signature, place the contents of this field into a file (public.pem). The signature field is base64-decoded into its binary representation in signature.bin, and the provenance bytes from `BuildDetails` are base64-decoded into a binary representation in signed.bin. OpenSSL can then verify the signature: `openssl sha256 -verify public.pem -signature signature.bin signed.bin` + PublicKey string `json:"publicKey,omitempty"` + // Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded. + Signature string `json:"signature,omitempty"` + // An ID for the key used to sign. This could be either an ID for the key stored in `public_key` (such as the ID or fingerprint for a PGP key, or the CN for a cert), or a reference to an external key (such as a reference to a key in Cloud Key Management Service). + KeyId string `json:"keyId,omitempty"` + // The type of the key, either stored in `public_key` or referenced in `key_id`. + KeyType *BuildSignatureKeyType `json:"keyType,omitempty"` +} diff --git a/0.2.0/grafeas/model_build_signature_key_type.go b/0.2.0/grafeas/model_build_signature_key_type.go new file mode 100644 index 0000000..dad8a87 --- /dev/null +++ b/0.2.0/grafeas/model_build_signature_key_type.go @@ -0,0 +1,19 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas +// BuildSignatureKeyType : Public key formats. - KEY_TYPE_UNSPECIFIED: `KeyType` is not set. - PGP_ASCII_ARMORED: `PGP ASCII Armored` public key. - PKIX_PEM: `PKIX PEM` public key. +type BuildSignatureKeyType string + +// List of BuildSignatureKeyType +const ( + KEY_TYPE_UNSPECIFIED_BuildSignatureKeyType BuildSignatureKeyType = "KEY_TYPE_UNSPECIFIED" + PGP_ASCII_ARMORED_BuildSignatureKeyType BuildSignatureKeyType = "PGP_ASCII_ARMORED" + PKIX_PEM_BuildSignatureKeyType BuildSignatureKeyType = "PKIX_PEM" +) diff --git a/0.2.0/grafeas/model_cvss_attack_complexity.go b/0.2.0/grafeas/model_cvss_attack_complexity.go new file mode 100644 index 0000000..ec47900 --- /dev/null +++ b/0.2.0/grafeas/model_cvss_attack_complexity.go @@ -0,0 +1,19 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +type CvssAttackComplexity string + +// List of CVSSAttackComplexity +const ( + UNSPECIFIED_CvssAttackComplexity CvssAttackComplexity = "ATTACK_COMPLEXITY_UNSPECIFIED" + LOW_CvssAttackComplexity CvssAttackComplexity = "ATTACK_COMPLEXITY_LOW" + HIGH_CvssAttackComplexity CvssAttackComplexity = "ATTACK_COMPLEXITY_HIGH" +) diff --git a/0.2.0/grafeas/model_cvss_attack_vector.go b/0.2.0/grafeas/model_cvss_attack_vector.go new file mode 100644 index 0000000..7112223 --- /dev/null +++ b/0.2.0/grafeas/model_cvss_attack_vector.go @@ -0,0 +1,21 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +type CvssAttackVector string + +// List of CVSSAttackVector +const ( + UNSPECIFIED_CvssAttackVector CvssAttackVector = "ATTACK_VECTOR_UNSPECIFIED" + NETWORK_CvssAttackVector CvssAttackVector = "ATTACK_VECTOR_NETWORK" + ADJACENT_CvssAttackVector CvssAttackVector = "ATTACK_VECTOR_ADJACENT" + LOCAL_CvssAttackVector CvssAttackVector = "ATTACK_VECTOR_LOCAL" + PHYSICAL_CvssAttackVector CvssAttackVector = "ATTACK_VECTOR_PHYSICAL" +) diff --git a/0.2.0/grafeas/model_cvss_authentication.go b/0.2.0/grafeas/model_cvss_authentication.go new file mode 100644 index 0000000..f2771a1 --- /dev/null +++ b/0.2.0/grafeas/model_cvss_authentication.go @@ -0,0 +1,20 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +type CvssAuthentication string + +// List of CVSSAuthentication +const ( + UNSPECIFIED_CvssAuthentication CvssAuthentication = "AUTHENTICATION_UNSPECIFIED" + MULTIPLE_CvssAuthentication CvssAuthentication = "AUTHENTICATION_MULTIPLE" + SINGLE_CvssAuthentication CvssAuthentication = "AUTHENTICATION_SINGLE" + NONE_CvssAuthentication CvssAuthentication = "AUTHENTICATION_NONE" +) diff --git a/0.2.0/grafeas/model_cvss_impact.go b/0.2.0/grafeas/model_cvss_impact.go new file mode 100644 index 0000000..f00eb82 --- /dev/null +++ b/0.2.0/grafeas/model_cvss_impact.go @@ -0,0 +1,20 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +type CvssImpact string + +// List of CVSSImpact +const ( + UNSPECIFIED_CvssImpact CvssImpact = "IMPACT_UNSPECIFIED" + HIGH_CvssImpact CvssImpact = "IMPACT_HIGH" + LOW_CvssImpact CvssImpact = "IMPACT_LOW" + NONE_CvssImpact CvssImpact = "IMPACT_NONE" +) diff --git a/0.2.0/grafeas/model_cvss_privileges_required.go b/0.2.0/grafeas/model_cvss_privileges_required.go new file mode 100644 index 0000000..09be97f --- /dev/null +++ b/0.2.0/grafeas/model_cvss_privileges_required.go @@ -0,0 +1,20 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +type CvssPrivilegesRequired string + +// List of CVSSPrivilegesRequired +const ( + UNSPECIFIED_CvssPrivilegesRequired CvssPrivilegesRequired = "PRIVILEGES_REQUIRED_UNSPECIFIED" + NONE_CvssPrivilegesRequired CvssPrivilegesRequired = "PRIVILEGES_REQUIRED_NONE" + LOW_CvssPrivilegesRequired CvssPrivilegesRequired = "PRIVILEGES_REQUIRED_LOW" + HIGH_CvssPrivilegesRequired CvssPrivilegesRequired = "PRIVILEGES_REQUIRED_HIGH" +) diff --git a/0.2.0/grafeas/model_cvss_scope.go b/0.2.0/grafeas/model_cvss_scope.go new file mode 100644 index 0000000..414d0f9 --- /dev/null +++ b/0.2.0/grafeas/model_cvss_scope.go @@ -0,0 +1,19 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +type CvssScope string + +// List of CVSSScope +const ( + UNSPECIFIED_CvssScope CvssScope = "SCOPE_UNSPECIFIED" + UNCHANGED_CvssScope CvssScope = "SCOPE_UNCHANGED" + CHANGED_CvssScope CvssScope = "SCOPE_CHANGED" +) diff --git a/0.2.0/grafeas/model_cvss_user_interaction.go b/0.2.0/grafeas/model_cvss_user_interaction.go new file mode 100644 index 0000000..f498182 --- /dev/null +++ b/0.2.0/grafeas/model_cvss_user_interaction.go @@ -0,0 +1,19 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +type CvssUserInteraction string + +// List of CVSSUserInteraction +const ( + UNSPECIFIED_CvssUserInteraction CvssUserInteraction = "USER_INTERACTION_UNSPECIFIED" + NONE_CvssUserInteraction CvssUserInteraction = "USER_INTERACTION_NONE" + REQUIRED_CvssUserInteraction CvssUserInteraction = "USER_INTERACTION_REQUIRED" +) diff --git a/0.2.0/grafeas/model_deployment_deployable.go b/0.2.0/grafeas/model_deployment_deployable.go new file mode 100644 index 0000000..f5a6b85 --- /dev/null +++ b/0.2.0/grafeas/model_deployment_deployable.go @@ -0,0 +1,16 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// An artifact that can be deployed in some runtime. +type DeploymentDeployable struct { + // Required. Resource URI for the artifact being deployed. + ResourceUri []string `json:"resourceUri,omitempty"` +} diff --git a/0.2.0/grafeas/model_deployment_deployment.go b/0.2.0/grafeas/model_deployment_deployment.go new file mode 100644 index 0000000..47bfddd --- /dev/null +++ b/0.2.0/grafeas/model_deployment_deployment.go @@ -0,0 +1,32 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +import ( + "time" +) + +// The period during which some deployable was active in a runtime. +type DeploymentDeployment struct { + // Identity of the user that triggered this deployment. + UserEmail string `json:"userEmail,omitempty"` + // Required. Beginning of the lifetime of this deployment. + DeployTime time.Time `json:"deployTime,omitempty"` + // End of the lifetime of this deployment. + UndeployTime time.Time `json:"undeployTime,omitempty"` + // Configuration used to create this deployment. + Config string `json:"config,omitempty"` + // Address of the runtime element hosting this deployment. + Address string `json:"address,omitempty"` + // Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name. + ResourceUri []string `json:"resourceUri,omitempty"` + // Platform hosting this deployment. + Platform *DeploymentPlatform `json:"platform,omitempty"` +} diff --git a/0.2.0/grafeas/model_deployment_platform.go b/0.2.0/grafeas/model_deployment_platform.go new file mode 100644 index 0000000..f78e314 --- /dev/null +++ b/0.2.0/grafeas/model_deployment_platform.go @@ -0,0 +1,20 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas +// DeploymentPlatform : Types of platforms. - PLATFORM_UNSPECIFIED: Unknown. - GKE: Google Container Engine. - FLEX: Google App Engine: Flexible Environment. - CUSTOM: Custom user-defined platform. +type DeploymentPlatform string + +// List of DeploymentPlatform +const ( + PLATFORM_UNSPECIFIED_DeploymentPlatform DeploymentPlatform = "PLATFORM_UNSPECIFIED" + GKE_DeploymentPlatform DeploymentPlatform = "GKE" + FLEX_DeploymentPlatform DeploymentPlatform = "FLEX" + CUSTOM_DeploymentPlatform DeploymentPlatform = "CUSTOM" +) diff --git a/0.2.0/grafeas/model_discovered_analysis_status.go b/0.2.0/grafeas/model_discovered_analysis_status.go new file mode 100644 index 0000000..1fa742c --- /dev/null +++ b/0.2.0/grafeas/model_discovered_analysis_status.go @@ -0,0 +1,22 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas +// DiscoveredAnalysisStatus : Analysis status for a resource. Currently for initial analysis only (not updated in continuous analysis). - ANALYSIS_STATUS_UNSPECIFIED: Unknown. - PENDING: Resource is known but no action has been taken yet. - SCANNING: Resource is being analyzed. - FINISHED_SUCCESS: Analysis has finished successfully. - FINISHED_FAILED: Analysis has finished unsuccessfully, the analysis itself is in a bad state. - FINISHED_UNSUPPORTED: The resource is known not to be supported +type DiscoveredAnalysisStatus string + +// List of DiscoveredAnalysisStatus +const ( + ANALYSIS_STATUS_UNSPECIFIED_DiscoveredAnalysisStatus DiscoveredAnalysisStatus = "ANALYSIS_STATUS_UNSPECIFIED" + PENDING_DiscoveredAnalysisStatus DiscoveredAnalysisStatus = "PENDING" + SCANNING_DiscoveredAnalysisStatus DiscoveredAnalysisStatus = "SCANNING" + FINISHED_SUCCESS_DiscoveredAnalysisStatus DiscoveredAnalysisStatus = "FINISHED_SUCCESS" + FINISHED_FAILED_DiscoveredAnalysisStatus DiscoveredAnalysisStatus = "FINISHED_FAILED" + FINISHED_UNSUPPORTED_DiscoveredAnalysisStatus DiscoveredAnalysisStatus = "FINISHED_UNSUPPORTED" +) diff --git a/0.2.0/grafeas/model_discovered_continuous_analysis.go b/0.2.0/grafeas/model_discovered_continuous_analysis.go new file mode 100644 index 0000000..06c0659 --- /dev/null +++ b/0.2.0/grafeas/model_discovered_continuous_analysis.go @@ -0,0 +1,19 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas +// DiscoveredContinuousAnalysis : Whether the resource is continuously analyzed. - CONTINUOUS_ANALYSIS_UNSPECIFIED: Unknown. - ACTIVE: The resource is continuously analyzed. - INACTIVE: The resource is ignored for continuous analysis. +type DiscoveredContinuousAnalysis string + +// List of DiscoveredContinuousAnalysis +const ( + CONTINUOUS_ANALYSIS_UNSPECIFIED_DiscoveredContinuousAnalysis DiscoveredContinuousAnalysis = "CONTINUOUS_ANALYSIS_UNSPECIFIED" + ACTIVE_DiscoveredContinuousAnalysis DiscoveredContinuousAnalysis = "ACTIVE" + INACTIVE_DiscoveredContinuousAnalysis DiscoveredContinuousAnalysis = "INACTIVE" +) diff --git a/0.2.0/grafeas/model_discovery_discovered.go b/0.2.0/grafeas/model_discovery_discovered.go new file mode 100644 index 0000000..bf3f0cf --- /dev/null +++ b/0.2.0/grafeas/model_discovery_discovered.go @@ -0,0 +1,26 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +import ( + "time" +) + +// Provides information about the analysis status of a discovered resource. +type DiscoveryDiscovered struct { + // Whether the resource is continuously analyzed. + ContinuousAnalysis *DiscoveredContinuousAnalysis `json:"continuousAnalysis,omitempty"` + // The last time continuous analysis was done for this resource. Deprecated, do not use. + LastAnalysisTime time.Time `json:"lastAnalysisTime,omitempty"` + // The status of discovery for the resource. + AnalysisStatus *DiscoveredAnalysisStatus `json:"analysisStatus,omitempty"` + // When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API. + AnalysisStatusError *RpcStatus `json:"analysisStatusError,omitempty"` +} diff --git a/0.2.0/grafeas/model_discovery_discovery.go b/0.2.0/grafeas/model_discovery_discovery.go new file mode 100644 index 0000000..1bb4da3 --- /dev/null +++ b/0.2.0/grafeas/model_discovery_discovery.go @@ -0,0 +1,16 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// A note that indicates a type of analysis a provider would perform. This note exists in a provider's project. A `Discovery` occurrence is created in a consumer's project at the start of analysis. +type DiscoveryDiscovery struct { + // Required. Immutable. The kind of analysis that is handled by this discovery. + AnalysisKind *V1beta1NoteKind `json:"analysisKind,omitempty"` +} diff --git a/0.2.0/grafeas/model_external_ref_category.go b/0.2.0/grafeas/model_external_ref_category.go new file mode 100644 index 0000000..c9f3ce8 --- /dev/null +++ b/0.2.0/grafeas/model_external_ref_category.go @@ -0,0 +1,21 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas +// ExternalRefCategory : - CATEGORY_UNSPECIFIED: Unspecified - SECURITY: Security (e.g. cpe22Type, cpe23Type) - PACKAGE_MANAGER: Package Manager (e.g. maven-central, npm, nuget, bower, purl) - PERSISTENT_ID: Persistent-Id (e.g. swh) - OTHER: Other +type ExternalRefCategory string + +// List of ExternalRefCategory +const ( + CATEGORY_UNSPECIFIED_ExternalRefCategory ExternalRefCategory = "CATEGORY_UNSPECIFIED" + SECURITY_ExternalRefCategory ExternalRefCategory = "SECURITY" + PACKAGE_MANAGER_ExternalRefCategory ExternalRefCategory = "PACKAGE_MANAGER" + PERSISTENT_ID_ExternalRefCategory ExternalRefCategory = "PERSISTENT_ID" + OTHER_ExternalRefCategory ExternalRefCategory = "OTHER" +) diff --git a/0.2.0/grafeas/model_file_note_file_type.go b/0.2.0/grafeas/model_file_note_file_type.go new file mode 100644 index 0000000..74b2d1b --- /dev/null +++ b/0.2.0/grafeas/model_file_note_file_type.go @@ -0,0 +1,28 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas +// FileNoteFileType : - FILE_TYPE_UNSPECIFIED: Unspecified - SOURCE: The file is human readable source code (.c, .html, etc.) - BINARY: The file is a compiled object, target image or binary executable (.o, .a, etc.) - ARCHIVE: The file represents an archive (.tar, .jar, etc.) - APPLICATION: The file is associated with a specific application type (MIME type of application/_*) - AUDIO: The file is associated with an audio file (MIME type of audio/_* , e.g. .mp3) - IMAGE: The file is associated with an picture image file (MIME type of image/_*, e.g., .jpg, .gif) - TEXT: The file is human readable text file (MIME type of text/_*) - VIDEO: The file is associated with a video file type (MIME type of video/_*) - DOCUMENTATION: The file serves as documentation - SPDX: The file is an SPDX document - OTHER: The file doesn't fit into the above categories (generated artifacts, data files, etc.) +type FileNoteFileType string + +// List of FileNoteFileType +const ( + FILE_TYPE_UNSPECIFIED_FileNoteFileType FileNoteFileType = "FILE_TYPE_UNSPECIFIED" + SOURCE_FileNoteFileType FileNoteFileType = "SOURCE" + BINARY_FileNoteFileType FileNoteFileType = "BINARY" + ARCHIVE_FileNoteFileType FileNoteFileType = "ARCHIVE" + APPLICATION_FileNoteFileType FileNoteFileType = "APPLICATION" + AUDIO_FileNoteFileType FileNoteFileType = "AUDIO" + IMAGE_FileNoteFileType FileNoteFileType = "IMAGE" + TEXT_FileNoteFileType FileNoteFileType = "TEXT" + VIDEO_FileNoteFileType FileNoteFileType = "VIDEO" + DOCUMENTATION_FileNoteFileType FileNoteFileType = "DOCUMENTATION" + SPDX_FileNoteFileType FileNoteFileType = "SPDX" + OTHER_FileNoteFileType FileNoteFileType = "OTHER" +) diff --git a/0.2.0/grafeas/model_grafeasv1beta1_signature.go b/0.2.0/grafeas/model_grafeasv1beta1_signature.go new file mode 100644 index 0000000..b4b837a --- /dev/null +++ b/0.2.0/grafeas/model_grafeasv1beta1_signature.go @@ -0,0 +1,18 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to the trust anchors defined in policy (e.g. a Kritis policy). Typically this means that the verifier has been configured with a map from `public_key_id` to public key material (and any required parameters, e.g. signing algorithm). In particular, verification implementations MUST NOT treat the signature `public_key_id` as anything more than a key lookup hint. The `public_key_id` DOES NOT validate or authenticate a public key; it only provides a mechanism for quickly selecting a public key ALREADY CONFIGURED on the verifier through a trusted channel. Verification implementations MUST reject signatures in any of the following circumstances: * The `public_key_id` is not recognized by the verifier. * The public key that `public_key_id` refers to does not verify the signature with respect to the payload. The `signature` contents SHOULD NOT be \"attached\" (where the payload is included with the serialized `signature` bytes). Verifiers MUST ignore any \"attached\" payload and only verify signatures with respect to explicitly provided payload (e.g. a `payload` field on the proto message that holds this Signature, or the canonical serialization of the proto message that holds this signature). +type Grafeasv1beta1Signature struct { + // The content of the signature, an opaque bytestring. The payload that this signature verifies MUST be unambiguously provided with the Signature during verification. A wrapper message might provide the payload explicitly. Alternatively, a message might have a canonical serialization that can always be unambiguously computed to derive the payload. + Signature string `json:"signature,omitempty"` + // The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 conformant URI. * When possible, the `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: OpenPGP V4 public key fingerprint: * \"openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA\" See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more details on this scheme. RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER serialization): * \"ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU\" * \"nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5\" + PublicKeyId string `json:"publicKeyId,omitempty"` +} diff --git a/0.2.0/grafeas/model_hash_hash_type.go b/0.2.0/grafeas/model_hash_hash_type.go new file mode 100644 index 0000000..51e0ec7 --- /dev/null +++ b/0.2.0/grafeas/model_hash_hash_type.go @@ -0,0 +1,18 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas +// HashHashType : Specifies the hash algorithm. - HASH_TYPE_UNSPECIFIED: Unknown. - SHA256: A SHA-256 hash. +type HashHashType string + +// List of HashHashType +const ( + HASH_TYPE_UNSPECIFIED_HashHashType HashHashType = "HASH_TYPE_UNSPECIFIED" + SHA256_HashHashType HashHashType = "SHA256" +) diff --git a/0.2.0/grafeas/model_image_basis.go b/0.2.0/grafeas/model_image_basis.go new file mode 100644 index 0000000..7237672 --- /dev/null +++ b/0.2.0/grafeas/model_image_basis.go @@ -0,0 +1,18 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Basis describes the base image portion (Note) of the DockerImage relationship. Linked occurrences are derived from this or an equivalent image via: FROM Or an equivalent reference, e.g. a tag of the resource_url. +type ImageBasis struct { + // Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images. + ResourceUrl string `json:"resourceUrl,omitempty"` + // Required. Immutable. The fingerprint of the base image. + Fingerprint *ImageFingerprint `json:"fingerprint,omitempty"` +} diff --git a/0.2.0/grafeas/model_image_derived.go b/0.2.0/grafeas/model_image_derived.go new file mode 100644 index 0000000..5b6ccd8 --- /dev/null +++ b/0.2.0/grafeas/model_image_derived.go @@ -0,0 +1,22 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . +type ImageDerived struct { + // Required. The fingerprint of the derived image. + Fingerprint *ImageFingerprint `json:"fingerprint,omitempty"` + // Output only. The number of layers by which this image differs from the associated image basis. + Distance int32 `json:"distance,omitempty"` + // This contains layer-specific metadata, if populated it has length \"distance\" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer. + LayerInfo []ImageLayer `json:"layerInfo,omitempty"` + // Output only. This contains the base image URL for the derived image occurrence. + BaseResourceUrl string `json:"baseResourceUrl,omitempty"` +} diff --git a/0.2.0/grafeas/model_image_fingerprint.go b/0.2.0/grafeas/model_image_fingerprint.go new file mode 100644 index 0000000..87d3932 --- /dev/null +++ b/0.2.0/grafeas/model_image_fingerprint.go @@ -0,0 +1,20 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// A set of properties that uniquely identify a given Docker image. +type ImageFingerprint struct { + // Required. The layer ID of the final layer in the Docker image's v1 representation. + V1Name string `json:"v1Name,omitempty"` + // Required. The ordered list of v2 blobs that represent a given image. + V2Blob []string `json:"v2Blob,omitempty"` + // Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blob[bottom] [N] := sha256(v2_blob[N] + \" \" + v2_name[N+1]) Only the name of the final blob is kept. + V2Name string `json:"v2Name,omitempty"` +} diff --git a/0.2.0/grafeas/model_image_layer.go b/0.2.0/grafeas/model_image_layer.go new file mode 100644 index 0000000..13aed25 --- /dev/null +++ b/0.2.0/grafeas/model_image_layer.go @@ -0,0 +1,18 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Layer holds metadata specific to a layer of a Docker image. +type ImageLayer struct { + // Required. The recovered Dockerfile directive used to construct this layer. + Directive *LayerDirective `json:"directive,omitempty"` + // The recovered arguments to the Dockerfile directive. + Arguments string `json:"arguments,omitempty"` +} diff --git a/0.2.0/grafeas/model_in_toto_artifact_rule.go b/0.2.0/grafeas/model_in_toto_artifact_rule.go new file mode 100644 index 0000000..bb34e79 --- /dev/null +++ b/0.2.0/grafeas/model_in_toto_artifact_rule.go @@ -0,0 +1,14 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +type InTotoArtifactRule struct { + ArtifactRule []string `json:"artifactRule,omitempty"` +} diff --git a/0.2.0/grafeas/model_intoto_in_toto.go b/0.2.0/grafeas/model_intoto_in_toto.go new file mode 100644 index 0000000..11c6296 --- /dev/null +++ b/0.2.0/grafeas/model_intoto_in_toto.go @@ -0,0 +1,25 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// This contains the fields corresponding to the definition of a software supply chain step in an in-toto layout. This information goes into a Grafeas note. +type IntotoInToto struct { + // This field identifies the name of the step in the supply chain. + StepName string `json:"stepName,omitempty"` + // This field contains the public keys that can be used to verify the signatures on the step metadata. + SigningKeys []IntotoSigningKey `json:"signingKeys,omitempty"` + // The following fields contain in-toto artifact rules identifying the artifacts that enter this supply chain step, and exit the supply chain step, i.e. materials and products of the step. + ExpectedMaterials []InTotoArtifactRule `json:"expectedMaterials,omitempty"` + ExpectedProducts []InTotoArtifactRule `json:"expectedProducts,omitempty"` + // This field contains the expected command used to perform the step. + ExpectedCommand []string `json:"expectedCommand,omitempty"` + // This field contains a value that indicates the minimum number of keys that need to be used to sign the step's in-toto link. + Threshold string `json:"threshold,omitempty"` +} diff --git a/0.2.0/grafeas/model_intoto_link.go b/0.2.0/grafeas/model_intoto_link.go new file mode 100644 index 0000000..f9dc6af --- /dev/null +++ b/0.2.0/grafeas/model_intoto_link.go @@ -0,0 +1,21 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// This corresponds to an in-toto link. +type IntotoLink struct { + Command []string `json:"command,omitempty"` + Materials []IntotoLinkArtifact `json:"materials,omitempty"` + // Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials. + Products []IntotoLinkArtifact `json:"products,omitempty"` + // ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step. + Byproducts *LinkByProducts `json:"byproducts,omitempty"` + Environment *LinkEnvironment `json:"environment,omitempty"` +} diff --git a/0.2.0/grafeas/model_intoto_link_artifact.go b/0.2.0/grafeas/model_intoto_link_artifact.go new file mode 100644 index 0000000..9f1ceff --- /dev/null +++ b/0.2.0/grafeas/model_intoto_link_artifact.go @@ -0,0 +1,15 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +type IntotoLinkArtifact struct { + ResourceUri string `json:"resourceUri,omitempty"` + Hashes *LinkArtifactHashes `json:"hashes,omitempty"` +} diff --git a/0.2.0/grafeas/model_intoto_signing_key.go b/0.2.0/grafeas/model_intoto_signing_key.go new file mode 100644 index 0000000..5412c8e --- /dev/null +++ b/0.2.0/grafeas/model_intoto_signing_key.go @@ -0,0 +1,22 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// This defines the format used to record keys used in the software supply chain. An in-toto link is attested using one or more keys defined in the in-toto layout. An example of this is: { \"key_id\": \"776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...\", \"key_type\": \"rsa\", \"public_key_value\": \"-----BEGIN PUBLIC KEY-----\\nMIIBojANBgkqhkiG9w0B...\", \"key_scheme\": \"rsassa-pss-sha256\" } The format for in-toto's key definition can be found in section 4.2 of the in-toto specification. +type IntotoSigningKey struct { + // key_id is an identifier for the signing key. + KeyId string `json:"keyId,omitempty"` + // This field identifies the specific signing method. Eg: \"rsa\", \"ed25519\", and \"ecdsa\". + KeyType string `json:"keyType,omitempty"` + // This field contains the actual public key. + PublicKeyValue string `json:"publicKeyValue,omitempty"` + // This field contains the corresponding signature scheme. Eg: \"rsassa-pss-sha256\". + KeyScheme string `json:"keyScheme,omitempty"` +} diff --git a/0.2.0/grafeas/model_layer_directive.go b/0.2.0/grafeas/model_layer_directive.go new file mode 100644 index 0000000..ba6b582 --- /dev/null +++ b/0.2.0/grafeas/model_layer_directive.go @@ -0,0 +1,34 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas +// LayerDirective : Instructions from Dockerfile. - DIRECTIVE_UNSPECIFIED: Default value for unsupported/missing directive. - MAINTAINER: https://docs.docker.com/engine/reference/builder/ - RUN: https://docs.docker.com/engine/reference/builder/ - CMD: https://docs.docker.com/engine/reference/builder/ - LABEL: https://docs.docker.com/engine/reference/builder/ - EXPOSE: https://docs.docker.com/engine/reference/builder/ - ENV: https://docs.docker.com/engine/reference/builder/ - ADD: https://docs.docker.com/engine/reference/builder/ - COPY: https://docs.docker.com/engine/reference/builder/ - ENTRYPOINT: https://docs.docker.com/engine/reference/builder/ - VOLUME: https://docs.docker.com/engine/reference/builder/ - USER: https://docs.docker.com/engine/reference/builder/ - WORKDIR: https://docs.docker.com/engine/reference/builder/ - ARG: https://docs.docker.com/engine/reference/builder/ - ONBUILD: https://docs.docker.com/engine/reference/builder/ - STOPSIGNAL: https://docs.docker.com/engine/reference/builder/ - HEALTHCHECK: https://docs.docker.com/engine/reference/builder/ - SHELL: https://docs.docker.com/engine/reference/builder/ +type LayerDirective string + +// List of LayerDirective +const ( + DIRECTIVE_UNSPECIFIED_LayerDirective LayerDirective = "DIRECTIVE_UNSPECIFIED" + MAINTAINER_LayerDirective LayerDirective = "MAINTAINER" + RUN_LayerDirective LayerDirective = "RUN" + CMD_LayerDirective LayerDirective = "CMD" + LABEL_LayerDirective LayerDirective = "LABEL" + EXPOSE_LayerDirective LayerDirective = "EXPOSE" + ENV_LayerDirective LayerDirective = "ENV" + ADD_LayerDirective LayerDirective = "ADD" + COPY_LayerDirective LayerDirective = "COPY" + ENTRYPOINT_LayerDirective LayerDirective = "ENTRYPOINT" + VOLUME_LayerDirective LayerDirective = "VOLUME" + USER_LayerDirective LayerDirective = "USER" + WORKDIR_LayerDirective LayerDirective = "WORKDIR" + ARG_LayerDirective LayerDirective = "ARG" + ONBUILD_LayerDirective LayerDirective = "ONBUILD" + STOPSIGNAL_LayerDirective LayerDirective = "STOPSIGNAL" + HEALTHCHECK_LayerDirective LayerDirective = "HEALTHCHECK" + SHELL_LayerDirective LayerDirective = "SHELL" +) diff --git a/0.2.0/grafeas/model_link_artifact_hashes.go b/0.2.0/grafeas/model_link_artifact_hashes.go new file mode 100644 index 0000000..5e84169 --- /dev/null +++ b/0.2.0/grafeas/model_link_artifact_hashes.go @@ -0,0 +1,15 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Defines a hash object for use in Materials and Products. +type LinkArtifactHashes struct { + Sha256 string `json:"sha256,omitempty"` +} diff --git a/0.2.0/grafeas/model_link_by_products.go b/0.2.0/grafeas/model_link_by_products.go new file mode 100644 index 0000000..0eb33d5 --- /dev/null +++ b/0.2.0/grafeas/model_link_by_products.go @@ -0,0 +1,15 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Defines an object for the byproducts field in in-toto links. The suggested fields are \"stderr\", \"stdout\", and \"return-value\". +type LinkByProducts struct { + CustomValues map[string]string `json:"customValues,omitempty"` +} diff --git a/0.2.0/grafeas/model_link_environment.go b/0.2.0/grafeas/model_link_environment.go new file mode 100644 index 0000000..52f999a --- /dev/null +++ b/0.2.0/grafeas/model_link_environment.go @@ -0,0 +1,15 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Defines an object for the environment field in in-toto links. The suggested fields are \"variables\", \"filesystem\", and \"workdir\". +type LinkEnvironment struct { + CustomValues map[string]string `json:"customValues,omitempty"` +} diff --git a/0.2.0/grafeas/model_package_architecture.go b/0.2.0/grafeas/model_package_architecture.go new file mode 100644 index 0000000..789144c --- /dev/null +++ b/0.2.0/grafeas/model_package_architecture.go @@ -0,0 +1,19 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas +// PackageArchitecture : Instruction set architectures supported by various package managers. - ARCHITECTURE_UNSPECIFIED: Unknown architecture. - X86: X86 architecture. - X64: X64 architecture. +type PackageArchitecture string + +// List of packageArchitecture +const ( + ARCHITECTURE_UNSPECIFIED_PackageArchitecture PackageArchitecture = "ARCHITECTURE_UNSPECIFIED" + X86_PackageArchitecture PackageArchitecture = "X86" + X64_PackageArchitecture PackageArchitecture = "X64" +) diff --git a/0.2.0/grafeas/model_package_distribution.go b/0.2.0/grafeas/model_package_distribution.go new file mode 100644 index 0000000..3b60838 --- /dev/null +++ b/0.2.0/grafeas/model_package_distribution.go @@ -0,0 +1,26 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// This represents a particular channel of distribution for a given package. E.g., Debian's jessie-backports dpkg mirror. +type PackageDistribution struct { + // Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. + CpeUri string `json:"cpeUri,omitempty"` + // The CPU architecture for which packages in this distribution channel were built. + Architecture *PackageArchitecture `json:"architecture,omitempty"` + // The latest available version of this package in this distribution channel. + LatestVersion *PackageVersion `json:"latestVersion,omitempty"` + // A freeform string denoting the maintainer of this package. + Maintainer string `json:"maintainer,omitempty"` + // The distribution channel-specific homepage for this package. + Url string `json:"url,omitempty"` + // The distribution channel-specific description of this package. + Description string `json:"description,omitempty"` +} diff --git a/0.2.0/grafeas/model_package_info_note_external_ref.go b/0.2.0/grafeas/model_package_info_note_external_ref.go new file mode 100644 index 0000000..2f1c94f --- /dev/null +++ b/0.2.0/grafeas/model_package_info_note_external_ref.go @@ -0,0 +1,17 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +type PackageInfoNoteExternalRef struct { + Category *ExternalRefCategory `json:"category,omitempty"` + Type_ string `json:"type,omitempty"` + Locator string `json:"locator,omitempty"` + Comment string `json:"comment,omitempty"` +} diff --git a/0.2.0/grafeas/model_package_installation.go b/0.2.0/grafeas/model_package_installation.go new file mode 100644 index 0000000..3d3ff8c --- /dev/null +++ b/0.2.0/grafeas/model_package_installation.go @@ -0,0 +1,18 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// This represents how a particular software package may be installed on a system. +type PackageInstallation struct { + // Output only. The name of the installed package. + Name string `json:"name,omitempty"` + // Required. All of the places within the filesystem versions of this package have been found. + Location []V1beta1packageLocation `json:"location,omitempty"` +} diff --git a/0.2.0/grafeas/model_package_package.go b/0.2.0/grafeas/model_package_package.go new file mode 100644 index 0000000..84a799c --- /dev/null +++ b/0.2.0/grafeas/model_package_package.go @@ -0,0 +1,18 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// This represents a particular package that is distributed over various channels. E.g., glibc (aka libc6) is distributed by many, at various versions. +type PackagePackage struct { + // Required. Immutable. The name of the package. + Name string `json:"name,omitempty"` + // The various channels by which a package is distributed. + Distribution []PackageDistribution `json:"distribution,omitempty"` +} diff --git a/0.2.0/grafeas/model_package_version.go b/0.2.0/grafeas/model_package_version.go new file mode 100644 index 0000000..3232cf4 --- /dev/null +++ b/0.2.0/grafeas/model_package_version.go @@ -0,0 +1,24 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Version contains structured information about the version of a package. +type PackageVersion struct { + // Used to correct mistakes in the version numbering scheme. + Epoch int32 `json:"epoch,omitempty"` + // Required only when version kind is NORMAL. The main part of the version name. + Name string `json:"name,omitempty"` + // The iteration of the package build from the above version. + Revision string `json:"revision,omitempty"` + // 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. + Inclusive bool `json:"inclusive,omitempty"` + // Required. Distinguishes between sentinel MIN/MAX versions and normal versions. + Kind *VersionVersionKind `json:"kind,omitempty"` +} diff --git a/0.2.0/grafeas/model_protobuf_any.go b/0.2.0/grafeas/model_protobuf_any.go new file mode 100644 index 0000000..5136306 --- /dev/null +++ b/0.2.0/grafeas/model_protobuf_any.go @@ -0,0 +1,16 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// `Any` contains an arbitrary serialized protocol buffer message along with a URL that describes the type of the serialized message. Protobuf library provides support to pack/unpack Any values in the form of utility functions or additional generated methods of the Any type. Example 1: Pack and unpack a message in C++. Foo foo = ...; Any any; any.PackFrom(foo); ... if (any.UnpackTo(&foo)) { ... } Example 2: Pack and unpack a message in Java. Foo foo = ...; Any any = Any.pack(foo); ... if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() any.Pack(foo) ... if any.Is(Foo.DESCRIPTOR): any.Unpack(foo) ... Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := ptypes.MarshalAny(foo) ... foo := &pb.Foo{} if err := ptypes.UnmarshalAny(any, foo); err != nil { ... } The pack methods provided by protobuf library will by default use 'type.googleapis.com/full.type.name' as the type URL and the unpack methods only use the fully qualified type name after the last '/' in the type URL, for example \"foo.bar.com/x/y.z\" will yield type name \"y.z\". JSON ==== The JSON representation of an `Any` value uses the regular representation of the deserialized, embedded message, with an additional field `@type` which contains the type URL. Example: package google.profile; message Person { string first_name = 1; string last_name = 2; } { \"@type\": \"type.googleapis.com/google.profile.Person\", \"firstName\": , \"lastName\": } If the embedded message type is well-known and has a custom JSON representation, that representation will be embedded adding a field `value` which holds the custom JSON in addition to the `@type` field. Example (for message [google.protobuf.Duration][]): { \"@type\": \"type.googleapis.com/google.protobuf.Duration\", \"value\": \"1.212s\" } +type ProtobufAny struct { + // A URL/resource name that uniquely identifies the type of the serialized protocol buffer message. This string must contain at least one \"/\" character. The last segment of the URL's path must represent the fully qualified name of the type (as in `path/google.protobuf.Duration`). The name should be in a canonical form (e.g., leading \".\" is not accepted). In practice, teams usually precompile into the binary all types that they expect it to use in the context of Any. However, for URLs which use the scheme `http`, `https`, or no scheme, one can optionally set up a type server that maps type URLs to message definitions as follows: * If no scheme is provided, `https` is assumed. * An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error. * Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.) Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be used with implementation specific semantics. + Type_ string `json:"@type,omitempty"` +} diff --git a/0.2.0/grafeas/model_provenance_build_provenance.go b/0.2.0/grafeas/model_provenance_build_provenance.go new file mode 100644 index 0000000..ddf94ee --- /dev/null +++ b/0.2.0/grafeas/model_provenance_build_provenance.go @@ -0,0 +1,44 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +import ( + "time" +) + +// Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. +type ProvenanceBuildProvenance struct { + // Required. Unique identifier of the build. + Id string `json:"id,omitempty"` + // ID of the project. + ProjectId string `json:"projectId,omitempty"` + // Commands requested by the build. + Commands []ProvenanceCommand `json:"commands,omitempty"` + // Output of the build. + BuiltArtifacts []V1beta1provenanceArtifact `json:"builtArtifacts,omitempty"` + // Time at which the build was created. + CreateTime time.Time `json:"createTime,omitempty"` + // Time at which execution of the build was started. + StartTime time.Time `json:"startTime,omitempty"` + // Time at which execution of the build was finished. + EndTime time.Time `json:"endTime,omitempty"` + // E-mail address of the user who initiated this build. Note that this was the user's e-mail address at the time the build was initiated; this address may not represent the same end-user for all time. + Creator string `json:"creator,omitempty"` + // URI where any logs for this provenance were written. + LogsUri string `json:"logsUri,omitempty"` + // Details of the Source input to the build. + SourceProvenance *ProvenanceSource `json:"sourceProvenance,omitempty"` + // Trigger identifier if the build was triggered automatically; empty if not. + TriggerId string `json:"triggerId,omitempty"` + // Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details. + BuildOptions map[string]string `json:"buildOptions,omitempty"` + // Version string of the builder at the time this build was executed. + BuilderVersion string `json:"builderVersion,omitempty"` +} diff --git a/0.2.0/grafeas/model_provenance_command.go b/0.2.0/grafeas/model_provenance_command.go new file mode 100644 index 0000000..6042a83 --- /dev/null +++ b/0.2.0/grafeas/model_provenance_command.go @@ -0,0 +1,26 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Command describes a step performed as part of the build pipeline. +type ProvenanceCommand struct { + // Required. Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`. + Name string `json:"name,omitempty"` + // Environment variables set before running this command. + Env []string `json:"env,omitempty"` + // Command-line arguments used when executing this command. + Args []string `json:"args,omitempty"` + // Working directory (relative to project source root) used when running this command. + Dir string `json:"dir,omitempty"` + // Optional unique identifier for this command, used in wait_for to reference this command as a dependency. + Id string `json:"id,omitempty"` + // The ID(s) of the command(s) that this command depends on. + WaitFor []string `json:"waitFor,omitempty"` +} diff --git a/0.2.0/grafeas/model_provenance_file_hashes.go b/0.2.0/grafeas/model_provenance_file_hashes.go new file mode 100644 index 0000000..b70fa7f --- /dev/null +++ b/0.2.0/grafeas/model_provenance_file_hashes.go @@ -0,0 +1,16 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Container message for hashes of byte content of files, used in source messages to verify integrity of source input to the build. +type ProvenanceFileHashes struct { + // Required. Collection of file hashes. + FileHash []ProvenanceHash `json:"fileHash,omitempty"` +} diff --git a/0.2.0/grafeas/model_provenance_hash.go b/0.2.0/grafeas/model_provenance_hash.go new file mode 100644 index 0000000..20f8156 --- /dev/null +++ b/0.2.0/grafeas/model_provenance_hash.go @@ -0,0 +1,18 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Container message for hash values. +type ProvenanceHash struct { + // Required. The type of hash that was performed. + Type_ *HashHashType `json:"type,omitempty"` + // Required. The hash value. + Value string `json:"value,omitempty"` +} diff --git a/0.2.0/grafeas/model_provenance_source.go b/0.2.0/grafeas/model_provenance_source.go new file mode 100644 index 0000000..a49a146 --- /dev/null +++ b/0.2.0/grafeas/model_provenance_source.go @@ -0,0 +1,22 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Source describes the location of the source used for the build. +type ProvenanceSource struct { + // If provided, the input binary artifacts for the build came from this location. + ArtifactStorageSourceUri string `json:"artifactStorageSourceUri,omitempty"` + // Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (.tar.gz), the FileHash will be for the single path to that file. + FileHashes map[string]ProvenanceFileHashes `json:"fileHashes,omitempty"` + // If provided, the source code used for the build came from this location. + Context *SourceSourceContext `json:"context,omitempty"` + // If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field. + AdditionalContexts []SourceSourceContext `json:"additionalContexts,omitempty"` +} diff --git a/0.2.0/grafeas/model_rpc_status.go b/0.2.0/grafeas/model_rpc_status.go new file mode 100644 index 0000000..e462625 --- /dev/null +++ b/0.2.0/grafeas/model_rpc_status.go @@ -0,0 +1,20 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// - Simple to use and understand for most users - Flexible enough to meet unexpected needs # Overview The `Status` message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of [google.rpc.Code][google.rpc.Code], but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers *understand* and *resolve* the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package `google.rpc` that can be used for common error conditions. # Language mapping The `Status` message is the logical representation of the error model, but it is not necessarily the actual wire format. When the `Status` message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C. # Other uses The error model and the `Status` message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments. Example uses of this error model include: - Partial errors. If a service needs to return partial errors to the client, it may embed the `Status` in the normal response to indicate the partial errors. - Workflow errors. A typical workflow has multiple steps. Each step may have a `Status` message for error reporting. - Batch operations. If a client uses batch request and batch response, the `Status` message should be used directly inside batch response, one for each error sub-response. - Asynchronous operations. If an API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the `Status` message. - Logging. If some API errors are stored in logs, the message `Status` could be used directly after any stripping needed for security/privacy reasons. +type RpcStatus struct { + // The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. + Code int32 `json:"code,omitempty"` + // A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client. + Message string `json:"message,omitempty"` + // A list of messages that carry the error details. There is a common set of message types for APIs to use. + Details []ProtobufAny `json:"details,omitempty"` +} diff --git a/0.2.0/grafeas/model_source_alias_context.go b/0.2.0/grafeas/model_source_alias_context.go new file mode 100644 index 0000000..c92baff --- /dev/null +++ b/0.2.0/grafeas/model_source_alias_context.go @@ -0,0 +1,18 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// An alias to a repo revision. +type SourceAliasContext struct { + // The alias kind. + Kind *AliasContextKind `json:"kind,omitempty"` + // The alias name. + Name string `json:"name,omitempty"` +} diff --git a/0.2.0/grafeas/model_source_cloud_repo_source_context.go b/0.2.0/grafeas/model_source_cloud_repo_source_context.go new file mode 100644 index 0000000..0775c23 --- /dev/null +++ b/0.2.0/grafeas/model_source_cloud_repo_source_context.go @@ -0,0 +1,20 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. +type SourceCloudRepoSourceContext struct { + // The ID of the repo. + RepoId *SourceRepoId `json:"repoId,omitempty"` + // A revision ID. + RevisionId string `json:"revisionId,omitempty"` + // An alias, which may be a branch or tag. + AliasContext *SourceAliasContext `json:"aliasContext,omitempty"` +} diff --git a/0.2.0/grafeas/model_source_gerrit_source_context.go b/0.2.0/grafeas/model_source_gerrit_source_context.go new file mode 100644 index 0000000..18ae93e --- /dev/null +++ b/0.2.0/grafeas/model_source_gerrit_source_context.go @@ -0,0 +1,22 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// A SourceContext referring to a Gerrit project. +type SourceGerritSourceContext struct { + // The URI of a running Gerrit instance. + HostUri string `json:"hostUri,omitempty"` + // The full project name within the host. Projects may be nested, so \"project/subproject\" is a valid project name. The \"repo name\" is the hostURI/project. + GerritProject string `json:"gerritProject,omitempty"` + // A revision (commit) ID. + RevisionId string `json:"revisionId,omitempty"` + // An alias, which may be a branch or tag. + AliasContext *SourceAliasContext `json:"aliasContext,omitempty"` +} diff --git a/0.2.0/grafeas/model_source_git_source_context.go b/0.2.0/grafeas/model_source_git_source_context.go new file mode 100644 index 0000000..26f459d --- /dev/null +++ b/0.2.0/grafeas/model_source_git_source_context.go @@ -0,0 +1,18 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). +type SourceGitSourceContext struct { + // Git repository URL. + Url string `json:"url,omitempty"` + // Git commit hash. + RevisionId string `json:"revisionId,omitempty"` +} diff --git a/0.2.0/grafeas/model_source_project_repo_id.go b/0.2.0/grafeas/model_source_project_repo_id.go new file mode 100644 index 0000000..bd95fb8 --- /dev/null +++ b/0.2.0/grafeas/model_source_project_repo_id.go @@ -0,0 +1,18 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. +type SourceProjectRepoId struct { + // The ID of the project. + ProjectId string `json:"projectId,omitempty"` + // The name of the repo. Leave empty for the default repo. + RepoName string `json:"repoName,omitempty"` +} diff --git a/0.2.0/grafeas/model_source_repo_id.go b/0.2.0/grafeas/model_source_repo_id.go new file mode 100644 index 0000000..4a223a3 --- /dev/null +++ b/0.2.0/grafeas/model_source_repo_id.go @@ -0,0 +1,18 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// A unique identifier for a Cloud Repo. +type SourceRepoId struct { + // A combination of a project ID and a repo name. + ProjectRepoId *SourceProjectRepoId `json:"projectRepoId,omitempty"` + // A server-assigned, globally unique identifier. + Uid string `json:"uid,omitempty"` +} diff --git a/0.2.0/grafeas/model_source_source_context.go b/0.2.0/grafeas/model_source_source_context.go new file mode 100644 index 0000000..da1cf07 --- /dev/null +++ b/0.2.0/grafeas/model_source_source_context.go @@ -0,0 +1,22 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory. +type SourceSourceContext struct { + // A SourceContext referring to a revision in a Google Cloud Source Repo. + CloudRepo *SourceCloudRepoSourceContext `json:"cloudRepo,omitempty"` + // A SourceContext referring to a Gerrit project. + Gerrit *SourceGerritSourceContext `json:"gerrit,omitempty"` + // A SourceContext referring to any third party Git repo (e.g., GitHub). + Git *SourceGitSourceContext `json:"git,omitempty"` + // Labels with user defined metadata. + Labels map[string]string `json:"labels,omitempty"` +} diff --git a/0.2.0/grafeas/model_spdx_document_note.go b/0.2.0/grafeas/model_spdx_document_note.go new file mode 100644 index 0000000..5227741 --- /dev/null +++ b/0.2.0/grafeas/model_spdx_document_note.go @@ -0,0 +1,15 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +type SpdxDocumentNote struct { + SpdxVersion string `json:"spdxVersion,omitempty"` + DataLicence string `json:"dataLicence,omitempty"` +} diff --git a/0.2.0/grafeas/model_spdx_document_occurrence.go b/0.2.0/grafeas/model_spdx_document_occurrence.go new file mode 100644 index 0000000..ea3f71c --- /dev/null +++ b/0.2.0/grafeas/model_spdx_document_occurrence.go @@ -0,0 +1,26 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +import ( + "time" +) + +type SpdxDocumentOccurrence struct { + Id string `json:"id,omitempty"` + Title string `json:"title,omitempty"` + Namespace string `json:"namespace,omitempty"` + ExternalDocumentRefs []string `json:"externalDocumentRefs,omitempty"` + LicenseListVersion string `json:"licenseListVersion,omitempty"` + Creators []string `json:"creators,omitempty"` + CreateTime time.Time `json:"createTime,omitempty"` + CreatorComment string `json:"creatorComment,omitempty"` + DocumentComment string `json:"documentComment,omitempty"` +} diff --git a/0.2.0/grafeas/model_spdx_file_note.go b/0.2.0/grafeas/model_spdx_file_note.go new file mode 100644 index 0000000..116c8fb --- /dev/null +++ b/0.2.0/grafeas/model_spdx_file_note.go @@ -0,0 +1,16 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +type SpdxFileNote struct { + Title string `json:"title,omitempty"` + FileType *FileNoteFileType `json:"fileType,omitempty"` + Checksum []string `json:"checksum,omitempty"` +} diff --git a/0.2.0/grafeas/model_spdx_file_occurrence.go b/0.2.0/grafeas/model_spdx_file_occurrence.go new file mode 100644 index 0000000..efef013 --- /dev/null +++ b/0.2.0/grafeas/model_spdx_file_occurrence.go @@ -0,0 +1,21 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +type SpdxFileOccurrence struct { + Id string `json:"id,omitempty"` + LicenseConcluded *SpdxLicense `json:"licenseConcluded,omitempty"` + FilesLicenseInfo []string `json:"filesLicenseInfo,omitempty"` + Copyright string `json:"copyright,omitempty"` + Comment string `json:"comment,omitempty"` + Notice string `json:"notice,omitempty"` + Contributors []string `json:"contributors,omitempty"` + Attributions []string `json:"attributions,omitempty"` +} diff --git a/0.2.0/grafeas/model_spdx_license.go b/0.2.0/grafeas/model_spdx_license.go new file mode 100644 index 0000000..8b4a8d2 --- /dev/null +++ b/0.2.0/grafeas/model_spdx_license.go @@ -0,0 +1,15 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +type SpdxLicense struct { + Expression string `json:"expression,omitempty"` + Comments string `json:"comments,omitempty"` +} diff --git a/0.2.0/grafeas/model_spdx_package_info_note.go b/0.2.0/grafeas/model_spdx_package_info_note.go new file mode 100644 index 0000000..63f7c07 --- /dev/null +++ b/0.2.0/grafeas/model_spdx_package_info_note.go @@ -0,0 +1,31 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +type SpdxPackageInfoNote struct { + Title string `json:"title,omitempty"` + Version string `json:"version,omitempty"` + Supplier string `json:"supplier,omitempty"` + Originator string `json:"originator,omitempty"` + DownloadLocation string `json:"downloadLocation,omitempty"` + Analyzed bool `json:"analyzed,omitempty"` + VerificationCode string `json:"verificationCode,omitempty"` + Checksum string `json:"checksum,omitempty"` + HomePage string `json:"homePage,omitempty"` + FilesLicenseInfo []string `json:"filesLicenseInfo,omitempty"` + LicenseDeclared *SpdxLicense `json:"licenseDeclared,omitempty"` + Copyright string `json:"copyright,omitempty"` + SummaryDescription string `json:"summaryDescription,omitempty"` + DetailedDescription string `json:"detailedDescription,omitempty"` + ExternalRefs []PackageInfoNoteExternalRef `json:"externalRefs,omitempty"` + Attribution string `json:"attribution,omitempty"` + // The type of package: OS, MAVEN, GO, GO_STDLIB, etc. + PackageType string `json:"packageType,omitempty"` +} diff --git a/0.2.0/grafeas/model_spdx_package_info_occurrence.go b/0.2.0/grafeas/model_spdx_package_info_occurrence.go new file mode 100644 index 0000000..a519415 --- /dev/null +++ b/0.2.0/grafeas/model_spdx_package_info_occurrence.go @@ -0,0 +1,24 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +type SpdxPackageInfoOccurrence struct { + Id string `json:"id,omitempty"` + Filename string `json:"filename,omitempty"` + SourceInfo string `json:"sourceInfo,omitempty"` + LicenseConcluded *SpdxLicense `json:"licenseConcluded,omitempty"` + Comment string `json:"comment,omitempty"` + // The type of package: OS, MAVEN, GO, GO_STDLIB, etc. + PackageType string `json:"packageType,omitempty"` + Title string `json:"title,omitempty"` + Version string `json:"version,omitempty"` + HomePage string `json:"homePage,omitempty"` + SummaryDescription string `json:"summaryDescription,omitempty"` +} diff --git a/0.2.0/grafeas/model_spdx_relationship_note.go b/0.2.0/grafeas/model_spdx_relationship_note.go new file mode 100644 index 0000000..5cdc69d --- /dev/null +++ b/0.2.0/grafeas/model_spdx_relationship_note.go @@ -0,0 +1,14 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +type SpdxRelationshipNote struct { + Type_ *SpdxRelationshipType `json:"type,omitempty"` +} diff --git a/0.2.0/grafeas/model_spdx_relationship_occurrence.go b/0.2.0/grafeas/model_spdx_relationship_occurrence.go new file mode 100644 index 0000000..1e19e6e --- /dev/null +++ b/0.2.0/grafeas/model_spdx_relationship_occurrence.go @@ -0,0 +1,17 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +type SpdxRelationshipOccurrence struct { + Source string `json:"source,omitempty"` + Target string `json:"target,omitempty"` + Type_ *SpdxRelationshipType `json:"type,omitempty"` + Comment string `json:"comment,omitempty"` +} diff --git a/0.2.0/grafeas/model_spdx_relationship_type.go b/0.2.0/grafeas/model_spdx_relationship_type.go new file mode 100644 index 0000000..44d57e3 --- /dev/null +++ b/0.2.0/grafeas/model_spdx_relationship_type.go @@ -0,0 +1,60 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas +// SpdxRelationshipType : - RELATIONSHIP_TYPE_UNSPECIFIED: Unspecified - DESCRIBES: Is to be used when SPDXRef-DOCUMENT describes SPDXRef-A - DESCRIBED_BY: Is to be used when SPDXRef-A is described by SPDXREF-Document - CONTAINS: Is to be used when SPDXRef-A contains SPDXRef-B - CONTAINED_BY: Is to be used when SPDXRef-A is contained by SPDXRef-B - DEPENDS_ON: Is to be used when SPDXRef-A depends on SPDXRef-B - DEPENDENCY_OF: Is to be used when SPDXRef-A is dependency of SPDXRef-B - DEPENDENCY_MANIFEST_OF: Is to be used when SPDXRef-A is a manifest file that lists a set of dependencies for SPDXRef-B - BUILD_DEPENDENCY_OF: Is to be used when SPDXRef-A is a build dependency of SPDXRef-B - DEV_DEPENDENCY_OF: Is to be used when SPDXRef-A is a development dependency of SPDXRef-B - OPTIONAL_DEPENDENCY_OF: Is to be used when SPDXRef-A is an optional dependency of SPDXRef-B - PROVIDED_DEPENDENCY_OF: Is to be used when SPDXRef-A is a to be provided dependency of SPDXRef-B - TEST_DEPENDENCY_OF: Is to be used when SPDXRef-A is a test dependency of SPDXRef-B - RUNTIME_DEPENDENCY_OF: Is to be used when SPDXRef-A is a dependency required for the execution of SPDXRef-B - EXAMPLE_OF: Is to be used when SPDXRef-A is an example of SPDXRef-B - GENERATES: Is to be used when SPDXRef-A generates SPDXRef-B - GENERATED_FROM: Is to be used when SPDXRef-A was generated from SPDXRef-B - ANCESTOR_OF: Is to be used when SPDXRef-A is an ancestor (same lineage but pre-dates) SPDXRef-B - DESCENDANT_OF: Is to be used when SPDXRef-A is a descendant of (same lineage but postdates) SPDXRef-B - VARIANT_OF: Is to be used when SPDXRef-A is a variant of (same lineage but not clear which came first) SPDXRef-B - DISTRIBUTION_ARTIFACT: Is to be used when distributing SPDXRef-A requires that SPDXRef-B also be distributed - PATCH_FOR: Is to be used when SPDXRef-A is a patch file for (to be applied to) SPDXRef-B - PATCH_APPLIED: Is to be used when SPDXRef-A is a patch file that has been applied to SPDXRef-B - COPY_OF: Is to be used when SPDXRef-A is an exact copy of SPDXRef-B - FILE_ADDED: Is to be used when SPDXRef-A is a file that was added to SPDXRef-B - FILE_DELETED: Is to be used when SPDXRef-A is a file that was deleted from SPDXRef-B - FILE_MODIFIED: Is to be used when SPDXRef-A is a file that was modified from SPDXRef-B - EXPANDED_FROM_ARCHIVE: Is to be used when SPDXRef-A is expanded from the archive SPDXRef-B - DYNAMIC_LINK: Is to be used when SPDXRef-A dynamically links to SPDXRef-B - STATIC_LINK: Is to be used when SPDXRef-A statically links to SPDXRef-B - DATA_FILE_OF: Is to be used when SPDXRef-A is a data file used in SPDXRef-B - TEST_CASE_OF: Is to be used when SPDXRef-A is a test case used in testing SPDXRef-B - BUILD_TOOL_OF: Is to be used when SPDXRef-A is used to build SPDXRef-B - DEV_TOOL_OF: Is to be used when SPDXRef-A is used as a development tool for SPDXRef-B - TEST_OF: Is to be used when SPDXRef-A is used for testing SPDXRef-B - TEST_TOOL_OF: Is to be used when SPDXRef-A is used as a test tool for SPDXRef-B - DOCUMENTATION_OF: Is to be used when SPDXRef-A provides documentation of SPDXRef-B - OPTIONAL_COMPONENT_OF: Is to be used when SPDXRef-A is an optional component of SPDXRef-B - METAFILE_OF: Is to be used when SPDXRef-A is a metafile of SPDXRef-B - PACKAGE_OF: Is to be used when SPDXRef-A is used as a package as part of SPDXRef-B - AMENDS: Is to be used when (current) SPDXRef-DOCUMENT amends the SPDX information in SPDXRef-B - PREREQUISITE_FOR: Is to be used when SPDXRef-A is a prerequisite for SPDXRef-B - HAS_PREREQUISITE: Is to be used when SPDXRef-A has as a prerequisite SPDXRef-B - OTHER: Is to be used for a relationship which has not been defined in the formal SPDX specification. A description of the relationship should be included in the Relationship comments field +type SpdxRelationshipType string + +// List of spdxRelationshipType +const ( + RELATIONSHIP_TYPE_UNSPECIFIED_SpdxRelationshipType SpdxRelationshipType = "RELATIONSHIP_TYPE_UNSPECIFIED" + DESCRIBES_SpdxRelationshipType SpdxRelationshipType = "DESCRIBES" + DESCRIBED_BY_SpdxRelationshipType SpdxRelationshipType = "DESCRIBED_BY" + CONTAINS_SpdxRelationshipType SpdxRelationshipType = "CONTAINS" + CONTAINED_BY_SpdxRelationshipType SpdxRelationshipType = "CONTAINED_BY" + DEPENDS_ON_SpdxRelationshipType SpdxRelationshipType = "DEPENDS_ON" + DEPENDENCY_OF_SpdxRelationshipType SpdxRelationshipType = "DEPENDENCY_OF" + DEPENDENCY_MANIFEST_OF_SpdxRelationshipType SpdxRelationshipType = "DEPENDENCY_MANIFEST_OF" + BUILD_DEPENDENCY_OF_SpdxRelationshipType SpdxRelationshipType = "BUILD_DEPENDENCY_OF" + DEV_DEPENDENCY_OF_SpdxRelationshipType SpdxRelationshipType = "DEV_DEPENDENCY_OF" + OPTIONAL_DEPENDENCY_OF_SpdxRelationshipType SpdxRelationshipType = "OPTIONAL_DEPENDENCY_OF" + PROVIDED_DEPENDENCY_OF_SpdxRelationshipType SpdxRelationshipType = "PROVIDED_DEPENDENCY_OF" + TEST_DEPENDENCY_OF_SpdxRelationshipType SpdxRelationshipType = "TEST_DEPENDENCY_OF" + RUNTIME_DEPENDENCY_OF_SpdxRelationshipType SpdxRelationshipType = "RUNTIME_DEPENDENCY_OF" + EXAMPLE_OF_SpdxRelationshipType SpdxRelationshipType = "EXAMPLE_OF" + GENERATES_SpdxRelationshipType SpdxRelationshipType = "GENERATES" + GENERATED_FROM_SpdxRelationshipType SpdxRelationshipType = "GENERATED_FROM" + ANCESTOR_OF_SpdxRelationshipType SpdxRelationshipType = "ANCESTOR_OF" + DESCENDANT_OF_SpdxRelationshipType SpdxRelationshipType = "DESCENDANT_OF" + VARIANT_OF_SpdxRelationshipType SpdxRelationshipType = "VARIANT_OF" + DISTRIBUTION_ARTIFACT_SpdxRelationshipType SpdxRelationshipType = "DISTRIBUTION_ARTIFACT" + PATCH_FOR_SpdxRelationshipType SpdxRelationshipType = "PATCH_FOR" + PATCH_APPLIED_SpdxRelationshipType SpdxRelationshipType = "PATCH_APPLIED" + COPY_OF_SpdxRelationshipType SpdxRelationshipType = "COPY_OF" + FILE_ADDED_SpdxRelationshipType SpdxRelationshipType = "FILE_ADDED" + FILE_DELETED_SpdxRelationshipType SpdxRelationshipType = "FILE_DELETED" + FILE_MODIFIED_SpdxRelationshipType SpdxRelationshipType = "FILE_MODIFIED" + EXPANDED_FROM_ARCHIVE_SpdxRelationshipType SpdxRelationshipType = "EXPANDED_FROM_ARCHIVE" + DYNAMIC_LINK_SpdxRelationshipType SpdxRelationshipType = "DYNAMIC_LINK" + STATIC_LINK_SpdxRelationshipType SpdxRelationshipType = "STATIC_LINK" + DATA_FILE_OF_SpdxRelationshipType SpdxRelationshipType = "DATA_FILE_OF" + TEST_CASE_OF_SpdxRelationshipType SpdxRelationshipType = "TEST_CASE_OF" + BUILD_TOOL_OF_SpdxRelationshipType SpdxRelationshipType = "BUILD_TOOL_OF" + DEV_TOOL_OF_SpdxRelationshipType SpdxRelationshipType = "DEV_TOOL_OF" + TEST_OF_SpdxRelationshipType SpdxRelationshipType = "TEST_OF" + TEST_TOOL_OF_SpdxRelationshipType SpdxRelationshipType = "TEST_TOOL_OF" + DOCUMENTATION_OF_SpdxRelationshipType SpdxRelationshipType = "DOCUMENTATION_OF" + OPTIONAL_COMPONENT_OF_SpdxRelationshipType SpdxRelationshipType = "OPTIONAL_COMPONENT_OF" + METAFILE_OF_SpdxRelationshipType SpdxRelationshipType = "METAFILE_OF" + PACKAGE_OF_SpdxRelationshipType SpdxRelationshipType = "PACKAGE_OF" + AMENDS_SpdxRelationshipType SpdxRelationshipType = "AMENDS" + PREREQUISITE_FOR_SpdxRelationshipType SpdxRelationshipType = "PREREQUISITE_FOR" + HAS_PREREQUISITE_SpdxRelationshipType SpdxRelationshipType = "HAS_PREREQUISITE" + OTHER_SpdxRelationshipType SpdxRelationshipType = "OTHER" +) diff --git a/0.2.0/grafeas/model_v1beta1_batch_create_notes_response.go b/0.2.0/grafeas/model_v1beta1_batch_create_notes_response.go new file mode 100644 index 0000000..6186900 --- /dev/null +++ b/0.2.0/grafeas/model_v1beta1_batch_create_notes_response.go @@ -0,0 +1,16 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Response for creating notes in batch. +type V1beta1BatchCreateNotesResponse struct { + // The notes that were created. + Notes []V1beta1Note `json:"notes,omitempty"` +} diff --git a/0.2.0/grafeas/model_v1beta1_batch_create_occurrences_response.go b/0.2.0/grafeas/model_v1beta1_batch_create_occurrences_response.go new file mode 100644 index 0000000..941e8f2 --- /dev/null +++ b/0.2.0/grafeas/model_v1beta1_batch_create_occurrences_response.go @@ -0,0 +1,16 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Response for creating occurrences in batch. +type V1beta1BatchCreateOccurrencesResponse struct { + // The occurrences that were created. + Occurrences []V1beta1Occurrence `json:"occurrences,omitempty"` +} diff --git a/0.2.0/grafeas/model_v1beta1_envelope.go b/0.2.0/grafeas/model_v1beta1_envelope.go new file mode 100644 index 0000000..0a4c0b0 --- /dev/null +++ b/0.2.0/grafeas/model_v1beta1_envelope.go @@ -0,0 +1,17 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. +type V1beta1Envelope struct { + Payload string `json:"payload,omitempty"` + PayloadType string `json:"payloadType,omitempty"` + Signatures []V1beta1EnvelopeSignature `json:"signatures,omitempty"` +} diff --git a/0.2.0/grafeas/model_v1beta1_envelope_signature.go b/0.2.0/grafeas/model_v1beta1_envelope_signature.go new file mode 100644 index 0000000..2d7c88c --- /dev/null +++ b/0.2.0/grafeas/model_v1beta1_envelope_signature.go @@ -0,0 +1,15 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +type V1beta1EnvelopeSignature struct { + Sig string `json:"sig,omitempty"` + Keyid string `json:"keyid,omitempty"` +} diff --git a/0.2.0/grafeas/model_v1beta1_list_note_occurrences_response.go b/0.2.0/grafeas/model_v1beta1_list_note_occurrences_response.go new file mode 100644 index 0000000..8e1274a --- /dev/null +++ b/0.2.0/grafeas/model_v1beta1_list_note_occurrences_response.go @@ -0,0 +1,18 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Response for listing occurrences for a note. +type V1beta1ListNoteOccurrencesResponse struct { + // The occurrences attached to the specified note. + Occurrences []V1beta1Occurrence `json:"occurrences,omitempty"` + // Token to provide to skip to a particular spot in the list. + NextPageToken string `json:"nextPageToken,omitempty"` +} diff --git a/0.2.0/grafeas/model_v1beta1_list_notes_response.go b/0.2.0/grafeas/model_v1beta1_list_notes_response.go new file mode 100644 index 0000000..f94081f --- /dev/null +++ b/0.2.0/grafeas/model_v1beta1_list_notes_response.go @@ -0,0 +1,18 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Response for listing notes. +type V1beta1ListNotesResponse struct { + // The notes requested. + Notes []V1beta1Note `json:"notes,omitempty"` + // The next pagination token in the list response. It should be used as `page_token` for the following request. An empty value means no more results. + NextPageToken string `json:"nextPageToken,omitempty"` +} diff --git a/0.2.0/grafeas/model_v1beta1_list_occurrences_response.go b/0.2.0/grafeas/model_v1beta1_list_occurrences_response.go new file mode 100644 index 0000000..e2dcfdd --- /dev/null +++ b/0.2.0/grafeas/model_v1beta1_list_occurrences_response.go @@ -0,0 +1,18 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Response for listing occurrences. +type V1beta1ListOccurrencesResponse struct { + // The occurrences requested. + Occurrences []V1beta1Occurrence `json:"occurrences,omitempty"` + // The next pagination token in the list response. It should be used as `page_token` for the following request. An empty value means no more results. + NextPageToken string `json:"nextPageToken,omitempty"` +} diff --git a/0.2.0/grafeas/model_v1beta1_note.go b/0.2.0/grafeas/model_v1beta1_note.go new file mode 100644 index 0000000..1149c7d --- /dev/null +++ b/0.2.0/grafeas/model_v1beta1_note.go @@ -0,0 +1,60 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +import ( + "time" +) + +// A type of analysis that can be done for a resource. +type V1beta1Note struct { + // Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. + Name string `json:"name,omitempty"` + // A one sentence description of this note. + ShortDescription string `json:"shortDescription,omitempty"` + // A detailed description of this note. + LongDescription string `json:"longDescription,omitempty"` + // Output only. The type of analysis. This field can be used as a filter in list requests. + Kind *V1beta1NoteKind `json:"kind,omitempty"` + // URLs associated with this note. + RelatedUrl []V1beta1RelatedUrl `json:"relatedUrl,omitempty"` + // Time of expiration for this note. Empty if note does not expire. + ExpirationTime time.Time `json:"expirationTime,omitempty"` + // Output only. The time this note was created. This field can be used as a filter in list requests. + CreateTime time.Time `json:"createTime,omitempty"` + // Output only. The time this note was last updated. This field can be used as a filter in list requests. + UpdateTime time.Time `json:"updateTime,omitempty"` + // Other notes related to this note. + RelatedNoteNames []string `json:"relatedNoteNames,omitempty"` + // A note describing a package vulnerability. + Vulnerability *VulnerabilityVulnerability `json:"vulnerability,omitempty"` + // A note describing build provenance for a verifiable build. + Build *BuildBuild `json:"build,omitempty"` + // A note describing a base image. + BaseImage *ImageBasis `json:"baseImage,omitempty"` + // A note describing a package hosted by various package managers. + Package_ *PackagePackage `json:"package,omitempty"` + // A note describing something that can be deployed. + Deployable *DeploymentDeployable `json:"deployable,omitempty"` + // A note describing the initial analysis of a resource. + Discovery *DiscoveryDiscovery `json:"discovery,omitempty"` + // A note describing an attestation role. + AttestationAuthority *AttestationAuthority `json:"attestationAuthority,omitempty"` + // A note describing an in-toto link. + Intoto *IntotoInToto `json:"intoto,omitempty"` + // A note describing a software bill of materials. + Sbom *SpdxDocumentNote `json:"sbom,omitempty"` + // A note describing an SPDX Package. + SpdxPackage *SpdxPackageInfoNote `json:"spdxPackage,omitempty"` + // A note describing an SPDX File. + SpdxFile *SpdxFileNote `json:"spdxFile,omitempty"` + // A note describing an SPDX File. + SpdxRelationship *SpdxRelationshipNote `json:"spdxRelationship,omitempty"` +} diff --git a/0.2.0/grafeas/model_v1beta1_note_kind.go b/0.2.0/grafeas/model_v1beta1_note_kind.go new file mode 100644 index 0000000..1736855 --- /dev/null +++ b/0.2.0/grafeas/model_v1beta1_note_kind.go @@ -0,0 +1,29 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas +// V1beta1NoteKind : Kind represents the kinds of notes supported. - NOTE_KIND_UNSPECIFIED: Default value. This value is unused. - VULNERABILITY: The note and occurrence represent a package vulnerability. - BUILD: The note and occurrence assert build provenance. - IMAGE: This represents an image basis relationship. - PACKAGE: This represents a package installed via a package manager. - DEPLOYMENT: The note and occurrence track deployment events. - DISCOVERY: The note and occurrence track the initial discovery status of a resource. - ATTESTATION: This represents a logical \"role\" that can attest to artifacts. - INTOTO: This represents an in-toto link. - SBOM: This represents a software bill of materials. - SPDX_PACKAGE: This represents an SPDX Package. - SPDX_FILE: This represents an SPDX File. - SPDX_RELATIONSHIP: This represents an SPDX Relationship. +type V1beta1NoteKind string + +// List of v1beta1NoteKind +const ( + NOTE_KIND_UNSPECIFIED_V1beta1NoteKind V1beta1NoteKind = "NOTE_KIND_UNSPECIFIED" + VULNERABILITY_V1beta1NoteKind V1beta1NoteKind = "VULNERABILITY" + BUILD_V1beta1NoteKind V1beta1NoteKind = "BUILD" + IMAGE_V1beta1NoteKind V1beta1NoteKind = "IMAGE" + PACKAGE__V1beta1NoteKind V1beta1NoteKind = "PACKAGE" + DEPLOYMENT_V1beta1NoteKind V1beta1NoteKind = "DEPLOYMENT" + DISCOVERY_V1beta1NoteKind V1beta1NoteKind = "DISCOVERY" + ATTESTATION_V1beta1NoteKind V1beta1NoteKind = "ATTESTATION" + INTOTO_V1beta1NoteKind V1beta1NoteKind = "INTOTO" + SBOM_V1beta1NoteKind V1beta1NoteKind = "SBOM" + SPDX_PACKAGE_V1beta1NoteKind V1beta1NoteKind = "SPDX_PACKAGE" + SPDX_FILE_V1beta1NoteKind V1beta1NoteKind = "SPDX_FILE" + SPDX_RELATIONSHIP_V1beta1NoteKind V1beta1NoteKind = "SPDX_RELATIONSHIP" +) diff --git a/0.2.0/grafeas/model_v1beta1_occurrence.go b/0.2.0/grafeas/model_v1beta1_occurrence.go new file mode 100644 index 0000000..d1ff2bd --- /dev/null +++ b/0.2.0/grafeas/model_v1beta1_occurrence.go @@ -0,0 +1,57 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +import ( + "time" +) + +// An instance of an analysis type that has been found on a resource. +type V1beta1Occurrence struct { + // Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. + Name string `json:"name,omitempty"` + // Required. Immutable. The resource for which the occurrence applies. + Resource *V1beta1Resource `json:"resource,omitempty"` + // 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. + NoteName string `json:"noteName,omitempty"` + // Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. + Kind *V1beta1NoteKind `json:"kind,omitempty"` + // A description of actions that can be taken to remedy the note. + Remediation string `json:"remediation,omitempty"` + // Output only. The time this occurrence was created. + CreateTime time.Time `json:"createTime,omitempty"` + // Output only. The time this occurrence was last updated. + UpdateTime time.Time `json:"updateTime,omitempty"` + // Describes a security vulnerability. + Vulnerability *V1beta1vulnerabilityDetails `json:"vulnerability,omitempty"` + // Describes a verifiable build. + Build *V1beta1buildDetails `json:"build,omitempty"` + // Describes how this resource derives from the basis in the associated note. + DerivedImage *V1beta1imageDetails `json:"derivedImage,omitempty"` + // Describes the installation of a package on the linked resource. + Installation *V1beta1packageDetails `json:"installation,omitempty"` + // Describes the deployment of an artifact on a runtime. + Deployment *V1beta1deploymentDetails `json:"deployment,omitempty"` + // Describes when a resource was discovered. + Discovered *V1beta1discoveryDetails `json:"discovered,omitempty"` + // Describes an attestation of an artifact. + Attestation *V1beta1attestationDetails `json:"attestation,omitempty"` + // Describes a specific in-toto link. + Intoto *V1beta1intotoDetails `json:"intoto,omitempty"` + // Describes a specific software bill of materials document. + Sbom *SpdxDocumentOccurrence `json:"sbom,omitempty"` + // Describes a specific SPDX Package. + SpdxPackage *SpdxPackageInfoOccurrence `json:"spdxPackage,omitempty"` + // Describes a specific SPDX File. + SpdxFile *SpdxFileOccurrence `json:"spdxFile,omitempty"` + // Describes a specific SPDX Relationship. + SpdxRelationship *SpdxRelationshipOccurrence `json:"spdxRelationship,omitempty"` + Envelope *V1beta1Envelope `json:"envelope,omitempty"` +} diff --git a/0.2.0/grafeas/model_v1beta1_related_url.go b/0.2.0/grafeas/model_v1beta1_related_url.go new file mode 100644 index 0000000..52d9ce0 --- /dev/null +++ b/0.2.0/grafeas/model_v1beta1_related_url.go @@ -0,0 +1,18 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Metadata for any related URL information. +type V1beta1RelatedUrl struct { + // Specific URL associated with the resource. + Url string `json:"url,omitempty"` + // Label to describe usage of the URL. + Label string `json:"label,omitempty"` +} diff --git a/0.2.0/grafeas/model_v1beta1_resource.go b/0.2.0/grafeas/model_v1beta1_resource.go new file mode 100644 index 0000000..646ee9c --- /dev/null +++ b/0.2.0/grafeas/model_v1beta1_resource.go @@ -0,0 +1,20 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// An entity that can have metadata. For example, a Docker image. +type V1beta1Resource struct { + // Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - \"Debian\". + Name string `json:"name,omitempty"` + // Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image. + Uri string `json:"uri,omitempty"` + // Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest. + ContentHash *ProvenanceHash `json:"contentHash,omitempty"` +} diff --git a/0.2.0/grafeas/model_v1beta1_vulnerability_occurrences_summary.go b/0.2.0/grafeas/model_v1beta1_vulnerability_occurrences_summary.go new file mode 100644 index 0000000..961b5de --- /dev/null +++ b/0.2.0/grafeas/model_v1beta1_vulnerability_occurrences_summary.go @@ -0,0 +1,16 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// A summary of how many vulnerability occurrences there are per resource and severity type. +type V1beta1VulnerabilityOccurrencesSummary struct { + // A listing by resource of the number of fixable and total vulnerabilities. + Counts []VulnerabilityOccurrencesSummaryFixableTotalByDigest `json:"counts,omitempty"` +} diff --git a/0.2.0/grafeas/model_v1beta1attestation_details.go b/0.2.0/grafeas/model_v1beta1attestation_details.go new file mode 100644 index 0000000..0d8419c --- /dev/null +++ b/0.2.0/grafeas/model_v1beta1attestation_details.go @@ -0,0 +1,16 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Details of an attestation occurrence. +type V1beta1attestationDetails struct { + // Required. Attestation for the resource. + Attestation *AttestationAttestation `json:"attestation,omitempty"` +} diff --git a/0.2.0/grafeas/model_v1beta1build_details.go b/0.2.0/grafeas/model_v1beta1build_details.go new file mode 100644 index 0000000..1804d5d --- /dev/null +++ b/0.2.0/grafeas/model_v1beta1build_details.go @@ -0,0 +1,18 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Details of a build occurrence. +type V1beta1buildDetails struct { + // Required. The actual provenance for the build. + Provenance *ProvenanceBuildProvenance `json:"provenance,omitempty"` + // 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. + ProvenanceBytes string `json:"provenanceBytes,omitempty"` +} diff --git a/0.2.0/grafeas/model_v1beta1deployment_details.go b/0.2.0/grafeas/model_v1beta1deployment_details.go new file mode 100644 index 0000000..fb52b74 --- /dev/null +++ b/0.2.0/grafeas/model_v1beta1deployment_details.go @@ -0,0 +1,16 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Details of a deployment occurrence. +type V1beta1deploymentDetails struct { + // Required. Deployment history for the resource. + Deployment *DeploymentDeployment `json:"deployment,omitempty"` +} diff --git a/0.2.0/grafeas/model_v1beta1discovery_details.go b/0.2.0/grafeas/model_v1beta1discovery_details.go new file mode 100644 index 0000000..cb0e689 --- /dev/null +++ b/0.2.0/grafeas/model_v1beta1discovery_details.go @@ -0,0 +1,16 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Details of a discovery occurrence. +type V1beta1discoveryDetails struct { + // Required. Analysis status for the discovered resource. + Discovered *DiscoveryDiscovered `json:"discovered,omitempty"` +} diff --git a/0.2.0/grafeas/model_v1beta1image_details.go b/0.2.0/grafeas/model_v1beta1image_details.go new file mode 100644 index 0000000..d508f3d --- /dev/null +++ b/0.2.0/grafeas/model_v1beta1image_details.go @@ -0,0 +1,16 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Details of an image occurrence. +type V1beta1imageDetails struct { + // Required. Immutable. The child image derived from the base image. + DerivedImage *ImageDerived `json:"derivedImage,omitempty"` +} diff --git a/0.2.0/grafeas/model_v1beta1intoto_details.go b/0.2.0/grafeas/model_v1beta1intoto_details.go new file mode 100644 index 0000000..a320731 --- /dev/null +++ b/0.2.0/grafeas/model_v1beta1intoto_details.go @@ -0,0 +1,16 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// This corresponds to a signed in-toto link - it is made up of one or more signatures and the in-toto link itself. This is used for occurrences of a Grafeas in-toto note. +type V1beta1intotoDetails struct { + Signatures []V1beta1intotoSignature `json:"signatures,omitempty"` + Signed *IntotoLink `json:"signed,omitempty"` +} diff --git a/0.2.0/grafeas/model_v1beta1intoto_signature.go b/0.2.0/grafeas/model_v1beta1intoto_signature.go new file mode 100644 index 0000000..3581d58 --- /dev/null +++ b/0.2.0/grafeas/model_v1beta1intoto_signature.go @@ -0,0 +1,16 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// A signature object consists of the KeyID used and the signature itself. +type V1beta1intotoSignature struct { + Keyid string `json:"keyid,omitempty"` + Sig string `json:"sig,omitempty"` +} diff --git a/0.2.0/grafeas/model_v1beta1package_details.go b/0.2.0/grafeas/model_v1beta1package_details.go new file mode 100644 index 0000000..a7c9e29 --- /dev/null +++ b/0.2.0/grafeas/model_v1beta1package_details.go @@ -0,0 +1,16 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Details of a package occurrence. +type V1beta1packageDetails struct { + // Required. Where the package was installed. + Installation *PackageInstallation `json:"installation,omitempty"` +} diff --git a/0.2.0/grafeas/model_v1beta1package_location.go b/0.2.0/grafeas/model_v1beta1package_location.go new file mode 100644 index 0000000..3ce64ce --- /dev/null +++ b/0.2.0/grafeas/model_v1beta1package_location.go @@ -0,0 +1,20 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// An occurrence of a particular package installation found within a system's filesystem. E.g., glibc was found in `/var/lib/dpkg/status`. +type V1beta1packageLocation struct { + // Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. + CpeUri string `json:"cpeUri,omitempty"` + // The version installed at this location. + Version *PackageVersion `json:"version,omitempty"` + // The path from which we gathered that this package/version is installed. + Path string `json:"path,omitempty"` +} diff --git a/0.2.0/grafeas/model_v1beta1provenance_artifact.go b/0.2.0/grafeas/model_v1beta1provenance_artifact.go new file mode 100644 index 0000000..a0940cf --- /dev/null +++ b/0.2.0/grafeas/model_v1beta1provenance_artifact.go @@ -0,0 +1,20 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Artifact describes a build product. +type V1beta1provenanceArtifact struct { + // Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container. + Checksum string `json:"checksum,omitempty"` + // Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`. + Id string `json:"id,omitempty"` + // Related artifact names. 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`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image. + Names []string `json:"names,omitempty"` +} diff --git a/0.2.0/grafeas/model_v1beta1vulnerability_details.go b/0.2.0/grafeas/model_v1beta1vulnerability_details.go new file mode 100644 index 0000000..0192ef4 --- /dev/null +++ b/0.2.0/grafeas/model_v1beta1vulnerability_details.go @@ -0,0 +1,29 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Details of a vulnerability Occurrence. +type V1beta1vulnerabilityDetails struct { + Type_ string `json:"type,omitempty"` + // Output only. The note provider assigned Severity of the vulnerability. + Severity *VulnerabilitySeverity `json:"severity,omitempty"` + // Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity. + CvssScore float32 `json:"cvssScore,omitempty"` + // Required. The set of affected locations and their fixes (if available) within the associated resource. + PackageIssue []VulnerabilityPackageIssue `json:"packageIssue,omitempty"` + // Output only. A one sentence description of this vulnerability. + ShortDescription string `json:"shortDescription,omitempty"` + // Output only. A detailed description of this vulnerability. + LongDescription string `json:"longDescription,omitempty"` + // Output only. URLs related to this vulnerability. + RelatedUrls []V1beta1RelatedUrl `json:"relatedUrls,omitempty"` + // The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues. + EffectiveSeverity *VulnerabilitySeverity `json:"effectiveSeverity,omitempty"` +} diff --git a/0.2.0/grafeas/model_version_version_kind.go b/0.2.0/grafeas/model_version_version_kind.go new file mode 100644 index 0000000..cf8416d --- /dev/null +++ b/0.2.0/grafeas/model_version_version_kind.go @@ -0,0 +1,20 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas +// VersionVersionKind : Whether this is an ordinary package version or a sentinel MIN/MAX version. - VERSION_KIND_UNSPECIFIED: Unknown. - NORMAL: A standard package version. - MINIMUM: A special version representing negative infinity. - MAXIMUM: A special version representing positive infinity. +type VersionVersionKind string + +// List of VersionVersionKind +const ( + VERSION_KIND_UNSPECIFIED_VersionVersionKind VersionVersionKind = "VERSION_KIND_UNSPECIFIED" + NORMAL_VersionVersionKind VersionVersionKind = "NORMAL" + MINIMUM_VersionVersionKind VersionVersionKind = "MINIMUM" + MAXIMUM_VersionVersionKind VersionVersionKind = "MAXIMUM" +) diff --git a/0.2.0/grafeas/model_vulnerability_cvss.go b/0.2.0/grafeas/model_vulnerability_cvss.go new file mode 100644 index 0000000..15fb1f7 --- /dev/null +++ b/0.2.0/grafeas/model_vulnerability_cvss.go @@ -0,0 +1,27 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +type VulnerabilityCvss struct { + // The base score is a function of the base metric scores. + BaseScore float32 `json:"baseScore,omitempty"` + ExploitabilityScore float32 `json:"exploitabilityScore,omitempty"` + ImpactScore float32 `json:"impactScore,omitempty"` + // Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. + AttackVector *CvssAttackVector `json:"attackVector,omitempty"` + AttackComplexity *CvssAttackComplexity `json:"attackComplexity,omitempty"` + Authentication *CvssAuthentication `json:"authentication,omitempty"` + PrivilegesRequired *CvssPrivilegesRequired `json:"privilegesRequired,omitempty"` + UserInteraction *CvssUserInteraction `json:"userInteraction,omitempty"` + Scope *CvssScope `json:"scope,omitempty"` + ConfidentialityImpact *CvssImpact `json:"confidentialityImpact,omitempty"` + IntegrityImpact *CvssImpact `json:"integrityImpact,omitempty"` + AvailabilityImpact *CvssImpact `json:"availabilityImpact,omitempty"` +} diff --git a/0.2.0/grafeas/model_vulnerability_detail.go b/0.2.0/grafeas/model_vulnerability_detail.go new file mode 100644 index 0000000..6fc9a33 --- /dev/null +++ b/0.2.0/grafeas/model_vulnerability_detail.go @@ -0,0 +1,41 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +import ( + "time" +) + +type VulnerabilityDetail struct { + // Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar. + CpeUri string `json:"cpeUri,omitempty"` + // Required. The name of the package where the vulnerability was found. + Package_ string `json:"package,omitempty"` + // The min version of the package in which the vulnerability exists. + MinAffectedVersion *PackageVersion `json:"minAffectedVersion,omitempty"` + // The max version of the package in which the vulnerability exists. + MaxAffectedVersion *PackageVersion `json:"maxAffectedVersion,omitempty"` + // The severity (eg: distro assigned severity) for this vulnerability. + SeverityName string `json:"severityName,omitempty"` + // A vendor-specific description of this note. + Description string `json:"description,omitempty"` + // The fix for this specific package version. + FixedLocation *VulnerabilityVulnerabilityLocation `json:"fixedLocation,omitempty"` + // The type of package; whether native or non native(ruby gems, node.js packages etc). + PackageType string `json:"packageType,omitempty"` + // Whether this detail is obsolete. Occurrences are expected not to point to obsolete details. + IsObsolete bool `json:"isObsolete,omitempty"` + // The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker. + SourceUpdateTime time.Time `json:"sourceUpdateTime,omitempty"` + // The source from which the information in this Detail was obtained. + Source string `json:"source,omitempty"` + // The name of the vendor of the product. + Vendor string `json:"vendor,omitempty"` +} diff --git a/0.2.0/grafeas/model_vulnerability_occurrences_summary_fixable_total_by_digest.go b/0.2.0/grafeas/model_vulnerability_occurrences_summary_fixable_total_by_digest.go new file mode 100644 index 0000000..c527875 --- /dev/null +++ b/0.2.0/grafeas/model_vulnerability_occurrences_summary_fixable_total_by_digest.go @@ -0,0 +1,22 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Per resource and severity counts of fixable and total vulnerabilities. +type VulnerabilityOccurrencesSummaryFixableTotalByDigest struct { + // The affected resource. + Resource *V1beta1Resource `json:"resource,omitempty"` + // The severity for this count. SEVERITY_UNSPECIFIED indicates total across all severities. + Severity *VulnerabilitySeverity `json:"severity,omitempty"` + // The number of fixable vulnerabilities associated with this resource. + FixableCount string `json:"fixableCount,omitempty"` + // The total number of vulnerabilities associated with this resource. + TotalCount string `json:"totalCount,omitempty"` +} diff --git a/0.2.0/grafeas/model_vulnerability_package_issue.go b/0.2.0/grafeas/model_vulnerability_package_issue.go new file mode 100644 index 0000000..0a647c5 --- /dev/null +++ b/0.2.0/grafeas/model_vulnerability_package_issue.go @@ -0,0 +1,24 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// This message wraps a location affected by a vulnerability and its associated fix (if one is available). +type VulnerabilityPackageIssue struct { + // Required. The location of the vulnerability. + AffectedLocation *VulnerabilityVulnerabilityLocation `json:"affectedLocation,omitempty"` + // The location of the available fix for vulnerability. + FixedLocation *VulnerabilityVulnerabilityLocation `json:"fixedLocation,omitempty"` + // Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability. + SeverityName string `json:"severityName,omitempty"` + // The type of package (e.g. OS, MAVEN, GO). + PackageType string `json:"packageType,omitempty"` + // The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when it is not available. + EffectiveSeverity *VulnerabilitySeverity `json:"effectiveSeverity,omitempty"` +} diff --git a/0.2.0/grafeas/model_vulnerability_severity.go b/0.2.0/grafeas/model_vulnerability_severity.go new file mode 100644 index 0000000..1a97fb7 --- /dev/null +++ b/0.2.0/grafeas/model_vulnerability_severity.go @@ -0,0 +1,22 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas +// VulnerabilitySeverity : Note provider-assigned severity/impact ranking. - SEVERITY_UNSPECIFIED: Unknown. - MINIMAL: Minimal severity. - LOW: Low severity. - MEDIUM: Medium severity. - HIGH: High severity. - CRITICAL: Critical severity. +type VulnerabilitySeverity string + +// List of vulnerabilitySeverity +const ( + SEVERITY_UNSPECIFIED_VulnerabilitySeverity VulnerabilitySeverity = "SEVERITY_UNSPECIFIED" + MINIMAL_VulnerabilitySeverity VulnerabilitySeverity = "MINIMAL" + LOW_VulnerabilitySeverity VulnerabilitySeverity = "LOW" + MEDIUM_VulnerabilitySeverity VulnerabilitySeverity = "MEDIUM" + HIGH_VulnerabilitySeverity VulnerabilitySeverity = "HIGH" + CRITICAL_VulnerabilitySeverity VulnerabilitySeverity = "CRITICAL" +) diff --git a/0.2.0/grafeas/model_vulnerability_vulnerability.go b/0.2.0/grafeas/model_vulnerability_vulnerability.go new file mode 100644 index 0000000..db725b0 --- /dev/null +++ b/0.2.0/grafeas/model_vulnerability_vulnerability.go @@ -0,0 +1,33 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +import ( + "time" +) + +// Vulnerability provides metadata about a security vulnerability in a Note. +type VulnerabilityVulnerability struct { + // The CVSS score for this vulnerability. + CvssScore float32 `json:"cvssScore,omitempty"` + // Note provider assigned impact of the vulnerability. + Severity *VulnerabilitySeverity `json:"severity,omitempty"` + // All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in. + Details []VulnerabilityDetail `json:"details,omitempty"` + // The full description of the CVSS for version 3. + CvssV3 *VulnerabilityCvss `json:"cvssV3,omitempty"` + // Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version. + WindowsDetails []VulnerabilityWindowsDetail `json:"windowsDetails,omitempty"` + // The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker. + SourceUpdateTime time.Time `json:"sourceUpdateTime,omitempty"` + // The full description of the CVSS for version 2. + CvssV2 *VulnerabilityCvss `json:"cvssV2,omitempty"` + Cwe []string `json:"cwe,omitempty"` +} diff --git a/0.2.0/grafeas/model_vulnerability_vulnerability_location.go b/0.2.0/grafeas/model_vulnerability_vulnerability_location.go new file mode 100644 index 0000000..f6ce240 --- /dev/null +++ b/0.2.0/grafeas/model_vulnerability_vulnerability_location.go @@ -0,0 +1,20 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// The location of the vulnerability. +type VulnerabilityVulnerabilityLocation struct { + // Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. + CpeUri string `json:"cpeUri,omitempty"` + // Required. The package being described. + Package_ string `json:"package,omitempty"` + // Required. The version of the package being described. + Version *PackageVersion `json:"version,omitempty"` +} diff --git a/0.2.0/grafeas/model_vulnerability_windows_detail.go b/0.2.0/grafeas/model_vulnerability_windows_detail.go new file mode 100644 index 0000000..3f04d58 --- /dev/null +++ b/0.2.0/grafeas/model_vulnerability_windows_detail.go @@ -0,0 +1,21 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +type VulnerabilityWindowsDetail struct { + // Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar. + CpeUri string `json:"cpeUri,omitempty"` + // Required. The name of the vulnerability. + Name string `json:"name,omitempty"` + // The description of the vulnerability. + Description string `json:"description,omitempty"` + // Required. The names of the KBs which have hotfixes to mitigate this vulnerability. Note that there may be multiple hotfixes (and thus multiple KBs) that mitigate a given vulnerability. Currently any listed kb's presence is considered a fix. + FixingKbs []WindowsDetailKnowledgeBase `json:"fixingKbs,omitempty"` +} diff --git a/0.2.0/grafeas/model_windows_detail_knowledge_base.go b/0.2.0/grafeas/model_windows_detail_knowledge_base.go new file mode 100644 index 0000000..9fd9b88 --- /dev/null +++ b/0.2.0/grafeas/model_windows_detail_knowledge_base.go @@ -0,0 +1,16 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +type WindowsDetailKnowledgeBase struct { + // The KB name (generally of the form KB[0-9]+ i.e. KB123456). + Name string `json:"name,omitempty"` + Url string `json:"url,omitempty"` +} diff --git a/0.2.0/grafeas/response.go b/0.2.0/grafeas/response.go new file mode 100644 index 0000000..557274d --- /dev/null +++ b/0.2.0/grafeas/response.go @@ -0,0 +1,43 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +import ( + "net/http" +) + +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the swagger operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/0.2.0/project/.gitignore b/0.2.0/project/.gitignore new file mode 100644 index 0000000..daf913b --- /dev/null +++ b/0.2.0/project/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/0.2.0/project/.swagger-codegen-ignore b/0.2.0/project/.swagger-codegen-ignore new file mode 100644 index 0000000..c5fa491 --- /dev/null +++ b/0.2.0/project/.swagger-codegen-ignore @@ -0,0 +1,23 @@ +# Swagger Codegen Ignore +# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/0.2.0/project/.swagger-codegen/VERSION b/0.2.0/project/.swagger-codegen/VERSION new file mode 100644 index 0000000..26f8b8b --- /dev/null +++ b/0.2.0/project/.swagger-codegen/VERSION @@ -0,0 +1 @@ +2.4.5 \ No newline at end of file diff --git a/0.2.0/project/.travis.yml b/0.2.0/project/.travis.yml new file mode 100644 index 0000000..f5cb2ce --- /dev/null +++ b/0.2.0/project/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/0.2.0/project/README.md b/0.2.0/project/README.md new file mode 100644 index 0000000..29b9b87 --- /dev/null +++ b/0.2.0/project/README.md @@ -0,0 +1,45 @@ +# Go API client for grafeas + +No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + +## Overview +This API client was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [swagger-spec](https://github.com/swagger-api/swagger-spec) from a remote server, you can easily generate an API client. + +- API version: version not set +- Package version: 0.2.0 +- Build package: io.swagger.codegen.languages.GoClientCodegen + +## Installation +Put the package under your project folder and add the following in import: +```golang +import "./grafeas" +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*ProjectsApi* | [**ProjectsCreateProject**](docs/ProjectsApi.md#projectscreateproject) | **Post** /v1beta1/projects | Creates a new project. +*ProjectsApi* | [**ProjectsDeleteProject**](docs/ProjectsApi.md#projectsdeleteproject) | **Delete** /v1beta1/{name} | Deletes the specified project. +*ProjectsApi* | [**ProjectsGetProject**](docs/ProjectsApi.md#projectsgetproject) | **Get** /v1beta1/{name} | Gets the specified project. +*ProjectsApi* | [**ProjectsListProjects**](docs/ProjectsApi.md#projectslistprojects) | **Get** /v1beta1/projects | Lists projects. + + +## Documentation For Models + + - [ProjectListProjectsResponse](docs/ProjectListProjectsResponse.md) + - [ProjectProject](docs/ProjectProject.md) + - [ProtobufAny](docs/ProtobufAny.md) + - [RpcStatus](docs/RpcStatus.md) + + +## Documentation For Authorization + Endpoints do not require authorization. + + +## Author + + + diff --git a/0.2.0/project/api/swagger.yaml b/0.2.0/project/api/swagger.yaml new file mode 100644 index 0000000..f613032 --- /dev/null +++ b/0.2.0/project/api/swagger.yaml @@ -0,0 +1,163 @@ +--- +swagger: "2.0" +info: + version: "version not set" + title: "project.proto" +tags: +- name: "Projects" +consumes: +- "application/json" +produces: +- "application/json" +paths: + /v1beta1/projects: + get: + tags: + - "Projects" + summary: "Lists projects." + operationId: "Projects_ListProjects" + parameters: + - name: "filter" + in: "query" + description: "The filter expression." + required: false + type: "string" + x-exportParamName: "Filter" + x-optionalDataType: "String" + - name: "pageSize" + in: "query" + description: "Number of projects to return in the list." + required: false + type: "integer" + format: "int32" + x-exportParamName: "PageSize" + x-optionalDataType: "Int32" + - name: "pageToken" + in: "query" + description: "Token to provide to skip to a particular spot in the list." + required: false + type: "string" + x-exportParamName: "PageToken" + x-optionalDataType: "String" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/projectListProjectsResponse" + default: + description: "An unexpected error response." + schema: + $ref: "#/definitions/rpcStatus" + post: + tags: + - "Projects" + summary: "Creates a new project." + operationId: "Projects_CreateProject" + parameters: + - in: "body" + name: "body" + description: "The project to create." + required: true + schema: + $ref: "#/definitions/projectProject" + x-exportParamName: "Body" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/projectProject" + default: + description: "An unexpected error response." + schema: + $ref: "#/definitions/rpcStatus" + /v1beta1/{name}: + get: + tags: + - "Projects" + summary: "Gets the specified project." + operationId: "Projects_GetProject" + parameters: + - name: "name" + in: "path" + description: "The name of the project in the form of `projects/{PROJECT_ID}`." + required: true + type: "string" + pattern: "projects/[^/]+" + x-exportParamName: "Name" + responses: + 200: + description: "A successful response." + schema: + $ref: "#/definitions/projectProject" + default: + description: "An unexpected error response." + schema: + $ref: "#/definitions/rpcStatus" + delete: + tags: + - "Projects" + summary: "Deletes the specified project." + operationId: "Projects_DeleteProject" + parameters: + - name: "name" + in: "path" + description: "The name of the project in the form of `projects/{PROJECT_ID}`." + required: true + type: "string" + pattern: "projects/[^/]+" + x-exportParamName: "Name" + responses: + 200: + description: "A successful response." + schema: {} + default: + description: "An unexpected error response." + schema: + $ref: "#/definitions/rpcStatus" +definitions: + projectListProjectsResponse: + type: "object" + properties: + projects: + type: "array" + description: "The projects requested." + items: + $ref: "#/definitions/projectProject" + nextPageToken: + type: "string" + description: "The next pagination token in the list response. It should be\ + \ used as\n`page_token` for the following request. An empty value means\ + \ no more\nresults." + description: "Response for listing projects." + example: + projects: + - name: "name" + - name: "name" + nextPageToken: "nextPageToken" + projectProject: + type: "object" + properties: + name: + type: "string" + description: "The name of the project in the form of `projects/{PROJECT_ID}`." + description: "Describes a Grafeas project." + example: + name: "name" + protobufAny: + type: "object" + properties: + '@type': + type: "string" + additionalProperties: {} + rpcStatus: + type: "object" + properties: + code: + type: "integer" + format: "int32" + message: + type: "string" + details: + type: "array" + items: + $ref: "#/definitions/protobufAny" diff --git a/0.2.0/project/api_projects.go b/0.2.0/project/api_projects.go new file mode 100644 index 0000000..0548f53 --- /dev/null +++ b/0.2.0/project/api_projects.go @@ -0,0 +1,442 @@ +/* + * project.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "strings" + "fmt" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type ProjectsApiService service + +/* +ProjectsApiService Creates a new project. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param body The project to create. + +@return ProjectProject +*/ +func (a *ProjectsApiService) ProjectsCreateProject(ctx context.Context, body ProjectProject) (ProjectProject, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ProjectProject + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/v1beta1/projects" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &body + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v ProjectProject + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 0 { + var v RpcStatus + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +ProjectsApiService Deletes the specified project. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name The name of the project in the form of `projects/{PROJECT_ID}`. + +@return interface{} +*/ +func (a *ProjectsApiService) ProjectsDeleteProject(ctx context.Context, name string) (interface{}, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Delete") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue interface{} + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/v1beta1/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v interface{} + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 0 { + var v RpcStatus + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +ProjectsApiService Gets the specified project. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param name The name of the project in the form of `projects/{PROJECT_ID}`. + +@return ProjectProject +*/ +func (a *ProjectsApiService) ProjectsGetProject(ctx context.Context, name string) (ProjectProject, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ProjectProject + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/v1beta1/{name}" + localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v ProjectProject + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 0 { + var v RpcStatus + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +ProjectsApiService Lists projects. + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param optional nil or *ProjectsListProjectsOpts - Optional Parameters: + * @param "Filter" (optional.String) - The filter expression. + * @param "PageSize" (optional.Int32) - Number of projects to return in the list. + * @param "PageToken" (optional.String) - Token to provide to skip to a particular spot in the list. + +@return ProjectListProjectsResponse +*/ + +type ProjectsListProjectsOpts struct { + Filter optional.String + PageSize optional.Int32 + PageToken optional.String +} + +func (a *ProjectsApiService) ProjectsListProjects(ctx context.Context, localVarOptionals *ProjectsListProjectsOpts) (ProjectListProjectsResponse, *http.Response, error) { + var ( + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ProjectListProjectsResponse + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/v1beta1/projects" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if localVarOptionals != nil && localVarOptionals.Filter.IsSet() { + localVarQueryParams.Add("filter", parameterToString(localVarOptionals.Filter.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.PageSize.IsSet() { + localVarQueryParams.Add("pageSize", parameterToString(localVarOptionals.PageSize.Value(), "")) + } + if localVarOptionals != nil && localVarOptionals.PageToken.IsSet() { + localVarQueryParams.Add("pageToken", parameterToString(localVarOptionals.PageToken.Value(), "")) + } + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode < 300 { + // If we succeed, return the data, otherwise pass on to decode error. + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err == nil { + return localVarReturnValue, localVarHttpResponse, err + } + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericSwaggerError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + + if localVarHttpResponse.StatusCode == 200 { + var v ProjectListProjectsResponse + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + if localVarHttpResponse.StatusCode == 0 { + var v RpcStatus + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} diff --git a/0.2.0/project/client.go b/0.2.0/project/client.go new file mode 100644 index 0000000..255124f --- /dev/null +++ b/0.2.0/project/client.go @@ -0,0 +1,464 @@ +/* + * project.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "mime/multipart" + "net/http" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + + "golang.org/x/oauth2" +) + +var ( + jsonCheck = regexp.MustCompile("(?i:[application|text]/json)") + xmlCheck = regexp.MustCompile("(?i:[application|text]/xml)") +) + +// APIClient manages communication with the project.proto API vversion not set +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + ProjectsApi *ProjectsApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.ProjectsApi = (*ProjectsApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insenstive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.ToLower(a) == strings.ToLower(needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("Expected %s to be of type %s but received %s.", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +// parameterToString convert interface{} parameters to string, using a delimiter if format is provided. +func parameterToString(obj interface{}, collectionFormat string) string { + var delimiter string + + switch collectionFormat { + case "pipes": + delimiter = "|" + case "ssv": + delimiter = " " + case "tsv": + delimiter = "\t" + case "csv": + delimiter = "," + } + + if reflect.TypeOf(obj).Kind() == reflect.Slice { + return strings.Trim(strings.Replace(fmt.Sprint(obj), " ", delimiter, -1), "[]") + } + + return fmt.Sprintf("%v", obj) +} + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + return c.cfg.HTTPClient.Do(request) +} + +// Change base path to allow switching to mocks +func (c *APIClient) ChangeBasePath(path string) { + c.cfg.BasePath = path +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + ctx context.Context, + path string, method string, + postBody interface{}, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, + fileName string, + fileBytes []byte) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // Detect postBody type and post. + if postBody != nil { + contentType := headerParams["Content-Type"] + if contentType == "" { + contentType = detectContentType(postBody) + headerParams["Content-Type"] = contentType + } + + body, err = setBody(postBody, contentType) + if err != nil { + return nil, err + } + } + + // add form parameters and file if available. + if len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + if len(fileBytes) > 0 && fileName != "" { + w.Boundary() + //_, fileNm := filepath.Split(fileName) + part, err := w.CreateFormFile("file", filepath.Base(fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(fileBytes) + if err != nil { + return nil, err + } + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + } + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = query.Encode() + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers.Set(h, v) + } + localVarRequest.Header = headers + } + + // Override request host, if applicable + if c.cfg.Host != "" { + localVarRequest.Host = c.cfg.Host + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + // OAuth2 authentication + if tok, ok := ctx.Value(ContextOAuth2).(oauth2.TokenSource); ok { + // We were able to grab an oauth2 token from the context + var latestToken *oauth2.Token + if latestToken, err = tok.Token(); err != nil { + return nil, err + } + + latestToken.SetAuthHeader(localVarRequest) + } + + // Basic HTTP Authentication + if auth, ok := ctx.Value(ContextBasicAuth).(BasicAuth); ok { + localVarRequest.SetBasicAuth(auth.UserName, auth.Password) + } + + // AccessToken Authentication + if auth, ok := ctx.Value(ContextAccessToken).(string); ok { + localVarRequest.Header.Add("Authorization", "Bearer "+auth) + } + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if strings.Contains(contentType, "application/xml") { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } else if strings.Contains(contentType, "application/json") { + if err = json.Unmarshal(b, v); err != nil { + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(path) + if err != nil { + return err + } + defer file.Close() + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("Invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } + expires = now.Add(lifetime) + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericSwaggerError Provides access to the body, error and model on returned errors. +type GenericSwaggerError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericSwaggerError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericSwaggerError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericSwaggerError) Model() interface{} { + return e.model +} \ No newline at end of file diff --git a/0.2.0/project/configuration.go b/0.2.0/project/configuration.go new file mode 100644 index 0000000..4af12f3 --- /dev/null +++ b/0.2.0/project/configuration.go @@ -0,0 +1,72 @@ +/* + * project.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +import ( + "net/http" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextOAuth2 takes a oauth2.TokenSource as authentication for the request. + ContextOAuth2 = contextKey("token") + + // ContextBasicAuth takes BasicAuth as authentication for the request. + ContextBasicAuth = contextKey("basic") + + // ContextAccessToken takes a string oauth2 access token as authentication for the request. + ContextAccessToken = contextKey("accesstoken") + + // ContextAPIKey takes an APIKey as authentication for the request + ContextAPIKey = contextKey("apikey") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +type Configuration struct { + BasePath string `json:"basePath,omitempty"` + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + HTTPClient *http.Client +} + +func NewConfiguration() *Configuration { + cfg := &Configuration{ + BasePath: "https://localhost", + DefaultHeader: make(map[string]string), + UserAgent: "Swagger-Codegen/0.2.0/go", + } + return cfg +} + +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} diff --git a/0.2.0/project/docs/ProjectListProjectsResponse.md b/0.2.0/project/docs/ProjectListProjectsResponse.md new file mode 100644 index 0000000..1867026 --- /dev/null +++ b/0.2.0/project/docs/ProjectListProjectsResponse.md @@ -0,0 +1,11 @@ +# ProjectListProjectsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Projects** | [**[]ProjectProject**](projectProject.md) | The projects requested. | [optional] [default to null] +**NextPageToken** | **string** | The next pagination token in the list response. It should be used as `page_token` for the following request. An empty value means no more results. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/project/docs/ProjectProject.md b/0.2.0/project/docs/ProjectProject.md new file mode 100644 index 0000000..79be0c8 --- /dev/null +++ b/0.2.0/project/docs/ProjectProject.md @@ -0,0 +1,10 @@ +# ProjectProject + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the project in the form of `projects/{PROJECT_ID}`. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/project/docs/ProjectsApi.md b/0.2.0/project/docs/ProjectsApi.md new file mode 100644 index 0000000..b8cf7d7 --- /dev/null +++ b/0.2.0/project/docs/ProjectsApi.md @@ -0,0 +1,125 @@ +# \ProjectsApi + +All URIs are relative to *https://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ProjectsCreateProject**](ProjectsApi.md#ProjectsCreateProject) | **Post** /v1beta1/projects | Creates a new project. +[**ProjectsDeleteProject**](ProjectsApi.md#ProjectsDeleteProject) | **Delete** /v1beta1/{name} | Deletes the specified project. +[**ProjectsGetProject**](ProjectsApi.md#ProjectsGetProject) | **Get** /v1beta1/{name} | Gets the specified project. +[**ProjectsListProjects**](ProjectsApi.md#ProjectsListProjects) | **Get** /v1beta1/projects | Lists projects. + + +# **ProjectsCreateProject** +> ProjectProject ProjectsCreateProject(ctx, body) +Creates a new project. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **body** | [**ProjectProject**](ProjectProject.md)| The project to create. | + +### Return type + +[**ProjectProject**](projectProject.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ProjectsDeleteProject** +> interface{} ProjectsDeleteProject(ctx, name) +Deletes the specified project. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| The name of the project in the form of `projects/{PROJECT_ID}`. | + +### Return type + +[**interface{}**](interface{}.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ProjectsGetProject** +> ProjectProject ProjectsGetProject(ctx, name) +Gets the specified project. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **name** | **string**| The name of the project in the form of `projects/{PROJECT_ID}`. | + +### Return type + +[**ProjectProject**](projectProject.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ProjectsListProjects** +> ProjectListProjectsResponse ProjectsListProjects(ctx, optional) +Lists projects. + +### Required Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. + **optional** | ***ProjectsListProjectsOpts** | optional parameters | nil if no parameters + +### Optional Parameters +Optional parameters are passed through a pointer to a ProjectsListProjectsOpts struct + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter** | **optional.String**| The filter expression. | + **pageSize** | **optional.Int32**| Number of projects to return in the list. | + **pageToken** | **optional.String**| Token to provide to skip to a particular spot in the list. | + +### Return type + +[**ProjectListProjectsResponse**](projectListProjectsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/0.2.0/project/docs/ProtobufAny.md b/0.2.0/project/docs/ProtobufAny.md new file mode 100644 index 0000000..029c2d3 --- /dev/null +++ b/0.2.0/project/docs/ProtobufAny.md @@ -0,0 +1,10 @@ +# ProtobufAny + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type_** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/project/docs/RpcStatus.md b/0.2.0/project/docs/RpcStatus.md new file mode 100644 index 0000000..04bc70e --- /dev/null +++ b/0.2.0/project/docs/RpcStatus.md @@ -0,0 +1,12 @@ +# RpcStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Code** | **int32** | | [optional] [default to null] +**Message** | **string** | | [optional] [default to null] +**Details** | [**[]ProtobufAny**](protobufAny.md) | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/project/git_push.sh b/0.2.0/project/git_push.sh new file mode 100644 index 0000000..ae01b18 --- /dev/null +++ b/0.2.0/project/git_push.sh @@ -0,0 +1,52 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' + diff --git a/0.2.0/project/model_project_list_projects_response.go b/0.2.0/project/model_project_list_projects_response.go new file mode 100644 index 0000000..9d54801 --- /dev/null +++ b/0.2.0/project/model_project_list_projects_response.go @@ -0,0 +1,18 @@ +/* + * project.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Response for listing projects. +type ProjectListProjectsResponse struct { + // The projects requested. + Projects []ProjectProject `json:"projects,omitempty"` + // The next pagination token in the list response. It should be used as `page_token` for the following request. An empty value means no more results. + NextPageToken string `json:"nextPageToken,omitempty"` +} diff --git a/0.2.0/project/model_project_project.go b/0.2.0/project/model_project_project.go new file mode 100644 index 0000000..501034a --- /dev/null +++ b/0.2.0/project/model_project_project.go @@ -0,0 +1,16 @@ +/* + * project.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Describes a Grafeas project. +type ProjectProject struct { + // The name of the project in the form of `projects/{PROJECT_ID}`. + Name string `json:"name,omitempty"` +} diff --git a/0.2.0/project/model_protobuf_any.go b/0.2.0/project/model_protobuf_any.go new file mode 100644 index 0000000..79804e3 --- /dev/null +++ b/0.2.0/project/model_protobuf_any.go @@ -0,0 +1,14 @@ +/* + * project.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +type ProtobufAny struct { + Type_ string `json:"@type,omitempty"` +} diff --git a/0.2.0/project/model_rpc_status.go b/0.2.0/project/model_rpc_status.go new file mode 100644 index 0000000..128ab76 --- /dev/null +++ b/0.2.0/project/model_rpc_status.go @@ -0,0 +1,16 @@ +/* + * project.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +type RpcStatus struct { + Code int32 `json:"code,omitempty"` + Message string `json:"message,omitempty"` + Details []ProtobufAny `json:"details,omitempty"` +} diff --git a/0.2.0/project/response.go b/0.2.0/project/response.go new file mode 100644 index 0000000..d70f27a --- /dev/null +++ b/0.2.0/project/response.go @@ -0,0 +1,43 @@ +/* + * project.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +import ( + "net/http" +) + +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the swagger operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/config.go.json b/config.go.json index 4b316b5..cd9a93f 100644 --- a/config.go.json +++ b/config.go.json @@ -1,4 +1,4 @@ { - "packageVersion":"0.1.0", + "packageVersion":"0.2.0", "packageName":"grafeas" } diff --git a/generate/main.go b/generate/main.go index a9b8f63..f095208 100644 --- a/generate/main.go +++ b/generate/main.go @@ -12,7 +12,6 @@ import ( "os" "os/exec" "path" - "regexp" "strings" ) @@ -32,8 +31,7 @@ var APIVersion = "v1beta1" var SwaggerCodegenVersion = "2.4.5" // MergedClient : whether to keep the generated Swagger clients separate or to merge the paths -// TODO: implement function that merges the paths of each Swagger spec into one file before running codegen -var MergedClient = false +var MergedClient = true // trimVersionTag : remove the "v" prefix from the version tag string func trimVersionTag(tag string) string { @@ -60,14 +58,6 @@ func getMostRecentTag() string { return tags[0]["name"].(string) } -func swaggerCompatibility(jsonInput string) string { - re := regexp.MustCompile(`\/{.*(=.*)}`) - jsonOutput := re.ReplaceAllStringFunc(jsonInput, func(substringMatch string) string { - return strings.Split(substringMatch, "=")[0] + "}" - }) - return jsonOutput -} - func get(url string) ([]byte, error) { var responseData []byte resp, err := http.Get(url) @@ -92,14 +82,12 @@ func downloadCompatibleSwaggerSpec(url string, filename string) error { return err } - swaggerString := swaggerCompatibility(string(responseBytes)) - f, err := os.Create(filename) if err != nil { return err } defer f.Close() - responseReader := bytes.NewReader([]byte(swaggerString)) + responseReader := bytes.NewReader(responseBytes) _, err = io.Copy(f, responseReader) return err diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..d297b3b --- /dev/null +++ b/go.mod @@ -0,0 +1,15 @@ +module github.com/grafeas/client-go + +go 1.17 + +require ( + github.com/antihax/optional v1.0.0 + golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 +) + +require ( + github.com/golang/protobuf v1.4.2 // indirect + golang.org/x/net v0.0.0-20200822124328-c89045814202 // indirect + google.golang.org/appengine v1.6.6 // indirect + google.golang.org/protobuf v1.25.0 // indirect +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..6697f92 --- /dev/null +++ b/go.sum @@ -0,0 +1,364 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= +cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= +cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= +cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= +cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= +cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= +cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= +cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= +cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= +cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= +cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= +cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= +cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= +cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= +cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= +cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= +cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= +cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= +cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= +cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= +cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= +cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= +cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= +cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= +cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= +cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= +cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= +cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/antihax/optional v1.0.0 h1:xK2lYat7ZLaVVcIuj82J8kIro4V6kDe0AUDFboUCwcg= +github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= +github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= +github.com/golang/protobuf v1.4.2 h1:+Z5KGCizgyZCbGh1KZqA0fcLLkwbsjIzS4aV2v7wJX0= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.1 h1:JFrFEBb2xKufg6XkJsJr+WbKb4FQlURi5RUcBveYu9k= +github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= +github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= +github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= +go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= +golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= +golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= +golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= +golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= +golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= +golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= +golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= +golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= +golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= +golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= +golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200822124328-c89045814202 h1:VvcQYSHwXgi7W+TpUR6A9g6Up98WAHf3f/ulnJ62IyA= +golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 h1:RerP+noqYHUQ8CMRcPlC2nvTa4dcBIjegkuWdcUDuqg= +golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= +google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= +google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= +google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= +google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.6 h1:lMO5rYAqUxkmaj76jAkRUvt5JZgFymx/+Q5Mzfivuhc= +google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= +google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= +google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= +google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= +google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= +google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= +google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= +honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= +rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= +rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= diff --git a/project.swagger.json b/project.swagger.json new file mode 100644 index 0000000..00dc4c6 --- /dev/null +++ b/project.swagger.json @@ -0,0 +1,219 @@ +{ + "swagger": "2.0", + "info": { + "title": "project.proto", + "version": "version not set" + }, + "tags": [ + { + "name": "Projects" + } + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/v1beta1/projects": { + "get": { + "summary": "Lists projects.", + "operationId": "Projects_ListProjects", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/projectListProjectsResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "filter", + "description": "The filter expression.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "pageSize", + "description": "Number of projects to return in the list.", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" + }, + { + "name": "pageToken", + "description": "Token to provide to skip to a particular spot in the list.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "Projects" + ] + }, + "post": { + "summary": "Creates a new project.", + "operationId": "Projects_CreateProject", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/projectProject" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "description": "The project to create.", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/projectProject" + } + } + ], + "tags": [ + "Projects" + ] + } + }, + "/v1beta1/{name}": { + "get": { + "summary": "Gets the specified project.", + "operationId": "Projects_GetProject", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/projectProject" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "The name of the project in the form of `projects/{PROJECT_ID}`.", + "in": "path", + "required": true, + "type": "string", + "pattern": "projects/[^/]+" + } + ], + "tags": [ + "Projects" + ] + }, + "delete": { + "summary": "Deletes the specified project.", + "operationId": "Projects_DeleteProject", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "properties": {} + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "name", + "description": "The name of the project in the form of `projects/{PROJECT_ID}`.", + "in": "path", + "required": true, + "type": "string", + "pattern": "projects/[^/]+" + } + ], + "tags": [ + "Projects" + ] + } + } + }, + "definitions": { + "projectListProjectsResponse": { + "type": "object", + "properties": { + "projects": { + "type": "array", + "items": { + "$ref": "#/definitions/projectProject" + }, + "description": "The projects requested." + }, + "nextPageToken": { + "type": "string", + "description": "The next pagination token in the list response. It should be used as\n`page_token` for the following request. An empty value means no more\nresults." + } + }, + "description": "Response for listing projects." + }, + "projectProject": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the project in the form of `projects/{PROJECT_ID}`." + } + }, + "description": "Describes a Grafeas project." + }, + "protobufAny": { + "type": "object", + "properties": { + "@type": { + "type": "string" + } + }, + "additionalProperties": {} + }, + "rpcStatus": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "message": { + "type": "string" + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/protobufAny" + } + } + } + } + } +} From ffae1fe2d8a81c198b3d6a51e9a4fa5df9a36c65 Mon Sep 17 00:00:00 2001 From: Ethan Anderson Date: Tue, 28 Feb 2023 11:22:12 -0600 Subject: [PATCH 3/4] Move to semantic v1 versioning in module name, regenerate --- 0.1.0/.swagger-codegen-ignore | 25 - 0.1.0/README.md | 132 - 0.1.0/api/swagger.yaml | 5416 ----------------- 0.1.0/api_grafeas_v1_beta1.go | 1435 ----- 0.1.0/client.go | 464 -- 0.1.0/configuration.go | 72 - .../AttestationGenericSignedAttestation.md | 12 - 0.1.0/docs/AttestationPgpSignedAttestation.md | 12 - 0.1.0/docs/CvsSv3Scope.md | 9 - 0.1.0/docs/CvsSv3UserInteraction.md | 9 - 0.1.0/docs/GrafeasV1Beta1Api.md | 461 -- 0.1.0/docs/PackageDistribution.md | 15 - 0.1.0/docs/PackageInstallation.md | 11 - 0.1.0/docs/PackagePackage.md | 11 - 0.1.0/docs/PackageVersion.md | 13 - 0.1.0/docs/ProtobufAny.md | 11 - 0.1.0/docs/ProtobufFieldMask.md | 10 - 0.1.0/docs/ProvenanceArtifact.md | 12 - 0.1.0/docs/ProvenanceBuildProvenance.md | 22 - 0.1.0/docs/V1beta1BatchCreateNotesRequest.md | 11 - .../V1beta1BatchCreateOccurrencesRequest.md | 11 - 0.1.0/docs/V1beta1Note.md | 25 - 0.1.0/docs/V1beta1Occurrence.md | 23 - 0.1.0/docs/V1beta1Signature.md | 11 - 0.1.0/docs/V1beta1vulnerabilityDetails.md | 17 - 0.1.0/docs/VulnerabilityCvsSv3.md | 20 - 0.1.0/docs/VulnerabilityDetail.md | 18 - 0.1.0/docs/VulnerabilityPackageIssue.md | 12 - 0.1.0/docs/VulnerabilityVulnerability.md | 14 - 0.1.0/model_alias_context_kind.go | 20 - 0.1.0/model_attestation_attestation.go | 18 - 0.1.0/model_attestation_authority.go | 16 - ..._attestation_generic_signed_attestation.go | 20 - ...generic_signed_attestation_content_type.go | 18 - ...odel_attestation_pgp_signed_attestation.go | 20 - ...ion_pgp_signed_attestation_content_type.go | 18 - 0.1.0/model_authority_hint.go | 16 - 0.1.0/model_build_build.go | 18 - 0.1.0/model_build_build_signature.go | 22 - 0.1.0/model_build_signature_key_type.go | 19 - 0.1.0/model_cvs_sv3_attack_complexity.go | 19 - 0.1.0/model_cvs_sv3_attack_vector.go | 21 - 0.1.0/model_cvs_sv3_impact.go | 20 - 0.1.0/model_cvs_sv3_privileges_required.go | 20 - 0.1.0/model_cvs_sv3_scope.go | 19 - 0.1.0/model_cvs_sv3_user_interaction.go | 19 - 0.1.0/model_deployment_deployable.go | 16 - 0.1.0/model_deployment_deployment.go | 32 - 0.1.0/model_deployment_platform.go | 20 - 0.1.0/model_discovered_analysis_status.go | 22 - 0.1.0/model_discovered_continuous_analysis.go | 19 - 0.1.0/model_discovery_discovered.go | 26 - 0.1.0/model_discovery_discovery.go | 16 - 0.1.0/model_hash_hash_type.go | 18 - 0.1.0/model_image_basis.go | 18 - 0.1.0/model_image_derived.go | 22 - 0.1.0/model_image_fingerprint.go | 20 - 0.1.0/model_image_layer.go | 18 - 0.1.0/model_layer_directive.go | 34 - 0.1.0/model_package_architecture.go | 19 - 0.1.0/model_package_distribution.go | 26 - 0.1.0/model_package_installation.go | 18 - 0.1.0/model_package_package.go | 18 - 0.1.0/model_package_version.go | 22 - 0.1.0/model_protobuf_any.go | 18 - 0.1.0/model_protobuf_field_mask.go | 16 - 0.1.0/model_provenance_artifact.go | 20 - 0.1.0/model_provenance_build_provenance.go | 44 - 0.1.0/model_provenance_command.go | 26 - 0.1.0/model_provenance_file_hashes.go | 16 - 0.1.0/model_provenance_hash.go | 18 - 0.1.0/model_provenance_source.go | 22 - 0.1.0/model_rpc_status.go | 20 - 0.1.0/model_source_alias_context.go | 18 - .../model_source_cloud_repo_source_context.go | 20 - 0.1.0/model_source_gerrit_source_context.go | 22 - 0.1.0/model_source_git_source_context.go | 18 - 0.1.0/model_source_project_repo_id.go | 18 - 0.1.0/model_source_repo_id.go | 18 - 0.1.0/model_source_source_context.go | 22 - ...odel_v1beta1_batch_create_notes_request.go | 18 - ...del_v1beta1_batch_create_notes_response.go | 16 - ...1beta1_batch_create_occurrences_request.go | 18 - ...beta1_batch_create_occurrences_response.go | 16 - ..._v1beta1_list_note_occurrences_response.go | 18 - 0.1.0/model_v1beta1_list_notes_response.go | 18 - ...model_v1beta1_list_occurrences_response.go | 18 - 0.1.0/model_v1beta1_note.go | 50 - 0.1.0/model_v1beta1_note_kind.go | 24 - 0.1.0/model_v1beta1_occurrence.go | 46 - 0.1.0/model_v1beta1_related_url.go | 18 - 0.1.0/model_v1beta1_resource.go | 20 - 0.1.0/model_v1beta1_signature.go | 18 - ...beta1_vulnerability_occurrences_summary.go | 16 - 0.1.0/model_v1beta1build_details.go | 18 - 0.1.0/model_v1beta1deployment_details.go | 16 - 0.1.0/model_v1beta1discovery_details.go | 16 - 0.1.0/model_v1beta1image_details.go | 16 - 0.1.0/model_v1beta1package_details.go | 16 - 0.1.0/model_v1beta1package_location.go | 20 - 0.1.0/model_v1beta1vulnerability_details.go | 29 - 0.1.0/model_version_version_kind.go | 20 - 0.1.0/model_vulnerability_cvs_sv3.go | 26 - 0.1.0/model_vulnerability_detail.go | 31 - ...rrences_summary_fixable_total_by_digest.go | 22 - 0.1.0/model_vulnerability_package_issue.go | 20 - 0.1.0/model_vulnerability_severity.go | 22 - 0.1.0/model_vulnerability_vulnerability.go | 24 - ...el_vulnerability_vulnerability_location.go | 20 - 0.1.0/model_vulnerability_windows_detail.go | 21 - 0.1.0/model_windows_detail_knowledge_base.go | 16 - 0.1.0/response.go | 43 - 0.2.0/grafeas/docs/AliasContextKind.md | 9 - 0.2.0/grafeas/docs/AttestationAttestation.md | 11 - 0.2.0/grafeas/docs/AttestationAuthority.md | 10 - ...tionGenericSignedAttestationContentType.md | 9 - ...estationPgpSignedAttestationContentType.md | 9 - 0.2.0/grafeas/docs/AuthorityHint.md | 10 - 0.2.0/grafeas/docs/BuildBuild.md | 11 - 0.2.0/grafeas/docs/BuildBuildSignature.md | 13 - 0.2.0/grafeas/docs/BuildSignatureKeyType.md | 9 - 0.2.0/grafeas/docs/DeploymentDeployable.md | 10 - 0.2.0/grafeas/docs/DeploymentDeployment.md | 16 - 0.2.0/grafeas/docs/DeploymentPlatform.md | 9 - .../grafeas/docs/DiscoveredAnalysisStatus.md | 9 - .../docs/DiscoveredContinuousAnalysis.md | 9 - 0.2.0/grafeas/docs/DiscoveryDiscovered.md | 13 - 0.2.0/grafeas/docs/DiscoveryDiscovery.md | 10 - 0.2.0/grafeas/docs/HashHashType.md | 9 - 0.2.0/grafeas/docs/ImageBasis.md | 11 - 0.2.0/grafeas/docs/ImageDerived.md | 13 - 0.2.0/grafeas/docs/ImageFingerprint.md | 12 - 0.2.0/grafeas/docs/ImageLayer.md | 11 - 0.2.0/grafeas/docs/PackageArchitecture.md | 9 - 0.2.0/grafeas/docs/PackageInstallation.md | 11 - 0.2.0/grafeas/docs/PackagePackage.md | 11 - 0.2.0/grafeas/docs/ProvenanceCommand.md | 15 - 0.2.0/grafeas/docs/ProvenanceFileHashes.md | 10 - 0.2.0/grafeas/docs/ProvenanceHash.md | 11 - 0.2.0/grafeas/docs/ProvenanceSource.md | 13 - 0.2.0/grafeas/docs/RpcStatus.md | 12 - 0.2.0/grafeas/docs/SourceAliasContext.md | 11 - .../docs/SourceCloudRepoSourceContext.md | 12 - .../grafeas/docs/SourceGerritSourceContext.md | 13 - 0.2.0/grafeas/docs/SourceGitSourceContext.md | 11 - 0.2.0/grafeas/docs/SourceProjectRepoId.md | 11 - 0.2.0/grafeas/docs/SourceRepoId.md | 11 - 0.2.0/grafeas/docs/SourceSourceContext.md | 13 - 0.2.0/grafeas/docs/SpdxLicense.md | 11 - .../docs/V1beta1BatchCreateNotesResponse.md | 10 - .../V1beta1BatchCreateOccurrencesResponse.md | 10 - .../V1beta1ListNoteOccurrencesResponse.md | 11 - .../grafeas/docs/V1beta1ListNotesResponse.md | 11 - .../docs/V1beta1ListOccurrencesResponse.md | 11 - 0.2.0/grafeas/docs/V1beta1NoteKind.md | 9 - 0.2.0/grafeas/docs/V1beta1Resource.md | 12 - .../V1beta1VulnerabilityOccurrencesSummary.md | 10 - .../grafeas/docs/V1beta1attestationDetails.md | 10 - 0.2.0/grafeas/docs/V1beta1buildDetails.md | 11 - .../grafeas/docs/V1beta1deploymentDetails.md | 10 - 0.2.0/grafeas/docs/V1beta1discoveryDetails.md | 10 - 0.2.0/grafeas/docs/V1beta1imageDetails.md | 10 - 0.2.0/grafeas/docs/V1beta1packageDetails.md | 10 - 0.2.0/grafeas/docs/V1beta1packageLocation.md | 12 - 0.2.0/grafeas/docs/VersionVersionKind.md | 9 - ...yOccurrencesSummaryFixableTotalByDigest.md | 13 - 0.2.0/grafeas/docs/VulnerabilitySeverity.md | 9 - .../VulnerabilityVulnerabilityLocation.md | 12 - .../docs/VulnerabilityWindowsDetail.md | 13 - .../docs/WindowsDetailKnowledgeBase.md | 11 - 0.2.0/grafeas/model_package_installation.go | 18 - 0.2.0/grafeas/model_package_package.go | 18 - 0.2.0/project/.gitignore | 24 - 0.2.0/project/.swagger-codegen/VERSION | 1 - 0.2.0/project/.travis.yml | 8 - 0.2.0/project/git_push.sh | 52 - config.go.json | 1 - generate/main.go | 21 +- go.mod | 4 +- {0.1.0 => grafeas}/.gitignore | 0 .../.swagger-codegen-ignore | 0 {0.1.0 => grafeas}/.swagger-codegen/VERSION | 0 {0.1.0 => grafeas}/.travis.yml | 0 {0.2.0/grafeas => grafeas}/README.md | 17 +- {0.2.0/grafeas => grafeas}/api/swagger.yaml | 1523 ++++- .../api_grafeas_v1_beta1.go | 0 {0.2.0/grafeas => grafeas}/client.go | 0 {0.2.0/grafeas => grafeas}/configuration.go | 2 +- {0.1.0 => grafeas}/docs/AliasContextKind.md | 0 grafeas/docs/AssessmentJustification.md | 11 + grafeas/docs/AssessmentRemediation.md | 13 + .../docs/AssessmentState.md | 2 +- .../docs/AttestationAttestation.md | 0 .../docs/AttestationAuthority.md | 0 .../AttestationGenericSignedAttestation.md | 0 ...tionGenericSignedAttestationContentType.md | 0 .../docs/AttestationPgpSignedAttestation.md | 0 ...estationPgpSignedAttestationContentType.md | 0 {0.1.0 => grafeas}/docs/AuthorityHint.md | 0 {0.2.0/grafeas => grafeas}/docs/Body.md | 0 {0.2.0/grafeas => grafeas}/docs/Body1.md | 0 {0.1.0 => grafeas}/docs/BuildBuild.md | 0 .../docs/BuildBuildSignature.md | 0 .../docs/BuildSignatureKeyType.md | 0 .../docs/CvssAttackComplexity.md | 0 .../docs/CvssAttackVector.md | 0 .../docs/CvssAuthentication.md | 0 {0.2.0/grafeas => grafeas}/docs/CvssImpact.md | 0 .../docs/CvssPrivilegesRequired.md | 0 {0.2.0/grafeas => grafeas}/docs/CvssScope.md | 0 .../docs/CvssUserInteraction.md | 0 .../docs/DeploymentDeployable.md | 0 .../docs/DeploymentDeployment.md | 0 {0.1.0 => grafeas}/docs/DeploymentPlatform.md | 0 grafeas/docs/DetailsVexAssessment.md | 16 + .../docs/DiscoveredAnalysisCompleted.md | 3 +- .../docs/DiscoveredAnalysisStatus.md | 0 .../docs/DiscoveredContinuousAnalysis.md | 0 .../docs/DiscoveryDiscovered.md | 2 + {0.1.0 => grafeas}/docs/DiscoveryDiscovery.md | 0 .../docs/ExternalRefCategory.md | 0 .../docs/FileNoteFileType.md | 0 .../docs/GrafeasV1Beta1Api.md | 0 .../docs/Grafeasv1beta1Signature.md | 0 {0.1.0 => grafeas}/docs/HashHashType.md | 0 {0.1.0 => grafeas}/docs/ImageBasis.md | 0 {0.1.0 => grafeas}/docs/ImageDerived.md | 0 {0.1.0 => grafeas}/docs/ImageFingerprint.md | 0 {0.1.0 => grafeas}/docs/ImageLayer.md | 0 .../docs/InTotoArtifactRule.md | 0 .../grafeas => grafeas}/docs/IntotoInToto.md | 0 {0.2.0/grafeas => grafeas}/docs/IntotoLink.md | 0 .../docs/IntotoLinkArtifact.md | 0 .../docs/IntotoSigningKey.md | 0 .../docs/JustificationJustificationType.md | 2 +- {0.1.0 => grafeas}/docs/LayerDirective.md | 0 .../docs/LinkArtifactHashes.md | 0 .../docs/LinkByProducts.md | 0 .../docs/LinkEnvironment.md | 0 .../docs/PackageArchitecture.md | 0 .../docs/PackageDistribution.md | 2 +- .../docs/PackageInfoNoteExternalRef.md | 0 grafeas/docs/PackageInstallation.md | 16 + grafeas/docs/PackagePackage.md | 20 + .../docs/PackageVersion.md | 0 .../grafeas => grafeas}/docs/ProtobufAny.md | 0 .../docs/ProvenanceBuildProvenance.md | 0 {0.1.0 => grafeas}/docs/ProvenanceCommand.md | 0 .../docs/ProvenanceFileHashes.md | 0 {0.1.0 => grafeas}/docs/ProvenanceHash.md | 0 {0.1.0 => grafeas}/docs/ProvenanceSource.md | 0 .../docs/RemediationRemediationType.md | 2 +- {0.1.0 => grafeas}/docs/RpcStatus.md | 0 {0.1.0 => grafeas}/docs/SourceAliasContext.md | 0 .../docs/SourceCloudRepoSourceContext.md | 0 .../docs/SourceGerritSourceContext.md | 0 .../docs/SourceGitSourceContext.md | 0 .../docs/SourceProjectRepoId.md | 0 {0.1.0 => grafeas}/docs/SourceRepoId.md | 0 .../docs/SourceSourceContext.md | 0 .../docs/SpdxDocumentNote.md | 0 .../docs/SpdxDocumentOccurrence.md | 0 .../grafeas => grafeas}/docs/SpdxFileNote.md | 0 .../docs/SpdxFileOccurrence.md | 2 +- .../docs/SpdxPackageInfoNote.md | 2 +- .../docs/SpdxPackageInfoOccurrence.md | 2 +- .../docs/SpdxRelationshipNote.md | 0 .../docs/SpdxRelationshipOccurrence.md | 0 .../docs/SpdxRelationshipType.md | 0 .../docs/V1beta1BatchCreateNotesResponse.md | 0 .../V1beta1BatchCreateOccurrencesResponse.md | 0 .../docs/V1beta1Digest.md | 6 +- .../docs/V1beta1Envelope.md | 0 .../docs/V1beta1EnvelopeSignature.md | 0 grafeas/docs/V1beta1License.md | 11 + .../V1beta1ListNoteOccurrencesResponse.md | 0 .../docs/V1beta1ListNotesResponse.md | 0 .../docs/V1beta1ListOccurrencesResponse.md | 0 .../grafeas => grafeas}/docs/V1beta1Note.md | 1 + {0.1.0 => grafeas}/docs/V1beta1NoteKind.md | 0 .../docs/V1beta1Occurrence.md | 0 {0.1.0 => grafeas}/docs/V1beta1RelatedUrl.md | 0 {0.1.0 => grafeas}/docs/V1beta1Resource.md | 0 .../V1beta1VulnerabilityOccurrencesSummary.md | 0 .../docs/V1beta1attestationDetails.md | 0 .../docs/V1beta1buildDetails.md | 0 .../docs/V1beta1deploymentDetails.md | 0 .../docs/V1beta1discoveryDetails.md | 0 .../docs/V1beta1imageDetails.md | 0 .../docs/V1beta1intotoDetails.md | 0 .../docs/V1beta1intotoSignature.md | 0 .../docs/V1beta1packageDetails.md | 0 .../docs/V1beta1packageLocation.md | 4 +- .../docs/V1beta1provenanceArtifact.md | 0 .../docs/V1beta1vulnerabilityDetails.md | 4 + {0.1.0 => grafeas}/docs/VersionVersionKind.md | 0 .../docs/VexVulnerabilityAssessmentNote.md | 16 + .../VulnerabilityAssessmentNoteAssessment.md | 17 + .../VulnerabilityAssessmentNoteProduct.md | 12 + .../VulnerabilityAssessmentNotePublisher.md | 12 + .../docs/VulnerabilityCvss.md | 0 .../docs/VulnerabilityCvssVersion.md | 2 +- .../docs/VulnerabilityDetail.md | 0 ...yOccurrencesSummaryFixableTotalByDigest.md | 0 .../docs/VulnerabilityPackageIssue.md | 0 .../docs/VulnerabilitySeverity.md | 0 .../docs/VulnerabilityVulnerability.md | 1 + .../VulnerabilityVulnerabilityLocation.md | 0 .../docs/VulnerabilityWindowsDetail.md | 0 .../docs/WindowsDetailKnowledgeBase.md | 0 {0.1.0 => grafeas}/git_push.sh | 0 .../model_alias_context_kind.go | 0 grafeas/model_assessment_justification.go | 18 + grafeas/model_assessment_remediation.go | 26 + grafeas/model_assessment_state.go | 21 + .../model_attestation_attestation.go | 0 .../model_attestation_authority.go | 0 ..._attestation_generic_signed_attestation.go | 0 ...generic_signed_attestation_content_type.go | 0 ...odel_attestation_pgp_signed_attestation.go | 0 ...ion_pgp_signed_attestation_content_type.go | 0 .../model_authority_hint.go | 0 {0.2.0/grafeas => grafeas}/model_body.go | 0 {0.2.0/grafeas => grafeas}/model_body_1.go | 0 .../grafeas => grafeas}/model_build_build.go | 0 .../model_build_build_signature.go | 0 .../model_build_signature_key_type.go | 0 .../model_cvss_attack_complexity.go | 1 + .../model_cvss_attack_vector.go | 0 .../model_cvss_authentication.go | 0 .../grafeas => grafeas}/model_cvss_impact.go | 2 + .../model_cvss_privileges_required.go | 0 .../grafeas => grafeas}/model_cvss_scope.go | 0 .../model_cvss_user_interaction.go | 0 .../model_deployment_deployable.go | 0 .../model_deployment_deployment.go | 0 .../model_deployment_platform.go | 0 grafeas/model_details_vex_assessment.go | 27 + .../model_discovered_analysis_completed.go | 9 +- .../model_discovered_analysis_status.go | 3 +- .../model_discovered_continuous_analysis.go | 0 .../model_discovery_discovered.go | 3 + .../model_discovery_discovery.go | 0 .../model_external_ref_category.go | 0 .../model_file_note_file_type.go | 0 .../model_grafeasv1beta1_signature.go | 0 .../model_hash_hash_type.go | 0 .../grafeas => grafeas}/model_image_basis.go | 0 .../model_image_derived.go | 0 .../model_image_fingerprint.go | 0 .../grafeas => grafeas}/model_image_layer.go | 0 .../model_in_toto_artifact_rule.go | 0 .../model_intoto_in_toto.go | 0 .../grafeas => grafeas}/model_intoto_link.go | 0 .../model_intoto_link_artifact.go | 0 .../model_intoto_signing_key.go | 0 .../model_justification_justification_type.go | 22 + .../model_layer_directive.go | 0 .../model_link_artifact_hashes.go | 0 .../model_link_by_products.go | 0 .../model_link_environment.go | 0 .../model_package_architecture.go | 0 .../model_package_distribution.go | 4 +- .../model_package_info_note_external_ref.go | 0 grafeas/model_package_installation.go | 28 + grafeas/model_package_package.go | 36 + .../model_package_version.go | 0 .../grafeas => grafeas}/model_protobuf_any.go | 0 .../model_provenance_build_provenance.go | 0 .../model_provenance_command.go | 0 .../model_provenance_file_hashes.go | 0 .../model_provenance_hash.go | 0 .../model_provenance_source.go | 0 grafeas/model_remediation_remediation_type.go | 22 + .../grafeas => grafeas}/model_rpc_status.go | 0 .../model_source_alias_context.go | 0 .../model_source_cloud_repo_source_context.go | 0 .../model_source_gerrit_source_context.go | 0 .../model_source_git_source_context.go | 0 .../model_source_project_repo_id.go | 0 .../model_source_repo_id.go | 0 .../model_source_source_context.go | 0 .../model_spdx_document_note.go | 0 .../model_spdx_document_occurrence.go | 0 .../model_spdx_file_note.go | 0 .../model_spdx_file_occurrence.go | 2 +- .../model_spdx_package_info_note.go | 2 +- .../model_spdx_package_info_occurrence.go | 2 +- .../model_spdx_relationship_note.go | 0 .../model_spdx_relationship_occurrence.go | 0 .../model_spdx_relationship_type.go | 0 ...del_v1beta1_batch_create_notes_response.go | 0 ...beta1_batch_create_occurrences_response.go | 0 .../model_v1beta1_digest.go | 9 +- .../model_v1beta1_envelope.go | 0 .../model_v1beta1_envelope_signature.go | 0 grafeas/model_v1beta1_license.go | 17 + ..._v1beta1_list_note_occurrences_response.go | 0 .../model_v1beta1_list_notes_response.go | 0 ...model_v1beta1_list_occurrences_response.go | 0 .../grafeas => grafeas}/model_v1beta1_note.go | 2 + .../model_v1beta1_note_kind.go | 3 +- .../model_v1beta1_occurrence.go | 0 .../model_v1beta1_related_url.go | 0 .../model_v1beta1_resource.go | 0 ...beta1_vulnerability_occurrences_summary.go | 0 .../model_v1beta1attestation_details.go | 0 .../model_v1beta1build_details.go | 0 .../model_v1beta1deployment_details.go | 0 .../model_v1beta1discovery_details.go | 0 .../model_v1beta1image_details.go | 0 .../model_v1beta1intoto_details.go | 0 .../model_v1beta1intoto_signature.go | 0 .../model_v1beta1package_details.go | 0 .../model_v1beta1package_location.go | 4 +- .../model_v1beta1provenance_artifact.go | 0 .../model_v1beta1vulnerability_details.go | 7 + .../model_version_version_kind.go | 0 ...model_vex_vulnerability_assessment_note.go | 27 + ...ulnerability_assessment_note_assessment.go | 30 + ...l_vulnerability_assessment_note_product.go | 19 + ...vulnerability_assessment_note_publisher.go | 18 + .../model_vulnerability_cvss.go | 0 grafeas/model_vulnerability_cvss_version.go | 19 + .../model_vulnerability_detail.go | 0 ...rrences_summary_fixable_total_by_digest.go | 0 .../model_vulnerability_package_issue.go | 0 .../model_vulnerability_severity.go | 0 .../model_vulnerability_vulnerability.go | 2 + ...el_vulnerability_vulnerability_location.go | 0 .../model_vulnerability_windows_detail.go | 0 .../model_windows_detail_knowledge_base.go | 0 {0.2.0/grafeas => grafeas}/response.go | 0 {0.2.0/grafeas => project}/.gitignore | 0 .../.swagger-codegen-ignore | 0 .../.swagger-codegen/VERSION | 0 {0.2.0/grafeas => project}/.travis.yml | 0 {0.2.0/project => project}/README.md | 2 +- {0.2.0/project => project}/api/swagger.yaml | 0 {0.2.0/project => project}/api_projects.go | 0 {0.2.0/project => project}/client.go | 0 {0.2.0/project => project}/configuration.go | 2 +- .../docs/ProjectListProjectsResponse.md | 0 .../docs/ProjectProject.md | 0 .../project => project}/docs/ProjectsApi.md | 0 .../project => project}/docs/ProtobufAny.md | 0 {0.2.0/project => project}/docs/RpcStatus.md | 0 {0.2.0/grafeas => project}/git_push.sh | 0 .../model_project_list_projects_response.go | 0 .../model_project_project.go | 0 .../project => project}/model_protobuf_any.go | 0 .../project => project}/model_rpc_status.go | 0 {0.2.0/project => project}/response.go | 0 453 files changed, 2054 insertions(+), 10904 deletions(-) delete mode 100644 0.1.0/.swagger-codegen-ignore delete mode 100644 0.1.0/README.md delete mode 100644 0.1.0/api/swagger.yaml delete mode 100644 0.1.0/api_grafeas_v1_beta1.go delete mode 100644 0.1.0/client.go delete mode 100644 0.1.0/configuration.go delete mode 100644 0.1.0/docs/AttestationGenericSignedAttestation.md delete mode 100644 0.1.0/docs/AttestationPgpSignedAttestation.md delete mode 100644 0.1.0/docs/CvsSv3Scope.md delete mode 100644 0.1.0/docs/CvsSv3UserInteraction.md delete mode 100644 0.1.0/docs/GrafeasV1Beta1Api.md delete mode 100644 0.1.0/docs/PackageDistribution.md delete mode 100644 0.1.0/docs/PackageInstallation.md delete mode 100644 0.1.0/docs/PackagePackage.md delete mode 100644 0.1.0/docs/PackageVersion.md delete mode 100644 0.1.0/docs/ProtobufAny.md delete mode 100644 0.1.0/docs/ProtobufFieldMask.md delete mode 100644 0.1.0/docs/ProvenanceArtifact.md delete mode 100644 0.1.0/docs/ProvenanceBuildProvenance.md delete mode 100644 0.1.0/docs/V1beta1BatchCreateNotesRequest.md delete mode 100644 0.1.0/docs/V1beta1BatchCreateOccurrencesRequest.md delete mode 100644 0.1.0/docs/V1beta1Note.md delete mode 100644 0.1.0/docs/V1beta1Occurrence.md delete mode 100644 0.1.0/docs/V1beta1Signature.md delete mode 100644 0.1.0/docs/V1beta1vulnerabilityDetails.md delete mode 100644 0.1.0/docs/VulnerabilityCvsSv3.md delete mode 100644 0.1.0/docs/VulnerabilityDetail.md delete mode 100644 0.1.0/docs/VulnerabilityPackageIssue.md delete mode 100644 0.1.0/docs/VulnerabilityVulnerability.md delete mode 100644 0.1.0/model_alias_context_kind.go delete mode 100644 0.1.0/model_attestation_attestation.go delete mode 100644 0.1.0/model_attestation_authority.go delete mode 100644 0.1.0/model_attestation_generic_signed_attestation.go delete mode 100644 0.1.0/model_attestation_generic_signed_attestation_content_type.go delete mode 100644 0.1.0/model_attestation_pgp_signed_attestation.go delete mode 100644 0.1.0/model_attestation_pgp_signed_attestation_content_type.go delete mode 100644 0.1.0/model_authority_hint.go delete mode 100644 0.1.0/model_build_build.go delete mode 100644 0.1.0/model_build_build_signature.go delete mode 100644 0.1.0/model_build_signature_key_type.go delete mode 100644 0.1.0/model_cvs_sv3_attack_complexity.go delete mode 100644 0.1.0/model_cvs_sv3_attack_vector.go delete mode 100644 0.1.0/model_cvs_sv3_impact.go delete mode 100644 0.1.0/model_cvs_sv3_privileges_required.go delete mode 100644 0.1.0/model_cvs_sv3_scope.go delete mode 100644 0.1.0/model_cvs_sv3_user_interaction.go delete mode 100644 0.1.0/model_deployment_deployable.go delete mode 100644 0.1.0/model_deployment_deployment.go delete mode 100644 0.1.0/model_deployment_platform.go delete mode 100644 0.1.0/model_discovered_analysis_status.go delete mode 100644 0.1.0/model_discovered_continuous_analysis.go delete mode 100644 0.1.0/model_discovery_discovered.go delete mode 100644 0.1.0/model_discovery_discovery.go delete mode 100644 0.1.0/model_hash_hash_type.go delete mode 100644 0.1.0/model_image_basis.go delete mode 100644 0.1.0/model_image_derived.go delete mode 100644 0.1.0/model_image_fingerprint.go delete mode 100644 0.1.0/model_image_layer.go delete mode 100644 0.1.0/model_layer_directive.go delete mode 100644 0.1.0/model_package_architecture.go delete mode 100644 0.1.0/model_package_distribution.go delete mode 100644 0.1.0/model_package_installation.go delete mode 100644 0.1.0/model_package_package.go delete mode 100644 0.1.0/model_package_version.go delete mode 100644 0.1.0/model_protobuf_any.go delete mode 100644 0.1.0/model_protobuf_field_mask.go delete mode 100644 0.1.0/model_provenance_artifact.go delete mode 100644 0.1.0/model_provenance_build_provenance.go delete mode 100644 0.1.0/model_provenance_command.go delete mode 100644 0.1.0/model_provenance_file_hashes.go delete mode 100644 0.1.0/model_provenance_hash.go delete mode 100644 0.1.0/model_provenance_source.go delete mode 100644 0.1.0/model_rpc_status.go delete mode 100644 0.1.0/model_source_alias_context.go delete mode 100644 0.1.0/model_source_cloud_repo_source_context.go delete mode 100644 0.1.0/model_source_gerrit_source_context.go delete mode 100644 0.1.0/model_source_git_source_context.go delete mode 100644 0.1.0/model_source_project_repo_id.go delete mode 100644 0.1.0/model_source_repo_id.go delete mode 100644 0.1.0/model_source_source_context.go delete mode 100644 0.1.0/model_v1beta1_batch_create_notes_request.go delete mode 100644 0.1.0/model_v1beta1_batch_create_notes_response.go delete mode 100644 0.1.0/model_v1beta1_batch_create_occurrences_request.go delete mode 100644 0.1.0/model_v1beta1_batch_create_occurrences_response.go delete mode 100644 0.1.0/model_v1beta1_list_note_occurrences_response.go delete mode 100644 0.1.0/model_v1beta1_list_notes_response.go delete mode 100644 0.1.0/model_v1beta1_list_occurrences_response.go delete mode 100644 0.1.0/model_v1beta1_note.go delete mode 100644 0.1.0/model_v1beta1_note_kind.go delete mode 100644 0.1.0/model_v1beta1_occurrence.go delete mode 100644 0.1.0/model_v1beta1_related_url.go delete mode 100644 0.1.0/model_v1beta1_resource.go delete mode 100644 0.1.0/model_v1beta1_signature.go delete mode 100644 0.1.0/model_v1beta1_vulnerability_occurrences_summary.go delete mode 100644 0.1.0/model_v1beta1build_details.go delete mode 100644 0.1.0/model_v1beta1deployment_details.go delete mode 100644 0.1.0/model_v1beta1discovery_details.go delete mode 100644 0.1.0/model_v1beta1image_details.go delete mode 100644 0.1.0/model_v1beta1package_details.go delete mode 100644 0.1.0/model_v1beta1package_location.go delete mode 100644 0.1.0/model_v1beta1vulnerability_details.go delete mode 100644 0.1.0/model_version_version_kind.go delete mode 100644 0.1.0/model_vulnerability_cvs_sv3.go delete mode 100644 0.1.0/model_vulnerability_detail.go delete mode 100644 0.1.0/model_vulnerability_occurrences_summary_fixable_total_by_digest.go delete mode 100644 0.1.0/model_vulnerability_package_issue.go delete mode 100644 0.1.0/model_vulnerability_severity.go delete mode 100644 0.1.0/model_vulnerability_vulnerability.go delete mode 100644 0.1.0/model_vulnerability_vulnerability_location.go delete mode 100644 0.1.0/model_vulnerability_windows_detail.go delete mode 100644 0.1.0/model_windows_detail_knowledge_base.go delete mode 100644 0.1.0/response.go delete mode 100644 0.2.0/grafeas/docs/AliasContextKind.md delete mode 100644 0.2.0/grafeas/docs/AttestationAttestation.md delete mode 100644 0.2.0/grafeas/docs/AttestationAuthority.md delete mode 100644 0.2.0/grafeas/docs/AttestationGenericSignedAttestationContentType.md delete mode 100644 0.2.0/grafeas/docs/AttestationPgpSignedAttestationContentType.md delete mode 100644 0.2.0/grafeas/docs/AuthorityHint.md delete mode 100644 0.2.0/grafeas/docs/BuildBuild.md delete mode 100644 0.2.0/grafeas/docs/BuildBuildSignature.md delete mode 100644 0.2.0/grafeas/docs/BuildSignatureKeyType.md delete mode 100644 0.2.0/grafeas/docs/DeploymentDeployable.md delete mode 100644 0.2.0/grafeas/docs/DeploymentDeployment.md delete mode 100644 0.2.0/grafeas/docs/DeploymentPlatform.md delete mode 100644 0.2.0/grafeas/docs/DiscoveredAnalysisStatus.md delete mode 100644 0.2.0/grafeas/docs/DiscoveredContinuousAnalysis.md delete mode 100644 0.2.0/grafeas/docs/DiscoveryDiscovered.md delete mode 100644 0.2.0/grafeas/docs/DiscoveryDiscovery.md delete mode 100644 0.2.0/grafeas/docs/HashHashType.md delete mode 100644 0.2.0/grafeas/docs/ImageBasis.md delete mode 100644 0.2.0/grafeas/docs/ImageDerived.md delete mode 100644 0.2.0/grafeas/docs/ImageFingerprint.md delete mode 100644 0.2.0/grafeas/docs/ImageLayer.md delete mode 100644 0.2.0/grafeas/docs/PackageArchitecture.md delete mode 100644 0.2.0/grafeas/docs/PackageInstallation.md delete mode 100644 0.2.0/grafeas/docs/PackagePackage.md delete mode 100644 0.2.0/grafeas/docs/ProvenanceCommand.md delete mode 100644 0.2.0/grafeas/docs/ProvenanceFileHashes.md delete mode 100644 0.2.0/grafeas/docs/ProvenanceHash.md delete mode 100644 0.2.0/grafeas/docs/ProvenanceSource.md delete mode 100644 0.2.0/grafeas/docs/RpcStatus.md delete mode 100644 0.2.0/grafeas/docs/SourceAliasContext.md delete mode 100644 0.2.0/grafeas/docs/SourceCloudRepoSourceContext.md delete mode 100644 0.2.0/grafeas/docs/SourceGerritSourceContext.md delete mode 100644 0.2.0/grafeas/docs/SourceGitSourceContext.md delete mode 100644 0.2.0/grafeas/docs/SourceProjectRepoId.md delete mode 100644 0.2.0/grafeas/docs/SourceRepoId.md delete mode 100644 0.2.0/grafeas/docs/SourceSourceContext.md delete mode 100644 0.2.0/grafeas/docs/SpdxLicense.md delete mode 100644 0.2.0/grafeas/docs/V1beta1BatchCreateNotesResponse.md delete mode 100644 0.2.0/grafeas/docs/V1beta1BatchCreateOccurrencesResponse.md delete mode 100644 0.2.0/grafeas/docs/V1beta1ListNoteOccurrencesResponse.md delete mode 100644 0.2.0/grafeas/docs/V1beta1ListNotesResponse.md delete mode 100644 0.2.0/grafeas/docs/V1beta1ListOccurrencesResponse.md delete mode 100644 0.2.0/grafeas/docs/V1beta1NoteKind.md delete mode 100644 0.2.0/grafeas/docs/V1beta1Resource.md delete mode 100644 0.2.0/grafeas/docs/V1beta1VulnerabilityOccurrencesSummary.md delete mode 100644 0.2.0/grafeas/docs/V1beta1attestationDetails.md delete mode 100644 0.2.0/grafeas/docs/V1beta1buildDetails.md delete mode 100644 0.2.0/grafeas/docs/V1beta1deploymentDetails.md delete mode 100644 0.2.0/grafeas/docs/V1beta1discoveryDetails.md delete mode 100644 0.2.0/grafeas/docs/V1beta1imageDetails.md delete mode 100644 0.2.0/grafeas/docs/V1beta1packageDetails.md delete mode 100644 0.2.0/grafeas/docs/V1beta1packageLocation.md delete mode 100644 0.2.0/grafeas/docs/VersionVersionKind.md delete mode 100644 0.2.0/grafeas/docs/VulnerabilityOccurrencesSummaryFixableTotalByDigest.md delete mode 100644 0.2.0/grafeas/docs/VulnerabilitySeverity.md delete mode 100644 0.2.0/grafeas/docs/VulnerabilityVulnerabilityLocation.md delete mode 100644 0.2.0/grafeas/docs/VulnerabilityWindowsDetail.md delete mode 100644 0.2.0/grafeas/docs/WindowsDetailKnowledgeBase.md delete mode 100644 0.2.0/grafeas/model_package_installation.go delete mode 100644 0.2.0/grafeas/model_package_package.go delete mode 100644 0.2.0/project/.gitignore delete mode 100644 0.2.0/project/.swagger-codegen/VERSION delete mode 100644 0.2.0/project/.travis.yml delete mode 100644 0.2.0/project/git_push.sh rename {0.1.0 => grafeas}/.gitignore (100%) rename {0.2.0/grafeas => grafeas}/.swagger-codegen-ignore (100%) rename {0.1.0 => grafeas}/.swagger-codegen/VERSION (100%) rename {0.1.0 => grafeas}/.travis.yml (100%) rename {0.2.0/grafeas => grafeas}/README.md (91%) rename {0.2.0/grafeas => grafeas}/api/swagger.yaml (83%) rename {0.2.0/grafeas => grafeas}/api_grafeas_v1_beta1.go (100%) rename {0.2.0/grafeas => grafeas}/client.go (100%) rename {0.2.0/grafeas => grafeas}/configuration.go (97%) rename {0.1.0 => grafeas}/docs/AliasContextKind.md (100%) create mode 100644 grafeas/docs/AssessmentJustification.md create mode 100644 grafeas/docs/AssessmentRemediation.md rename 0.2.0/grafeas/docs/LayerDirective.md => grafeas/docs/AssessmentState.md (93%) rename {0.1.0 => grafeas}/docs/AttestationAttestation.md (100%) rename {0.1.0 => grafeas}/docs/AttestationAuthority.md (100%) rename {0.2.0/grafeas => grafeas}/docs/AttestationGenericSignedAttestation.md (100%) rename {0.1.0 => grafeas}/docs/AttestationGenericSignedAttestationContentType.md (100%) rename {0.2.0/grafeas => grafeas}/docs/AttestationPgpSignedAttestation.md (100%) rename {0.1.0 => grafeas}/docs/AttestationPgpSignedAttestationContentType.md (100%) rename {0.1.0 => grafeas}/docs/AuthorityHint.md (100%) rename {0.2.0/grafeas => grafeas}/docs/Body.md (100%) rename {0.2.0/grafeas => grafeas}/docs/Body1.md (100%) rename {0.1.0 => grafeas}/docs/BuildBuild.md (100%) rename {0.1.0 => grafeas}/docs/BuildBuildSignature.md (100%) rename {0.1.0 => grafeas}/docs/BuildSignatureKeyType.md (100%) rename {0.2.0/grafeas => grafeas}/docs/CvssAttackComplexity.md (100%) rename {0.2.0/grafeas => grafeas}/docs/CvssAttackVector.md (100%) rename {0.2.0/grafeas => grafeas}/docs/CvssAuthentication.md (100%) rename {0.2.0/grafeas => grafeas}/docs/CvssImpact.md (100%) rename {0.2.0/grafeas => grafeas}/docs/CvssPrivilegesRequired.md (100%) rename {0.2.0/grafeas => grafeas}/docs/CvssScope.md (100%) rename {0.2.0/grafeas => grafeas}/docs/CvssUserInteraction.md (100%) rename {0.1.0 => grafeas}/docs/DeploymentDeployable.md (100%) rename {0.1.0 => grafeas}/docs/DeploymentDeployment.md (100%) rename {0.1.0 => grafeas}/docs/DeploymentPlatform.md (100%) create mode 100644 grafeas/docs/DetailsVexAssessment.md rename 0.1.0/docs/CvsSv3PrivilegesRequired.md => grafeas/docs/DiscoveredAnalysisCompleted.md (74%) rename {0.1.0 => grafeas}/docs/DiscoveredAnalysisStatus.md (100%) rename {0.1.0 => grafeas}/docs/DiscoveredContinuousAnalysis.md (100%) rename {0.1.0 => grafeas}/docs/DiscoveryDiscovered.md (76%) rename {0.1.0 => grafeas}/docs/DiscoveryDiscovery.md (100%) rename {0.2.0/grafeas => grafeas}/docs/ExternalRefCategory.md (100%) rename {0.2.0/grafeas => grafeas}/docs/FileNoteFileType.md (100%) rename {0.2.0/grafeas => grafeas}/docs/GrafeasV1Beta1Api.md (100%) rename {0.2.0/grafeas => grafeas}/docs/Grafeasv1beta1Signature.md (100%) rename {0.1.0 => grafeas}/docs/HashHashType.md (100%) rename {0.1.0 => grafeas}/docs/ImageBasis.md (100%) rename {0.1.0 => grafeas}/docs/ImageDerived.md (100%) rename {0.1.0 => grafeas}/docs/ImageFingerprint.md (100%) rename {0.1.0 => grafeas}/docs/ImageLayer.md (100%) rename {0.2.0/grafeas => grafeas}/docs/InTotoArtifactRule.md (100%) rename {0.2.0/grafeas => grafeas}/docs/IntotoInToto.md (100%) rename {0.2.0/grafeas => grafeas}/docs/IntotoLink.md (100%) rename {0.2.0/grafeas => grafeas}/docs/IntotoLinkArtifact.md (100%) rename {0.2.0/grafeas => grafeas}/docs/IntotoSigningKey.md (100%) rename 0.1.0/docs/CvsSv3Impact.md => grafeas/docs/JustificationJustificationType.md (89%) rename {0.1.0 => grafeas}/docs/LayerDirective.md (100%) rename {0.2.0/grafeas => grafeas}/docs/LinkArtifactHashes.md (100%) rename {0.2.0/grafeas => grafeas}/docs/LinkByProducts.md (100%) rename {0.2.0/grafeas => grafeas}/docs/LinkEnvironment.md (100%) rename {0.1.0 => grafeas}/docs/PackageArchitecture.md (100%) rename {0.2.0/grafeas => grafeas}/docs/PackageDistribution.md (83%) rename {0.2.0/grafeas => grafeas}/docs/PackageInfoNoteExternalRef.md (100%) create mode 100644 grafeas/docs/PackageInstallation.md create mode 100644 grafeas/docs/PackagePackage.md rename {0.2.0/grafeas => grafeas}/docs/PackageVersion.md (100%) rename {0.2.0/grafeas => grafeas}/docs/ProtobufAny.md (100%) rename {0.2.0/grafeas => grafeas}/docs/ProvenanceBuildProvenance.md (100%) rename {0.1.0 => grafeas}/docs/ProvenanceCommand.md (100%) rename {0.1.0 => grafeas}/docs/ProvenanceFileHashes.md (100%) rename {0.1.0 => grafeas}/docs/ProvenanceHash.md (100%) rename {0.1.0 => grafeas}/docs/ProvenanceSource.md (100%) rename 0.1.0/docs/CvsSv3AttackVector.md => grafeas/docs/RemediationRemediationType.md (90%) rename {0.1.0 => grafeas}/docs/RpcStatus.md (100%) rename {0.1.0 => grafeas}/docs/SourceAliasContext.md (100%) rename {0.1.0 => grafeas}/docs/SourceCloudRepoSourceContext.md (100%) rename {0.1.0 => grafeas}/docs/SourceGerritSourceContext.md (100%) rename {0.1.0 => grafeas}/docs/SourceGitSourceContext.md (100%) rename {0.1.0 => grafeas}/docs/SourceProjectRepoId.md (100%) rename {0.1.0 => grafeas}/docs/SourceRepoId.md (100%) rename {0.1.0 => grafeas}/docs/SourceSourceContext.md (100%) rename {0.2.0/grafeas => grafeas}/docs/SpdxDocumentNote.md (100%) rename {0.2.0/grafeas => grafeas}/docs/SpdxDocumentOccurrence.md (100%) rename {0.2.0/grafeas => grafeas}/docs/SpdxFileNote.md (100%) rename {0.2.0/grafeas => grafeas}/docs/SpdxFileOccurrence.md (88%) rename {0.2.0/grafeas => grafeas}/docs/SpdxPackageInfoNote.md (93%) rename {0.2.0/grafeas => grafeas}/docs/SpdxPackageInfoOccurrence.md (90%) rename {0.2.0/grafeas => grafeas}/docs/SpdxRelationshipNote.md (100%) rename {0.2.0/grafeas => grafeas}/docs/SpdxRelationshipOccurrence.md (100%) rename {0.2.0/grafeas => grafeas}/docs/SpdxRelationshipType.md (100%) rename {0.1.0 => grafeas}/docs/V1beta1BatchCreateNotesResponse.md (100%) rename {0.1.0 => grafeas}/docs/V1beta1BatchCreateOccurrencesResponse.md (100%) rename 0.2.0/grafeas/docs/V1beta1RelatedUrl.md => grafeas/docs/V1beta1Digest.md (63%) rename {0.2.0/grafeas => grafeas}/docs/V1beta1Envelope.md (100%) rename {0.2.0/grafeas => grafeas}/docs/V1beta1EnvelopeSignature.md (100%) create mode 100644 grafeas/docs/V1beta1License.md rename {0.1.0 => grafeas}/docs/V1beta1ListNoteOccurrencesResponse.md (100%) rename {0.1.0 => grafeas}/docs/V1beta1ListNotesResponse.md (100%) rename {0.1.0 => grafeas}/docs/V1beta1ListOccurrencesResponse.md (100%) rename {0.2.0/grafeas => grafeas}/docs/V1beta1Note.md (94%) rename {0.1.0 => grafeas}/docs/V1beta1NoteKind.md (100%) rename {0.2.0/grafeas => grafeas}/docs/V1beta1Occurrence.md (100%) rename {0.1.0 => grafeas}/docs/V1beta1RelatedUrl.md (100%) rename {0.1.0 => grafeas}/docs/V1beta1Resource.md (100%) rename {0.1.0 => grafeas}/docs/V1beta1VulnerabilityOccurrencesSummary.md (100%) rename {0.1.0 => grafeas}/docs/V1beta1attestationDetails.md (100%) rename {0.1.0 => grafeas}/docs/V1beta1buildDetails.md (100%) rename {0.1.0 => grafeas}/docs/V1beta1deploymentDetails.md (100%) rename {0.1.0 => grafeas}/docs/V1beta1discoveryDetails.md (100%) rename {0.1.0 => grafeas}/docs/V1beta1imageDetails.md (100%) rename {0.2.0/grafeas => grafeas}/docs/V1beta1intotoDetails.md (100%) rename {0.2.0/grafeas => grafeas}/docs/V1beta1intotoSignature.md (100%) rename {0.1.0 => grafeas}/docs/V1beta1packageDetails.md (100%) rename {0.1.0 => grafeas}/docs/V1beta1packageLocation.md (55%) rename {0.2.0/grafeas => grafeas}/docs/V1beta1provenanceArtifact.md (100%) rename {0.2.0/grafeas => grafeas}/docs/V1beta1vulnerabilityDetails.md (79%) rename {0.1.0 => grafeas}/docs/VersionVersionKind.md (100%) create mode 100644 grafeas/docs/VexVulnerabilityAssessmentNote.md create mode 100644 grafeas/docs/VulnerabilityAssessmentNoteAssessment.md create mode 100644 grafeas/docs/VulnerabilityAssessmentNoteProduct.md create mode 100644 grafeas/docs/VulnerabilityAssessmentNotePublisher.md rename {0.2.0/grafeas => grafeas}/docs/VulnerabilityCvss.md (100%) rename 0.1.0/docs/CvsSv3AttackComplexity.md => grafeas/docs/VulnerabilityCvssVersion.md (91%) rename {0.2.0/grafeas => grafeas}/docs/VulnerabilityDetail.md (100%) rename {0.1.0 => grafeas}/docs/VulnerabilityOccurrencesSummaryFixableTotalByDigest.md (100%) rename {0.2.0/grafeas => grafeas}/docs/VulnerabilityPackageIssue.md (100%) rename {0.1.0 => grafeas}/docs/VulnerabilitySeverity.md (100%) rename {0.2.0/grafeas => grafeas}/docs/VulnerabilityVulnerability.md (91%) rename {0.1.0 => grafeas}/docs/VulnerabilityVulnerabilityLocation.md (100%) rename {0.1.0 => grafeas}/docs/VulnerabilityWindowsDetail.md (100%) rename {0.1.0 => grafeas}/docs/WindowsDetailKnowledgeBase.md (100%) rename {0.1.0 => grafeas}/git_push.sh (100%) rename {0.2.0/grafeas => grafeas}/model_alias_context_kind.go (100%) create mode 100644 grafeas/model_assessment_justification.go create mode 100644 grafeas/model_assessment_remediation.go create mode 100644 grafeas/model_assessment_state.go rename {0.2.0/grafeas => grafeas}/model_attestation_attestation.go (100%) rename {0.2.0/grafeas => grafeas}/model_attestation_authority.go (100%) rename {0.2.0/grafeas => grafeas}/model_attestation_generic_signed_attestation.go (100%) rename {0.2.0/grafeas => grafeas}/model_attestation_generic_signed_attestation_content_type.go (100%) rename {0.2.0/grafeas => grafeas}/model_attestation_pgp_signed_attestation.go (100%) rename {0.2.0/grafeas => grafeas}/model_attestation_pgp_signed_attestation_content_type.go (100%) rename {0.2.0/grafeas => grafeas}/model_authority_hint.go (100%) rename {0.2.0/grafeas => grafeas}/model_body.go (100%) rename {0.2.0/grafeas => grafeas}/model_body_1.go (100%) rename {0.2.0/grafeas => grafeas}/model_build_build.go (100%) rename {0.2.0/grafeas => grafeas}/model_build_build_signature.go (100%) rename {0.2.0/grafeas => grafeas}/model_build_signature_key_type.go (100%) rename {0.2.0/grafeas => grafeas}/model_cvss_attack_complexity.go (88%) rename {0.2.0/grafeas => grafeas}/model_cvss_attack_vector.go (100%) rename {0.2.0/grafeas => grafeas}/model_cvss_authentication.go (100%) rename {0.2.0/grafeas => grafeas}/model_cvss_impact.go (83%) rename {0.2.0/grafeas => grafeas}/model_cvss_privileges_required.go (100%) rename {0.2.0/grafeas => grafeas}/model_cvss_scope.go (100%) rename {0.2.0/grafeas => grafeas}/model_cvss_user_interaction.go (100%) rename {0.2.0/grafeas => grafeas}/model_deployment_deployable.go (100%) rename {0.2.0/grafeas => grafeas}/model_deployment_deployment.go (100%) rename {0.2.0/grafeas => grafeas}/model_deployment_platform.go (100%) create mode 100644 grafeas/model_details_vex_assessment.go rename 0.1.0/model_v1beta1attestation_details.go => grafeas/model_discovered_analysis_completed.go (52%) rename {0.2.0/grafeas => grafeas}/model_discovered_analysis_status.go (80%) rename {0.2.0/grafeas => grafeas}/model_discovered_continuous_analysis.go (100%) rename {0.2.0/grafeas => grafeas}/model_discovery_discovered.go (80%) rename {0.2.0/grafeas => grafeas}/model_discovery_discovery.go (100%) rename {0.2.0/grafeas => grafeas}/model_external_ref_category.go (100%) rename {0.2.0/grafeas => grafeas}/model_file_note_file_type.go (100%) rename {0.2.0/grafeas => grafeas}/model_grafeasv1beta1_signature.go (100%) rename {0.2.0/grafeas => grafeas}/model_hash_hash_type.go (100%) rename {0.2.0/grafeas => grafeas}/model_image_basis.go (100%) rename {0.2.0/grafeas => grafeas}/model_image_derived.go (100%) rename {0.2.0/grafeas => grafeas}/model_image_fingerprint.go (100%) rename {0.2.0/grafeas => grafeas}/model_image_layer.go (100%) rename {0.2.0/grafeas => grafeas}/model_in_toto_artifact_rule.go (100%) rename {0.2.0/grafeas => grafeas}/model_intoto_in_toto.go (100%) rename {0.2.0/grafeas => grafeas}/model_intoto_link.go (100%) rename {0.2.0/grafeas => grafeas}/model_intoto_link_artifact.go (100%) rename {0.2.0/grafeas => grafeas}/model_intoto_signing_key.go (100%) create mode 100644 grafeas/model_justification_justification_type.go rename {0.2.0/grafeas => grafeas}/model_layer_directive.go (100%) rename {0.2.0/grafeas => grafeas}/model_link_artifact_hashes.go (100%) rename {0.2.0/grafeas => grafeas}/model_link_by_products.go (100%) rename {0.2.0/grafeas => grafeas}/model_link_environment.go (100%) rename {0.2.0/grafeas => grafeas}/model_package_architecture.go (100%) rename {0.2.0/grafeas => grafeas}/model_package_distribution.go (85%) rename {0.2.0/grafeas => grafeas}/model_package_info_note_external_ref.go (100%) create mode 100644 grafeas/model_package_installation.go create mode 100644 grafeas/model_package_package.go rename {0.2.0/grafeas => grafeas}/model_package_version.go (100%) rename {0.2.0/grafeas => grafeas}/model_protobuf_any.go (100%) rename {0.2.0/grafeas => grafeas}/model_provenance_build_provenance.go (100%) rename {0.2.0/grafeas => grafeas}/model_provenance_command.go (100%) rename {0.2.0/grafeas => grafeas}/model_provenance_file_hashes.go (100%) rename {0.2.0/grafeas => grafeas}/model_provenance_hash.go (100%) rename {0.2.0/grafeas => grafeas}/model_provenance_source.go (100%) create mode 100644 grafeas/model_remediation_remediation_type.go rename {0.2.0/grafeas => grafeas}/model_rpc_status.go (100%) rename {0.2.0/grafeas => grafeas}/model_source_alias_context.go (100%) rename {0.2.0/grafeas => grafeas}/model_source_cloud_repo_source_context.go (100%) rename {0.2.0/grafeas => grafeas}/model_source_gerrit_source_context.go (100%) rename {0.2.0/grafeas => grafeas}/model_source_git_source_context.go (100%) rename {0.2.0/grafeas => grafeas}/model_source_project_repo_id.go (100%) rename {0.2.0/grafeas => grafeas}/model_source_repo_id.go (100%) rename {0.2.0/grafeas => grafeas}/model_source_source_context.go (100%) rename {0.2.0/grafeas => grafeas}/model_spdx_document_note.go (100%) rename {0.2.0/grafeas => grafeas}/model_spdx_document_occurrence.go (100%) rename {0.2.0/grafeas => grafeas}/model_spdx_file_note.go (100%) rename {0.2.0/grafeas => grafeas}/model_spdx_file_occurrence.go (90%) rename {0.2.0/grafeas => grafeas}/model_spdx_package_info_note.go (94%) rename {0.2.0/grafeas => grafeas}/model_spdx_package_info_occurrence.go (91%) rename {0.2.0/grafeas => grafeas}/model_spdx_relationship_note.go (100%) rename {0.2.0/grafeas => grafeas}/model_spdx_relationship_occurrence.go (100%) rename {0.2.0/grafeas => grafeas}/model_spdx_relationship_type.go (100%) rename {0.2.0/grafeas => grafeas}/model_v1beta1_batch_create_notes_response.go (100%) rename {0.2.0/grafeas => grafeas}/model_v1beta1_batch_create_occurrences_response.go (100%) rename 0.2.0/grafeas/model_spdx_license.go => grafeas/model_v1beta1_digest.go (58%) rename {0.2.0/grafeas => grafeas}/model_v1beta1_envelope.go (100%) rename {0.2.0/grafeas => grafeas}/model_v1beta1_envelope_signature.go (100%) create mode 100644 grafeas/model_v1beta1_license.go rename {0.2.0/grafeas => grafeas}/model_v1beta1_list_note_occurrences_response.go (100%) rename {0.2.0/grafeas => grafeas}/model_v1beta1_list_notes_response.go (100%) rename {0.2.0/grafeas => grafeas}/model_v1beta1_list_occurrences_response.go (100%) rename {0.2.0/grafeas => grafeas}/model_v1beta1_note.go (94%) rename {0.2.0/grafeas => grafeas}/model_v1beta1_note_kind.go (90%) rename {0.2.0/grafeas => grafeas}/model_v1beta1_occurrence.go (100%) rename {0.2.0/grafeas => grafeas}/model_v1beta1_related_url.go (100%) rename {0.2.0/grafeas => grafeas}/model_v1beta1_resource.go (100%) rename {0.2.0/grafeas => grafeas}/model_v1beta1_vulnerability_occurrences_summary.go (100%) rename {0.2.0/grafeas => grafeas}/model_v1beta1attestation_details.go (100%) rename {0.2.0/grafeas => grafeas}/model_v1beta1build_details.go (100%) rename {0.2.0/grafeas => grafeas}/model_v1beta1deployment_details.go (100%) rename {0.2.0/grafeas => grafeas}/model_v1beta1discovery_details.go (100%) rename {0.2.0/grafeas => grafeas}/model_v1beta1image_details.go (100%) rename {0.2.0/grafeas => grafeas}/model_v1beta1intoto_details.go (100%) rename {0.2.0/grafeas => grafeas}/model_v1beta1intoto_signature.go (100%) rename {0.2.0/grafeas => grafeas}/model_v1beta1package_details.go (100%) rename {0.2.0/grafeas => grafeas}/model_v1beta1package_location.go (76%) rename {0.2.0/grafeas => grafeas}/model_v1beta1provenance_artifact.go (100%) rename {0.2.0/grafeas => grafeas}/model_v1beta1vulnerability_details.go (83%) rename {0.2.0/grafeas => grafeas}/model_version_version_kind.go (100%) create mode 100644 grafeas/model_vex_vulnerability_assessment_note.go create mode 100644 grafeas/model_vulnerability_assessment_note_assessment.go create mode 100644 grafeas/model_vulnerability_assessment_note_product.go create mode 100644 grafeas/model_vulnerability_assessment_note_publisher.go rename {0.2.0/grafeas => grafeas}/model_vulnerability_cvss.go (100%) create mode 100644 grafeas/model_vulnerability_cvss_version.go rename {0.2.0/grafeas => grafeas}/model_vulnerability_detail.go (100%) rename {0.2.0/grafeas => grafeas}/model_vulnerability_occurrences_summary_fixable_total_by_digest.go (100%) rename {0.2.0/grafeas => grafeas}/model_vulnerability_package_issue.go (100%) rename {0.2.0/grafeas => grafeas}/model_vulnerability_severity.go (100%) rename {0.2.0/grafeas => grafeas}/model_vulnerability_vulnerability.go (92%) rename {0.2.0/grafeas => grafeas}/model_vulnerability_vulnerability_location.go (100%) rename {0.2.0/grafeas => grafeas}/model_vulnerability_windows_detail.go (100%) rename {0.2.0/grafeas => grafeas}/model_windows_detail_knowledge_base.go (100%) rename {0.2.0/grafeas => grafeas}/response.go (100%) rename {0.2.0/grafeas => project}/.gitignore (100%) rename {0.2.0/project => project}/.swagger-codegen-ignore (100%) rename {0.2.0/grafeas => project}/.swagger-codegen/VERSION (100%) rename {0.2.0/grafeas => project}/.travis.yml (100%) rename {0.2.0/project => project}/README.md (98%) rename {0.2.0/project => project}/api/swagger.yaml (100%) rename {0.2.0/project => project}/api_projects.go (100%) rename {0.2.0/project => project}/client.go (100%) rename {0.2.0/project => project}/configuration.go (97%) rename {0.2.0/project => project}/docs/ProjectListProjectsResponse.md (100%) rename {0.2.0/project => project}/docs/ProjectProject.md (100%) rename {0.2.0/project => project}/docs/ProjectsApi.md (100%) rename {0.2.0/project => project}/docs/ProtobufAny.md (100%) rename {0.2.0/project => project}/docs/RpcStatus.md (100%) rename {0.2.0/grafeas => project}/git_push.sh (100%) rename {0.2.0/project => project}/model_project_list_projects_response.go (100%) rename {0.2.0/project => project}/model_project_project.go (100%) rename {0.2.0/project => project}/model_protobuf_any.go (100%) rename {0.2.0/project => project}/model_rpc_status.go (100%) rename {0.2.0/project => project}/response.go (100%) diff --git a/0.1.0/.swagger-codegen-ignore b/0.1.0/.swagger-codegen-ignore deleted file mode 100644 index 8721107..0000000 --- a/0.1.0/.swagger-codegen-ignore +++ /dev/null @@ -1,25 +0,0 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md - -README.md diff --git a/0.1.0/README.md b/0.1.0/README.md deleted file mode 100644 index cb01602..0000000 --- a/0.1.0/README.md +++ /dev/null @@ -1,132 +0,0 @@ -# Go API client for Grafeas - -This is a client library for the [Grafeas API](https://github.com/grafeas/grafeas) in Go, generated by [Swagger Codegen](https://github.com/swagger-api/swagger-codegen). - -## Overview - -- API version: v1beta1 -- Package version: 0.1.0 -- Build package: io.swagger.codegen.languages.GoClientCodegen - -## Installation -Put the package under your project folder and add the following in import: - -```golang -import "./grafeas" -``` - -## Documentation for API Endpoints - -All URIs are relative to *http://localhost* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*GrafeasV1Beta1Api* | [**BatchCreateNotes**](docs/GrafeasV1Beta1Api.md#batchcreatenotes) | **Post** /v1beta1/{parent=projects/*}/notes:batchCreate | Creates new notes in batch. -*GrafeasV1Beta1Api* | [**BatchCreateOccurrences**](docs/GrafeasV1Beta1Api.md#batchcreateoccurrences) | **Post** /v1beta1/{parent=projects/*}/occurrences:batchCreate | Creates new occurrences in batch. -*GrafeasV1Beta1Api* | [**CreateNote**](docs/GrafeasV1Beta1Api.md#createnote) | **Post** /v1beta1/{parent=projects/*}/notes | Creates a new note. -*GrafeasV1Beta1Api* | [**CreateOccurrence**](docs/GrafeasV1Beta1Api.md#createoccurrence) | **Post** /v1beta1/{parent=projects/*}/occurrences | Creates a new occurrence. -*GrafeasV1Beta1Api* | [**DeleteNote**](docs/GrafeasV1Beta1Api.md#deletenote) | **Delete** /v1beta1/{name=projects/*/notes/*} | Deletes the specified note. -*GrafeasV1Beta1Api* | [**DeleteOccurrence**](docs/GrafeasV1Beta1Api.md#deleteoccurrence) | **Delete** /v1beta1/{name=projects/*/occurrences/*} | Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource. -*GrafeasV1Beta1Api* | [**GetNote**](docs/GrafeasV1Beta1Api.md#getnote) | **Get** /v1beta1/{name=projects/*/notes/*} | Gets the specified note. -*GrafeasV1Beta1Api* | [**GetOccurrence**](docs/GrafeasV1Beta1Api.md#getoccurrence) | **Get** /v1beta1/{name=projects/*/occurrences/*} | Gets the specified occurrence. -*GrafeasV1Beta1Api* | [**GetOccurrenceNote**](docs/GrafeasV1Beta1Api.md#getoccurrencenote) | **Get** /v1beta1/{name=projects/*/occurrences/*}/notes | Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project. -*GrafeasV1Beta1Api* | [**GetVulnerabilityOccurrencesSummary**](docs/GrafeasV1Beta1Api.md#getvulnerabilityoccurrencessummary) | **Get** /v1beta1/{parent=projects/*}/occurrences:vulnerabilitySummary | Gets a summary of the number and severity of occurrences. -*GrafeasV1Beta1Api* | [**ListNoteOccurrences**](docs/GrafeasV1Beta1Api.md#listnoteoccurrences) | **Get** /v1beta1/{name=projects/*/notes/*}/occurrences | Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note. -*GrafeasV1Beta1Api* | [**ListNotes**](docs/GrafeasV1Beta1Api.md#listnotes) | **Get** /v1beta1/{parent=projects/*}/notes | Lists notes for the specified project. -*GrafeasV1Beta1Api* | [**ListOccurrences**](docs/GrafeasV1Beta1Api.md#listoccurrences) | **Get** /v1beta1/{parent=projects/*}/occurrences | Lists occurrences for the specified project. -*GrafeasV1Beta1Api* | [**UpdateNote**](docs/GrafeasV1Beta1Api.md#updatenote) | **Patch** /v1beta1/{name=projects/*/notes/*} | Updates the specified note. -*GrafeasV1Beta1Api* | [**UpdateOccurrence**](docs/GrafeasV1Beta1Api.md#updateoccurrence) | **Patch** /v1beta1/{name=projects/*/occurrences/*} | Updates the specified occurrence. - - -## Documentation For Models - - - [AliasContextKind](docs/AliasContextKind.md) - - [AttestationAttestation](docs/AttestationAttestation.md) - - [AttestationAuthority](docs/AttestationAuthority.md) - - [AttestationGenericSignedAttestation](docs/AttestationGenericSignedAttestation.md) - - [AttestationGenericSignedAttestationContentType](docs/AttestationGenericSignedAttestationContentType.md) - - [AttestationPgpSignedAttestation](docs/AttestationPgpSignedAttestation.md) - - [AttestationPgpSignedAttestationContentType](docs/AttestationPgpSignedAttestationContentType.md) - - [AuthorityHint](docs/AuthorityHint.md) - - [BuildBuild](docs/BuildBuild.md) - - [BuildBuildSignature](docs/BuildBuildSignature.md) - - [BuildSignatureKeyType](docs/BuildSignatureKeyType.md) - - [CvsSv3AttackComplexity](docs/CvsSv3AttackComplexity.md) - - [CvsSv3AttackVector](docs/CvsSv3AttackVector.md) - - [CvsSv3Impact](docs/CvsSv3Impact.md) - - [CvsSv3PrivilegesRequired](docs/CvsSv3PrivilegesRequired.md) - - [CvsSv3Scope](docs/CvsSv3Scope.md) - - [CvsSv3UserInteraction](docs/CvsSv3UserInteraction.md) - - [DeploymentDeployable](docs/DeploymentDeployable.md) - - [DeploymentDeployment](docs/DeploymentDeployment.md) - - [DeploymentPlatform](docs/DeploymentPlatform.md) - - [DiscoveredAnalysisStatus](docs/DiscoveredAnalysisStatus.md) - - [DiscoveredContinuousAnalysis](docs/DiscoveredContinuousAnalysis.md) - - [DiscoveryDiscovered](docs/DiscoveryDiscovered.md) - - [DiscoveryDiscovery](docs/DiscoveryDiscovery.md) - - [HashHashType](docs/HashHashType.md) - - [ImageBasis](docs/ImageBasis.md) - - [ImageDerived](docs/ImageDerived.md) - - [ImageFingerprint](docs/ImageFingerprint.md) - - [ImageLayer](docs/ImageLayer.md) - - [LayerDirective](docs/LayerDirective.md) - - [PackageArchitecture](docs/PackageArchitecture.md) - - [PackageDistribution](docs/PackageDistribution.md) - - [PackageInstallation](docs/PackageInstallation.md) - - [PackagePackage](docs/PackagePackage.md) - - [PackageVersion](docs/PackageVersion.md) - - [ProtobufAny](docs/ProtobufAny.md) - - [ProtobufFieldMask](docs/ProtobufFieldMask.md) - - [ProvenanceArtifact](docs/ProvenanceArtifact.md) - - [ProvenanceBuildProvenance](docs/ProvenanceBuildProvenance.md) - - [ProvenanceCommand](docs/ProvenanceCommand.md) - - [ProvenanceFileHashes](docs/ProvenanceFileHashes.md) - - [ProvenanceHash](docs/ProvenanceHash.md) - - [ProvenanceSource](docs/ProvenanceSource.md) - - [RpcStatus](docs/RpcStatus.md) - - [SourceAliasContext](docs/SourceAliasContext.md) - - [SourceCloudRepoSourceContext](docs/SourceCloudRepoSourceContext.md) - - [SourceGerritSourceContext](docs/SourceGerritSourceContext.md) - - [SourceGitSourceContext](docs/SourceGitSourceContext.md) - - [SourceProjectRepoId](docs/SourceProjectRepoId.md) - - [SourceRepoId](docs/SourceRepoId.md) - - [SourceSourceContext](docs/SourceSourceContext.md) - - [V1beta1BatchCreateNotesRequest](docs/V1beta1BatchCreateNotesRequest.md) - - [V1beta1BatchCreateNotesResponse](docs/V1beta1BatchCreateNotesResponse.md) - - [V1beta1BatchCreateOccurrencesRequest](docs/V1beta1BatchCreateOccurrencesRequest.md) - - [V1beta1BatchCreateOccurrencesResponse](docs/V1beta1BatchCreateOccurrencesResponse.md) - - [V1beta1ListNoteOccurrencesResponse](docs/V1beta1ListNoteOccurrencesResponse.md) - - [V1beta1ListNotesResponse](docs/V1beta1ListNotesResponse.md) - - [V1beta1ListOccurrencesResponse](docs/V1beta1ListOccurrencesResponse.md) - - [V1beta1Note](docs/V1beta1Note.md) - - [V1beta1NoteKind](docs/V1beta1NoteKind.md) - - [V1beta1Occurrence](docs/V1beta1Occurrence.md) - - [V1beta1RelatedUrl](docs/V1beta1RelatedUrl.md) - - [V1beta1Resource](docs/V1beta1Resource.md) - - [V1beta1Signature](docs/V1beta1Signature.md) - - [V1beta1VulnerabilityOccurrencesSummary](docs/V1beta1VulnerabilityOccurrencesSummary.md) - - [V1beta1attestationDetails](docs/V1beta1attestationDetails.md) - - [V1beta1buildDetails](docs/V1beta1buildDetails.md) - - [V1beta1deploymentDetails](docs/V1beta1deploymentDetails.md) - - [V1beta1discoveryDetails](docs/V1beta1discoveryDetails.md) - - [V1beta1imageDetails](docs/V1beta1imageDetails.md) - - [V1beta1packageDetails](docs/V1beta1packageDetails.md) - - [V1beta1packageLocation](docs/V1beta1packageLocation.md) - - [V1beta1vulnerabilityDetails](docs/V1beta1vulnerabilityDetails.md) - - [VersionVersionKind](docs/VersionVersionKind.md) - - [VulnerabilityCvsSv3](docs/VulnerabilityCvsSv3.md) - - [VulnerabilityDetail](docs/VulnerabilityDetail.md) - - [VulnerabilityOccurrencesSummaryFixableTotalByDigest](docs/VulnerabilityOccurrencesSummaryFixableTotalByDigest.md) - - [VulnerabilityPackageIssue](docs/VulnerabilityPackageIssue.md) - - [VulnerabilitySeverity](docs/VulnerabilitySeverity.md) - - [VulnerabilityVulnerability](docs/VulnerabilityVulnerability.md) - - [VulnerabilityVulnerabilityLocation](docs/VulnerabilityVulnerabilityLocation.md) - - [VulnerabilityWindowsDetail](docs/VulnerabilityWindowsDetail.md) - - [WindowsDetailKnowledgeBase](docs/WindowsDetailKnowledgeBase.md) - - -## Documentation For Authorization - Endpoints do not require authorization. - -## Author -Grafeas authors. diff --git a/0.1.0/api/swagger.yaml b/0.1.0/api/swagger.yaml deleted file mode 100644 index 366203c..0000000 --- a/0.1.0/api/swagger.yaml +++ /dev/null @@ -1,5416 +0,0 @@ ---- -swagger: "2.0" -info: - version: "version not set" - title: "proto/v1beta1/grafeas.proto" -schemes: -- "http" -- "https" -consumes: -- "application/json" -produces: -- "application/json" -paths: - /v1beta1/{name=projects/*/notes/*}: - get: - tags: - - "GrafeasV1Beta1" - summary: "Gets the specified note." - operationId: "GetNote" - parameters: - - name: "name" - in: "path" - description: "The name of the note in the form of\n`projects/[PROVIDER_ID]/notes/[NOTE_ID]`." - required: true - type: "string" - x-exportParamName: "Name" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/v1beta1Note" - delete: - tags: - - "GrafeasV1Beta1" - summary: "Deletes the specified note." - operationId: "DeleteNote" - parameters: - - name: "name" - in: "path" - description: "The name of the note in the form of\n`projects/[PROVIDER_ID]/notes/[NOTE_ID]`." - required: true - type: "string" - x-exportParamName: "Name" - responses: - 200: - description: "A successful response." - schema: {} - patch: - tags: - - "GrafeasV1Beta1" - summary: "Updates the specified note." - operationId: "UpdateNote" - parameters: - - name: "name" - in: "path" - description: "The name of the note in the form of\n`projects/[PROVIDER_ID]/notes/[NOTE_ID]`." - required: true - type: "string" - x-exportParamName: "Name" - - in: "body" - name: "body" - description: "The updated note." - required: true - schema: - $ref: "#/definitions/v1beta1Note" - x-exportParamName: "Body" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/v1beta1Note" - /v1beta1/{name=projects/*/notes/*}/occurrences: - get: - tags: - - "GrafeasV1Beta1" - summary: "Lists occurrences referencing the specified note. Provider projects\ - \ can use\nthis method to get all occurrences across consumer projects referencing\ - \ the\nspecified note." - operationId: "ListNoteOccurrences" - parameters: - - name: "name" - in: "path" - description: "The name of the note to list occurrences for in the form of\n\ - `projects/[PROVIDER_ID]/notes/[NOTE_ID]`." - required: true - type: "string" - x-exportParamName: "Name" - - name: "filter" - in: "query" - description: "The filter expression." - required: false - type: "string" - x-exportParamName: "Filter" - x-optionalDataType: "String" - - name: "page_size" - in: "query" - description: "Number of occurrences to return in the list." - required: false - type: "integer" - format: "int32" - x-exportParamName: "PageSize" - x-optionalDataType: "Int32" - - name: "page_token" - in: "query" - description: "Token to provide to skip to a particular spot in the list." - required: false - type: "string" - x-exportParamName: "PageToken" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/v1beta1ListNoteOccurrencesResponse" - /v1beta1/{name=projects/*/occurrences/*}: - get: - tags: - - "GrafeasV1Beta1" - summary: "Gets the specified occurrence." - operationId: "GetOccurrence" - parameters: - - name: "name" - in: "path" - description: "The name of the occurrence in the form of\n`projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`." - required: true - type: "string" - x-exportParamName: "Name" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/v1beta1Occurrence" - delete: - tags: - - "GrafeasV1Beta1" - summary: "Deletes the specified occurrence. For example, use this method to\ - \ delete an\noccurrence when the occurrence is no longer applicable for the\ - \ given\nresource." - operationId: "DeleteOccurrence" - parameters: - - name: "name" - in: "path" - description: "The name of the occurrence in the form of\n`projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`." - required: true - type: "string" - x-exportParamName: "Name" - responses: - 200: - description: "A successful response." - schema: {} - patch: - tags: - - "GrafeasV1Beta1" - summary: "Updates the specified occurrence." - operationId: "UpdateOccurrence" - parameters: - - name: "name" - in: "path" - description: "The name of the occurrence in the form of\n`projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`." - required: true - type: "string" - x-exportParamName: "Name" - - in: "body" - name: "body" - description: "The updated occurrence." - required: true - schema: - $ref: "#/definitions/v1beta1Occurrence" - x-exportParamName: "Body" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/v1beta1Occurrence" - /v1beta1/{name=projects/*/occurrences/*}/notes: - get: - tags: - - "GrafeasV1Beta1" - summary: "Gets the note attached to the specified occurrence. Consumer projects\ - \ can\nuse this method to get a note that belongs to a provider project." - operationId: "GetOccurrenceNote" - parameters: - - name: "name" - in: "path" - description: "The name of the occurrence in the form of\n`projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`." - required: true - type: "string" - x-exportParamName: "Name" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/v1beta1Note" - /v1beta1/{parent=projects/*}/notes: - get: - tags: - - "GrafeasV1Beta1" - summary: "Lists notes for the specified project." - operationId: "ListNotes" - parameters: - - name: "parent" - in: "path" - description: "The name of the project to list notes for in the form of\n`projects/[PROJECT_ID]`." - required: true - type: "string" - x-exportParamName: "Parent" - - name: "filter" - in: "query" - description: "The filter expression." - required: false - type: "string" - x-exportParamName: "Filter" - x-optionalDataType: "String" - - name: "page_size" - in: "query" - description: "Number of notes to return in the list. Must be positive. Max\ - \ allowed page\nsize is 1000. If not specified, page size defaults to 20." - required: false - type: "integer" - format: "int32" - x-exportParamName: "PageSize" - x-optionalDataType: "Int32" - - name: "page_token" - in: "query" - description: "Token to provide to skip to a particular spot in the list." - required: false - type: "string" - x-exportParamName: "PageToken" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/v1beta1ListNotesResponse" - post: - tags: - - "GrafeasV1Beta1" - summary: "Creates a new note." - operationId: "CreateNote" - parameters: - - name: "parent" - in: "path" - description: "The name of the project in the form of `projects/[PROJECT_ID]`,\ - \ under which\nthe note is to be created." - required: true - type: "string" - x-exportParamName: "Parent" - - in: "body" - name: "body" - description: "The note to create." - required: true - schema: - $ref: "#/definitions/v1beta1Note" - x-exportParamName: "Body" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/v1beta1Note" - /v1beta1/{parent=projects/*}/notes:batchCreate: - post: - tags: - - "GrafeasV1Beta1" - summary: "Creates new notes in batch." - operationId: "BatchCreateNotes" - parameters: - - name: "parent" - in: "path" - description: "The name of the project in the form of `projects/[PROJECT_ID]`,\ - \ under which\nthe notes are to be created." - required: true - type: "string" - x-exportParamName: "Parent" - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/v1beta1BatchCreateNotesRequest" - x-exportParamName: "Body" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/v1beta1BatchCreateNotesResponse" - /v1beta1/{parent=projects/*}/occurrences: - get: - tags: - - "GrafeasV1Beta1" - summary: "Lists occurrences for the specified project." - operationId: "ListOccurrences" - parameters: - - name: "parent" - in: "path" - description: "The name of the project to list occurrences for in the form\ - \ of\n`projects/[PROJECT_ID]`." - required: true - type: "string" - x-exportParamName: "Parent" - - name: "filter" - in: "query" - description: "The filter expression." - required: false - type: "string" - x-exportParamName: "Filter" - x-optionalDataType: "String" - - name: "page_size" - in: "query" - description: "Number of occurrences to return in the list. Must be positive.\ - \ Max allowed\npage size is 1000. If not specified, page size defaults to\ - \ 20." - required: false - type: "integer" - format: "int32" - x-exportParamName: "PageSize" - x-optionalDataType: "Int32" - - name: "page_token" - in: "query" - description: "Token to provide to skip to a particular spot in the list." - required: false - type: "string" - x-exportParamName: "PageToken" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/v1beta1ListOccurrencesResponse" - post: - tags: - - "GrafeasV1Beta1" - summary: "Creates a new occurrence." - operationId: "CreateOccurrence" - parameters: - - name: "parent" - in: "path" - description: "The name of the project in the form of `projects/[PROJECT_ID]`,\ - \ under which\nthe occurrence is to be created." - required: true - type: "string" - x-exportParamName: "Parent" - - in: "body" - name: "body" - description: "The occurrence to create." - required: true - schema: - $ref: "#/definitions/v1beta1Occurrence" - x-exportParamName: "Body" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/v1beta1Occurrence" - /v1beta1/{parent=projects/*}/occurrences:batchCreate: - post: - tags: - - "GrafeasV1Beta1" - summary: "Creates new occurrences in batch." - operationId: "BatchCreateOccurrences" - parameters: - - name: "parent" - in: "path" - description: "The name of the project in the form of `projects/[PROJECT_ID]`,\ - \ under which\nthe occurrences are to be created." - required: true - type: "string" - x-exportParamName: "Parent" - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/v1beta1BatchCreateOccurrencesRequest" - x-exportParamName: "Body" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/v1beta1BatchCreateOccurrencesResponse" - /v1beta1/{parent=projects/*}/occurrences:vulnerabilitySummary: - get: - tags: - - "GrafeasV1Beta1" - summary: "Gets a summary of the number and severity of occurrences." - operationId: "GetVulnerabilityOccurrencesSummary" - parameters: - - name: "parent" - in: "path" - description: "The name of the project to get a vulnerability summary for in\ - \ the form of\n`projects/[PROJECT_ID]`." - required: true - type: "string" - x-exportParamName: "Parent" - - name: "filter" - in: "query" - description: "The filter expression." - required: false - type: "string" - x-exportParamName: "Filter" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/v1beta1VulnerabilityOccurrencesSummary" -definitions: - AliasContextKind: - type: "string" - description: "The type of an alias.\n\n - KIND_UNSPECIFIED: Unknown.\n - FIXED:\ - \ Git tag.\n - MOVABLE: Git branch.\n - OTHER: Used to specify non-standard\ - \ aliases. For example, if a Git repo has a\nref named \"refs/foo/bar\"." - enum: - - "KIND_UNSPECIFIED" - - "FIXED" - - "MOVABLE" - - "OTHER" - default: "KIND_UNSPECIFIED" - AuthorityHint: - type: "object" - properties: - human_readable_name: - type: "string" - description: "Required. The human readable name of this attestation authority,\ - \ for\nexample \"qa\"." - description: "This submessage provides human-readable hints about the purpose\ - \ of the\nauthority. Because the name of a note acts as its resource reference,\ - \ it is\nimportant to disambiguate the canonical name of the Note (which might\ - \ be a\nUUID for security purposes) from \"readable\" names more suitable for\ - \ debug\noutput. Note that these hints should not be used to look up authorities\ - \ in\nsecurity sensitive contexts, such as when looking up attestations to\n\ - verify." - example: - human_readable_name: "human_readable_name" - BuildSignatureKeyType: - type: "string" - description: "Public key formats.\n\n - KEY_TYPE_UNSPECIFIED: `KeyType` is not\ - \ set.\n - PGP_ASCII_ARMORED: `PGP ASCII Armored` public key.\n - PKIX_PEM:\ - \ `PKIX PEM` public key." - enum: - - "KEY_TYPE_UNSPECIFIED" - - "PGP_ASCII_ARMORED" - - "PKIX_PEM" - default: "KEY_TYPE_UNSPECIFIED" - CVSSv3AttackComplexity: - type: "string" - enum: - - "ATTACK_COMPLEXITY_UNSPECIFIED" - - "ATTACK_COMPLEXITY_LOW" - - "ATTACK_COMPLEXITY_HIGH" - default: "ATTACK_COMPLEXITY_UNSPECIFIED" - CVSSv3AttackVector: - type: "string" - enum: - - "ATTACK_VECTOR_UNSPECIFIED" - - "ATTACK_VECTOR_NETWORK" - - "ATTACK_VECTOR_ADJACENT" - - "ATTACK_VECTOR_LOCAL" - - "ATTACK_VECTOR_PHYSICAL" - default: "ATTACK_VECTOR_UNSPECIFIED" - CVSSv3Impact: - type: "string" - enum: - - "IMPACT_UNSPECIFIED" - - "IMPACT_HIGH" - - "IMPACT_LOW" - - "IMPACT_NONE" - default: "IMPACT_UNSPECIFIED" - CVSSv3PrivilegesRequired: - type: "string" - enum: - - "PRIVILEGES_REQUIRED_UNSPECIFIED" - - "PRIVILEGES_REQUIRED_NONE" - - "PRIVILEGES_REQUIRED_LOW" - - "PRIVILEGES_REQUIRED_HIGH" - default: "PRIVILEGES_REQUIRED_UNSPECIFIED" - CVSSv3Scope: - type: "string" - enum: - - "SCOPE_UNSPECIFIED" - - "SCOPE_UNCHANGED" - - "SCOPE_CHANGED" - default: "SCOPE_UNSPECIFIED" - CVSSv3UserInteraction: - type: "string" - enum: - - "USER_INTERACTION_UNSPECIFIED" - - "USER_INTERACTION_NONE" - - "USER_INTERACTION_REQUIRED" - default: "USER_INTERACTION_UNSPECIFIED" - DeploymentPlatform: - type: "string" - description: "Types of platforms.\n\n - PLATFORM_UNSPECIFIED: Unknown.\n - GKE:\ - \ Google Container Engine.\n - FLEX: Google App Engine: Flexible Environment.\n\ - \ - CUSTOM: Custom user-defined platform." - enum: - - "PLATFORM_UNSPECIFIED" - - "GKE" - - "FLEX" - - "CUSTOM" - default: "PLATFORM_UNSPECIFIED" - DiscoveredAnalysisStatus: - type: "string" - description: "Analysis status for a resource. Currently for initial analysis only\ - \ (not\nupdated in continuous analysis).\n\n - ANALYSIS_STATUS_UNSPECIFIED:\ - \ Unknown.\n - PENDING: Resource is known but no action has been taken yet.\n\ - \ - SCANNING: Resource is being analyzed.\n - FINISHED_SUCCESS: Analysis has\ - \ finished successfully.\n - FINISHED_FAILED: Analysis has finished unsuccessfully,\ - \ the analysis itself is in a bad\nstate.\n - FINISHED_UNSUPPORTED: The resource\ - \ is known not to be supported" - enum: - - "ANALYSIS_STATUS_UNSPECIFIED" - - "PENDING" - - "SCANNING" - - "FINISHED_SUCCESS" - - "FINISHED_FAILED" - - "FINISHED_UNSUPPORTED" - default: "ANALYSIS_STATUS_UNSPECIFIED" - DiscoveredContinuousAnalysis: - type: "string" - description: "Whether the resource is continuously analyzed.\n\n - CONTINUOUS_ANALYSIS_UNSPECIFIED:\ - \ Unknown.\n - ACTIVE: The resource is continuously analyzed.\n - INACTIVE:\ - \ The resource is ignored for continuous analysis." - enum: - - "CONTINUOUS_ANALYSIS_UNSPECIFIED" - - "ACTIVE" - - "INACTIVE" - default: "CONTINUOUS_ANALYSIS_UNSPECIFIED" - HashHashType: - type: "string" - description: "Specifies the hash algorithm.\n\n - HASH_TYPE_UNSPECIFIED: Unknown.\n\ - \ - SHA256: A SHA-256 hash." - enum: - - "HASH_TYPE_UNSPECIFIED" - - "SHA256" - default: "HASH_TYPE_UNSPECIFIED" - LayerDirective: - type: "string" - description: "Instructions from Dockerfile.\n\n - DIRECTIVE_UNSPECIFIED: Default\ - \ value for unsupported/missing directive.\n - MAINTAINER: https://docs.docker.com/engine/reference/builder/\n\ - \ - RUN: https://docs.docker.com/engine/reference/builder/\n - CMD: https://docs.docker.com/engine/reference/builder/\n\ - \ - LABEL: https://docs.docker.com/engine/reference/builder/\n - EXPOSE: https://docs.docker.com/engine/reference/builder/\n\ - \ - ENV: https://docs.docker.com/engine/reference/builder/\n - ADD: https://docs.docker.com/engine/reference/builder/\n\ - \ - COPY: https://docs.docker.com/engine/reference/builder/\n - ENTRYPOINT:\ - \ https://docs.docker.com/engine/reference/builder/\n - VOLUME: https://docs.docker.com/engine/reference/builder/\n\ - \ - USER: https://docs.docker.com/engine/reference/builder/\n - WORKDIR: https://docs.docker.com/engine/reference/builder/\n\ - \ - ARG: https://docs.docker.com/engine/reference/builder/\n - ONBUILD: https://docs.docker.com/engine/reference/builder/\n\ - \ - STOPSIGNAL: https://docs.docker.com/engine/reference/builder/\n - HEALTHCHECK:\ - \ https://docs.docker.com/engine/reference/builder/\n - SHELL: https://docs.docker.com/engine/reference/builder/" - enum: - - "DIRECTIVE_UNSPECIFIED" - - "MAINTAINER" - - "RUN" - - "CMD" - - "LABEL" - - "EXPOSE" - - "ENV" - - "ADD" - - "COPY" - - "ENTRYPOINT" - - "VOLUME" - - "USER" - - "WORKDIR" - - "ARG" - - "ONBUILD" - - "STOPSIGNAL" - - "HEALTHCHECK" - - "SHELL" - default: "DIRECTIVE_UNSPECIFIED" - VersionVersionKind: - type: "string" - description: "Whether this is an ordinary package version or a sentinel MIN/MAX\ - \ version.\n\n - VERSION_KIND_UNSPECIFIED: Unknown.\n - NORMAL: A standard package\ - \ version.\n - MINIMUM: A special version representing negative infinity.\n\ - \ - MAXIMUM: A special version representing positive infinity." - enum: - - "VERSION_KIND_UNSPECIFIED" - - "NORMAL" - - "MINIMUM" - - "MAXIMUM" - default: "VERSION_KIND_UNSPECIFIED" - VulnerabilityDetail: - type: "object" - properties: - cpe_uri: - type: "string" - description: "Required. The CPE URI in\n[cpe format](https://cpe.mitre.org/specification/)\ - \ in which the\nvulnerability manifests. Examples include distro or storage\ - \ location for\nvulnerable jar." - package: - type: "string" - description: "Required. The name of the package where the vulnerability was\ - \ found." - min_affected_version: - description: "The min version of the package in which the vulnerability exists." - $ref: "#/definitions/packageVersion" - max_affected_version: - description: "Deprecated, do not use. Use fixed_location instead.\n\nThe max\ - \ version of the package in which the vulnerability exists." - $ref: "#/definitions/packageVersion" - severity_name: - type: "string" - description: "The severity (eg: distro assigned severity) for this vulnerability." - description: - type: "string" - description: "A vendor-specific description of this note." - fixed_location: - description: "The fix for this specific package version." - $ref: "#/definitions/vulnerabilityVulnerabilityLocation" - package_type: - type: "string" - description: "The type of package; whether native or non native(ruby gems,\ - \ node.js\npackages etc)." - is_obsolete: - type: "boolean" - format: "boolean" - description: "Whether this detail is obsolete. Occurrences are expected not\ - \ to point to\nobsolete details." - title: "Identifies all appearances of this vulnerability in the package for a\n\ - specific distro/location. For example: glibc in\ncpe:/o:debian:debian_linux:8\ - \ for versions 2.1 - 2.2" - example: - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - package: "package" - cpe_uri: "cpe_uri" - max_affected_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - description: "description" - min_affected_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - package_type: "package_type" - is_obsolete: true - VulnerabilityOccurrencesSummaryFixableTotalByDigest: - type: "object" - properties: - resource: - description: "The affected resource." - $ref: "#/definitions/v1beta1Resource" - severity: - description: "The severity for this count. SEVERITY_UNSPECIFIED indicates\ - \ total across\nall severities." - $ref: "#/definitions/vulnerabilitySeverity" - fixable_count: - type: "string" - format: "int64" - description: "The number of fixable vulnerabilities associated with this resource." - total_count: - type: "string" - format: "int64" - description: "The total number of vulnerabilities associated with this resource." - description: "Per resource and severity counts of fixable and total vulnerabilities." - example: - severity: {} - resource: - name: "name" - content_hash: - type: {} - value: "value" - uri: "uri" - total_count: "total_count" - fixable_count: "fixable_count" - VulnerabilityWindowsDetail: - type: "object" - properties: - cpe_uri: - type: "string" - description: "Required. The CPE URI in\n[cpe format](https://cpe.mitre.org/specification/)\ - \ in which the\nvulnerability manifests. Examples include distro or storage\ - \ location for\nvulnerable jar." - name: - type: "string" - description: "Required. The name of the vulnerability." - description: - type: "string" - description: "The description of the vulnerability." - fixing_kbs: - type: "array" - description: "Required. The names of the KBs which have hotfixes to mitigate\ - \ this\nvulnerability. Note that there may be multiple hotfixes (and thus\n\ - multiple KBs) that mitigate a given vulnerability. Currently any listed\n\ - kb's presence is considered a fix." - items: - $ref: "#/definitions/WindowsDetailKnowledgeBase" - example: - cpe_uri: "cpe_uri" - fixing_kbs: - - name: "name" - url: "url" - - name: "name" - url: "url" - name: "name" - description: "description" - WindowsDetailKnowledgeBase: - type: "object" - properties: - name: - type: "string" - description: "The KB name (generally of the form KB[0-9]+ i.e. KB123456)." - url: - type: "string" - title: "A link to the KB in the Windows update catalog -\nhttps://www.catalog.update.microsoft.com/" - example: - name: "name" - url: "url" - attestationAttestation: - type: "object" - properties: - pgp_signed_attestation: - description: "A PGP signed attestation." - $ref: "#/definitions/attestationPgpSignedAttestation" - generic_signed_attestation: - description: "An attestation that supports multiple `Signature`s\nover the\ - \ same attestation payload. The signatures\n(defined in common.proto) support\ - \ a superset of\npublic key types and IDs compared to PgpSignedAttestation." - $ref: "#/definitions/attestationGenericSignedAttestation" - description: "Occurrence that represents a single \"attestation\". The authenticity\ - \ of an\nattestation can be verified using the attached signature. If the verifier\n\ - trusts the public key of the signer, then verifying the signature is\nsufficient\ - \ to establish trust. In this circumstance, the authority to which\nthis attestation\ - \ is attached is primarily useful for look-up (how to find\nthis attestation\ - \ if you already know the authority and artifact to be\nverified) and intent\ - \ (which authority was this attestation intended to sign\nfor)." - example: - pgp_signed_attestation: - content_type: {} - signature: "signature" - pgp_key_id: "pgp_key_id" - generic_signed_attestation: - content_type: {} - serialized_payload: "serialized_payload" - signatures: - - signature: "signature" - public_key_id: "public_key_id" - - signature: "signature" - public_key_id: "public_key_id" - attestationAuthority: - type: "object" - properties: - hint: - description: "Hint hints at the purpose of the attestation authority." - $ref: "#/definitions/AuthorityHint" - description: "Note kind that represents a logical attestation \"role\" or \"authority\"\ - . For\nexample, an organization might have one `Authority` for \"QA\" and one\ - \ for\n\"build\". This note is intended to act strictly as a grouping mechanism\ - \ for\nthe attached occurrences (Attestations). This grouping mechanism also\n\ - provides a security boundary, since IAM ACLs gate the ability for a principle\n\ - to attach an occurrence to a given note. It also provides a single point of\n\ - lookup to find all attached attestation occurrences, even if they don't all\n\ - live in the same project." - example: - hint: - human_readable_name: "human_readable_name" - attestationGenericSignedAttestation: - type: "object" - properties: - content_type: - description: "Type (for example schema) of the attestation payload that was\ - \ signed.\nThe verifier must ensure that the provided type is one that the\ - \ verifier\nsupports, and that the attestation payload is a valid instantiation\ - \ of that\ntype (for example by validating a JSON schema)." - $ref: "#/definitions/attestationGenericSignedAttestationContentType" - serialized_payload: - type: "string" - format: "byte" - description: "The serialized payload that is verified by one or more `signatures`.\n\ - The encoding and semantic meaning of this payload must match what is set\ - \ in\n`content_type`." - pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" - signatures: - type: "array" - description: "One or more signatures over `serialized_payload`. Verifier\ - \ implementations\nshould consider this attestation message verified if\ - \ at least one\n`signature` verifies `serialized_payload`. See `Signature`\ - \ in common.proto\nfor more details on signature structure and verification." - items: - $ref: "#/definitions/v1beta1Signature" - description: "An attestation wrapper that uses the Grafeas `Signature` message.\n\ - This attestation must define the `serialized_payload` that the `signatures`\ - \ verify\nand any metadata necessary to interpret that plaintext. The signatures\n\ - should always be over the `serialized_payload` bytestring." - example: - content_type: {} - serialized_payload: "serialized_payload" - signatures: - - signature: "signature" - public_key_id: "public_key_id" - - signature: "signature" - public_key_id: "public_key_id" - attestationGenericSignedAttestationContentType: - type: "string" - description: "Type of the attestation plaintext that was signed.\n\n - CONTENT_TYPE_UNSPECIFIED:\ - \ `ContentType` is not set.\n - SIMPLE_SIGNING_JSON: Atomic format attestation\ - \ signature. See\nhttps://github.com/containers/image/blob/8a5d2f82a6e3263290c8e0276c3e0f64e77723e7/docs/atomic-signature.md\n\ - The payload extracted in `plaintext` is a JSON blob conforming to the\nlinked\ - \ schema." - enum: - - "CONTENT_TYPE_UNSPECIFIED" - - "SIMPLE_SIGNING_JSON" - default: "CONTENT_TYPE_UNSPECIFIED" - attestationPgpSignedAttestation: - type: "object" - properties: - signature: - type: "string" - description: "Required. The raw content of the signature, as output by GNU\ - \ Privacy Guard\n(GPG) or equivalent. Since this message only supports attached\ - \ signatures,\nthe payload that was signed must be attached. While the signature\ - \ format\nsupported is dependent on the verification implementation, currently\ - \ only\nASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather\ - \ than\n`--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor\n\ - --output=signature.gpg payload.json` will create the signature content\n\ - expected in this field in `signature.gpg` for the `payload.json`\nattestation\ - \ payload." - content_type: - description: "Type (for example schema) of the attestation payload that was\ - \ signed.\nThe verifier must ensure that the provided type is one that the\ - \ verifier\nsupports, and that the attestation payload is a valid instantiation\ - \ of that\ntype (for example by validating a JSON schema)." - $ref: "#/definitions/attestationPgpSignedAttestationContentType" - pgp_key_id: - type: "string" - description: "The cryptographic fingerprint of the key used to generate the\ - \ signature,\nas output by, e.g. `gpg --list-keys`. This should be the version\ - \ 4, full\n160-bit fingerprint, expressed as a 40 character hexidecimal\ - \ string. See\nhttps://tools.ietf.org/html/rfc4880#section-12.2 for details.\n\ - Implementations may choose to acknowledge \"LONG\", \"SHORT\", or other\n\ - abbreviated key IDs, but only the full fingerprint is guaranteed to work.\n\ - In gpg, the full fingerprint can be retrieved from the `fpr` field\nreturned\ - \ when calling --list-keys with --with-colons. For example:\n```\ngpg --with-colons\ - \ --with-fingerprint --force-v4-certs \\\n --list-keys attester@example.com\n\ - tru::1:1513631572:0:3:1:5\npub:......\nfpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB:\n\ - ```\nAbove, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`." - description: "An attestation wrapper with a PGP-compatible signature. This message\ - \ only\nsupports `ATTACHED` signatures, where the payload that is signed is\ - \ included\nalongside the signature itself in the same file." - example: - content_type: {} - signature: "signature" - pgp_key_id: "pgp_key_id" - attestationPgpSignedAttestationContentType: - type: "string" - description: "Type (for example schema) of the attestation payload that was signed.\n\ - \n - CONTENT_TYPE_UNSPECIFIED: `ContentType` is not set.\n - SIMPLE_SIGNING_JSON:\ - \ Atomic format attestation signature. See\nhttps://github.com/containers/image/blob/8a5d2f82a6e3263290c8e0276c3e0f64e77723e7/docs/atomic-signature.md\n\ - The payload extracted from `signature` is a JSON blob conforming to the\nlinked\ - \ schema." - enum: - - "CONTENT_TYPE_UNSPECIFIED" - - "SIMPLE_SIGNING_JSON" - default: "CONTENT_TYPE_UNSPECIFIED" - buildBuild: - type: "object" - properties: - builder_version: - type: "string" - description: "Required. Immutable. Version of the builder which produced this\ - \ build." - signature: - description: "Signature of the build in occurrences pointing to this build\ - \ note\ncontaining build details." - $ref: "#/definitions/buildBuildSignature" - description: "Note holding the version of the provider's builder and the signature\ - \ of the\nprovenance message in the build details occurrence." - example: - signature: - public_key: "public_key" - key_type: {} - signature: "signature" - key_id: "key_id" - builder_version: "builder_version" - buildBuildSignature: - type: "object" - properties: - public_key: - type: "string" - description: "Public key of the builder which can be used to verify that the\ - \ related\nfindings are valid and unchanged. If `key_type` is empty, this\ - \ defaults\nto PEM encoded public keys.\n\nThis field may be empty if `key_id`\ - \ references an external key.\n\nFor Cloud Build based signatures, this\ - \ is a PEM encoded public\nkey. To verify the Cloud Build signature, place\ - \ the contents of\nthis field into a file (public.pem). The signature field\ - \ is base64-decoded\ninto its binary representation in signature.bin, and\ - \ the provenance bytes\nfrom `BuildDetails` are base64-decoded into a binary\ - \ representation in\nsigned.bin. OpenSSL can then verify the signature:\n\ - `openssl sha256 -verify public.pem -signature signature.bin signed.bin`" - signature: - type: "string" - format: "byte" - description: "Required. Signature of the related `BuildProvenance`. In JSON,\ - \ this is\nbase-64 encoded." - pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" - key_id: - type: "string" - description: "An ID for the key used to sign. This could be either an ID for\ - \ the key\nstored in `public_key` (such as the ID or fingerprint for a PGP\ - \ key, or the\nCN for a cert), or a reference to an external key (such as\ - \ a reference to a\nkey in Cloud Key Management Service)." - key_type: - description: "The type of the key, either stored in `public_key` or referenced\ - \ in\n`key_id`." - $ref: "#/definitions/BuildSignatureKeyType" - description: "Message encapsulating the signature of the verified build." - example: - public_key: "public_key" - key_type: {} - signature: "signature" - key_id: "key_id" - deploymentDeployable: - type: "object" - properties: - resource_uri: - type: "array" - description: "Required. Resource URI for the artifact being deployed." - items: - type: "string" - description: "An artifact that can be deployed in some runtime." - example: - resource_uri: - - "resource_uri" - - "resource_uri" - deploymentDeployment: - type: "object" - properties: - user_email: - type: "string" - description: "Identity of the user that triggered this deployment." - deploy_time: - type: "string" - format: "date-time" - description: "Required. Beginning of the lifetime of this deployment." - undeploy_time: - type: "string" - format: "date-time" - description: "End of the lifetime of this deployment." - config: - type: "string" - description: "Configuration used to create this deployment." - address: - type: "string" - description: "Address of the runtime element hosting this deployment." - resource_uri: - type: "array" - description: "Output only. Resource URI for the artifact being deployed taken\ - \ from\nthe deployable field with the same name." - readOnly: true - items: - type: "string" - platform: - description: "Platform hosting this deployment." - $ref: "#/definitions/DeploymentPlatform" - description: "The period during which some deployable was active in a runtime." - example: - user_email: "user_email" - address: "address" - resource_uri: - - "resource_uri" - - "resource_uri" - undeploy_time: "2000-01-23T04:56:07.000+00:00" - deploy_time: "2000-01-23T04:56:07.000+00:00" - config: "config" - platform: {} - discoveryDiscovered: - type: "object" - properties: - continuous_analysis: - description: "Whether the resource is continuously analyzed." - $ref: "#/definitions/DiscoveredContinuousAnalysis" - last_analysis_time: - type: "string" - format: "date-time" - description: "The last time continuous analysis was done for this resource.\n\ - Deprecated, do not use." - analysis_status: - description: "The status of discovery for the resource." - $ref: "#/definitions/DiscoveredAnalysisStatus" - analysis_status_error: - description: "When an error is encountered this will contain a LocalizedMessage\ - \ under\ndetails to show to the user. The LocalizedMessage is output only\ - \ and\npopulated by the API." - $ref: "#/definitions/rpcStatus" - description: "Provides information about the analysis status of a discovered resource." - example: - last_analysis_time: "2000-01-23T04:56:07.000+00:00" - analysis_status: {} - continuous_analysis: {} - analysis_status_error: - code: 1 - details: - - value: "value" - type_url: "type_url" - - value: "value" - type_url: "type_url" - message: "message" - discoveryDiscovery: - type: "object" - properties: - analysis_kind: - description: "Required. Immutable. The kind of analysis that is handled by\ - \ this\ndiscovery." - $ref: "#/definitions/v1beta1NoteKind" - description: "A note that indicates a type of analysis a provider would perform.\ - \ This note\nexists in a provider's project. A `Discovery` occurrence is created\ - \ in a\nconsumer's project at the start of analysis." - example: {} - imageBasis: - type: "object" - properties: - resource_url: - type: "string" - description: "Required. Immutable. The resource_url for the resource representing\ - \ the\nbasis of associated occurrence images." - fingerprint: - description: "Required. Immutable. The fingerprint of the base image." - $ref: "#/definitions/imageFingerprint" - description: "Basis describes the base image portion (Note) of the DockerImage\n\ - relationship. Linked occurrences are derived from this or an\nequivalent image\ - \ via:\n FROM \nOr an equivalent reference, e.g. a tag\ - \ of the resource_url." - example: - resource_url: "resource_url" - fingerprint: - v2_name: "v2_name" - v1_name: "v1_name" - v2_blob: - - "v2_blob" - - "v2_blob" - imageDerived: - type: "object" - properties: - fingerprint: - description: "Required. The fingerprint of the derived image." - $ref: "#/definitions/imageFingerprint" - distance: - type: "integer" - format: "int32" - description: "Output only. The number of layers by which this image differs\ - \ from the\nassociated image basis." - readOnly: true - layer_info: - type: "array" - description: "This contains layer-specific metadata, if populated it has length\n\ - \"distance\" and is ordered with [distance] being the layer immediately\n\ - following the base image and [1] being the final layer." - items: - $ref: "#/definitions/imageLayer" - base_resource_url: - type: "string" - description: "Output only. This contains the base image URL for the derived\ - \ image\noccurrence." - readOnly: true - description: "Derived describes the derived image portion (Occurrence) of the\ - \ DockerImage\nrelationship. This image would be produced from a Dockerfile\ - \ with FROM\n." - example: - distance: 6 - base_resource_url: "base_resource_url" - fingerprint: - v2_name: "v2_name" - v1_name: "v1_name" - v2_blob: - - "v2_blob" - - "v2_blob" - layer_info: - - arguments: "arguments" - directive: {} - - arguments: "arguments" - directive: {} - imageFingerprint: - type: "object" - properties: - v1_name: - type: "string" - description: "Required. The layer ID of the final layer in the Docker image's\ - \ v1\nrepresentation." - v2_blob: - type: "array" - description: "Required. The ordered list of v2 blobs that represent a given\ - \ image." - items: - type: "string" - v2_name: - type: "string" - description: "Output only. The name of the image's v2 blobs computed via:\n\ - \ [bottom] := v2_blob[bottom]\n [N] := sha256(v2_blob[N] + \" \" + v2_name[N+1])\n\ - Only the name of the final blob is kept." - readOnly: true - description: "A set of properties that uniquely identify a given Docker image." - example: - v2_name: "v2_name" - v1_name: "v1_name" - v2_blob: - - "v2_blob" - - "v2_blob" - imageLayer: - type: "object" - properties: - directive: - description: "Required. The recovered Dockerfile directive used to construct\ - \ this layer." - $ref: "#/definitions/LayerDirective" - arguments: - type: "string" - description: "The recovered arguments to the Dockerfile directive." - description: "Layer holds metadata specific to a layer of a Docker image." - example: - arguments: "arguments" - directive: {} - packageArchitecture: - type: "string" - description: "Instruction set architectures supported by various package managers.\n\ - \n - ARCHITECTURE_UNSPECIFIED: Unknown architecture.\n - X86: X86 architecture.\n\ - \ - X64: X64 architecture." - enum: - - "ARCHITECTURE_UNSPECIFIED" - - "X86" - - "X64" - default: "ARCHITECTURE_UNSPECIFIED" - packageDistribution: - type: "object" - properties: - cpe_uri: - type: "string" - description: "Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)\n\ - denoting the package manager version distributing a package." - architecture: - description: "The CPU architecture for which packages in this distribution\ - \ channel were\nbuilt." - $ref: "#/definitions/packageArchitecture" - latest_version: - description: "The latest available version of this package in this distribution\ - \ channel." - $ref: "#/definitions/packageVersion" - maintainer: - type: "string" - description: "A freeform string denoting the maintainer of this package." - url: - type: "string" - description: "The distribution channel-specific homepage for this package." - description: - type: "string" - description: "The distribution channel-specific description of this package." - description: "This represents a particular channel of distribution for a given\ - \ package.\nE.g., Debian's jessie-backports dpkg mirror." - example: - latest_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - cpe_uri: "cpe_uri" - description: "description" - maintainer: "maintainer" - url: "url" - architecture: {} - packageInstallation: - type: "object" - properties: - name: - type: "string" - description: "Output only. The name of the installed package." - readOnly: true - location: - type: "array" - description: "Required. All of the places within the filesystem versions of\ - \ this package\nhave been found." - items: - $ref: "#/definitions/v1beta1packageLocation" - description: "This represents how a particular software package may be installed\ - \ on a\nsystem." - example: - name: "name" - location: - - path: "path" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - - path: "path" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - packagePackage: - type: "object" - properties: - name: - type: "string" - description: "Required. Immutable. The name of the package." - distribution: - type: "array" - description: "The various channels by which a package is distributed." - items: - $ref: "#/definitions/packageDistribution" - description: "This represents a particular package that is distributed over various\n\ - channels. E.g., glibc (aka libc6) is distributed by many, at various\nversions." - example: - name: "name" - distribution: - - latest_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - cpe_uri: "cpe_uri" - description: "description" - maintainer: "maintainer" - url: "url" - architecture: {} - - latest_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - cpe_uri: "cpe_uri" - description: "description" - maintainer: "maintainer" - url: "url" - architecture: {} - packageVersion: - type: "object" - properties: - epoch: - type: "integer" - format: "int32" - description: "Used to correct mistakes in the version numbering scheme." - name: - type: "string" - description: "Required only when version kind is NORMAL. The main part of\ - \ the version\nname." - revision: - type: "string" - description: "The iteration of the package build from the above version." - kind: - description: "Required. Distinguishes between sentinel MIN/MAX versions and\ - \ normal\nversions." - $ref: "#/definitions/VersionVersionKind" - description: "Version contains structured information about the version of a package." - example: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - protobufAny: - type: "object" - properties: - type_url: - type: "string" - description: "A URL/resource name whose content describes the type of the\n\ - serialized protocol buffer message.\n\nFor URLs which use the scheme `http`,\ - \ `https`, or no scheme, the\nfollowing restrictions and interpretations\ - \ apply:\n\n* If no scheme is provided, `https` is assumed.\n* The last\ - \ segment of the URL's path must represent the fully\n qualified name of\ - \ the type (as in `path/google.protobuf.Duration`).\n The name should be\ - \ in a canonical form (e.g., leading \".\" is\n not accepted).\n* An HTTP\ - \ GET on the URL must yield a [google.protobuf.Type][]\n value in binary\ - \ format, or produce an error.\n* Applications are allowed to cache lookup\ - \ results based on the\n URL, or have them precompiled into a binary to\ - \ avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n\ - \ on changes to types. (Use versioned type names to manage\n breaking\ - \ changes.)\n\nSchemes other than `http`, `https` (or the empty scheme)\ - \ might be\nused with implementation specific semantics." - value: - type: "string" - format: "byte" - description: "Must be a valid serialized protocol buffer of the above specified\ - \ type." - pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" - description: "`Any` contains an arbitrary serialized protocol buffer message along\ - \ with a\nURL that describes the type of the serialized message.\n\nProtobuf\ - \ library provides support to pack/unpack Any values in the form\nof utility\ - \ functions or additional generated methods of the Any type.\n\nExample 1: Pack\ - \ and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n\ - \ ...\n if (any.UnpackTo(&foo)) {\n ...\n }\n\nExample 2: Pack\ - \ and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n\ - \ ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n\ - \ }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n\ - \ any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n\ - \ any.Unpack(foo)\n ...\n\nThe pack methods provided by protobuf library\ - \ will by default use\n'type.googleapis.com/full.type.name' as the type URL\ - \ and the unpack\nmethods only use the fully qualified type name after the last\ - \ '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\n\ - name \"y.z\".\n\n\nJSON\n====\nThe JSON representation of an `Any` value uses\ - \ the regular\nrepresentation of the deserialized, embedded message, with an\n\ - additional field `@type` which contains the type URL. Example:\n\n package\ - \ google.profile;\n message Person {\n string first_name = 1;\n \ - \ string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\"\ - ,\n \"firstName\": ,\n \"lastName\": \n }\n\nIf\ - \ the embedded message type is well-known and has a custom JSON\nrepresentation,\ - \ that representation will be embedded adding a field\n`value` which holds the\ - \ custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\ - \n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n\ - \ \"value\": \"1.212s\"\n }" - example: - value: "value" - type_url: "type_url" - protobufFieldMask: - type: "object" - properties: - paths: - type: "array" - description: "The set of field mask paths." - items: - type: "string" - title: "`FieldMask` represents a set of symbolic field paths, for example:" - description: "paths: \"f.a\"\n paths: \"f.b.d\"\n\nHere `f` represents a field\ - \ in some root message, `a` and `b`\nfields in the message found in `f`, and\ - \ `d` a field found in the\nmessage in `f.b`.\n\nField masks are used to specify\ - \ a subset of fields that should be\nreturned by a get operation or modified\ - \ by an update operation.\nField masks also have a custom JSON encoding (see\ - \ below).\n\n# Field Masks in Projections\n\nWhen used in the context of a projection,\ - \ a response message or\nsub-message is filtered by the API to only contain\ - \ those fields as\nspecified in the mask. For example, if the mask in the previous\n\ - example is applied to a response message as follows:\n\n f {\n a : 22\n\ - \ b {\n d : 1\n x : 2\n }\n y : 13\n }\n \ - \ z: 8\n\nThe result will not contain specific values for fields x,y and z\n\ - (their value will be set to the default, and omitted in proto text\noutput):\n\ - \n\n f {\n a : 22\n b {\n d : 1\n }\n }\n\nA repeated\ - \ field is not allowed except at the last position of a\npaths string.\n\nIf\ - \ a FieldMask object is not present in a get operation, the\noperation applies\ - \ to all fields (as if a FieldMask of all fields\nhad been specified).\n\nNote\ - \ that a field mask does not necessarily apply to the\ntop-level response message.\ - \ In case of a REST get operation, the\nfield mask applies directly to the response,\ - \ but in case of a REST\nlist operation, the mask instead applies to each individual\ - \ message\nin the returned resource list. In case of a REST custom method,\n\ - other definitions may be used. Where the mask applies will be\nclearly documented\ - \ together with its declaration in the API. In\nany case, the effect on the\ - \ returned resource/resources is required\nbehavior for APIs.\n\n# Field Masks\ - \ in Update Operations\n\nA field mask in update operations specifies which\ - \ fields of the\ntargeted resource are going to be updated. The API is required\n\ - to only change the values of the fields as specified in the mask\nand leave\ - \ the others untouched. If a resource is passed in to\ndescribe the updated\ - \ values, the API ignores the values of all\nfields not covered by the mask.\n\ - \nIf a repeated field is specified for an update operation, the existing\nrepeated\ - \ values in the target resource will be overwritten by the new values.\nNote\ - \ that a repeated field is only allowed in the last position of a `paths`\n\ - string.\n\nIf a sub-message is specified in the last position of the field mask\ - \ for an\nupdate operation, then the existing sub-message in the target resource\ - \ is\noverwritten. Given the target message:\n\n f {\n b {\n \ - \ d : 1\n x : 2\n }\n c : 1\n }\n\nAnd an update message:\n\ - \n f {\n b {\n d : 10\n }\n }\n\nthen if the field mask\ - \ is:\n\n paths: \"f.b\"\n\nthen the result will be:\n\n f {\n b {\n\ - \ d : 10\n }\n c : 1\n }\n\nHowever, if the update mask\ - \ was:\n\n paths: \"f.b.d\"\n\nthen the result would be:\n\n f {\n b\ - \ {\n d : 10\n x : 2\n }\n c : 1\n }\n\nIn order\ - \ to reset a field's value to the default, the field must\nbe in the mask and\ - \ set to the default value in the provided resource.\nHence, in order to reset\ - \ all fields of a resource, provide a default\ninstance of the resource and\ - \ set all fields in the mask, or do\nnot provide a mask as described below.\n\ - \nIf a field mask is not present on update, the operation applies to\nall fields\ - \ (as if a field mask of all fields has been specified).\nNote that in the presence\ - \ of schema evolution, this may mean that\nfields the client does not know and\ - \ has therefore not filled into\nthe request will be reset to their default.\ - \ If this is unwanted\nbehavior, a specific service may require a client to\ - \ always specify\na field mask, producing an error if not.\n\nAs with get operations,\ - \ the location of the resource which\ndescribes the updated values in the request\ - \ message depends on the\noperation kind. In any case, the effect of the field\ - \ mask is\nrequired to be honored by the API.\n\n## Considerations for HTTP\ - \ REST\n\nThe HTTP kind of an update operation which uses a field mask must\n\ - be set to PATCH instead of PUT in order to satisfy HTTP semantics\n(PUT must\ - \ only be used for full updates).\n\n# JSON Encoding of Field Masks\n\nIn JSON,\ - \ a field mask is encoded as a single string where paths are\nseparated by a\ - \ comma. Fields name in each path are converted\nto/from lower-camel naming\ - \ conventions.\n\nAs an example, consider the following message declarations:\n\ - \n message Profile {\n User user = 1;\n Photo photo = 2;\n }\n\ - \ message User {\n string display_name = 1;\n string address =\ - \ 2;\n }\n\nIn proto a field mask for `Profile` may look as such:\n\n \ - \ mask {\n paths: \"user.display_name\"\n paths: \"photo\"\n }\n\ - \nIn JSON, the same mask is represented as below:\n\n {\n mask: \"user.displayName,photo\"\ - \n }\n\n# Field Masks and Oneof Fields\n\nField masks treat fields in oneofs\ - \ just as regular fields. Consider the\nfollowing message:\n\n message SampleMessage\ - \ {\n oneof test_oneof {\n string name = 4;\n SubMessage\ - \ sub_message = 9;\n }\n }\n\nThe field mask can be:\n\n mask {\n\ - \ paths: \"name\"\n }\n\nOr:\n\n mask {\n paths: \"sub_message\"\ - \n }\n\nNote that oneof type names (\"test_oneof\" in this case) cannot be\ - \ used in\npaths." - provenanceArtifact: - type: "object" - properties: - checksum: - type: "string" - description: "Hash or checksum value of a binary, or Docker Registry 2.0 digest\ - \ of a\ncontainer." - id: - type: "string" - description: "Artifact ID, if any; for container images, this will be a URL\ - \ by digest\nlike `gcr.io/projectID/imagename@sha256:123456`." - names: - type: "array" - description: "Related artifact names. This may be the path to a binary or\ - \ jar file, or in\nthe case of a container build, the name used to push\ - \ the container image to\nGoogle Container Registry, as presented to `docker\ - \ push`. Note that a\nsingle Artifact ID can have multiple names, for example\ - \ if two tags are\napplied to one image." - items: - type: "string" - description: "Artifact describes a build product." - example: - names: - - "names" - - "names" - checksum: "checksum" - id: "id" - provenanceBuildProvenance: - type: "object" - properties: - id: - type: "string" - description: "Required. Unique identifier of the build." - project_id: - type: "string" - description: "ID of the project." - commands: - type: "array" - description: "Commands requested by the build." - items: - $ref: "#/definitions/provenanceCommand" - built_artifacts: - type: "array" - description: "Output of the build." - items: - $ref: "#/definitions/provenanceArtifact" - create_time: - type: "string" - format: "date-time" - description: "Time at which the build was created." - start_time: - type: "string" - format: "date-time" - description: "Time at which execution of the build was started." - end_time: - type: "string" - format: "date-time" - description: "Time at which execution of the build was finished." - creator: - type: "string" - description: "E-mail address of the user who initiated this build. Note that\ - \ this was the\nuser's e-mail address at the time the build was initiated;\ - \ this address may\nnot represent the same end-user for all time." - logs_uri: - type: "string" - description: "URI where any logs for this provenance were written." - source_provenance: - description: "Details of the Source input to the build." - $ref: "#/definitions/provenanceSource" - trigger_id: - type: "string" - description: "Trigger identifier if the build was triggered automatically;\ - \ empty if not." - build_options: - type: "object" - description: "Special options applied to this build. This is a catch-all field\ - \ where\nbuild providers can enter any desired additional details." - additionalProperties: - type: "string" - builder_version: - type: "string" - description: "Version string of the builder at the time this build was executed." - description: "Provenance of a build. Contains all information needed to verify\ - \ the full\ndetails about the build from source to completion." - example: - creator: "creator" - create_time: "2000-01-23T04:56:07.000+00:00" - trigger_id: "trigger_id" - end_time: "2000-01-23T04:56:07.000+00:00" - built_artifacts: - - names: - - "names" - - "names" - checksum: "checksum" - id: "id" - - names: - - "names" - - "names" - checksum: "checksum" - id: "id" - logs_uri: "logs_uri" - builder_version: "builder_version" - source_provenance: - artifact_storage_source_uri: "artifact_storage_source_uri" - additional_contexts: - - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - file_hashes: - key: - file_hash: - - type: {} - value: "value" - - type: {} - value: "value" - context: - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - start_time: "2000-01-23T04:56:07.000+00:00" - project_id: "project_id" - id: "id" - commands: - - args: - - "args" - - "args" - name: "name" - id: "id" - wait_for: - - "wait_for" - - "wait_for" - env: - - "env" - - "env" - dir: "dir" - - args: - - "args" - - "args" - name: "name" - id: "id" - wait_for: - - "wait_for" - - "wait_for" - env: - - "env" - - "env" - dir: "dir" - build_options: - key: "build_options" - provenanceCommand: - type: "object" - properties: - name: - type: "string" - description: "Required. Name of the command, as presented on the command line,\ - \ or if the\ncommand is packaged as a Docker container, as presented to\ - \ `docker pull`." - env: - type: "array" - description: "Environment variables set before running this command." - items: - type: "string" - args: - type: "array" - description: "Command-line arguments used when executing this command." - items: - type: "string" - dir: - type: "string" - description: "Working directory (relative to project source root) used when\ - \ running this\ncommand." - id: - type: "string" - description: "Optional unique identifier for this command, used in wait_for\ - \ to reference\nthis command as a dependency." - wait_for: - type: "array" - description: "The ID(s) of the command(s) that this command depends on." - items: - type: "string" - description: "Command describes a step performed as part of the build pipeline." - example: - args: - - "args" - - "args" - name: "name" - id: "id" - wait_for: - - "wait_for" - - "wait_for" - env: - - "env" - - "env" - dir: "dir" - provenanceFileHashes: - type: "object" - properties: - file_hash: - type: "array" - description: "Required. Collection of file hashes." - items: - $ref: "#/definitions/provenanceHash" - description: "Container message for hashes of byte content of files, used in source\n\ - messages to verify integrity of source input to the build." - example: - file_hash: - - type: {} - value: "value" - - type: {} - value: "value" - provenanceHash: - type: "object" - properties: - type: - description: "Required. The type of hash that was performed." - $ref: "#/definitions/HashHashType" - value: - type: "string" - format: "byte" - description: "Required. The hash value." - pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" - description: "Container message for hash values." - example: - type: {} - value: "value" - provenanceSource: - type: "object" - properties: - artifact_storage_source_uri: - type: "string" - description: "If provided, the input binary artifacts for the build came from\ - \ this\nlocation." - file_hashes: - type: "object" - description: "Hash(es) of the build source, which can be used to verify that\ - \ the original\nsource integrity was maintained in the build.\n\nThe keys\ - \ to this map are file paths used as build source and the values\ncontain\ - \ the hash values for those files.\n\nIf the build source came in a single\ - \ package such as a gzipped tarfile\n(.tar.gz), the FileHash will be for\ - \ the single path to that file." - additionalProperties: - $ref: "#/definitions/provenanceFileHashes" - context: - description: "If provided, the source code used for the build came from this\ - \ location." - $ref: "#/definitions/sourceSourceContext" - additional_contexts: - type: "array" - description: "If provided, some of the source code used for the build may\ - \ be found in\nthese locations, in the case where the source repository\ - \ had multiple\nremotes or submodules. This list will not include the context\ - \ specified in\nthe context field." - items: - $ref: "#/definitions/sourceSourceContext" - description: "Source describes the location of the source used for the build." - example: - artifact_storage_source_uri: "artifact_storage_source_uri" - additional_contexts: - - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - file_hashes: - key: - file_hash: - - type: {} - value: "value" - - type: {} - value: "value" - context: - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - rpcStatus: - type: "object" - properties: - code: - type: "integer" - format: "int32" - description: "The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]." - message: - type: "string" - description: "A developer-facing error message, which should be in English.\ - \ Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details]\ - \ field, or localized by the client." - details: - type: "array" - description: "A list of messages that carry the error details. There is a\ - \ common set of\nmessage types for APIs to use." - items: - $ref: "#/definitions/protobufAny" - title: "The `Status` type defines a logical error model that is suitable for different\n\ - programming environments, including REST APIs and RPC APIs. It is used by\n\ - [gRPC](https://github.com/grpc). The error model is designed to be:" - description: "- Simple to use and understand for most users\n- Flexible enough\ - \ to meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three\ - \ pieces of data: error code, error message,\nand error details. The error code\ - \ should be an enum value of\n[google.rpc.Code][google.rpc.Code], but it may\ - \ accept additional error codes if needed. The\nerror message should be a developer-facing\ - \ English message that helps\ndevelopers *understand* and *resolve* the error.\ - \ If a localized user-facing\nerror message is needed, put the localized message\ - \ in the error details or\nlocalize it in the client. The optional error details\ - \ may contain arbitrary\ninformation about the error. There is a predefined\ - \ set of error detail types\nin the package `google.rpc` that can be used for\ - \ common error conditions.\n\n# Language mapping\n\nThe `Status` message is\ - \ the logical representation of the error model, but it\nis not necessarily\ - \ the actual wire format. When the `Status` message is\nexposed in different\ - \ client libraries and different wire protocols, it can be\nmapped differently.\ - \ For example, it will likely be mapped to some exceptions\nin Java, but more\ - \ likely mapped to some error codes in C.\n\n# Other uses\n\nThe error model\ - \ and the `Status` message can be used in a variety of\nenvironments, either\ - \ with or without APIs, to provide a\nconsistent developer experience across\ - \ different environments.\n\nExample uses of this error model include:\n\n-\ - \ Partial errors. If a service needs to return partial errors to the client,\n\ - \ it may embed the `Status` in the normal response to indicate the partial\n\ - \ errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each\ - \ step may\n have a `Status` message for error reporting.\n\n- Batch operations.\ - \ If a client uses batch request and batch response, the\n `Status` message\ - \ should be used directly inside batch response, one for\n each error sub-response.\n\ - \n- Asynchronous operations. If an API call embeds asynchronous operation\n\ - \ results in its response, the status of those operations should be\n \ - \ represented directly using the `Status` message.\n\n- Logging. If some API\ - \ errors are stored in logs, the message `Status` could\n be used directly\ - \ after any stripping needed for security/privacy reasons." - example: - code: 1 - details: - - value: "value" - type_url: "type_url" - - value: "value" - type_url: "type_url" - message: "message" - sourceAliasContext: - type: "object" - properties: - kind: - description: "The alias kind." - $ref: "#/definitions/AliasContextKind" - name: - type: "string" - description: "The alias name." - description: "An alias to a repo revision." - example: - kind: {} - name: "name" - sourceCloudRepoSourceContext: - type: "object" - properties: - repo_id: - description: "The ID of the repo." - $ref: "#/definitions/sourceRepoId" - revision_id: - type: "string" - description: "A revision ID." - alias_context: - description: "An alias, which may be a branch or tag." - $ref: "#/definitions/sourceAliasContext" - description: "A CloudRepoSourceContext denotes a particular revision in a Google\ - \ Cloud\nSource Repo." - example: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - sourceGerritSourceContext: - type: "object" - properties: - host_uri: - type: "string" - description: "The URI of a running Gerrit instance." - gerrit_project: - type: "string" - description: "The full project name within the host. Projects may be nested,\ - \ so\n\"project/subproject\" is a valid project name. The \"repo name\"\ - \ is the\nhostURI/project." - revision_id: - type: "string" - description: "A revision (commit) ID." - alias_context: - description: "An alias, which may be a branch or tag." - $ref: "#/definitions/sourceAliasContext" - description: "A SourceContext referring to a Gerrit project." - example: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - sourceGitSourceContext: - type: "object" - properties: - url: - type: "string" - description: "Git repository URL." - revision_id: - type: "string" - description: "Git commit hash." - description: "A GitSourceContext denotes a particular revision in a third party\ - \ Git\nrepository (e.g., GitHub)." - example: - url: "url" - revision_id: "revision_id" - sourceProjectRepoId: - type: "object" - properties: - project_id: - type: "string" - description: "The ID of the project." - repo_name: - type: "string" - description: "The name of the repo. Leave empty for the default repo." - description: "Selects a repo using a Google Cloud Platform project ID (e.g.,\n\ - winged-cargo-31) and a repo name within that project." - example: - project_id: "project_id" - repo_name: "repo_name" - sourceRepoId: - type: "object" - properties: - project_repo_id: - description: "A combination of a project ID and a repo name." - $ref: "#/definitions/sourceProjectRepoId" - uid: - type: "string" - description: "A server-assigned, globally unique identifier." - description: "A unique identifier for a Cloud Repo." - example: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - sourceSourceContext: - type: "object" - properties: - cloud_repo: - description: "A SourceContext referring to a revision in a Google Cloud Source\ - \ Repo." - $ref: "#/definitions/sourceCloudRepoSourceContext" - gerrit: - description: "A SourceContext referring to a Gerrit project." - $ref: "#/definitions/sourceGerritSourceContext" - git: - description: "A SourceContext referring to any third party Git repo (e.g.,\ - \ GitHub)." - $ref: "#/definitions/sourceGitSourceContext" - labels: - type: "object" - description: "Labels with user defined metadata." - additionalProperties: - type: "string" - description: "A SourceContext is a reference to a tree of files. A SourceContext\ - \ together\nwith a path point to a unique revision of a single file or directory." - example: - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - v1beta1BatchCreateNotesRequest: - type: "object" - properties: - parent: - type: "string" - description: "The name of the project in the form of `projects/[PROJECT_ID]`,\ - \ under which\nthe notes are to be created." - notes: - type: "object" - description: "The notes to create. Max allowed length is 1000." - additionalProperties: - $ref: "#/definitions/v1beta1Note" - description: "Request to create notes in batch." - v1beta1BatchCreateNotesResponse: - type: "object" - properties: - notes: - type: "array" - description: "The notes that were created." - items: - $ref: "#/definitions/v1beta1Note" - description: "Response for creating notes in batch." - example: - notes: - - attestation_authority: - hint: - human_readable_name: "human_readable_name" - short_description: "short_description" - related_note_names: - - "related_note_names" - - "related_note_names" - package: - name: "name" - distribution: - - latest_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - cpe_uri: "cpe_uri" - description: "description" - maintainer: "maintainer" - url: "url" - architecture: {} - - latest_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - cpe_uri: "cpe_uri" - description: "description" - maintainer: "maintainer" - url: "url" - architecture: {} - create_time: "2000-01-23T04:56:07.000+00:00" - kind: {} - related_url: - - label: "label" - url: "url" - - label: "label" - url: "url" - expiration_time: "2000-01-23T04:56:07.000+00:00" - long_description: "long_description" - vulnerability: - severity: {} - cvss_score: 0.8008282 - cvss_v3: - attack_complexity: {} - base_score: 1.4658129 - user_interaction: {} - scope: {} - impact_score: 5.637377 - confidentiality_impact: {} - attack_vector: {} - exploitability_score: 5.962134 - privileges_required: {} - details: - - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - package: "package" - cpe_uri: "cpe_uri" - max_affected_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - description: "description" - min_affected_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - package_type: "package_type" - is_obsolete: true - - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - package: "package" - cpe_uri: "cpe_uri" - max_affected_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - description: "description" - min_affected_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - package_type: "package_type" - is_obsolete: true - windows_details: - - cpe_uri: "cpe_uri" - fixing_kbs: - - name: "name" - url: "url" - - name: "name" - url: "url" - name: "name" - description: "description" - - cpe_uri: "cpe_uri" - fixing_kbs: - - name: "name" - url: "url" - - name: "name" - url: "url" - name: "name" - description: "description" - update_time: "2000-01-23T04:56:07.000+00:00" - base_image: - resource_url: "resource_url" - fingerprint: - v2_name: "v2_name" - v1_name: "v1_name" - v2_blob: - - "v2_blob" - - "v2_blob" - deployable: - resource_uri: - - "resource_uri" - - "resource_uri" - build: - signature: - public_key: "public_key" - key_type: {} - signature: "signature" - key_id: "key_id" - builder_version: "builder_version" - discovery: {} - name: "name" - - attestation_authority: - hint: - human_readable_name: "human_readable_name" - short_description: "short_description" - related_note_names: - - "related_note_names" - - "related_note_names" - package: - name: "name" - distribution: - - latest_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - cpe_uri: "cpe_uri" - description: "description" - maintainer: "maintainer" - url: "url" - architecture: {} - - latest_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - cpe_uri: "cpe_uri" - description: "description" - maintainer: "maintainer" - url: "url" - architecture: {} - create_time: "2000-01-23T04:56:07.000+00:00" - kind: {} - related_url: - - label: "label" - url: "url" - - label: "label" - url: "url" - expiration_time: "2000-01-23T04:56:07.000+00:00" - long_description: "long_description" - vulnerability: - severity: {} - cvss_score: 0.8008282 - cvss_v3: - attack_complexity: {} - base_score: 1.4658129 - user_interaction: {} - scope: {} - impact_score: 5.637377 - confidentiality_impact: {} - attack_vector: {} - exploitability_score: 5.962134 - privileges_required: {} - details: - - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - package: "package" - cpe_uri: "cpe_uri" - max_affected_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - description: "description" - min_affected_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - package_type: "package_type" - is_obsolete: true - - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - package: "package" - cpe_uri: "cpe_uri" - max_affected_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - description: "description" - min_affected_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - package_type: "package_type" - is_obsolete: true - windows_details: - - cpe_uri: "cpe_uri" - fixing_kbs: - - name: "name" - url: "url" - - name: "name" - url: "url" - name: "name" - description: "description" - - cpe_uri: "cpe_uri" - fixing_kbs: - - name: "name" - url: "url" - - name: "name" - url: "url" - name: "name" - description: "description" - update_time: "2000-01-23T04:56:07.000+00:00" - base_image: - resource_url: "resource_url" - fingerprint: - v2_name: "v2_name" - v1_name: "v1_name" - v2_blob: - - "v2_blob" - - "v2_blob" - deployable: - resource_uri: - - "resource_uri" - - "resource_uri" - build: - signature: - public_key: "public_key" - key_type: {} - signature: "signature" - key_id: "key_id" - builder_version: "builder_version" - discovery: {} - name: "name" - v1beta1BatchCreateOccurrencesRequest: - type: "object" - properties: - parent: - type: "string" - description: "The name of the project in the form of `projects/[PROJECT_ID]`,\ - \ under which\nthe occurrences are to be created." - occurrences: - type: "array" - description: "The occurrences to create. Max allowed length is 1000." - items: - $ref: "#/definitions/v1beta1Occurrence" - description: "Request to create occurrences in batch." - v1beta1BatchCreateOccurrencesResponse: - type: "object" - properties: - occurrences: - type: "array" - description: "The occurrences that were created." - items: - $ref: "#/definitions/v1beta1Occurrence" - description: "Response for creating occurrences in batch." - example: - occurrences: - - discovered: - discovered: - last_analysis_time: "2000-01-23T04:56:07.000+00:00" - analysis_status: {} - continuous_analysis: {} - analysis_status_error: - code: 1 - details: - - value: "value" - type_url: "type_url" - - value: "value" - type_url: "type_url" - message: "message" - attestation: - attestation: - pgp_signed_attestation: - content_type: {} - signature: "signature" - pgp_key_id: "pgp_key_id" - generic_signed_attestation: - content_type: {} - serialized_payload: "serialized_payload" - signatures: - - signature: "signature" - public_key_id: "public_key_id" - - signature: "signature" - public_key_id: "public_key_id" - create_time: "2000-01-23T04:56:07.000+00:00" - resource: - name: "name" - content_hash: - type: {} - value: "value" - uri: "uri" - kind: {} - vulnerability: - severity: {} - short_description: "short_description" - cvss_score: 0.8008282 - long_description: "long_description" - related_urls: - - label: "label" - url: "url" - - label: "label" - url: "url" - type: "type" - package_issue: - - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - affected_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - affected_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - remediation: "remediation" - update_time: "2000-01-23T04:56:07.000+00:00" - build: - provenance: - creator: "creator" - create_time: "2000-01-23T04:56:07.000+00:00" - trigger_id: "trigger_id" - end_time: "2000-01-23T04:56:07.000+00:00" - built_artifacts: - - names: - - "names" - - "names" - checksum: "checksum" - id: "id" - - names: - - "names" - - "names" - checksum: "checksum" - id: "id" - logs_uri: "logs_uri" - builder_version: "builder_version" - source_provenance: - artifact_storage_source_uri: "artifact_storage_source_uri" - additional_contexts: - - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - file_hashes: - key: - file_hash: - - type: {} - value: "value" - - type: {} - value: "value" - context: - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - start_time: "2000-01-23T04:56:07.000+00:00" - project_id: "project_id" - id: "id" - commands: - - args: - - "args" - - "args" - name: "name" - id: "id" - wait_for: - - "wait_for" - - "wait_for" - env: - - "env" - - "env" - dir: "dir" - - args: - - "args" - - "args" - name: "name" - id: "id" - wait_for: - - "wait_for" - - "wait_for" - env: - - "env" - - "env" - dir: "dir" - build_options: - key: "build_options" - provenance_bytes: "provenance_bytes" - installation: - installation: - name: "name" - location: - - path: "path" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - - path: "path" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - name: "name" - derived_image: - derived_image: - distance: 6 - base_resource_url: "base_resource_url" - fingerprint: - v2_name: "v2_name" - v1_name: "v1_name" - v2_blob: - - "v2_blob" - - "v2_blob" - layer_info: - - arguments: "arguments" - directive: {} - - arguments: "arguments" - directive: {} - note_name: "note_name" - deployment: - deployment: - user_email: "user_email" - address: "address" - resource_uri: - - "resource_uri" - - "resource_uri" - undeploy_time: "2000-01-23T04:56:07.000+00:00" - deploy_time: "2000-01-23T04:56:07.000+00:00" - config: "config" - platform: {} - - discovered: - discovered: - last_analysis_time: "2000-01-23T04:56:07.000+00:00" - analysis_status: {} - continuous_analysis: {} - analysis_status_error: - code: 1 - details: - - value: "value" - type_url: "type_url" - - value: "value" - type_url: "type_url" - message: "message" - attestation: - attestation: - pgp_signed_attestation: - content_type: {} - signature: "signature" - pgp_key_id: "pgp_key_id" - generic_signed_attestation: - content_type: {} - serialized_payload: "serialized_payload" - signatures: - - signature: "signature" - public_key_id: "public_key_id" - - signature: "signature" - public_key_id: "public_key_id" - create_time: "2000-01-23T04:56:07.000+00:00" - resource: - name: "name" - content_hash: - type: {} - value: "value" - uri: "uri" - kind: {} - vulnerability: - severity: {} - short_description: "short_description" - cvss_score: 0.8008282 - long_description: "long_description" - related_urls: - - label: "label" - url: "url" - - label: "label" - url: "url" - type: "type" - package_issue: - - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - affected_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - affected_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - remediation: "remediation" - update_time: "2000-01-23T04:56:07.000+00:00" - build: - provenance: - creator: "creator" - create_time: "2000-01-23T04:56:07.000+00:00" - trigger_id: "trigger_id" - end_time: "2000-01-23T04:56:07.000+00:00" - built_artifacts: - - names: - - "names" - - "names" - checksum: "checksum" - id: "id" - - names: - - "names" - - "names" - checksum: "checksum" - id: "id" - logs_uri: "logs_uri" - builder_version: "builder_version" - source_provenance: - artifact_storage_source_uri: "artifact_storage_source_uri" - additional_contexts: - - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - file_hashes: - key: - file_hash: - - type: {} - value: "value" - - type: {} - value: "value" - context: - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - start_time: "2000-01-23T04:56:07.000+00:00" - project_id: "project_id" - id: "id" - commands: - - args: - - "args" - - "args" - name: "name" - id: "id" - wait_for: - - "wait_for" - - "wait_for" - env: - - "env" - - "env" - dir: "dir" - - args: - - "args" - - "args" - name: "name" - id: "id" - wait_for: - - "wait_for" - - "wait_for" - env: - - "env" - - "env" - dir: "dir" - build_options: - key: "build_options" - provenance_bytes: "provenance_bytes" - installation: - installation: - name: "name" - location: - - path: "path" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - - path: "path" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - name: "name" - derived_image: - derived_image: - distance: 6 - base_resource_url: "base_resource_url" - fingerprint: - v2_name: "v2_name" - v1_name: "v1_name" - v2_blob: - - "v2_blob" - - "v2_blob" - layer_info: - - arguments: "arguments" - directive: {} - - arguments: "arguments" - directive: {} - note_name: "note_name" - deployment: - deployment: - user_email: "user_email" - address: "address" - resource_uri: - - "resource_uri" - - "resource_uri" - undeploy_time: "2000-01-23T04:56:07.000+00:00" - deploy_time: "2000-01-23T04:56:07.000+00:00" - config: "config" - platform: {} - v1beta1ListNoteOccurrencesResponse: - type: "object" - properties: - occurrences: - type: "array" - description: "The occurrences attached to the specified note." - items: - $ref: "#/definitions/v1beta1Occurrence" - next_page_token: - type: "string" - description: "Token to provide to skip to a particular spot in the list." - description: "Response for listing occurrences for a note." - example: - occurrences: - - discovered: - discovered: - last_analysis_time: "2000-01-23T04:56:07.000+00:00" - analysis_status: {} - continuous_analysis: {} - analysis_status_error: - code: 1 - details: - - value: "value" - type_url: "type_url" - - value: "value" - type_url: "type_url" - message: "message" - attestation: - attestation: - pgp_signed_attestation: - content_type: {} - signature: "signature" - pgp_key_id: "pgp_key_id" - generic_signed_attestation: - content_type: {} - serialized_payload: "serialized_payload" - signatures: - - signature: "signature" - public_key_id: "public_key_id" - - signature: "signature" - public_key_id: "public_key_id" - create_time: "2000-01-23T04:56:07.000+00:00" - resource: - name: "name" - content_hash: - type: {} - value: "value" - uri: "uri" - kind: {} - vulnerability: - severity: {} - short_description: "short_description" - cvss_score: 0.8008282 - long_description: "long_description" - related_urls: - - label: "label" - url: "url" - - label: "label" - url: "url" - type: "type" - package_issue: - - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - affected_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - affected_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - remediation: "remediation" - update_time: "2000-01-23T04:56:07.000+00:00" - build: - provenance: - creator: "creator" - create_time: "2000-01-23T04:56:07.000+00:00" - trigger_id: "trigger_id" - end_time: "2000-01-23T04:56:07.000+00:00" - built_artifacts: - - names: - - "names" - - "names" - checksum: "checksum" - id: "id" - - names: - - "names" - - "names" - checksum: "checksum" - id: "id" - logs_uri: "logs_uri" - builder_version: "builder_version" - source_provenance: - artifact_storage_source_uri: "artifact_storage_source_uri" - additional_contexts: - - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - file_hashes: - key: - file_hash: - - type: {} - value: "value" - - type: {} - value: "value" - context: - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - start_time: "2000-01-23T04:56:07.000+00:00" - project_id: "project_id" - id: "id" - commands: - - args: - - "args" - - "args" - name: "name" - id: "id" - wait_for: - - "wait_for" - - "wait_for" - env: - - "env" - - "env" - dir: "dir" - - args: - - "args" - - "args" - name: "name" - id: "id" - wait_for: - - "wait_for" - - "wait_for" - env: - - "env" - - "env" - dir: "dir" - build_options: - key: "build_options" - provenance_bytes: "provenance_bytes" - installation: - installation: - name: "name" - location: - - path: "path" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - - path: "path" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - name: "name" - derived_image: - derived_image: - distance: 6 - base_resource_url: "base_resource_url" - fingerprint: - v2_name: "v2_name" - v1_name: "v1_name" - v2_blob: - - "v2_blob" - - "v2_blob" - layer_info: - - arguments: "arguments" - directive: {} - - arguments: "arguments" - directive: {} - note_name: "note_name" - deployment: - deployment: - user_email: "user_email" - address: "address" - resource_uri: - - "resource_uri" - - "resource_uri" - undeploy_time: "2000-01-23T04:56:07.000+00:00" - deploy_time: "2000-01-23T04:56:07.000+00:00" - config: "config" - platform: {} - - discovered: - discovered: - last_analysis_time: "2000-01-23T04:56:07.000+00:00" - analysis_status: {} - continuous_analysis: {} - analysis_status_error: - code: 1 - details: - - value: "value" - type_url: "type_url" - - value: "value" - type_url: "type_url" - message: "message" - attestation: - attestation: - pgp_signed_attestation: - content_type: {} - signature: "signature" - pgp_key_id: "pgp_key_id" - generic_signed_attestation: - content_type: {} - serialized_payload: "serialized_payload" - signatures: - - signature: "signature" - public_key_id: "public_key_id" - - signature: "signature" - public_key_id: "public_key_id" - create_time: "2000-01-23T04:56:07.000+00:00" - resource: - name: "name" - content_hash: - type: {} - value: "value" - uri: "uri" - kind: {} - vulnerability: - severity: {} - short_description: "short_description" - cvss_score: 0.8008282 - long_description: "long_description" - related_urls: - - label: "label" - url: "url" - - label: "label" - url: "url" - type: "type" - package_issue: - - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - affected_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - affected_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - remediation: "remediation" - update_time: "2000-01-23T04:56:07.000+00:00" - build: - provenance: - creator: "creator" - create_time: "2000-01-23T04:56:07.000+00:00" - trigger_id: "trigger_id" - end_time: "2000-01-23T04:56:07.000+00:00" - built_artifacts: - - names: - - "names" - - "names" - checksum: "checksum" - id: "id" - - names: - - "names" - - "names" - checksum: "checksum" - id: "id" - logs_uri: "logs_uri" - builder_version: "builder_version" - source_provenance: - artifact_storage_source_uri: "artifact_storage_source_uri" - additional_contexts: - - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - file_hashes: - key: - file_hash: - - type: {} - value: "value" - - type: {} - value: "value" - context: - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - start_time: "2000-01-23T04:56:07.000+00:00" - project_id: "project_id" - id: "id" - commands: - - args: - - "args" - - "args" - name: "name" - id: "id" - wait_for: - - "wait_for" - - "wait_for" - env: - - "env" - - "env" - dir: "dir" - - args: - - "args" - - "args" - name: "name" - id: "id" - wait_for: - - "wait_for" - - "wait_for" - env: - - "env" - - "env" - dir: "dir" - build_options: - key: "build_options" - provenance_bytes: "provenance_bytes" - installation: - installation: - name: "name" - location: - - path: "path" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - - path: "path" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - name: "name" - derived_image: - derived_image: - distance: 6 - base_resource_url: "base_resource_url" - fingerprint: - v2_name: "v2_name" - v1_name: "v1_name" - v2_blob: - - "v2_blob" - - "v2_blob" - layer_info: - - arguments: "arguments" - directive: {} - - arguments: "arguments" - directive: {} - note_name: "note_name" - deployment: - deployment: - user_email: "user_email" - address: "address" - resource_uri: - - "resource_uri" - - "resource_uri" - undeploy_time: "2000-01-23T04:56:07.000+00:00" - deploy_time: "2000-01-23T04:56:07.000+00:00" - config: "config" - platform: {} - next_page_token: "next_page_token" - v1beta1ListNotesResponse: - type: "object" - properties: - notes: - type: "array" - description: "The notes requested." - items: - $ref: "#/definitions/v1beta1Note" - next_page_token: - type: "string" - description: "The next pagination token in the list response. It should be\ - \ used as\n`page_token` for the following request. An empty value means\ - \ no more\nresults." - description: "Response for listing notes." - example: - notes: - - attestation_authority: - hint: - human_readable_name: "human_readable_name" - short_description: "short_description" - related_note_names: - - "related_note_names" - - "related_note_names" - package: - name: "name" - distribution: - - latest_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - cpe_uri: "cpe_uri" - description: "description" - maintainer: "maintainer" - url: "url" - architecture: {} - - latest_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - cpe_uri: "cpe_uri" - description: "description" - maintainer: "maintainer" - url: "url" - architecture: {} - create_time: "2000-01-23T04:56:07.000+00:00" - kind: {} - related_url: - - label: "label" - url: "url" - - label: "label" - url: "url" - expiration_time: "2000-01-23T04:56:07.000+00:00" - long_description: "long_description" - vulnerability: - severity: {} - cvss_score: 0.8008282 - cvss_v3: - attack_complexity: {} - base_score: 1.4658129 - user_interaction: {} - scope: {} - impact_score: 5.637377 - confidentiality_impact: {} - attack_vector: {} - exploitability_score: 5.962134 - privileges_required: {} - details: - - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - package: "package" - cpe_uri: "cpe_uri" - max_affected_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - description: "description" - min_affected_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - package_type: "package_type" - is_obsolete: true - - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - package: "package" - cpe_uri: "cpe_uri" - max_affected_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - description: "description" - min_affected_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - package_type: "package_type" - is_obsolete: true - windows_details: - - cpe_uri: "cpe_uri" - fixing_kbs: - - name: "name" - url: "url" - - name: "name" - url: "url" - name: "name" - description: "description" - - cpe_uri: "cpe_uri" - fixing_kbs: - - name: "name" - url: "url" - - name: "name" - url: "url" - name: "name" - description: "description" - update_time: "2000-01-23T04:56:07.000+00:00" - base_image: - resource_url: "resource_url" - fingerprint: - v2_name: "v2_name" - v1_name: "v1_name" - v2_blob: - - "v2_blob" - - "v2_blob" - deployable: - resource_uri: - - "resource_uri" - - "resource_uri" - build: - signature: - public_key: "public_key" - key_type: {} - signature: "signature" - key_id: "key_id" - builder_version: "builder_version" - discovery: {} - name: "name" - - attestation_authority: - hint: - human_readable_name: "human_readable_name" - short_description: "short_description" - related_note_names: - - "related_note_names" - - "related_note_names" - package: - name: "name" - distribution: - - latest_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - cpe_uri: "cpe_uri" - description: "description" - maintainer: "maintainer" - url: "url" - architecture: {} - - latest_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - cpe_uri: "cpe_uri" - description: "description" - maintainer: "maintainer" - url: "url" - architecture: {} - create_time: "2000-01-23T04:56:07.000+00:00" - kind: {} - related_url: - - label: "label" - url: "url" - - label: "label" - url: "url" - expiration_time: "2000-01-23T04:56:07.000+00:00" - long_description: "long_description" - vulnerability: - severity: {} - cvss_score: 0.8008282 - cvss_v3: - attack_complexity: {} - base_score: 1.4658129 - user_interaction: {} - scope: {} - impact_score: 5.637377 - confidentiality_impact: {} - attack_vector: {} - exploitability_score: 5.962134 - privileges_required: {} - details: - - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - package: "package" - cpe_uri: "cpe_uri" - max_affected_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - description: "description" - min_affected_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - package_type: "package_type" - is_obsolete: true - - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - package: "package" - cpe_uri: "cpe_uri" - max_affected_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - description: "description" - min_affected_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - package_type: "package_type" - is_obsolete: true - windows_details: - - cpe_uri: "cpe_uri" - fixing_kbs: - - name: "name" - url: "url" - - name: "name" - url: "url" - name: "name" - description: "description" - - cpe_uri: "cpe_uri" - fixing_kbs: - - name: "name" - url: "url" - - name: "name" - url: "url" - name: "name" - description: "description" - update_time: "2000-01-23T04:56:07.000+00:00" - base_image: - resource_url: "resource_url" - fingerprint: - v2_name: "v2_name" - v1_name: "v1_name" - v2_blob: - - "v2_blob" - - "v2_blob" - deployable: - resource_uri: - - "resource_uri" - - "resource_uri" - build: - signature: - public_key: "public_key" - key_type: {} - signature: "signature" - key_id: "key_id" - builder_version: "builder_version" - discovery: {} - name: "name" - next_page_token: "next_page_token" - v1beta1ListOccurrencesResponse: - type: "object" - properties: - occurrences: - type: "array" - description: "The occurrences requested." - items: - $ref: "#/definitions/v1beta1Occurrence" - next_page_token: - type: "string" - description: "The next pagination token in the list response. It should be\ - \ used as\n`page_token` for the following request. An empty value means\ - \ no more\nresults." - description: "Response for listing occurrences." - example: - occurrences: - - discovered: - discovered: - last_analysis_time: "2000-01-23T04:56:07.000+00:00" - analysis_status: {} - continuous_analysis: {} - analysis_status_error: - code: 1 - details: - - value: "value" - type_url: "type_url" - - value: "value" - type_url: "type_url" - message: "message" - attestation: - attestation: - pgp_signed_attestation: - content_type: {} - signature: "signature" - pgp_key_id: "pgp_key_id" - generic_signed_attestation: - content_type: {} - serialized_payload: "serialized_payload" - signatures: - - signature: "signature" - public_key_id: "public_key_id" - - signature: "signature" - public_key_id: "public_key_id" - create_time: "2000-01-23T04:56:07.000+00:00" - resource: - name: "name" - content_hash: - type: {} - value: "value" - uri: "uri" - kind: {} - vulnerability: - severity: {} - short_description: "short_description" - cvss_score: 0.8008282 - long_description: "long_description" - related_urls: - - label: "label" - url: "url" - - label: "label" - url: "url" - type: "type" - package_issue: - - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - affected_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - affected_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - remediation: "remediation" - update_time: "2000-01-23T04:56:07.000+00:00" - build: - provenance: - creator: "creator" - create_time: "2000-01-23T04:56:07.000+00:00" - trigger_id: "trigger_id" - end_time: "2000-01-23T04:56:07.000+00:00" - built_artifacts: - - names: - - "names" - - "names" - checksum: "checksum" - id: "id" - - names: - - "names" - - "names" - checksum: "checksum" - id: "id" - logs_uri: "logs_uri" - builder_version: "builder_version" - source_provenance: - artifact_storage_source_uri: "artifact_storage_source_uri" - additional_contexts: - - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - file_hashes: - key: - file_hash: - - type: {} - value: "value" - - type: {} - value: "value" - context: - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - start_time: "2000-01-23T04:56:07.000+00:00" - project_id: "project_id" - id: "id" - commands: - - args: - - "args" - - "args" - name: "name" - id: "id" - wait_for: - - "wait_for" - - "wait_for" - env: - - "env" - - "env" - dir: "dir" - - args: - - "args" - - "args" - name: "name" - id: "id" - wait_for: - - "wait_for" - - "wait_for" - env: - - "env" - - "env" - dir: "dir" - build_options: - key: "build_options" - provenance_bytes: "provenance_bytes" - installation: - installation: - name: "name" - location: - - path: "path" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - - path: "path" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - name: "name" - derived_image: - derived_image: - distance: 6 - base_resource_url: "base_resource_url" - fingerprint: - v2_name: "v2_name" - v1_name: "v1_name" - v2_blob: - - "v2_blob" - - "v2_blob" - layer_info: - - arguments: "arguments" - directive: {} - - arguments: "arguments" - directive: {} - note_name: "note_name" - deployment: - deployment: - user_email: "user_email" - address: "address" - resource_uri: - - "resource_uri" - - "resource_uri" - undeploy_time: "2000-01-23T04:56:07.000+00:00" - deploy_time: "2000-01-23T04:56:07.000+00:00" - config: "config" - platform: {} - - discovered: - discovered: - last_analysis_time: "2000-01-23T04:56:07.000+00:00" - analysis_status: {} - continuous_analysis: {} - analysis_status_error: - code: 1 - details: - - value: "value" - type_url: "type_url" - - value: "value" - type_url: "type_url" - message: "message" - attestation: - attestation: - pgp_signed_attestation: - content_type: {} - signature: "signature" - pgp_key_id: "pgp_key_id" - generic_signed_attestation: - content_type: {} - serialized_payload: "serialized_payload" - signatures: - - signature: "signature" - public_key_id: "public_key_id" - - signature: "signature" - public_key_id: "public_key_id" - create_time: "2000-01-23T04:56:07.000+00:00" - resource: - name: "name" - content_hash: - type: {} - value: "value" - uri: "uri" - kind: {} - vulnerability: - severity: {} - short_description: "short_description" - cvss_score: 0.8008282 - long_description: "long_description" - related_urls: - - label: "label" - url: "url" - - label: "label" - url: "url" - type: "type" - package_issue: - - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - affected_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - affected_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - remediation: "remediation" - update_time: "2000-01-23T04:56:07.000+00:00" - build: - provenance: - creator: "creator" - create_time: "2000-01-23T04:56:07.000+00:00" - trigger_id: "trigger_id" - end_time: "2000-01-23T04:56:07.000+00:00" - built_artifacts: - - names: - - "names" - - "names" - checksum: "checksum" - id: "id" - - names: - - "names" - - "names" - checksum: "checksum" - id: "id" - logs_uri: "logs_uri" - builder_version: "builder_version" - source_provenance: - artifact_storage_source_uri: "artifact_storage_source_uri" - additional_contexts: - - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - file_hashes: - key: - file_hash: - - type: {} - value: "value" - - type: {} - value: "value" - context: - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - start_time: "2000-01-23T04:56:07.000+00:00" - project_id: "project_id" - id: "id" - commands: - - args: - - "args" - - "args" - name: "name" - id: "id" - wait_for: - - "wait_for" - - "wait_for" - env: - - "env" - - "env" - dir: "dir" - - args: - - "args" - - "args" - name: "name" - id: "id" - wait_for: - - "wait_for" - - "wait_for" - env: - - "env" - - "env" - dir: "dir" - build_options: - key: "build_options" - provenance_bytes: "provenance_bytes" - installation: - installation: - name: "name" - location: - - path: "path" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - - path: "path" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - name: "name" - derived_image: - derived_image: - distance: 6 - base_resource_url: "base_resource_url" - fingerprint: - v2_name: "v2_name" - v1_name: "v1_name" - v2_blob: - - "v2_blob" - - "v2_blob" - layer_info: - - arguments: "arguments" - directive: {} - - arguments: "arguments" - directive: {} - note_name: "note_name" - deployment: - deployment: - user_email: "user_email" - address: "address" - resource_uri: - - "resource_uri" - - "resource_uri" - undeploy_time: "2000-01-23T04:56:07.000+00:00" - deploy_time: "2000-01-23T04:56:07.000+00:00" - config: "config" - platform: {} - next_page_token: "next_page_token" - v1beta1Note: - type: "object" - properties: - name: - type: "string" - description: "Output only. The name of the note in the form of\n`projects/[PROVIDER_ID]/notes/[NOTE_ID]`." - readOnly: true - short_description: - type: "string" - description: "A one sentence description of this note." - long_description: - type: "string" - description: "A detailed description of this note." - kind: - description: "Output only. The type of analysis. This field can be used as\ - \ a filter in\nlist requests." - readOnly: true - $ref: "#/definitions/v1beta1NoteKind" - related_url: - type: "array" - description: "URLs associated with this note." - items: - $ref: "#/definitions/v1beta1RelatedUrl" - expiration_time: - type: "string" - format: "date-time" - description: "Time of expiration for this note. Empty if note does not expire." - create_time: - type: "string" - format: "date-time" - description: "Output only. The time this note was created. This field can\ - \ be used as a\nfilter in list requests." - readOnly: true - update_time: - type: "string" - format: "date-time" - description: "Output only. The time this note was last updated. This field\ - \ can be used as\na filter in list requests." - readOnly: true - related_note_names: - type: "array" - description: "Other notes related to this note." - items: - type: "string" - vulnerability: - description: "A note describing a package vulnerability." - $ref: "#/definitions/vulnerabilityVulnerability" - build: - description: "A note describing build provenance for a verifiable build." - $ref: "#/definitions/buildBuild" - base_image: - description: "A note describing a base image." - $ref: "#/definitions/imageBasis" - package: - description: "A note describing a package hosted by various package managers." - $ref: "#/definitions/packagePackage" - deployable: - description: "A note describing something that can be deployed." - $ref: "#/definitions/deploymentDeployable" - discovery: - description: "A note describing the initial analysis of a resource." - $ref: "#/definitions/discoveryDiscovery" - attestation_authority: - description: "A note describing an attestation role." - $ref: "#/definitions/attestationAuthority" - description: "A type of analysis that can be done for a resource." - example: - attestation_authority: - hint: - human_readable_name: "human_readable_name" - short_description: "short_description" - related_note_names: - - "related_note_names" - - "related_note_names" - package: - name: "name" - distribution: - - latest_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - cpe_uri: "cpe_uri" - description: "description" - maintainer: "maintainer" - url: "url" - architecture: {} - - latest_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - cpe_uri: "cpe_uri" - description: "description" - maintainer: "maintainer" - url: "url" - architecture: {} - create_time: "2000-01-23T04:56:07.000+00:00" - kind: {} - related_url: - - label: "label" - url: "url" - - label: "label" - url: "url" - expiration_time: "2000-01-23T04:56:07.000+00:00" - long_description: "long_description" - vulnerability: - severity: {} - cvss_score: 0.8008282 - cvss_v3: - attack_complexity: {} - base_score: 1.4658129 - user_interaction: {} - scope: {} - impact_score: 5.637377 - confidentiality_impact: {} - attack_vector: {} - exploitability_score: 5.962134 - privileges_required: {} - details: - - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - package: "package" - cpe_uri: "cpe_uri" - max_affected_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - description: "description" - min_affected_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - package_type: "package_type" - is_obsolete: true - - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - package: "package" - cpe_uri: "cpe_uri" - max_affected_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - description: "description" - min_affected_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - package_type: "package_type" - is_obsolete: true - windows_details: - - cpe_uri: "cpe_uri" - fixing_kbs: - - name: "name" - url: "url" - - name: "name" - url: "url" - name: "name" - description: "description" - - cpe_uri: "cpe_uri" - fixing_kbs: - - name: "name" - url: "url" - - name: "name" - url: "url" - name: "name" - description: "description" - update_time: "2000-01-23T04:56:07.000+00:00" - base_image: - resource_url: "resource_url" - fingerprint: - v2_name: "v2_name" - v1_name: "v1_name" - v2_blob: - - "v2_blob" - - "v2_blob" - deployable: - resource_uri: - - "resource_uri" - - "resource_uri" - build: - signature: - public_key: "public_key" - key_type: {} - signature: "signature" - key_id: "key_id" - builder_version: "builder_version" - discovery: {} - name: "name" - v1beta1NoteKind: - type: "string" - description: "Kind represents the kinds of notes supported.\n\n - NOTE_KIND_UNSPECIFIED:\ - \ Unknown.\n - VULNERABILITY: The note and occurrence represent a package vulnerability.\n\ - \ - BUILD: The note and occurrence assert build provenance.\n - IMAGE: This\ - \ represents an image basis relationship.\n - PACKAGE: This represents a package\ - \ installed via a package manager.\n - DEPLOYMENT: The note and occurrence track\ - \ deployment events.\n - DISCOVERY: The note and occurrence track the initial\ - \ discovery status of a resource.\n - ATTESTATION: This represents a logical\ - \ \"role\" that can attest to artifacts." - enum: - - "NOTE_KIND_UNSPECIFIED" - - "VULNERABILITY" - - "BUILD" - - "IMAGE" - - "PACKAGE" - - "DEPLOYMENT" - - "DISCOVERY" - - "ATTESTATION" - default: "NOTE_KIND_UNSPECIFIED" - v1beta1Occurrence: - type: "object" - properties: - name: - type: "string" - description: "Output only. The name of the occurrence in the form of\n`projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`." - readOnly: true - resource: - description: "Required. Immutable. The resource for which the occurrence applies." - $ref: "#/definitions/v1beta1Resource" - note_name: - type: "string" - description: "Required. Immutable. The analysis note associated with this\ - \ occurrence, in\nthe form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.\ - \ This field can be\nused as a filter in list requests." - kind: - description: "Output only. This explicitly denotes which of the occurrence\ - \ details are\nspecified. This field can be used as a filter in list requests." - readOnly: true - $ref: "#/definitions/v1beta1NoteKind" - remediation: - type: "string" - description: "A description of actions that can be taken to remedy the note." - create_time: - type: "string" - format: "date-time" - description: "Output only. The time this occurrence was created." - readOnly: true - update_time: - type: "string" - format: "date-time" - description: "Output only. The time this occurrence was last updated." - readOnly: true - vulnerability: - description: "Describes a security vulnerability." - $ref: "#/definitions/v1beta1vulnerabilityDetails" - build: - description: "Describes a verifiable build." - $ref: "#/definitions/v1beta1buildDetails" - derived_image: - description: "Describes how this resource derives from the basis in the associated\n\ - note." - $ref: "#/definitions/v1beta1imageDetails" - installation: - description: "Describes the installation of a package on the linked resource." - $ref: "#/definitions/v1beta1packageDetails" - deployment: - description: "Describes the deployment of an artifact on a runtime." - $ref: "#/definitions/v1beta1deploymentDetails" - discovered: - description: "Describes when a resource was discovered." - $ref: "#/definitions/v1beta1discoveryDetails" - attestation: - description: "Describes an attestation of an artifact." - $ref: "#/definitions/v1beta1attestationDetails" - description: "An instance of an analysis type that has been found on a resource." - example: - discovered: - discovered: - last_analysis_time: "2000-01-23T04:56:07.000+00:00" - analysis_status: {} - continuous_analysis: {} - analysis_status_error: - code: 1 - details: - - value: "value" - type_url: "type_url" - - value: "value" - type_url: "type_url" - message: "message" - attestation: - attestation: - pgp_signed_attestation: - content_type: {} - signature: "signature" - pgp_key_id: "pgp_key_id" - generic_signed_attestation: - content_type: {} - serialized_payload: "serialized_payload" - signatures: - - signature: "signature" - public_key_id: "public_key_id" - - signature: "signature" - public_key_id: "public_key_id" - create_time: "2000-01-23T04:56:07.000+00:00" - resource: - name: "name" - content_hash: - type: {} - value: "value" - uri: "uri" - kind: {} - vulnerability: - severity: {} - short_description: "short_description" - cvss_score: 0.8008282 - long_description: "long_description" - related_urls: - - label: "label" - url: "url" - - label: "label" - url: "url" - type: "type" - package_issue: - - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - affected_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - affected_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - remediation: "remediation" - update_time: "2000-01-23T04:56:07.000+00:00" - build: - provenance: - creator: "creator" - create_time: "2000-01-23T04:56:07.000+00:00" - trigger_id: "trigger_id" - end_time: "2000-01-23T04:56:07.000+00:00" - built_artifacts: - - names: - - "names" - - "names" - checksum: "checksum" - id: "id" - - names: - - "names" - - "names" - checksum: "checksum" - id: "id" - logs_uri: "logs_uri" - builder_version: "builder_version" - source_provenance: - artifact_storage_source_uri: "artifact_storage_source_uri" - additional_contexts: - - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - file_hashes: - key: - file_hash: - - type: {} - value: "value" - - type: {} - value: "value" - context: - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - start_time: "2000-01-23T04:56:07.000+00:00" - project_id: "project_id" - id: "id" - commands: - - args: - - "args" - - "args" - name: "name" - id: "id" - wait_for: - - "wait_for" - - "wait_for" - env: - - "env" - - "env" - dir: "dir" - - args: - - "args" - - "args" - name: "name" - id: "id" - wait_for: - - "wait_for" - - "wait_for" - env: - - "env" - - "env" - dir: "dir" - build_options: - key: "build_options" - provenance_bytes: "provenance_bytes" - installation: - installation: - name: "name" - location: - - path: "path" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - - path: "path" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - name: "name" - derived_image: - derived_image: - distance: 6 - base_resource_url: "base_resource_url" - fingerprint: - v2_name: "v2_name" - v1_name: "v1_name" - v2_blob: - - "v2_blob" - - "v2_blob" - layer_info: - - arguments: "arguments" - directive: {} - - arguments: "arguments" - directive: {} - note_name: "note_name" - deployment: - deployment: - user_email: "user_email" - address: "address" - resource_uri: - - "resource_uri" - - "resource_uri" - undeploy_time: "2000-01-23T04:56:07.000+00:00" - deploy_time: "2000-01-23T04:56:07.000+00:00" - config: "config" - platform: {} - v1beta1RelatedUrl: - type: "object" - properties: - url: - type: "string" - description: "Specific URL associated with the resource." - label: - type: "string" - description: "Label to describe usage of the URL." - description: "Metadata for any related URL information." - example: - label: "label" - url: "url" - v1beta1Resource: - type: "object" - properties: - name: - type: "string" - description: "Deprecated, do not use. Use uri instead.\n\nThe name of the\ - \ resource. For example, the name of a Docker image -\n\"Debian\"." - uri: - type: "string" - description: "Required. The unique URI of the resource. For example,\n`https://gcr.io/project/image@sha256:foo`\ - \ for a Docker image." - content_hash: - description: "Deprecated, do not use. Use uri instead.\n\nThe hash of the\ - \ resource content. For example, the Docker digest." - $ref: "#/definitions/provenanceHash" - description: "An entity that can have metadata. For example, a Docker image." - example: - name: "name" - content_hash: - type: {} - value: "value" - uri: "uri" - v1beta1Signature: - type: "object" - properties: - signature: - type: "string" - format: "byte" - description: "The content of the signature, an opaque bytestring.\nThe payload\ - \ that this signature verifies MUST be unambiguously provided\nwith the\ - \ Signature during verification. A wrapper message might provide\nthe payload\ - \ explicitly. Alternatively, a message might have a canonical\nserialization\ - \ that can always be unambiguously computed to derive the\npayload." - pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" - public_key_id: - type: "string" - description: "The identifier for the public key that verifies this signature.\n\ - \ * The `public_key_id` is required.\n * The `public_key_id` MUST be an\ - \ RFC3986 conformant URI.\n * When possible, the `public_key_id` SHOULD\ - \ be an immutable reference,\n such as a cryptographic digest.\n\nExamples\ - \ of valid `public_key_id`s:\n\nOpenPGP V4 public key fingerprint:\n *\ - \ \"openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA\"\nSee https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr\ - \ for more\ndetails on this scheme.\n\nRFC6920 digest-named SubjectPublicKeyInfo\ - \ (digest of the DER\nserialization):\n * \"ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU\"\ - \n * \"nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5\"" - description: "Verifiers (e.g. Kritis implementations) MUST verify signatures\n\ - with respect to the trust anchors defined in policy (e.g. a Kritis policy).\n\ - Typically this means that the verifier has been configured with a map from\n\ - `public_key_id` to public key material (and any required parameters, e.g.\n\ - signing algorithm).\n\nIn particular, verification implementations MUST NOT\ - \ treat the signature\n`public_key_id` as anything more than a key lookup hint.\ - \ The `public_key_id`\nDOES NOT validate or authenticate a public key; it only\ - \ provides a mechanism\nfor quickly selecting a public key ALREADY CONFIGURED\ - \ on the verifier through\na trusted channel. Verification implementations MUST\ - \ reject signatures in any\nof the following circumstances:\n * The `public_key_id`\ - \ is not recognized by the verifier.\n * The public key that `public_key_id`\ - \ refers to does not verify the\n signature with respect to the payload.\n\ - \nThe `signature` contents SHOULD NOT be \"attached\" (where the payload is\n\ - included with the serialized `signature` bytes). Verifiers MUST ignore any\n\ - \"attached\" payload and only verify signatures with respect to explicitly\n\ - provided payload (e.g. a `payload` field on the proto message that holds\nthis\ - \ Signature, or the canonical serialization of the proto message that\nholds\ - \ this signature)." - example: - signature: "signature" - public_key_id: "public_key_id" - v1beta1VulnerabilityOccurrencesSummary: - type: "object" - properties: - counts: - type: "array" - description: "A listing by resource of the number of fixable and total vulnerabilities." - items: - $ref: "#/definitions/VulnerabilityOccurrencesSummaryFixableTotalByDigest" - description: "A summary of how many vulnerability occurrences there are per resource\ - \ and\nseverity type." - example: - counts: - - severity: {} - resource: - name: "name" - content_hash: - type: {} - value: "value" - uri: "uri" - total_count: "total_count" - fixable_count: "fixable_count" - - severity: {} - resource: - name: "name" - content_hash: - type: {} - value: "value" - uri: "uri" - total_count: "total_count" - fixable_count: "fixable_count" - v1beta1attestationDetails: - type: "object" - properties: - attestation: - description: "Required. Attestation for the resource." - $ref: "#/definitions/attestationAttestation" - description: "Details of an attestation occurrence." - example: - attestation: - pgp_signed_attestation: - content_type: {} - signature: "signature" - pgp_key_id: "pgp_key_id" - generic_signed_attestation: - content_type: {} - serialized_payload: "serialized_payload" - signatures: - - signature: "signature" - public_key_id: "public_key_id" - - signature: "signature" - public_key_id: "public_key_id" - v1beta1buildDetails: - type: "object" - properties: - provenance: - description: "Required. The actual provenance for the build." - $ref: "#/definitions/provenanceBuildProvenance" - provenance_bytes: - type: "string" - description: "Serialized JSON representation of the provenance, used in generating\ - \ the\nbuild signature in the corresponding build note. After verifying\ - \ the\nsignature, `provenance_bytes` can be unmarshalled and compared to\ - \ the\nprovenance to confirm that it is unchanged. A base64-encoded string\n\ - representation of the provenance bytes is used for the signature in order\n\ - to interoperate with openssl which expects this format for signature\nverification.\n\ - \nThe serialized form is captured both to avoid ambiguity in how the\nprovenance\ - \ is marshalled to json as well to prevent incompatibilities with\nfuture\ - \ changes." - description: "Details of a build occurrence." - example: - provenance: - creator: "creator" - create_time: "2000-01-23T04:56:07.000+00:00" - trigger_id: "trigger_id" - end_time: "2000-01-23T04:56:07.000+00:00" - built_artifacts: - - names: - - "names" - - "names" - checksum: "checksum" - id: "id" - - names: - - "names" - - "names" - checksum: "checksum" - id: "id" - logs_uri: "logs_uri" - builder_version: "builder_version" - source_provenance: - artifact_storage_source_uri: "artifact_storage_source_uri" - additional_contexts: - - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - file_hashes: - key: - file_hash: - - type: {} - value: "value" - - type: {} - value: "value" - context: - git: - url: "url" - revision_id: "revision_id" - cloud_repo: - repo_id: - uid: "uid" - project_repo_id: - project_id: "project_id" - repo_name: "repo_name" - alias_context: - kind: {} - name: "name" - revision_id: "revision_id" - gerrit: - gerrit_project: "gerrit_project" - alias_context: - kind: {} - name: "name" - host_uri: "host_uri" - revision_id: "revision_id" - labels: - key: "labels" - start_time: "2000-01-23T04:56:07.000+00:00" - project_id: "project_id" - id: "id" - commands: - - args: - - "args" - - "args" - name: "name" - id: "id" - wait_for: - - "wait_for" - - "wait_for" - env: - - "env" - - "env" - dir: "dir" - - args: - - "args" - - "args" - name: "name" - id: "id" - wait_for: - - "wait_for" - - "wait_for" - env: - - "env" - - "env" - dir: "dir" - build_options: - key: "build_options" - provenance_bytes: "provenance_bytes" - v1beta1deploymentDetails: - type: "object" - properties: - deployment: - description: "Required. Deployment history for the resource." - $ref: "#/definitions/deploymentDeployment" - description: "Details of a deployment occurrence." - example: - deployment: - user_email: "user_email" - address: "address" - resource_uri: - - "resource_uri" - - "resource_uri" - undeploy_time: "2000-01-23T04:56:07.000+00:00" - deploy_time: "2000-01-23T04:56:07.000+00:00" - config: "config" - platform: {} - v1beta1discoveryDetails: - type: "object" - properties: - discovered: - description: "Required. Analysis status for the discovered resource." - $ref: "#/definitions/discoveryDiscovered" - description: "Details of a discovery occurrence." - example: - discovered: - last_analysis_time: "2000-01-23T04:56:07.000+00:00" - analysis_status: {} - continuous_analysis: {} - analysis_status_error: - code: 1 - details: - - value: "value" - type_url: "type_url" - - value: "value" - type_url: "type_url" - message: "message" - v1beta1imageDetails: - type: "object" - properties: - derived_image: - description: "Required. Immutable. The child image derived from the base image." - $ref: "#/definitions/imageDerived" - description: "Details of an image occurrence." - example: - derived_image: - distance: 6 - base_resource_url: "base_resource_url" - fingerprint: - v2_name: "v2_name" - v1_name: "v1_name" - v2_blob: - - "v2_blob" - - "v2_blob" - layer_info: - - arguments: "arguments" - directive: {} - - arguments: "arguments" - directive: {} - v1beta1packageDetails: - type: "object" - properties: - installation: - description: "Required. Where the package was installed." - $ref: "#/definitions/packageInstallation" - description: "Details of a package occurrence." - example: - installation: - name: "name" - location: - - path: "path" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - - path: "path" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - v1beta1packageLocation: - type: "object" - properties: - cpe_uri: - type: "string" - description: "Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/)\n\ - denoting the package manager version distributing a package." - version: - description: "The version installed at this location." - $ref: "#/definitions/packageVersion" - path: - type: "string" - description: "The path from which we gathered that this package/version is\ - \ installed." - description: "An occurrence of a particular package installation found within\ - \ a system's\nfilesystem. E.g., glibc was found in `/var/lib/dpkg/status`." - example: - path: "path" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - v1beta1vulnerabilityDetails: - type: "object" - properties: - type: - type: "string" - title: "The type of package; whether native or non native(ruby gems, node.js\n\ - packages etc)" - severity: - description: "Output only. The note provider assigned Severity of the vulnerability." - readOnly: true - $ref: "#/definitions/vulnerabilitySeverity" - cvss_score: - type: "number" - format: "float" - description: "Output only. The CVSS score of this vulnerability. CVSS score\ - \ is on a\nscale of 0-10 where 0 indicates low severity and 10 indicates\ - \ high\nseverity." - readOnly: true - package_issue: - type: "array" - description: "Required. The set of affected locations and their fixes (if\ - \ available)\nwithin the associated resource." - items: - $ref: "#/definitions/vulnerabilityPackageIssue" - short_description: - type: "string" - description: "Output only. A one sentence description of this vulnerability." - readOnly: true - long_description: - type: "string" - description: "Output only. A detailed description of this vulnerability." - readOnly: true - related_urls: - type: "array" - description: "Output only. URLs related to this vulnerability." - readOnly: true - items: - $ref: "#/definitions/v1beta1RelatedUrl" - effective_severity: - description: "The distro assigned severity for this vulnerability when it\ - \ is\navailable, and note provider assigned severity when distro has not\ - \ yet\nassigned a severity for this vulnerability." - $ref: "#/definitions/vulnerabilitySeverity" - description: "Details of a vulnerability Occurrence." - example: - severity: {} - short_description: "short_description" - cvss_score: 0.8008282 - long_description: "long_description" - related_urls: - - label: "label" - url: "url" - - label: "label" - url: "url" - type: "type" - package_issue: - - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - affected_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - affected_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - vulnerabilityCVSSv3: - type: "object" - properties: - base_score: - type: "number" - format: "float" - description: "The base score is a function of the base metric scores." - exploitability_score: - type: "number" - format: "float" - impact_score: - type: "number" - format: "float" - attack_vector: - description: "Base Metrics\nRepresents the intrinsic characteristics of a\ - \ vulnerability that are\nconstant over time and across user environments." - $ref: "#/definitions/CVSSv3AttackVector" - attack_complexity: - $ref: "#/definitions/CVSSv3AttackComplexity" - privileges_required: - $ref: "#/definitions/CVSSv3PrivilegesRequired" - user_interaction: - $ref: "#/definitions/CVSSv3UserInteraction" - scope: - $ref: "#/definitions/CVSSv3Scope" - confidentiality_impact: - $ref: "#/definitions/CVSSv3Impact" - integrity_impact: - $ref: "#/definitions/CVSSv3Impact" - availability_impact: - $ref: "#/definitions/CVSSv3Impact" - title: "Common Vulnerability Scoring System version 3.\nFor details, see https://www.first.org/cvss/specification-document" - example: - attack_complexity: {} - base_score: 1.4658129 - user_interaction: {} - scope: {} - impact_score: 5.637377 - confidentiality_impact: {} - attack_vector: {} - exploitability_score: 5.962134 - privileges_required: {} - vulnerabilityPackageIssue: - type: "object" - properties: - affected_location: - description: "Required. The location of the vulnerability." - $ref: "#/definitions/vulnerabilityVulnerabilityLocation" - fixed_location: - description: "The location of the available fix for vulnerability." - $ref: "#/definitions/vulnerabilityVulnerabilityLocation" - severity_name: - type: "string" - description: "Deprecated, use Details.effective_severity instead\nThe severity\ - \ (e.g., distro assigned severity) for this vulnerability." - description: "This message wraps a location affected by a vulnerability and its\n\ - associated fix (if one is available)." - example: - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - affected_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - vulnerabilitySeverity: - type: "string" - description: "Note provider-assigned severity/impact ranking.\n\n - SEVERITY_UNSPECIFIED:\ - \ Unknown.\n - MINIMAL: Minimal severity.\n - LOW: Low severity.\n - MEDIUM:\ - \ Medium severity.\n - HIGH: High severity.\n - CRITICAL: Critical severity." - enum: - - "SEVERITY_UNSPECIFIED" - - "MINIMAL" - - "LOW" - - "MEDIUM" - - "HIGH" - - "CRITICAL" - default: "SEVERITY_UNSPECIFIED" - vulnerabilityVulnerability: - type: "object" - properties: - cvss_score: - type: "number" - format: "float" - description: "The CVSS score for this vulnerability." - severity: - description: "Note provider assigned impact of the vulnerability." - $ref: "#/definitions/vulnerabilitySeverity" - details: - type: "array" - description: "All information about the package to specifically identify this\n\ - vulnerability. One entry per (version range and cpe_uri) the package\nvulnerability\ - \ has manifested in." - items: - $ref: "#/definitions/VulnerabilityDetail" - cvss_v3: - description: "The full description of the CVSSv3." - $ref: "#/definitions/vulnerabilityCVSSv3" - windows_details: - type: "array" - description: "Windows details get their own format because the information\ - \ format and\nmodel don't match a normal detail. Specifically Windows updates\ - \ are done as\npatches, thus Windows vulnerabilities really are a missing\ - \ package, rather\nthan a package being at an incorrect version." - items: - $ref: "#/definitions/VulnerabilityWindowsDetail" - description: "Vulnerability provides metadata about a security vulnerability in\ - \ a Note." - example: - severity: {} - cvss_score: 0.8008282 - cvss_v3: - attack_complexity: {} - base_score: 1.4658129 - user_interaction: {} - scope: {} - impact_score: 5.637377 - confidentiality_impact: {} - attack_vector: {} - exploitability_score: 5.962134 - privileges_required: {} - details: - - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - package: "package" - cpe_uri: "cpe_uri" - max_affected_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - description: "description" - min_affected_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - package_type: "package_type" - is_obsolete: true - - fixed_location: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - package: "package" - cpe_uri: "cpe_uri" - max_affected_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - description: "description" - min_affected_version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" - severity_name: "severity_name" - package_type: "package_type" - is_obsolete: true - windows_details: - - cpe_uri: "cpe_uri" - fixing_kbs: - - name: "name" - url: "url" - - name: "name" - url: "url" - name: "name" - description: "description" - - cpe_uri: "cpe_uri" - fixing_kbs: - - name: "name" - url: "url" - - name: "name" - url: "url" - name: "name" - description: "description" - vulnerabilityVulnerabilityLocation: - type: "object" - properties: - cpe_uri: - type: "string" - description: "Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/)\n\ - format. Examples include distro or storage location for vulnerable jar." - package: - type: "string" - description: "Required. The package being described." - version: - description: "Required. The version of the package being described." - $ref: "#/definitions/packageVersion" - description: "The location of the vulnerability." - example: - package: "package" - cpe_uri: "cpe_uri" - version: - kind: {} - name: "name" - epoch: 6 - revision: "revision" diff --git a/0.1.0/api_grafeas_v1_beta1.go b/0.1.0/api_grafeas_v1_beta1.go deleted file mode 100644 index 1febcf6..0000000 --- a/0.1.0/api_grafeas_v1_beta1.go +++ /dev/null @@ -1,1435 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -import ( - "context" - "io/ioutil" - "net/http" - "net/url" - "strings" - "fmt" - "github.com/antihax/optional" -) - -// Linger please -var ( - _ context.Context -) - -type GrafeasV1Beta1ApiService service - -/* -GrafeasV1Beta1ApiService Creates new notes in batch. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param parent The name of the project in the form of `projects/[PROJECT_ID]`, under which the notes are to be created. - * @param body - -@return V1beta1BatchCreateNotesResponse -*/ -func (a *GrafeasV1Beta1ApiService) BatchCreateNotes(ctx context.Context, parent string, body V1beta1BatchCreateNotesRequest) (V1beta1BatchCreateNotesResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue V1beta1BatchCreateNotesResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1beta1/{parent=projects/*}/notes:batchCreate" - localVarPath = strings.Replace(localVarPath, "{"+"parent"+"}", fmt.Sprintf("%v", parent), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v V1beta1BatchCreateNotesResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -GrafeasV1Beta1ApiService Creates new occurrences in batch. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param parent The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrences are to be created. - * @param body - -@return V1beta1BatchCreateOccurrencesResponse -*/ -func (a *GrafeasV1Beta1ApiService) BatchCreateOccurrences(ctx context.Context, parent string, body V1beta1BatchCreateOccurrencesRequest) (V1beta1BatchCreateOccurrencesResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue V1beta1BatchCreateOccurrencesResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1beta1/{parent=projects/*}/occurrences:batchCreate" - localVarPath = strings.Replace(localVarPath, "{"+"parent"+"}", fmt.Sprintf("%v", parent), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v V1beta1BatchCreateOccurrencesResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -GrafeasV1Beta1ApiService Creates a new note. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param parent The name of the project in the form of `projects/[PROJECT_ID]`, under which the note is to be created. - * @param body The note to create. - -@return V1beta1Note -*/ -func (a *GrafeasV1Beta1ApiService) CreateNote(ctx context.Context, parent string, body V1beta1Note) (V1beta1Note, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue V1beta1Note - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1beta1/{parent=projects/*}/notes" - localVarPath = strings.Replace(localVarPath, "{"+"parent"+"}", fmt.Sprintf("%v", parent), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v V1beta1Note - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -GrafeasV1Beta1ApiService Creates a new occurrence. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param parent The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrence is to be created. - * @param body The occurrence to create. - -@return V1beta1Occurrence -*/ -func (a *GrafeasV1Beta1ApiService) CreateOccurrence(ctx context.Context, parent string, body V1beta1Occurrence) (V1beta1Occurrence, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue V1beta1Occurrence - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1beta1/{parent=projects/*}/occurrences" - localVarPath = strings.Replace(localVarPath, "{"+"parent"+"}", fmt.Sprintf("%v", parent), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v V1beta1Occurrence - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -GrafeasV1Beta1ApiService Deletes the specified note. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param name The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. - -@return interface{} -*/ -func (a *GrafeasV1Beta1ApiService) DeleteNote(ctx context.Context, name string) (interface{}, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Delete") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue interface{} - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1beta1/{name=projects/*/notes/*}" - localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -GrafeasV1Beta1ApiService Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param name The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. - -@return interface{} -*/ -func (a *GrafeasV1Beta1ApiService) DeleteOccurrence(ctx context.Context, name string) (interface{}, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Delete") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue interface{} - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1beta1/{name=projects/*/occurrences/*}" - localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v interface{} - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -GrafeasV1Beta1ApiService Gets the specified note. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param name The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. - -@return V1beta1Note -*/ -func (a *GrafeasV1Beta1ApiService) GetNote(ctx context.Context, name string) (V1beta1Note, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue V1beta1Note - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1beta1/{name=projects/*/notes/*}" - localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v V1beta1Note - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -GrafeasV1Beta1ApiService Gets the specified occurrence. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param name The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. - -@return V1beta1Occurrence -*/ -func (a *GrafeasV1Beta1ApiService) GetOccurrence(ctx context.Context, name string) (V1beta1Occurrence, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue V1beta1Occurrence - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1beta1/{name=projects/*/occurrences/*}" - localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v V1beta1Occurrence - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -GrafeasV1Beta1ApiService Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param name The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. - -@return V1beta1Note -*/ -func (a *GrafeasV1Beta1ApiService) GetOccurrenceNote(ctx context.Context, name string) (V1beta1Note, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue V1beta1Note - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1beta1/{name=projects/*/occurrences/*}/notes" - localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v V1beta1Note - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -GrafeasV1Beta1ApiService Gets a summary of the number and severity of occurrences. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param parent The name of the project to get a vulnerability summary for in the form of `projects/[PROJECT_ID]`. - * @param optional nil or *GetVulnerabilityOccurrencesSummaryOpts - Optional Parameters: - * @param "Filter" (optional.String) - The filter expression. - -@return V1beta1VulnerabilityOccurrencesSummary -*/ - -type GetVulnerabilityOccurrencesSummaryOpts struct { - Filter optional.String -} - -func (a *GrafeasV1Beta1ApiService) GetVulnerabilityOccurrencesSummary(ctx context.Context, parent string, localVarOptionals *GetVulnerabilityOccurrencesSummaryOpts) (V1beta1VulnerabilityOccurrencesSummary, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue V1beta1VulnerabilityOccurrencesSummary - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1beta1/{parent=projects/*}/occurrences:vulnerabilitySummary" - localVarPath = strings.Replace(localVarPath, "{"+"parent"+"}", fmt.Sprintf("%v", parent), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.Filter.IsSet() { - localVarQueryParams.Add("filter", parameterToString(localVarOptionals.Filter.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v V1beta1VulnerabilityOccurrencesSummary - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -GrafeasV1Beta1ApiService Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param name The name of the note to list occurrences for in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. - * @param optional nil or *ListNoteOccurrencesOpts - Optional Parameters: - * @param "Filter" (optional.String) - The filter expression. - * @param "PageSize" (optional.Int32) - Number of occurrences to return in the list. - * @param "PageToken" (optional.String) - Token to provide to skip to a particular spot in the list. - -@return V1beta1ListNoteOccurrencesResponse -*/ - -type ListNoteOccurrencesOpts struct { - Filter optional.String - PageSize optional.Int32 - PageToken optional.String -} - -func (a *GrafeasV1Beta1ApiService) ListNoteOccurrences(ctx context.Context, name string, localVarOptionals *ListNoteOccurrencesOpts) (V1beta1ListNoteOccurrencesResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue V1beta1ListNoteOccurrencesResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1beta1/{name=projects/*/notes/*}/occurrences" - localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.Filter.IsSet() { - localVarQueryParams.Add("filter", parameterToString(localVarOptionals.Filter.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.PageSize.IsSet() { - localVarQueryParams.Add("page_size", parameterToString(localVarOptionals.PageSize.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.PageToken.IsSet() { - localVarQueryParams.Add("page_token", parameterToString(localVarOptionals.PageToken.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v V1beta1ListNoteOccurrencesResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -GrafeasV1Beta1ApiService Lists notes for the specified project. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param parent The name of the project to list notes for in the form of `projects/[PROJECT_ID]`. - * @param optional nil or *ListNotesOpts - Optional Parameters: - * @param "Filter" (optional.String) - The filter expression. - * @param "PageSize" (optional.Int32) - Number of notes to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20. - * @param "PageToken" (optional.String) - Token to provide to skip to a particular spot in the list. - -@return V1beta1ListNotesResponse -*/ - -type ListNotesOpts struct { - Filter optional.String - PageSize optional.Int32 - PageToken optional.String -} - -func (a *GrafeasV1Beta1ApiService) ListNotes(ctx context.Context, parent string, localVarOptionals *ListNotesOpts) (V1beta1ListNotesResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue V1beta1ListNotesResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1beta1/{parent=projects/*}/notes" - localVarPath = strings.Replace(localVarPath, "{"+"parent"+"}", fmt.Sprintf("%v", parent), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.Filter.IsSet() { - localVarQueryParams.Add("filter", parameterToString(localVarOptionals.Filter.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.PageSize.IsSet() { - localVarQueryParams.Add("page_size", parameterToString(localVarOptionals.PageSize.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.PageToken.IsSet() { - localVarQueryParams.Add("page_token", parameterToString(localVarOptionals.PageToken.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v V1beta1ListNotesResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -GrafeasV1Beta1ApiService Lists occurrences for the specified project. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param parent The name of the project to list occurrences for in the form of `projects/[PROJECT_ID]`. - * @param optional nil or *ListOccurrencesOpts - Optional Parameters: - * @param "Filter" (optional.String) - The filter expression. - * @param "PageSize" (optional.Int32) - Number of occurrences to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20. - * @param "PageToken" (optional.String) - Token to provide to skip to a particular spot in the list. - -@return V1beta1ListOccurrencesResponse -*/ - -type ListOccurrencesOpts struct { - Filter optional.String - PageSize optional.Int32 - PageToken optional.String -} - -func (a *GrafeasV1Beta1ApiService) ListOccurrences(ctx context.Context, parent string, localVarOptionals *ListOccurrencesOpts) (V1beta1ListOccurrencesResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue V1beta1ListOccurrencesResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1beta1/{parent=projects/*}/occurrences" - localVarPath = strings.Replace(localVarPath, "{"+"parent"+"}", fmt.Sprintf("%v", parent), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.Filter.IsSet() { - localVarQueryParams.Add("filter", parameterToString(localVarOptionals.Filter.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.PageSize.IsSet() { - localVarQueryParams.Add("page_size", parameterToString(localVarOptionals.PageSize.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.PageToken.IsSet() { - localVarQueryParams.Add("page_token", parameterToString(localVarOptionals.PageToken.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v V1beta1ListOccurrencesResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -GrafeasV1Beta1ApiService Updates the specified note. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param name The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. - * @param body The updated note. - -@return V1beta1Note -*/ -func (a *GrafeasV1Beta1ApiService) UpdateNote(ctx context.Context, name string, body V1beta1Note) (V1beta1Note, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Patch") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue V1beta1Note - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1beta1/{name=projects/*/notes/*}" - localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v V1beta1Note - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -GrafeasV1Beta1ApiService Updates the specified occurrence. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param name The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. - * @param body The updated occurrence. - -@return V1beta1Occurrence -*/ -func (a *GrafeasV1Beta1ApiService) UpdateOccurrence(ctx context.Context, name string, body V1beta1Occurrence) (V1beta1Occurrence, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Patch") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue V1beta1Occurrence - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/v1beta1/{name=projects/*/occurrences/*}" - localVarPath = strings.Replace(localVarPath, "{"+"name"+"}", fmt.Sprintf("%v", name), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v V1beta1Occurrence - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} diff --git a/0.1.0/client.go b/0.1.0/client.go deleted file mode 100644 index 9039abf..0000000 --- a/0.1.0/client.go +++ /dev/null @@ -1,464 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -import ( - "bytes" - "context" - "encoding/json" - "encoding/xml" - "errors" - "fmt" - "io" - "mime/multipart" - "net/http" - "net/url" - "os" - "path/filepath" - "reflect" - "regexp" - "strconv" - "strings" - "time" - "unicode/utf8" - - "golang.org/x/oauth2" -) - -var ( - jsonCheck = regexp.MustCompile("(?i:[application|text]/json)") - xmlCheck = regexp.MustCompile("(?i:[application|text]/xml)") -) - -// APIClient manages communication with the proto/v1beta1/grafeas.proto API vversion not set -// In most cases there should be only one, shared, APIClient. -type APIClient struct { - cfg *Configuration - common service // Reuse a single struct instead of allocating one for each service on the heap. - - // API Services - - GrafeasV1Beta1Api *GrafeasV1Beta1ApiService -} - -type service struct { - client *APIClient -} - -// NewAPIClient creates a new API client. Requires a userAgent string describing your application. -// optionally a custom http.Client to allow for advanced features such as caching. -func NewAPIClient(cfg *Configuration) *APIClient { - if cfg.HTTPClient == nil { - cfg.HTTPClient = http.DefaultClient - } - - c := &APIClient{} - c.cfg = cfg - c.common.client = c - - // API Services - c.GrafeasV1Beta1Api = (*GrafeasV1Beta1ApiService)(&c.common) - - return c -} - -func atoi(in string) (int, error) { - return strconv.Atoi(in) -} - -// selectHeaderContentType select a content type from the available list. -func selectHeaderContentType(contentTypes []string) string { - if len(contentTypes) == 0 { - return "" - } - if contains(contentTypes, "application/json") { - return "application/json" - } - return contentTypes[0] // use the first content type specified in 'consumes' -} - -// selectHeaderAccept join all accept types and return -func selectHeaderAccept(accepts []string) string { - if len(accepts) == 0 { - return "" - } - - if contains(accepts, "application/json") { - return "application/json" - } - - return strings.Join(accepts, ",") -} - -// contains is a case insenstive match, finding needle in a haystack -func contains(haystack []string, needle string) bool { - for _, a := range haystack { - if strings.ToLower(a) == strings.ToLower(needle) { - return true - } - } - return false -} - -// Verify optional parameters are of the correct type. -func typeCheckParameter(obj interface{}, expected string, name string) error { - // Make sure there is an object. - if obj == nil { - return nil - } - - // Check the type is as expected. - if reflect.TypeOf(obj).String() != expected { - return fmt.Errorf("Expected %s to be of type %s but received %s.", name, expected, reflect.TypeOf(obj).String()) - } - return nil -} - -// parameterToString convert interface{} parameters to string, using a delimiter if format is provided. -func parameterToString(obj interface{}, collectionFormat string) string { - var delimiter string - - switch collectionFormat { - case "pipes": - delimiter = "|" - case "ssv": - delimiter = " " - case "tsv": - delimiter = "\t" - case "csv": - delimiter = "," - } - - if reflect.TypeOf(obj).Kind() == reflect.Slice { - return strings.Trim(strings.Replace(fmt.Sprint(obj), " ", delimiter, -1), "[]") - } - - return fmt.Sprintf("%v", obj) -} - -// callAPI do the request. -func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { - return c.cfg.HTTPClient.Do(request) -} - -// Change base path to allow switching to mocks -func (c *APIClient) ChangeBasePath(path string) { - c.cfg.BasePath = path -} - -// prepareRequest build the request -func (c *APIClient) prepareRequest( - ctx context.Context, - path string, method string, - postBody interface{}, - headerParams map[string]string, - queryParams url.Values, - formParams url.Values, - fileName string, - fileBytes []byte) (localVarRequest *http.Request, err error) { - - var body *bytes.Buffer - - // Detect postBody type and post. - if postBody != nil { - contentType := headerParams["Content-Type"] - if contentType == "" { - contentType = detectContentType(postBody) - headerParams["Content-Type"] = contentType - } - - body, err = setBody(postBody, contentType) - if err != nil { - return nil, err - } - } - - // add form parameters and file if available. - if len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") { - if body != nil { - return nil, errors.New("Cannot specify postBody and multipart form at the same time.") - } - body = &bytes.Buffer{} - w := multipart.NewWriter(body) - - for k, v := range formParams { - for _, iv := range v { - if strings.HasPrefix(k, "@") { // file - err = addFile(w, k[1:], iv) - if err != nil { - return nil, err - } - } else { // form value - w.WriteField(k, iv) - } - } - } - if len(fileBytes) > 0 && fileName != "" { - w.Boundary() - //_, fileNm := filepath.Split(fileName) - part, err := w.CreateFormFile("file", filepath.Base(fileName)) - if err != nil { - return nil, err - } - _, err = part.Write(fileBytes) - if err != nil { - return nil, err - } - // Set the Boundary in the Content-Type - headerParams["Content-Type"] = w.FormDataContentType() - } - - // Set Content-Length - headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) - w.Close() - } - - // Setup path and query parameters - url, err := url.Parse(path) - if err != nil { - return nil, err - } - - // Adding Query Param - query := url.Query() - for k, v := range queryParams { - for _, iv := range v { - query.Add(k, iv) - } - } - - // Encode the parameters. - url.RawQuery = query.Encode() - - // Generate a new request - if body != nil { - localVarRequest, err = http.NewRequest(method, url.String(), body) - } else { - localVarRequest, err = http.NewRequest(method, url.String(), nil) - } - if err != nil { - return nil, err - } - - // add header parameters, if any - if len(headerParams) > 0 { - headers := http.Header{} - for h, v := range headerParams { - headers.Set(h, v) - } - localVarRequest.Header = headers - } - - // Override request host, if applicable - if c.cfg.Host != "" { - localVarRequest.Host = c.cfg.Host - } - - // Add the user agent to the request. - localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) - - if ctx != nil { - // add context to the request - localVarRequest = localVarRequest.WithContext(ctx) - - // Walk through any authentication. - - // OAuth2 authentication - if tok, ok := ctx.Value(ContextOAuth2).(oauth2.TokenSource); ok { - // We were able to grab an oauth2 token from the context - var latestToken *oauth2.Token - if latestToken, err = tok.Token(); err != nil { - return nil, err - } - - latestToken.SetAuthHeader(localVarRequest) - } - - // Basic HTTP Authentication - if auth, ok := ctx.Value(ContextBasicAuth).(BasicAuth); ok { - localVarRequest.SetBasicAuth(auth.UserName, auth.Password) - } - - // AccessToken Authentication - if auth, ok := ctx.Value(ContextAccessToken).(string); ok { - localVarRequest.Header.Add("Authorization", "Bearer "+auth) - } - } - - for header, value := range c.cfg.DefaultHeader { - localVarRequest.Header.Add(header, value) - } - - return localVarRequest, nil -} - -func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { - if strings.Contains(contentType, "application/xml") { - if err = xml.Unmarshal(b, v); err != nil { - return err - } - return nil - } else if strings.Contains(contentType, "application/json") { - if err = json.Unmarshal(b, v); err != nil { - return err - } - return nil - } - return errors.New("undefined response type") -} - -// Add a file to the multipart request -func addFile(w *multipart.Writer, fieldName, path string) error { - file, err := os.Open(path) - if err != nil { - return err - } - defer file.Close() - - part, err := w.CreateFormFile(fieldName, filepath.Base(path)) - if err != nil { - return err - } - _, err = io.Copy(part, file) - - return err -} - -// Prevent trying to import "fmt" -func reportError(format string, a ...interface{}) error { - return fmt.Errorf(format, a...) -} - -// Set request body from an interface{} -func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { - if bodyBuf == nil { - bodyBuf = &bytes.Buffer{} - } - - if reader, ok := body.(io.Reader); ok { - _, err = bodyBuf.ReadFrom(reader) - } else if b, ok := body.([]byte); ok { - _, err = bodyBuf.Write(b) - } else if s, ok := body.(string); ok { - _, err = bodyBuf.WriteString(s) - } else if s, ok := body.(*string); ok { - _, err = bodyBuf.WriteString(*s) - } else if jsonCheck.MatchString(contentType) { - err = json.NewEncoder(bodyBuf).Encode(body) - } else if xmlCheck.MatchString(contentType) { - xml.NewEncoder(bodyBuf).Encode(body) - } - - if err != nil { - return nil, err - } - - if bodyBuf.Len() == 0 { - err = fmt.Errorf("Invalid body type %s\n", contentType) - return nil, err - } - return bodyBuf, nil -} - -// detectContentType method is used to figure out `Request.Body` content type for request header -func detectContentType(body interface{}) string { - contentType := "text/plain; charset=utf-8" - kind := reflect.TypeOf(body).Kind() - - switch kind { - case reflect.Struct, reflect.Map, reflect.Ptr: - contentType = "application/json; charset=utf-8" - case reflect.String: - contentType = "text/plain; charset=utf-8" - default: - if b, ok := body.([]byte); ok { - contentType = http.DetectContentType(b) - } else if kind == reflect.Slice { - contentType = "application/json; charset=utf-8" - } - } - - return contentType -} - -// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go -type cacheControl map[string]string - -func parseCacheControl(headers http.Header) cacheControl { - cc := cacheControl{} - ccHeader := headers.Get("Cache-Control") - for _, part := range strings.Split(ccHeader, ",") { - part = strings.Trim(part, " ") - if part == "" { - continue - } - if strings.ContainsRune(part, '=') { - keyval := strings.Split(part, "=") - cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") - } else { - cc[part] = "" - } - } - return cc -} - -// CacheExpires helper function to determine remaining time before repeating a request. -func CacheExpires(r *http.Response) time.Time { - // Figure out when the cache expires. - var expires time.Time - now, err := time.Parse(time.RFC1123, r.Header.Get("date")) - if err != nil { - return time.Now() - } - respCacheControl := parseCacheControl(r.Header) - - if maxAge, ok := respCacheControl["max-age"]; ok { - lifetime, err := time.ParseDuration(maxAge + "s") - if err != nil { - expires = now - } - expires = now.Add(lifetime) - } else { - expiresHeader := r.Header.Get("Expires") - if expiresHeader != "" { - expires, err = time.Parse(time.RFC1123, expiresHeader) - if err != nil { - expires = now - } - } - } - return expires -} - -func strlen(s string) int { - return utf8.RuneCountInString(s) -} - -// GenericSwaggerError Provides access to the body, error and model on returned errors. -type GenericSwaggerError struct { - body []byte - error string - model interface{} -} - -// Error returns non-empty string if there was an error. -func (e GenericSwaggerError) Error() string { - return e.error -} - -// Body returns the raw bytes of the response -func (e GenericSwaggerError) Body() []byte { - return e.body -} - -// Model returns the unpacked model of the error -func (e GenericSwaggerError) Model() interface{} { - return e.model -} \ No newline at end of file diff --git a/0.1.0/configuration.go b/0.1.0/configuration.go deleted file mode 100644 index b529438..0000000 --- a/0.1.0/configuration.go +++ /dev/null @@ -1,72 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -import ( - "net/http" -) - -// contextKeys are used to identify the type of value in the context. -// Since these are string, it is possible to get a short description of the -// context key for logging and debugging using key.String(). - -type contextKey string - -func (c contextKey) String() string { - return "auth " + string(c) -} - -var ( - // ContextOAuth2 takes a oauth2.TokenSource as authentication for the request. - ContextOAuth2 = contextKey("token") - - // ContextBasicAuth takes BasicAuth as authentication for the request. - ContextBasicAuth = contextKey("basic") - - // ContextAccessToken takes a string oauth2 access token as authentication for the request. - ContextAccessToken = contextKey("accesstoken") - - // ContextAPIKey takes an APIKey as authentication for the request - ContextAPIKey = contextKey("apikey") -) - -// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth -type BasicAuth struct { - UserName string `json:"userName,omitempty"` - Password string `json:"password,omitempty"` -} - -// APIKey provides API key based authentication to a request passed via context using ContextAPIKey -type APIKey struct { - Key string - Prefix string -} - -type Configuration struct { - BasePath string `json:"basePath,omitempty"` - Host string `json:"host,omitempty"` - Scheme string `json:"scheme,omitempty"` - DefaultHeader map[string]string `json:"defaultHeader,omitempty"` - UserAgent string `json:"userAgent,omitempty"` - HTTPClient *http.Client -} - -func NewConfiguration() *Configuration { - cfg := &Configuration{ - BasePath: "http://localhost", - DefaultHeader: make(map[string]string), - UserAgent: "Swagger-Codegen/0.1.0/go", - } - return cfg -} - -func (c *Configuration) AddDefaultHeader(key string, value string) { - c.DefaultHeader[key] = value -} diff --git a/0.1.0/docs/AttestationGenericSignedAttestation.md b/0.1.0/docs/AttestationGenericSignedAttestation.md deleted file mode 100644 index e359d81..0000000 --- a/0.1.0/docs/AttestationGenericSignedAttestation.md +++ /dev/null @@ -1,12 +0,0 @@ -# AttestationGenericSignedAttestation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ContentType** | [***AttestationGenericSignedAttestationContentType**](attestationGenericSignedAttestationContentType.md) | Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema). | [optional] [default to null] -**SerializedPayload** | **string** | The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`. | [optional] [default to null] -**Signatures** | [**[]V1beta1Signature**](v1beta1Signature.md) | One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.1.0/docs/AttestationPgpSignedAttestation.md b/0.1.0/docs/AttestationPgpSignedAttestation.md deleted file mode 100644 index 6d270e5..0000000 --- a/0.1.0/docs/AttestationPgpSignedAttestation.md +++ /dev/null @@ -1,12 +0,0 @@ -# AttestationPgpSignedAttestation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Signature** | **string** | Required. The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload. | [optional] [default to null] -**ContentType** | [***AttestationPgpSignedAttestationContentType**](attestationPgpSignedAttestationContentType.md) | Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema). | [optional] [default to null] -**PgpKeyId** | **string** | The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexidecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge \"LONG\", \"SHORT\", or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \\ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...<SNIP>... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.1.0/docs/CvsSv3Scope.md b/0.1.0/docs/CvsSv3Scope.md deleted file mode 100644 index df2990d..0000000 --- a/0.1.0/docs/CvsSv3Scope.md +++ /dev/null @@ -1,9 +0,0 @@ -# CvsSv3Scope - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.1.0/docs/CvsSv3UserInteraction.md b/0.1.0/docs/CvsSv3UserInteraction.md deleted file mode 100644 index a10c781..0000000 --- a/0.1.0/docs/CvsSv3UserInteraction.md +++ /dev/null @@ -1,9 +0,0 @@ -# CvsSv3UserInteraction - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.1.0/docs/GrafeasV1Beta1Api.md b/0.1.0/docs/GrafeasV1Beta1Api.md deleted file mode 100644 index b9bc0bb..0000000 --- a/0.1.0/docs/GrafeasV1Beta1Api.md +++ /dev/null @@ -1,461 +0,0 @@ -# \GrafeasV1Beta1Api - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**BatchCreateNotes**](GrafeasV1Beta1Api.md#BatchCreateNotes) | **Post** /v1beta1/{parent=projects/*}/notes:batchCreate | Creates new notes in batch. -[**BatchCreateOccurrences**](GrafeasV1Beta1Api.md#BatchCreateOccurrences) | **Post** /v1beta1/{parent=projects/*}/occurrences:batchCreate | Creates new occurrences in batch. -[**CreateNote**](GrafeasV1Beta1Api.md#CreateNote) | **Post** /v1beta1/{parent=projects/*}/notes | Creates a new note. -[**CreateOccurrence**](GrafeasV1Beta1Api.md#CreateOccurrence) | **Post** /v1beta1/{parent=projects/*}/occurrences | Creates a new occurrence. -[**DeleteNote**](GrafeasV1Beta1Api.md#DeleteNote) | **Delete** /v1beta1/{name=projects/*/notes/*} | Deletes the specified note. -[**DeleteOccurrence**](GrafeasV1Beta1Api.md#DeleteOccurrence) | **Delete** /v1beta1/{name=projects/*/occurrences/*} | Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource. -[**GetNote**](GrafeasV1Beta1Api.md#GetNote) | **Get** /v1beta1/{name=projects/*/notes/*} | Gets the specified note. -[**GetOccurrence**](GrafeasV1Beta1Api.md#GetOccurrence) | **Get** /v1beta1/{name=projects/*/occurrences/*} | Gets the specified occurrence. -[**GetOccurrenceNote**](GrafeasV1Beta1Api.md#GetOccurrenceNote) | **Get** /v1beta1/{name=projects/*/occurrences/*}/notes | Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project. -[**GetVulnerabilityOccurrencesSummary**](GrafeasV1Beta1Api.md#GetVulnerabilityOccurrencesSummary) | **Get** /v1beta1/{parent=projects/*}/occurrences:vulnerabilitySummary | Gets a summary of the number and severity of occurrences. -[**ListNoteOccurrences**](GrafeasV1Beta1Api.md#ListNoteOccurrences) | **Get** /v1beta1/{name=projects/*/notes/*}/occurrences | Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note. -[**ListNotes**](GrafeasV1Beta1Api.md#ListNotes) | **Get** /v1beta1/{parent=projects/*}/notes | Lists notes for the specified project. -[**ListOccurrences**](GrafeasV1Beta1Api.md#ListOccurrences) | **Get** /v1beta1/{parent=projects/*}/occurrences | Lists occurrences for the specified project. -[**UpdateNote**](GrafeasV1Beta1Api.md#UpdateNote) | **Patch** /v1beta1/{name=projects/*/notes/*} | Updates the specified note. -[**UpdateOccurrence**](GrafeasV1Beta1Api.md#UpdateOccurrence) | **Patch** /v1beta1/{name=projects/*/occurrences/*} | Updates the specified occurrence. - - -# **BatchCreateNotes** -> V1beta1BatchCreateNotesResponse BatchCreateNotes(ctx, parent, body) -Creates new notes in batch. - -### Required Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **parent** | **string**| The name of the project in the form of `projects/[PROJECT_ID]`, under which the notes are to be created. | - **body** | [**V1beta1BatchCreateNotesRequest**](V1beta1BatchCreateNotesRequest.md)| | - -### Return type - -[**V1beta1BatchCreateNotesResponse**](v1beta1BatchCreateNotesResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **BatchCreateOccurrences** -> V1beta1BatchCreateOccurrencesResponse BatchCreateOccurrences(ctx, parent, body) -Creates new occurrences in batch. - -### Required Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **parent** | **string**| The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrences are to be created. | - **body** | [**V1beta1BatchCreateOccurrencesRequest**](V1beta1BatchCreateOccurrencesRequest.md)| | - -### Return type - -[**V1beta1BatchCreateOccurrencesResponse**](v1beta1BatchCreateOccurrencesResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **CreateNote** -> V1beta1Note CreateNote(ctx, parent, body) -Creates a new note. - -### Required Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **parent** | **string**| The name of the project in the form of `projects/[PROJECT_ID]`, under which the note is to be created. | - **body** | [**V1beta1Note**](V1beta1Note.md)| The note to create. | - -### Return type - -[**V1beta1Note**](v1beta1Note.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **CreateOccurrence** -> V1beta1Occurrence CreateOccurrence(ctx, parent, body) -Creates a new occurrence. - -### Required Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **parent** | **string**| The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrence is to be created. | - **body** | [**V1beta1Occurrence**](V1beta1Occurrence.md)| The occurrence to create. | - -### Return type - -[**V1beta1Occurrence**](v1beta1Occurrence.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **DeleteNote** -> interface{} DeleteNote(ctx, name) -Deletes the specified note. - -### Required Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **name** | **string**| The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. | - -### Return type - -[**interface{}**](interface{}.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **DeleteOccurrence** -> interface{} DeleteOccurrence(ctx, name) -Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource. - -### Required Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **name** | **string**| The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. | - -### Return type - -[**interface{}**](interface{}.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **GetNote** -> V1beta1Note GetNote(ctx, name) -Gets the specified note. - -### Required Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **name** | **string**| The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. | - -### Return type - -[**V1beta1Note**](v1beta1Note.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **GetOccurrence** -> V1beta1Occurrence GetOccurrence(ctx, name) -Gets the specified occurrence. - -### Required Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **name** | **string**| The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. | - -### Return type - -[**V1beta1Occurrence**](v1beta1Occurrence.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **GetOccurrenceNote** -> V1beta1Note GetOccurrenceNote(ctx, name) -Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project. - -### Required Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **name** | **string**| The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. | - -### Return type - -[**V1beta1Note**](v1beta1Note.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **GetVulnerabilityOccurrencesSummary** -> V1beta1VulnerabilityOccurrencesSummary GetVulnerabilityOccurrencesSummary(ctx, parent, optional) -Gets a summary of the number and severity of occurrences. - -### Required Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **parent** | **string**| The name of the project to get a vulnerability summary for in the form of `projects/[PROJECT_ID]`. | - **optional** | ***GetVulnerabilityOccurrencesSummaryOpts** | optional parameters | nil if no parameters - -### Optional Parameters -Optional parameters are passed through a pointer to a GetVulnerabilityOccurrencesSummaryOpts struct - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **filter** | **optional.String**| The filter expression. | - -### Return type - -[**V1beta1VulnerabilityOccurrencesSummary**](v1beta1VulnerabilityOccurrencesSummary.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **ListNoteOccurrences** -> V1beta1ListNoteOccurrencesResponse ListNoteOccurrences(ctx, name, optional) -Lists occurrences referencing the specified note. Provider projects can use this method to get all occurrences across consumer projects referencing the specified note. - -### Required Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **name** | **string**| The name of the note to list occurrences for in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. | - **optional** | ***ListNoteOccurrencesOpts** | optional parameters | nil if no parameters - -### Optional Parameters -Optional parameters are passed through a pointer to a ListNoteOccurrencesOpts struct - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **filter** | **optional.String**| The filter expression. | - **pageSize** | **optional.Int32**| Number of occurrences to return in the list. | - **pageToken** | **optional.String**| Token to provide to skip to a particular spot in the list. | - -### Return type - -[**V1beta1ListNoteOccurrencesResponse**](v1beta1ListNoteOccurrencesResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **ListNotes** -> V1beta1ListNotesResponse ListNotes(ctx, parent, optional) -Lists notes for the specified project. - -### Required Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **parent** | **string**| The name of the project to list notes for in the form of `projects/[PROJECT_ID]`. | - **optional** | ***ListNotesOpts** | optional parameters | nil if no parameters - -### Optional Parameters -Optional parameters are passed through a pointer to a ListNotesOpts struct - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **filter** | **optional.String**| The filter expression. | - **pageSize** | **optional.Int32**| Number of notes to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20. | - **pageToken** | **optional.String**| Token to provide to skip to a particular spot in the list. | - -### Return type - -[**V1beta1ListNotesResponse**](v1beta1ListNotesResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **ListOccurrences** -> V1beta1ListOccurrencesResponse ListOccurrences(ctx, parent, optional) -Lists occurrences for the specified project. - -### Required Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **parent** | **string**| The name of the project to list occurrences for in the form of `projects/[PROJECT_ID]`. | - **optional** | ***ListOccurrencesOpts** | optional parameters | nil if no parameters - -### Optional Parameters -Optional parameters are passed through a pointer to a ListOccurrencesOpts struct - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **filter** | **optional.String**| The filter expression. | - **pageSize** | **optional.Int32**| Number of occurrences to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20. | - **pageToken** | **optional.String**| Token to provide to skip to a particular spot in the list. | - -### Return type - -[**V1beta1ListOccurrencesResponse**](v1beta1ListOccurrencesResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **UpdateNote** -> V1beta1Note UpdateNote(ctx, name, body) -Updates the specified note. - -### Required Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **name** | **string**| The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. | - **body** | [**V1beta1Note**](V1beta1Note.md)| The updated note. | - -### Return type - -[**V1beta1Note**](v1beta1Note.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **UpdateOccurrence** -> V1beta1Occurrence UpdateOccurrence(ctx, name, body) -Updates the specified occurrence. - -### Required Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **name** | **string**| The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. | - **body** | [**V1beta1Occurrence**](V1beta1Occurrence.md)| The updated occurrence. | - -### Return type - -[**V1beta1Occurrence**](v1beta1Occurrence.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - diff --git a/0.1.0/docs/PackageDistribution.md b/0.1.0/docs/PackageDistribution.md deleted file mode 100644 index c15a9fc..0000000 --- a/0.1.0/docs/PackageDistribution.md +++ /dev/null @@ -1,15 +0,0 @@ -# PackageDistribution - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CpeUri** | **string** | Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. | [optional] [default to null] -**Architecture** | [***PackageArchitecture**](packageArchitecture.md) | The CPU architecture for which packages in this distribution channel were built. | [optional] [default to null] -**LatestVersion** | [***PackageVersion**](packageVersion.md) | The latest available version of this package in this distribution channel. | [optional] [default to null] -**Maintainer** | **string** | A freeform string denoting the maintainer of this package. | [optional] [default to null] -**Url** | **string** | The distribution channel-specific homepage for this package. | [optional] [default to null] -**Description** | **string** | The distribution channel-specific description of this package. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.1.0/docs/PackageInstallation.md b/0.1.0/docs/PackageInstallation.md deleted file mode 100644 index 0589f78..0000000 --- a/0.1.0/docs/PackageInstallation.md +++ /dev/null @@ -1,11 +0,0 @@ -# PackageInstallation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | Output only. The name of the installed package. | [optional] [default to null] -**Location** | [**[]V1beta1packageLocation**](v1beta1packageLocation.md) | Required. All of the places within the filesystem versions of this package have been found. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.1.0/docs/PackagePackage.md b/0.1.0/docs/PackagePackage.md deleted file mode 100644 index c250883..0000000 --- a/0.1.0/docs/PackagePackage.md +++ /dev/null @@ -1,11 +0,0 @@ -# PackagePackage - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | Required. Immutable. The name of the package. | [optional] [default to null] -**Distribution** | [**[]PackageDistribution**](packageDistribution.md) | The various channels by which a package is distributed. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.1.0/docs/PackageVersion.md b/0.1.0/docs/PackageVersion.md deleted file mode 100644 index 457477c..0000000 --- a/0.1.0/docs/PackageVersion.md +++ /dev/null @@ -1,13 +0,0 @@ -# PackageVersion - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Epoch** | **int32** | Used to correct mistakes in the version numbering scheme. | [optional] [default to null] -**Name** | **string** | Required only when version kind is NORMAL. The main part of the version name. | [optional] [default to null] -**Revision** | **string** | The iteration of the package build from the above version. | [optional] [default to null] -**Kind** | [***VersionVersionKind**](VersionVersionKind.md) | Required. Distinguishes between sentinel MIN/MAX versions and normal versions. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.1.0/docs/ProtobufAny.md b/0.1.0/docs/ProtobufAny.md deleted file mode 100644 index b4b1a82..0000000 --- a/0.1.0/docs/ProtobufAny.md +++ /dev/null @@ -1,11 +0,0 @@ -# ProtobufAny - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**TypeUrl** | **string** | A URL/resource name whose content describes the type of the serialized protocol buffer message. For URLs which use the scheme `http`, `https`, or no scheme, the following restrictions and interpretations apply: * If no scheme is provided, `https` is assumed. * The last segment of the URL's path must represent the fully qualified name of the type (as in `path/google.protobuf.Duration`). The name should be in a canonical form (e.g., leading \".\" is not accepted). * An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error. * Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.) Schemes other than `http`, `https` (or the empty scheme) might be used with implementation specific semantics. | [optional] [default to null] -**Value** | **string** | Must be a valid serialized protocol buffer of the above specified type. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.1.0/docs/ProtobufFieldMask.md b/0.1.0/docs/ProtobufFieldMask.md deleted file mode 100644 index abf911d..0000000 --- a/0.1.0/docs/ProtobufFieldMask.md +++ /dev/null @@ -1,10 +0,0 @@ -# ProtobufFieldMask - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Paths** | **[]string** | The set of field mask paths. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.1.0/docs/ProvenanceArtifact.md b/0.1.0/docs/ProvenanceArtifact.md deleted file mode 100644 index e54463d..0000000 --- a/0.1.0/docs/ProvenanceArtifact.md +++ /dev/null @@ -1,12 +0,0 @@ -# ProvenanceArtifact - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Checksum** | **string** | Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container. | [optional] [default to null] -**Id** | **string** | Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`. | [optional] [default to null] -**Names** | **[]string** | Related artifact names. 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`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.1.0/docs/ProvenanceBuildProvenance.md b/0.1.0/docs/ProvenanceBuildProvenance.md deleted file mode 100644 index 8a745a9..0000000 --- a/0.1.0/docs/ProvenanceBuildProvenance.md +++ /dev/null @@ -1,22 +0,0 @@ -# ProvenanceBuildProvenance - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **string** | Required. Unique identifier of the build. | [optional] [default to null] -**ProjectId** | **string** | ID of the project. | [optional] [default to null] -**Commands** | [**[]ProvenanceCommand**](provenanceCommand.md) | Commands requested by the build. | [optional] [default to null] -**BuiltArtifacts** | [**[]ProvenanceArtifact**](provenanceArtifact.md) | Output of the build. | [optional] [default to null] -**CreateTime** | [**time.Time**](time.Time.md) | Time at which the build was created. | [optional] [default to null] -**StartTime** | [**time.Time**](time.Time.md) | Time at which execution of the build was started. | [optional] [default to null] -**EndTime** | [**time.Time**](time.Time.md) | Time at which execution of the build was finished. | [optional] [default to null] -**Creator** | **string** | E-mail address of the user who initiated this build. Note that this was the user's e-mail address at the time the build was initiated; this address may not represent the same end-user for all time. | [optional] [default to null] -**LogsUri** | **string** | URI where any logs for this provenance were written. | [optional] [default to null] -**SourceProvenance** | [***ProvenanceSource**](provenanceSource.md) | Details of the Source input to the build. | [optional] [default to null] -**TriggerId** | **string** | Trigger identifier if the build was triggered automatically; empty if not. | [optional] [default to null] -**BuildOptions** | **map[string]string** | Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details. | [optional] [default to null] -**BuilderVersion** | **string** | Version string of the builder at the time this build was executed. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.1.0/docs/V1beta1BatchCreateNotesRequest.md b/0.1.0/docs/V1beta1BatchCreateNotesRequest.md deleted file mode 100644 index e336062..0000000 --- a/0.1.0/docs/V1beta1BatchCreateNotesRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1beta1BatchCreateNotesRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Parent** | **string** | The name of the project in the form of `projects/[PROJECT_ID]`, under which the notes are to be created. | [optional] [default to null] -**Notes** | [**map[string]V1beta1Note**](v1beta1Note.md) | The notes to create. Max allowed length is 1000. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.1.0/docs/V1beta1BatchCreateOccurrencesRequest.md b/0.1.0/docs/V1beta1BatchCreateOccurrencesRequest.md deleted file mode 100644 index e772586..0000000 --- a/0.1.0/docs/V1beta1BatchCreateOccurrencesRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1beta1BatchCreateOccurrencesRequest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Parent** | **string** | The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrences are to be created. | [optional] [default to null] -**Occurrences** | [**[]V1beta1Occurrence**](v1beta1Occurrence.md) | The occurrences to create. Max allowed length is 1000. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.1.0/docs/V1beta1Note.md b/0.1.0/docs/V1beta1Note.md deleted file mode 100644 index 8cc5846..0000000 --- a/0.1.0/docs/V1beta1Note.md +++ /dev/null @@ -1,25 +0,0 @@ -# V1beta1Note - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. | [optional] [default to null] -**ShortDescription** | **string** | A one sentence description of this note. | [optional] [default to null] -**LongDescription** | **string** | A detailed description of this note. | [optional] [default to null] -**Kind** | [***V1beta1NoteKind**](v1beta1NoteKind.md) | Output only. The type of analysis. This field can be used as a filter in list requests. | [optional] [default to null] -**RelatedUrl** | [**[]V1beta1RelatedUrl**](v1beta1RelatedUrl.md) | URLs associated with this note. | [optional] [default to null] -**ExpirationTime** | [**time.Time**](time.Time.md) | Time of expiration for this note. Empty if note does not expire. | [optional] [default to null] -**CreateTime** | [**time.Time**](time.Time.md) | Output only. The time this note was created. This field can be used as a filter in list requests. | [optional] [default to null] -**UpdateTime** | [**time.Time**](time.Time.md) | Output only. The time this note was last updated. This field can be used as a filter in list requests. | [optional] [default to null] -**RelatedNoteNames** | **[]string** | Other notes related to this note. | [optional] [default to null] -**Vulnerability** | [***VulnerabilityVulnerability**](vulnerabilityVulnerability.md) | A note describing a package vulnerability. | [optional] [default to null] -**Build** | [***BuildBuild**](buildBuild.md) | A note describing build provenance for a verifiable build. | [optional] [default to null] -**BaseImage** | [***ImageBasis**](imageBasis.md) | A note describing a base image. | [optional] [default to null] -**Package_** | [***PackagePackage**](packagePackage.md) | A note describing a package hosted by various package managers. | [optional] [default to null] -**Deployable** | [***DeploymentDeployable**](deploymentDeployable.md) | A note describing something that can be deployed. | [optional] [default to null] -**Discovery** | [***DiscoveryDiscovery**](discoveryDiscovery.md) | A note describing the initial analysis of a resource. | [optional] [default to null] -**AttestationAuthority** | [***AttestationAuthority**](attestationAuthority.md) | A note describing an attestation role. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.1.0/docs/V1beta1Occurrence.md b/0.1.0/docs/V1beta1Occurrence.md deleted file mode 100644 index 34026ad..0000000 --- a/0.1.0/docs/V1beta1Occurrence.md +++ /dev/null @@ -1,23 +0,0 @@ -# V1beta1Occurrence - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. | [optional] [default to null] -**Resource** | [***V1beta1Resource**](v1beta1Resource.md) | Required. Immutable. The resource for which the occurrence applies. | [optional] [default to null] -**NoteName** | **string** | 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. | [optional] [default to null] -**Kind** | [***V1beta1NoteKind**](v1beta1NoteKind.md) | Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. | [optional] [default to null] -**Remediation** | **string** | A description of actions that can be taken to remedy the note. | [optional] [default to null] -**CreateTime** | [**time.Time**](time.Time.md) | Output only. The time this occurrence was created. | [optional] [default to null] -**UpdateTime** | [**time.Time**](time.Time.md) | Output only. The time this occurrence was last updated. | [optional] [default to null] -**Vulnerability** | [***V1beta1vulnerabilityDetails**](v1beta1vulnerabilityDetails.md) | Describes a security vulnerability. | [optional] [default to null] -**Build** | [***V1beta1buildDetails**](v1beta1buildDetails.md) | Describes a verifiable build. | [optional] [default to null] -**DerivedImage** | [***V1beta1imageDetails**](v1beta1imageDetails.md) | Describes how this resource derives from the basis in the associated note. | [optional] [default to null] -**Installation** | [***V1beta1packageDetails**](v1beta1packageDetails.md) | Describes the installation of a package on the linked resource. | [optional] [default to null] -**Deployment** | [***V1beta1deploymentDetails**](v1beta1deploymentDetails.md) | Describes the deployment of an artifact on a runtime. | [optional] [default to null] -**Discovered** | [***V1beta1discoveryDetails**](v1beta1discoveryDetails.md) | Describes when a resource was discovered. | [optional] [default to null] -**Attestation** | [***V1beta1attestationDetails**](v1beta1attestationDetails.md) | Describes an attestation of an artifact. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.1.0/docs/V1beta1Signature.md b/0.1.0/docs/V1beta1Signature.md deleted file mode 100644 index 25accde..0000000 --- a/0.1.0/docs/V1beta1Signature.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1beta1Signature - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Signature** | **string** | The content of the signature, an opaque bytestring. The payload that this signature verifies MUST be unambiguously provided with the Signature during verification. A wrapper message might provide the payload explicitly. Alternatively, a message might have a canonical serialization that can always be unambiguously computed to derive the payload. | [optional] [default to null] -**PublicKeyId** | **string** | The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` MUST be an RFC3986 conformant URI. * When possible, the `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: OpenPGP V4 public key fingerprint: * \"openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA\" See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more details on this scheme. RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER serialization): * \"ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU\" * \"nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5\" | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.1.0/docs/V1beta1vulnerabilityDetails.md b/0.1.0/docs/V1beta1vulnerabilityDetails.md deleted file mode 100644 index 10aeb25..0000000 --- a/0.1.0/docs/V1beta1vulnerabilityDetails.md +++ /dev/null @@ -1,17 +0,0 @@ -# V1beta1vulnerabilityDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type_** | **string** | | [optional] [default to null] -**Severity** | [***VulnerabilitySeverity**](vulnerabilitySeverity.md) | Output only. The note provider assigned Severity of the vulnerability. | [optional] [default to null] -**CvssScore** | **float32** | Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity. | [optional] [default to null] -**PackageIssue** | [**[]VulnerabilityPackageIssue**](vulnerabilityPackageIssue.md) | Required. The set of affected locations and their fixes (if available) within the associated resource. | [optional] [default to null] -**ShortDescription** | **string** | Output only. A one sentence description of this vulnerability. | [optional] [default to null] -**LongDescription** | **string** | Output only. A detailed description of this vulnerability. | [optional] [default to null] -**RelatedUrls** | [**[]V1beta1RelatedUrl**](v1beta1RelatedUrl.md) | Output only. URLs related to this vulnerability. | [optional] [default to null] -**EffectiveSeverity** | [***VulnerabilitySeverity**](vulnerabilitySeverity.md) | The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.1.0/docs/VulnerabilityCvsSv3.md b/0.1.0/docs/VulnerabilityCvsSv3.md deleted file mode 100644 index eaf3297..0000000 --- a/0.1.0/docs/VulnerabilityCvsSv3.md +++ /dev/null @@ -1,20 +0,0 @@ -# VulnerabilityCvsSv3 - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**BaseScore** | **float32** | The base score is a function of the base metric scores. | [optional] [default to null] -**ExploitabilityScore** | **float32** | | [optional] [default to null] -**ImpactScore** | **float32** | | [optional] [default to null] -**AttackVector** | [***CvsSv3AttackVector**](CVSSv3AttackVector.md) | Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. | [optional] [default to null] -**AttackComplexity** | [***CvsSv3AttackComplexity**](CVSSv3AttackComplexity.md) | | [optional] [default to null] -**PrivilegesRequired** | [***CvsSv3PrivilegesRequired**](CVSSv3PrivilegesRequired.md) | | [optional] [default to null] -**UserInteraction** | [***CvsSv3UserInteraction**](CVSSv3UserInteraction.md) | | [optional] [default to null] -**Scope** | [***CvsSv3Scope**](CVSSv3Scope.md) | | [optional] [default to null] -**ConfidentialityImpact** | [***CvsSv3Impact**](CVSSv3Impact.md) | | [optional] [default to null] -**IntegrityImpact** | [***CvsSv3Impact**](CVSSv3Impact.md) | | [optional] [default to null] -**AvailabilityImpact** | [***CvsSv3Impact**](CVSSv3Impact.md) | | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.1.0/docs/VulnerabilityDetail.md b/0.1.0/docs/VulnerabilityDetail.md deleted file mode 100644 index 5c485b4..0000000 --- a/0.1.0/docs/VulnerabilityDetail.md +++ /dev/null @@ -1,18 +0,0 @@ -# VulnerabilityDetail - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CpeUri** | **string** | Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar. | [optional] [default to null] -**Package_** | **string** | Required. The name of the package where the vulnerability was found. | [optional] [default to null] -**MinAffectedVersion** | [***PackageVersion**](packageVersion.md) | The min version of the package in which the vulnerability exists. | [optional] [default to null] -**MaxAffectedVersion** | [***PackageVersion**](packageVersion.md) | Deprecated, do not use. Use fixed_location instead. The max version of the package in which the vulnerability exists. | [optional] [default to null] -**SeverityName** | **string** | The severity (eg: distro assigned severity) for this vulnerability. | [optional] [default to null] -**Description** | **string** | A vendor-specific description of this note. | [optional] [default to null] -**FixedLocation** | [***VulnerabilityVulnerabilityLocation**](vulnerabilityVulnerabilityLocation.md) | The fix for this specific package version. | [optional] [default to null] -**PackageType** | **string** | The type of package; whether native or non native(ruby gems, node.js packages etc). | [optional] [default to null] -**IsObsolete** | **bool** | Whether this detail is obsolete. Occurrences are expected not to point to obsolete details. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.1.0/docs/VulnerabilityPackageIssue.md b/0.1.0/docs/VulnerabilityPackageIssue.md deleted file mode 100644 index c531bc0..0000000 --- a/0.1.0/docs/VulnerabilityPackageIssue.md +++ /dev/null @@ -1,12 +0,0 @@ -# VulnerabilityPackageIssue - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AffectedLocation** | [***VulnerabilityVulnerabilityLocation**](vulnerabilityVulnerabilityLocation.md) | Required. The location of the vulnerability. | [optional] [default to null] -**FixedLocation** | [***VulnerabilityVulnerabilityLocation**](vulnerabilityVulnerabilityLocation.md) | The location of the available fix for vulnerability. | [optional] [default to null] -**SeverityName** | **string** | Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.1.0/docs/VulnerabilityVulnerability.md b/0.1.0/docs/VulnerabilityVulnerability.md deleted file mode 100644 index a2eb340..0000000 --- a/0.1.0/docs/VulnerabilityVulnerability.md +++ /dev/null @@ -1,14 +0,0 @@ -# VulnerabilityVulnerability - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CvssScore** | **float32** | The CVSS score for this vulnerability. | [optional] [default to null] -**Severity** | [***VulnerabilitySeverity**](vulnerabilitySeverity.md) | Note provider assigned impact of the vulnerability. | [optional] [default to null] -**Details** | [**[]VulnerabilityDetail**](VulnerabilityDetail.md) | All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in. | [optional] [default to null] -**CvssV3** | [***VulnerabilityCvsSv3**](vulnerabilityCVSSv3.md) | The full description of the CVSSv3. | [optional] [default to null] -**WindowsDetails** | [**[]VulnerabilityWindowsDetail**](VulnerabilityWindowsDetail.md) | Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.1.0/model_alias_context_kind.go b/0.1.0/model_alias_context_kind.go deleted file mode 100644 index ae966f1..0000000 --- a/0.1.0/model_alias_context_kind.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas -// AliasContextKind : The type of an alias. - KIND_UNSPECIFIED: Unknown. - FIXED: Git tag. - MOVABLE: Git branch. - OTHER: Used to specify non-standard aliases. For example, if a Git repo has a ref named \"refs/foo/bar\". -type AliasContextKind string - -// List of AliasContextKind -const ( - KIND_UNSPECIFIED_AliasContextKind AliasContextKind = "KIND_UNSPECIFIED" - FIXED_AliasContextKind AliasContextKind = "FIXED" - MOVABLE_AliasContextKind AliasContextKind = "MOVABLE" - OTHER_AliasContextKind AliasContextKind = "OTHER" -) diff --git a/0.1.0/model_attestation_attestation.go b/0.1.0/model_attestation_attestation.go deleted file mode 100644 index 4a14cdb..0000000 --- a/0.1.0/model_attestation_attestation.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Occurrence that represents a single \"attestation\". The authenticity of an attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the authority to which this attestation is attached is primarily useful for look-up (how to find this attestation if you already know the authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). -type AttestationAttestation struct { - // A PGP signed attestation. - PgpSignedAttestation *AttestationPgpSignedAttestation `json:"pgp_signed_attestation,omitempty"` - // An attestation that supports multiple `Signature`s over the same attestation payload. The signatures (defined in common.proto) support a superset of public key types and IDs compared to PgpSignedAttestation. - GenericSignedAttestation *AttestationGenericSignedAttestation `json:"generic_signed_attestation,omitempty"` -} diff --git a/0.1.0/model_attestation_authority.go b/0.1.0/model_attestation_authority.go deleted file mode 100644 index aef3cb2..0000000 --- a/0.1.0/model_attestation_authority.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Note kind that represents a logical attestation \"role\" or \"authority\". For example, an organization might have one `Authority` for \"QA\" and one for \"build\". This note is intended to act strictly as a grouping mechanism for the attached occurrences (Attestations). This grouping mechanism also provides a security boundary, since IAM ACLs gate the ability for a principle to attach an occurrence to a given note. It also provides a single point of lookup to find all attached attestation occurrences, even if they don't all live in the same project. -type AttestationAuthority struct { - // Hint hints at the purpose of the attestation authority. - Hint *AuthorityHint `json:"hint,omitempty"` -} diff --git a/0.1.0/model_attestation_generic_signed_attestation.go b/0.1.0/model_attestation_generic_signed_attestation.go deleted file mode 100644 index bc24916..0000000 --- a/0.1.0/model_attestation_generic_signed_attestation.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// An attestation wrapper that uses the Grafeas `Signature` message. This attestation must define the `serialized_payload` that the `signatures` verify and any metadata necessary to interpret that plaintext. The signatures should always be over the `serialized_payload` bytestring. -type AttestationGenericSignedAttestation struct { - // Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema). - ContentType *AttestationGenericSignedAttestationContentType `json:"content_type,omitempty"` - // The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`. - SerializedPayload string `json:"serialized_payload,omitempty"` - // One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification. - Signatures []V1beta1Signature `json:"signatures,omitempty"` -} diff --git a/0.1.0/model_attestation_generic_signed_attestation_content_type.go b/0.1.0/model_attestation_generic_signed_attestation_content_type.go deleted file mode 100644 index b09962a..0000000 --- a/0.1.0/model_attestation_generic_signed_attestation_content_type.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas -// AttestationGenericSignedAttestationContentType : Type of the attestation plaintext that was signed. - CONTENT_TYPE_UNSPECIFIED: `ContentType` is not set. - SIMPLE_SIGNING_JSON: Atomic format attestation signature. See https://github.com/containers/image/blob/8a5d2f82a6e3263290c8e0276c3e0f64e77723e7/docs/atomic-signature.md The payload extracted in `plaintext` is a JSON blob conforming to the linked schema. -type AttestationGenericSignedAttestationContentType string - -// List of attestationGenericSignedAttestationContentType -const ( - CONTENT_TYPE_UNSPECIFIED_AttestationGenericSignedAttestationContentType AttestationGenericSignedAttestationContentType = "CONTENT_TYPE_UNSPECIFIED" - SIMPLE_SIGNING_JSON_AttestationGenericSignedAttestationContentType AttestationGenericSignedAttestationContentType = "SIMPLE_SIGNING_JSON" -) diff --git a/0.1.0/model_attestation_pgp_signed_attestation.go b/0.1.0/model_attestation_pgp_signed_attestation.go deleted file mode 100644 index cbb13bc..0000000 --- a/0.1.0/model_attestation_pgp_signed_attestation.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file. -type AttestationPgpSignedAttestation struct { - // Required. The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload. - Signature string `json:"signature,omitempty"` - // Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema). - ContentType *AttestationPgpSignedAttestationContentType `json:"content_type,omitempty"` - // The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexidecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge \"LONG\", \"SHORT\", or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \\ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`. - PgpKeyId string `json:"pgp_key_id,omitempty"` -} diff --git a/0.1.0/model_attestation_pgp_signed_attestation_content_type.go b/0.1.0/model_attestation_pgp_signed_attestation_content_type.go deleted file mode 100644 index 1d4308b..0000000 --- a/0.1.0/model_attestation_pgp_signed_attestation_content_type.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas -// AttestationPgpSignedAttestationContentType : Type (for example schema) of the attestation payload that was signed. - CONTENT_TYPE_UNSPECIFIED: `ContentType` is not set. - SIMPLE_SIGNING_JSON: Atomic format attestation signature. See https://github.com/containers/image/blob/8a5d2f82a6e3263290c8e0276c3e0f64e77723e7/docs/atomic-signature.md The payload extracted from `signature` is a JSON blob conforming to the linked schema. -type AttestationPgpSignedAttestationContentType string - -// List of attestationPgpSignedAttestationContentType -const ( - CONTENT_TYPE_UNSPECIFIED_AttestationPgpSignedAttestationContentType AttestationPgpSignedAttestationContentType = "CONTENT_TYPE_UNSPECIFIED" - SIMPLE_SIGNING_JSON_AttestationPgpSignedAttestationContentType AttestationPgpSignedAttestationContentType = "SIMPLE_SIGNING_JSON" -) diff --git a/0.1.0/model_authority_hint.go b/0.1.0/model_authority_hint.go deleted file mode 100644 index 7b27588..0000000 --- a/0.1.0/model_authority_hint.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// This submessage provides human-readable hints about the purpose of the authority. Because the name of a note acts as its resource reference, it is important to disambiguate the canonical name of the Note (which might be a UUID for security purposes) from \"readable\" names more suitable for debug output. Note that these hints should not be used to look up authorities in security sensitive contexts, such as when looking up attestations to verify. -type AuthorityHint struct { - // Required. The human readable name of this attestation authority, for example \"qa\". - HumanReadableName string `json:"human_readable_name,omitempty"` -} diff --git a/0.1.0/model_build_build.go b/0.1.0/model_build_build.go deleted file mode 100644 index 30fa764..0000000 --- a/0.1.0/model_build_build.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Note holding the version of the provider's builder and the signature of the provenance message in the build details occurrence. -type BuildBuild struct { - // Required. Immutable. Version of the builder which produced this build. - BuilderVersion string `json:"builder_version,omitempty"` - // Signature of the build in occurrences pointing to this build note containing build details. - Signature *BuildBuildSignature `json:"signature,omitempty"` -} diff --git a/0.1.0/model_build_build_signature.go b/0.1.0/model_build_build_signature.go deleted file mode 100644 index 9cef286..0000000 --- a/0.1.0/model_build_build_signature.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Message encapsulating the signature of the verified build. -type BuildBuildSignature struct { - // Public key of the builder which can be used to verify that the related findings are valid and unchanged. If `key_type` is empty, this defaults to PEM encoded public keys. This field may be empty if `key_id` references an external key. For Cloud Build based signatures, this is a PEM encoded public key. To verify the Cloud Build signature, place the contents of this field into a file (public.pem). The signature field is base64-decoded into its binary representation in signature.bin, and the provenance bytes from `BuildDetails` are base64-decoded into a binary representation in signed.bin. OpenSSL can then verify the signature: `openssl sha256 -verify public.pem -signature signature.bin signed.bin` - PublicKey string `json:"public_key,omitempty"` - // Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded. - Signature string `json:"signature,omitempty"` - // An ID for the key used to sign. This could be either an ID for the key stored in `public_key` (such as the ID or fingerprint for a PGP key, or the CN for a cert), or a reference to an external key (such as a reference to a key in Cloud Key Management Service). - KeyId string `json:"key_id,omitempty"` - // The type of the key, either stored in `public_key` or referenced in `key_id`. - KeyType *BuildSignatureKeyType `json:"key_type,omitempty"` -} diff --git a/0.1.0/model_build_signature_key_type.go b/0.1.0/model_build_signature_key_type.go deleted file mode 100644 index 609bcf7..0000000 --- a/0.1.0/model_build_signature_key_type.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas -// BuildSignatureKeyType : Public key formats. - KEY_TYPE_UNSPECIFIED: `KeyType` is not set. - PGP_ASCII_ARMORED: `PGP ASCII Armored` public key. - PKIX_PEM: `PKIX PEM` public key. -type BuildSignatureKeyType string - -// List of BuildSignatureKeyType -const ( - KEY_TYPE_UNSPECIFIED_BuildSignatureKeyType BuildSignatureKeyType = "KEY_TYPE_UNSPECIFIED" - PGP_ASCII_ARMORED_BuildSignatureKeyType BuildSignatureKeyType = "PGP_ASCII_ARMORED" - PKIX_PEM_BuildSignatureKeyType BuildSignatureKeyType = "PKIX_PEM" -) diff --git a/0.1.0/model_cvs_sv3_attack_complexity.go b/0.1.0/model_cvs_sv3_attack_complexity.go deleted file mode 100644 index 63a8c37..0000000 --- a/0.1.0/model_cvs_sv3_attack_complexity.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -type CvsSv3AttackComplexity string - -// List of CVSSv3AttackComplexity -const ( - UNSPECIFIED_CvsSv3AttackComplexity CvsSv3AttackComplexity = "ATTACK_COMPLEXITY_UNSPECIFIED" - LOW_CvsSv3AttackComplexity CvsSv3AttackComplexity = "ATTACK_COMPLEXITY_LOW" - HIGH_CvsSv3AttackComplexity CvsSv3AttackComplexity = "ATTACK_COMPLEXITY_HIGH" -) diff --git a/0.1.0/model_cvs_sv3_attack_vector.go b/0.1.0/model_cvs_sv3_attack_vector.go deleted file mode 100644 index 94853cb..0000000 --- a/0.1.0/model_cvs_sv3_attack_vector.go +++ /dev/null @@ -1,21 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -type CvsSv3AttackVector string - -// List of CVSSv3AttackVector -const ( - UNSPECIFIED_CvsSv3AttackVector CvsSv3AttackVector = "ATTACK_VECTOR_UNSPECIFIED" - NETWORK_CvsSv3AttackVector CvsSv3AttackVector = "ATTACK_VECTOR_NETWORK" - ADJACENT_CvsSv3AttackVector CvsSv3AttackVector = "ATTACK_VECTOR_ADJACENT" - LOCAL_CvsSv3AttackVector CvsSv3AttackVector = "ATTACK_VECTOR_LOCAL" - PHYSICAL_CvsSv3AttackVector CvsSv3AttackVector = "ATTACK_VECTOR_PHYSICAL" -) diff --git a/0.1.0/model_cvs_sv3_impact.go b/0.1.0/model_cvs_sv3_impact.go deleted file mode 100644 index 73e49f9..0000000 --- a/0.1.0/model_cvs_sv3_impact.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -type CvsSv3Impact string - -// List of CVSSv3Impact -const ( - UNSPECIFIED_CvsSv3Impact CvsSv3Impact = "IMPACT_UNSPECIFIED" - HIGH_CvsSv3Impact CvsSv3Impact = "IMPACT_HIGH" - LOW_CvsSv3Impact CvsSv3Impact = "IMPACT_LOW" - NONE_CvsSv3Impact CvsSv3Impact = "IMPACT_NONE" -) diff --git a/0.1.0/model_cvs_sv3_privileges_required.go b/0.1.0/model_cvs_sv3_privileges_required.go deleted file mode 100644 index 726c05a..0000000 --- a/0.1.0/model_cvs_sv3_privileges_required.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -type CvsSv3PrivilegesRequired string - -// List of CVSSv3PrivilegesRequired -const ( - UNSPECIFIED_CvsSv3PrivilegesRequired CvsSv3PrivilegesRequired = "PRIVILEGES_REQUIRED_UNSPECIFIED" - NONE_CvsSv3PrivilegesRequired CvsSv3PrivilegesRequired = "PRIVILEGES_REQUIRED_NONE" - LOW_CvsSv3PrivilegesRequired CvsSv3PrivilegesRequired = "PRIVILEGES_REQUIRED_LOW" - HIGH_CvsSv3PrivilegesRequired CvsSv3PrivilegesRequired = "PRIVILEGES_REQUIRED_HIGH" -) diff --git a/0.1.0/model_cvs_sv3_scope.go b/0.1.0/model_cvs_sv3_scope.go deleted file mode 100644 index 31e5e9b..0000000 --- a/0.1.0/model_cvs_sv3_scope.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -type CvsSv3Scope string - -// List of CVSSv3Scope -const ( - UNSPECIFIED_CvsSv3Scope CvsSv3Scope = "SCOPE_UNSPECIFIED" - UNCHANGED_CvsSv3Scope CvsSv3Scope = "SCOPE_UNCHANGED" - CHANGED_CvsSv3Scope CvsSv3Scope = "SCOPE_CHANGED" -) diff --git a/0.1.0/model_cvs_sv3_user_interaction.go b/0.1.0/model_cvs_sv3_user_interaction.go deleted file mode 100644 index ff81298..0000000 --- a/0.1.0/model_cvs_sv3_user_interaction.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -type CvsSv3UserInteraction string - -// List of CVSSv3UserInteraction -const ( - UNSPECIFIED_CvsSv3UserInteraction CvsSv3UserInteraction = "USER_INTERACTION_UNSPECIFIED" - NONE_CvsSv3UserInteraction CvsSv3UserInteraction = "USER_INTERACTION_NONE" - REQUIRED_CvsSv3UserInteraction CvsSv3UserInteraction = "USER_INTERACTION_REQUIRED" -) diff --git a/0.1.0/model_deployment_deployable.go b/0.1.0/model_deployment_deployable.go deleted file mode 100644 index 3b95407..0000000 --- a/0.1.0/model_deployment_deployable.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// An artifact that can be deployed in some runtime. -type DeploymentDeployable struct { - // Required. Resource URI for the artifact being deployed. - ResourceUri []string `json:"resource_uri,omitempty"` -} diff --git a/0.1.0/model_deployment_deployment.go b/0.1.0/model_deployment_deployment.go deleted file mode 100644 index 3dc9ad5..0000000 --- a/0.1.0/model_deployment_deployment.go +++ /dev/null @@ -1,32 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -import ( - "time" -) - -// The period during which some deployable was active in a runtime. -type DeploymentDeployment struct { - // Identity of the user that triggered this deployment. - UserEmail string `json:"user_email,omitempty"` - // Required. Beginning of the lifetime of this deployment. - DeployTime time.Time `json:"deploy_time,omitempty"` - // End of the lifetime of this deployment. - UndeployTime time.Time `json:"undeploy_time,omitempty"` - // Configuration used to create this deployment. - Config string `json:"config,omitempty"` - // Address of the runtime element hosting this deployment. - Address string `json:"address,omitempty"` - // Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name. - ResourceUri []string `json:"resource_uri,omitempty"` - // Platform hosting this deployment. - Platform *DeploymentPlatform `json:"platform,omitempty"` -} diff --git a/0.1.0/model_deployment_platform.go b/0.1.0/model_deployment_platform.go deleted file mode 100644 index e95bfb3..0000000 --- a/0.1.0/model_deployment_platform.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas -// DeploymentPlatform : Types of platforms. - PLATFORM_UNSPECIFIED: Unknown. - GKE: Google Container Engine. - FLEX: Google App Engine: Flexible Environment. - CUSTOM: Custom user-defined platform. -type DeploymentPlatform string - -// List of DeploymentPlatform -const ( - PLATFORM_UNSPECIFIED_DeploymentPlatform DeploymentPlatform = "PLATFORM_UNSPECIFIED" - GKE_DeploymentPlatform DeploymentPlatform = "GKE" - FLEX_DeploymentPlatform DeploymentPlatform = "FLEX" - CUSTOM_DeploymentPlatform DeploymentPlatform = "CUSTOM" -) diff --git a/0.1.0/model_discovered_analysis_status.go b/0.1.0/model_discovered_analysis_status.go deleted file mode 100644 index 4695e60..0000000 --- a/0.1.0/model_discovered_analysis_status.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas -// DiscoveredAnalysisStatus : Analysis status for a resource. Currently for initial analysis only (not updated in continuous analysis). - ANALYSIS_STATUS_UNSPECIFIED: Unknown. - PENDING: Resource is known but no action has been taken yet. - SCANNING: Resource is being analyzed. - FINISHED_SUCCESS: Analysis has finished successfully. - FINISHED_FAILED: Analysis has finished unsuccessfully, the analysis itself is in a bad state. - FINISHED_UNSUPPORTED: The resource is known not to be supported -type DiscoveredAnalysisStatus string - -// List of DiscoveredAnalysisStatus -const ( - ANALYSIS_STATUS_UNSPECIFIED_DiscoveredAnalysisStatus DiscoveredAnalysisStatus = "ANALYSIS_STATUS_UNSPECIFIED" - PENDING_DiscoveredAnalysisStatus DiscoveredAnalysisStatus = "PENDING" - SCANNING_DiscoveredAnalysisStatus DiscoveredAnalysisStatus = "SCANNING" - FINISHED_SUCCESS_DiscoveredAnalysisStatus DiscoveredAnalysisStatus = "FINISHED_SUCCESS" - FINISHED_FAILED_DiscoveredAnalysisStatus DiscoveredAnalysisStatus = "FINISHED_FAILED" - FINISHED_UNSUPPORTED_DiscoveredAnalysisStatus DiscoveredAnalysisStatus = "FINISHED_UNSUPPORTED" -) diff --git a/0.1.0/model_discovered_continuous_analysis.go b/0.1.0/model_discovered_continuous_analysis.go deleted file mode 100644 index 684dc3c..0000000 --- a/0.1.0/model_discovered_continuous_analysis.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas -// DiscoveredContinuousAnalysis : Whether the resource is continuously analyzed. - CONTINUOUS_ANALYSIS_UNSPECIFIED: Unknown. - ACTIVE: The resource is continuously analyzed. - INACTIVE: The resource is ignored for continuous analysis. -type DiscoveredContinuousAnalysis string - -// List of DiscoveredContinuousAnalysis -const ( - CONTINUOUS_ANALYSIS_UNSPECIFIED_DiscoveredContinuousAnalysis DiscoveredContinuousAnalysis = "CONTINUOUS_ANALYSIS_UNSPECIFIED" - ACTIVE_DiscoveredContinuousAnalysis DiscoveredContinuousAnalysis = "ACTIVE" - INACTIVE_DiscoveredContinuousAnalysis DiscoveredContinuousAnalysis = "INACTIVE" -) diff --git a/0.1.0/model_discovery_discovered.go b/0.1.0/model_discovery_discovered.go deleted file mode 100644 index 4250b67..0000000 --- a/0.1.0/model_discovery_discovered.go +++ /dev/null @@ -1,26 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -import ( - "time" -) - -// Provides information about the analysis status of a discovered resource. -type DiscoveryDiscovered struct { - // Whether the resource is continuously analyzed. - ContinuousAnalysis *DiscoveredContinuousAnalysis `json:"continuous_analysis,omitempty"` - // The last time continuous analysis was done for this resource. Deprecated, do not use. - LastAnalysisTime time.Time `json:"last_analysis_time,omitempty"` - // The status of discovery for the resource. - AnalysisStatus *DiscoveredAnalysisStatus `json:"analysis_status,omitempty"` - // When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API. - AnalysisStatusError *RpcStatus `json:"analysis_status_error,omitempty"` -} diff --git a/0.1.0/model_discovery_discovery.go b/0.1.0/model_discovery_discovery.go deleted file mode 100644 index 874cee2..0000000 --- a/0.1.0/model_discovery_discovery.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// A note that indicates a type of analysis a provider would perform. This note exists in a provider's project. A `Discovery` occurrence is created in a consumer's project at the start of analysis. -type DiscoveryDiscovery struct { - // Required. Immutable. The kind of analysis that is handled by this discovery. - AnalysisKind *V1beta1NoteKind `json:"analysis_kind,omitempty"` -} diff --git a/0.1.0/model_hash_hash_type.go b/0.1.0/model_hash_hash_type.go deleted file mode 100644 index de4a38b..0000000 --- a/0.1.0/model_hash_hash_type.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas -// HashHashType : Specifies the hash algorithm. - HASH_TYPE_UNSPECIFIED: Unknown. - SHA256: A SHA-256 hash. -type HashHashType string - -// List of HashHashType -const ( - HASH_TYPE_UNSPECIFIED_HashHashType HashHashType = "HASH_TYPE_UNSPECIFIED" - SHA256_HashHashType HashHashType = "SHA256" -) diff --git a/0.1.0/model_image_basis.go b/0.1.0/model_image_basis.go deleted file mode 100644 index 3455449..0000000 --- a/0.1.0/model_image_basis.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Basis describes the base image portion (Note) of the DockerImage relationship. Linked occurrences are derived from this or an equivalent image via: FROM Or an equivalent reference, e.g. a tag of the resource_url. -type ImageBasis struct { - // Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images. - ResourceUrl string `json:"resource_url,omitempty"` - // Required. Immutable. The fingerprint of the base image. - Fingerprint *ImageFingerprint `json:"fingerprint,omitempty"` -} diff --git a/0.1.0/model_image_derived.go b/0.1.0/model_image_derived.go deleted file mode 100644 index b6e3d67..0000000 --- a/0.1.0/model_image_derived.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . -type ImageDerived struct { - // Required. The fingerprint of the derived image. - Fingerprint *ImageFingerprint `json:"fingerprint,omitempty"` - // Output only. The number of layers by which this image differs from the associated image basis. - Distance int32 `json:"distance,omitempty"` - // This contains layer-specific metadata, if populated it has length \"distance\" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer. - LayerInfo []ImageLayer `json:"layer_info,omitempty"` - // Output only. This contains the base image URL for the derived image occurrence. - BaseResourceUrl string `json:"base_resource_url,omitempty"` -} diff --git a/0.1.0/model_image_fingerprint.go b/0.1.0/model_image_fingerprint.go deleted file mode 100644 index 75b9dda..0000000 --- a/0.1.0/model_image_fingerprint.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// A set of properties that uniquely identify a given Docker image. -type ImageFingerprint struct { - // Required. The layer ID of the final layer in the Docker image's v1 representation. - V1Name string `json:"v1_name,omitempty"` - // Required. The ordered list of v2 blobs that represent a given image. - V2Blob []string `json:"v2_blob,omitempty"` - // Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blob[bottom] [N] := sha256(v2_blob[N] + \" \" + v2_name[N+1]) Only the name of the final blob is kept. - V2Name string `json:"v2_name,omitempty"` -} diff --git a/0.1.0/model_image_layer.go b/0.1.0/model_image_layer.go deleted file mode 100644 index bedc4ba..0000000 --- a/0.1.0/model_image_layer.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Layer holds metadata specific to a layer of a Docker image. -type ImageLayer struct { - // Required. The recovered Dockerfile directive used to construct this layer. - Directive *LayerDirective `json:"directive,omitempty"` - // The recovered arguments to the Dockerfile directive. - Arguments string `json:"arguments,omitempty"` -} diff --git a/0.1.0/model_layer_directive.go b/0.1.0/model_layer_directive.go deleted file mode 100644 index 52ff082..0000000 --- a/0.1.0/model_layer_directive.go +++ /dev/null @@ -1,34 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas -// LayerDirective : Instructions from Dockerfile. - DIRECTIVE_UNSPECIFIED: Default value for unsupported/missing directive. - MAINTAINER: https://docs.docker.com/engine/reference/builder/ - RUN: https://docs.docker.com/engine/reference/builder/ - CMD: https://docs.docker.com/engine/reference/builder/ - LABEL: https://docs.docker.com/engine/reference/builder/ - EXPOSE: https://docs.docker.com/engine/reference/builder/ - ENV: https://docs.docker.com/engine/reference/builder/ - ADD: https://docs.docker.com/engine/reference/builder/ - COPY: https://docs.docker.com/engine/reference/builder/ - ENTRYPOINT: https://docs.docker.com/engine/reference/builder/ - VOLUME: https://docs.docker.com/engine/reference/builder/ - USER: https://docs.docker.com/engine/reference/builder/ - WORKDIR: https://docs.docker.com/engine/reference/builder/ - ARG: https://docs.docker.com/engine/reference/builder/ - ONBUILD: https://docs.docker.com/engine/reference/builder/ - STOPSIGNAL: https://docs.docker.com/engine/reference/builder/ - HEALTHCHECK: https://docs.docker.com/engine/reference/builder/ - SHELL: https://docs.docker.com/engine/reference/builder/ -type LayerDirective string - -// List of LayerDirective -const ( - DIRECTIVE_UNSPECIFIED_LayerDirective LayerDirective = "DIRECTIVE_UNSPECIFIED" - MAINTAINER_LayerDirective LayerDirective = "MAINTAINER" - RUN_LayerDirective LayerDirective = "RUN" - CMD_LayerDirective LayerDirective = "CMD" - LABEL_LayerDirective LayerDirective = "LABEL" - EXPOSE_LayerDirective LayerDirective = "EXPOSE" - ENV_LayerDirective LayerDirective = "ENV" - ADD_LayerDirective LayerDirective = "ADD" - COPY_LayerDirective LayerDirective = "COPY" - ENTRYPOINT_LayerDirective LayerDirective = "ENTRYPOINT" - VOLUME_LayerDirective LayerDirective = "VOLUME" - USER_LayerDirective LayerDirective = "USER" - WORKDIR_LayerDirective LayerDirective = "WORKDIR" - ARG_LayerDirective LayerDirective = "ARG" - ONBUILD_LayerDirective LayerDirective = "ONBUILD" - STOPSIGNAL_LayerDirective LayerDirective = "STOPSIGNAL" - HEALTHCHECK_LayerDirective LayerDirective = "HEALTHCHECK" - SHELL_LayerDirective LayerDirective = "SHELL" -) diff --git a/0.1.0/model_package_architecture.go b/0.1.0/model_package_architecture.go deleted file mode 100644 index 1ee6748..0000000 --- a/0.1.0/model_package_architecture.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas -// PackageArchitecture : Instruction set architectures supported by various package managers. - ARCHITECTURE_UNSPECIFIED: Unknown architecture. - X86: X86 architecture. - X64: X64 architecture. -type PackageArchitecture string - -// List of packageArchitecture -const ( - ARCHITECTURE_UNSPECIFIED_PackageArchitecture PackageArchitecture = "ARCHITECTURE_UNSPECIFIED" - X86_PackageArchitecture PackageArchitecture = "X86" - X64_PackageArchitecture PackageArchitecture = "X64" -) diff --git a/0.1.0/model_package_distribution.go b/0.1.0/model_package_distribution.go deleted file mode 100644 index c60059c..0000000 --- a/0.1.0/model_package_distribution.go +++ /dev/null @@ -1,26 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// This represents a particular channel of distribution for a given package. E.g., Debian's jessie-backports dpkg mirror. -type PackageDistribution struct { - // Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. - CpeUri string `json:"cpe_uri,omitempty"` - // The CPU architecture for which packages in this distribution channel were built. - Architecture *PackageArchitecture `json:"architecture,omitempty"` - // The latest available version of this package in this distribution channel. - LatestVersion *PackageVersion `json:"latest_version,omitempty"` - // A freeform string denoting the maintainer of this package. - Maintainer string `json:"maintainer,omitempty"` - // The distribution channel-specific homepage for this package. - Url string `json:"url,omitempty"` - // The distribution channel-specific description of this package. - Description string `json:"description,omitempty"` -} diff --git a/0.1.0/model_package_installation.go b/0.1.0/model_package_installation.go deleted file mode 100644 index afe12d4..0000000 --- a/0.1.0/model_package_installation.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// This represents how a particular software package may be installed on a system. -type PackageInstallation struct { - // Output only. The name of the installed package. - Name string `json:"name,omitempty"` - // Required. All of the places within the filesystem versions of this package have been found. - Location []V1beta1packageLocation `json:"location,omitempty"` -} diff --git a/0.1.0/model_package_package.go b/0.1.0/model_package_package.go deleted file mode 100644 index 17f8b67..0000000 --- a/0.1.0/model_package_package.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// This represents a particular package that is distributed over various channels. E.g., glibc (aka libc6) is distributed by many, at various versions. -type PackagePackage struct { - // Required. Immutable. The name of the package. - Name string `json:"name,omitempty"` - // The various channels by which a package is distributed. - Distribution []PackageDistribution `json:"distribution,omitempty"` -} diff --git a/0.1.0/model_package_version.go b/0.1.0/model_package_version.go deleted file mode 100644 index 93c2f5d..0000000 --- a/0.1.0/model_package_version.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Version contains structured information about the version of a package. -type PackageVersion struct { - // Used to correct mistakes in the version numbering scheme. - Epoch int32 `json:"epoch,omitempty"` - // Required only when version kind is NORMAL. The main part of the version name. - Name string `json:"name,omitempty"` - // The iteration of the package build from the above version. - Revision string `json:"revision,omitempty"` - // Required. Distinguishes between sentinel MIN/MAX versions and normal versions. - Kind *VersionVersionKind `json:"kind,omitempty"` -} diff --git a/0.1.0/model_protobuf_any.go b/0.1.0/model_protobuf_any.go deleted file mode 100644 index 123a196..0000000 --- a/0.1.0/model_protobuf_any.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// `Any` contains an arbitrary serialized protocol buffer message along with a URL that describes the type of the serialized message. Protobuf library provides support to pack/unpack Any values in the form of utility functions or additional generated methods of the Any type. Example 1: Pack and unpack a message in C++. Foo foo = ...; Any any; any.PackFrom(foo); ... if (any.UnpackTo(&foo)) { ... } Example 2: Pack and unpack a message in Java. Foo foo = ...; Any any = Any.pack(foo); ... if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() any.Pack(foo) ... if any.Is(Foo.DESCRIPTOR): any.Unpack(foo) ... The pack methods provided by protobuf library will by default use 'type.googleapis.com/full.type.name' as the type URL and the unpack methods only use the fully qualified type name after the last '/' in the type URL, for example \"foo.bar.com/x/y.z\" will yield type name \"y.z\". JSON ==== The JSON representation of an `Any` value uses the regular representation of the deserialized, embedded message, with an additional field `@type` which contains the type URL. Example: package google.profile; message Person { string first_name = 1; string last_name = 2; } { \"@type\": \"type.googleapis.com/google.profile.Person\", \"firstName\": , \"lastName\": } If the embedded message type is well-known and has a custom JSON representation, that representation will be embedded adding a field `value` which holds the custom JSON in addition to the `@type` field. Example (for message [google.protobuf.Duration][]): { \"@type\": \"type.googleapis.com/google.protobuf.Duration\", \"value\": \"1.212s\" } -type ProtobufAny struct { - // A URL/resource name whose content describes the type of the serialized protocol buffer message. For URLs which use the scheme `http`, `https`, or no scheme, the following restrictions and interpretations apply: * If no scheme is provided, `https` is assumed. * The last segment of the URL's path must represent the fully qualified name of the type (as in `path/google.protobuf.Duration`). The name should be in a canonical form (e.g., leading \".\" is not accepted). * An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error. * Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.) Schemes other than `http`, `https` (or the empty scheme) might be used with implementation specific semantics. - TypeUrl string `json:"type_url,omitempty"` - // Must be a valid serialized protocol buffer of the above specified type. - Value string `json:"value,omitempty"` -} diff --git a/0.1.0/model_protobuf_field_mask.go b/0.1.0/model_protobuf_field_mask.go deleted file mode 100644 index 7d06e5b..0000000 --- a/0.1.0/model_protobuf_field_mask.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// paths: \"f.a\" paths: \"f.b.d\" Here `f` represents a field in some root message, `a` and `b` fields in the message found in `f`, and `d` a field found in the message in `f.b`. Field masks are used to specify a subset of fields that should be returned by a get operation or modified by an update operation. Field masks also have a custom JSON encoding (see below). # Field Masks in Projections When used in the context of a projection, a response message or sub-message is filtered by the API to only contain those fields as specified in the mask. For example, if the mask in the previous example is applied to a response message as follows: f { a : 22 b { d : 1 x : 2 } y : 13 } z: 8 The result will not contain specific values for fields x,y and z (their value will be set to the default, and omitted in proto text output): f { a : 22 b { d : 1 } } A repeated field is not allowed except at the last position of a paths string. If a FieldMask object is not present in a get operation, the operation applies to all fields (as if a FieldMask of all fields had been specified). Note that a field mask does not necessarily apply to the top-level response message. In case of a REST get operation, the field mask applies directly to the response, but in case of a REST list operation, the mask instead applies to each individual message in the returned resource list. In case of a REST custom method, other definitions may be used. Where the mask applies will be clearly documented together with its declaration in the API. In any case, the effect on the returned resource/resources is required behavior for APIs. # Field Masks in Update Operations A field mask in update operations specifies which fields of the targeted resource are going to be updated. The API is required to only change the values of the fields as specified in the mask and leave the others untouched. If a resource is passed in to describe the updated values, the API ignores the values of all fields not covered by the mask. If a repeated field is specified for an update operation, the existing repeated values in the target resource will be overwritten by the new values. Note that a repeated field is only allowed in the last position of a `paths` string. If a sub-message is specified in the last position of the field mask for an update operation, then the existing sub-message in the target resource is overwritten. Given the target message: f { b { d : 1 x : 2 } c : 1 } And an update message: f { b { d : 10 } } then if the field mask is: paths: \"f.b\" then the result will be: f { b { d : 10 } c : 1 } However, if the update mask was: paths: \"f.b.d\" then the result would be: f { b { d : 10 x : 2 } c : 1 } In order to reset a field's value to the default, the field must be in the mask and set to the default value in the provided resource. Hence, in order to reset all fields of a resource, provide a default instance of the resource and set all fields in the mask, or do not provide a mask as described below. If a field mask is not present on update, the operation applies to all fields (as if a field mask of all fields has been specified). Note that in the presence of schema evolution, this may mean that fields the client does not know and has therefore not filled into the request will be reset to their default. If this is unwanted behavior, a specific service may require a client to always specify a field mask, producing an error if not. As with get operations, the location of the resource which describes the updated values in the request message depends on the operation kind. In any case, the effect of the field mask is required to be honored by the API. ## Considerations for HTTP REST The HTTP kind of an update operation which uses a field mask must be set to PATCH instead of PUT in order to satisfy HTTP semantics (PUT must only be used for full updates). # JSON Encoding of Field Masks In JSON, a field mask is encoded as a single string where paths are separated by a comma. Fields name in each path are converted to/from lower-camel naming conventions. As an example, consider the following message declarations: message Profile { User user = 1; Photo photo = 2; } message User { string display_name = 1; string address = 2; } In proto a field mask for `Profile` may look as such: mask { paths: \"user.display_name\" paths: \"photo\" } In JSON, the same mask is represented as below: { mask: \"user.displayName,photo\" } # Field Masks and Oneof Fields Field masks treat fields in oneofs just as regular fields. Consider the following message: message SampleMessage { oneof test_oneof { string name = 4; SubMessage sub_message = 9; } } The field mask can be: mask { paths: \"name\" } Or: mask { paths: \"sub_message\" } Note that oneof type names (\"test_oneof\" in this case) cannot be used in paths. -type ProtobufFieldMask struct { - // The set of field mask paths. - Paths []string `json:"paths,omitempty"` -} diff --git a/0.1.0/model_provenance_artifact.go b/0.1.0/model_provenance_artifact.go deleted file mode 100644 index 389fe15..0000000 --- a/0.1.0/model_provenance_artifact.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Artifact describes a build product. -type ProvenanceArtifact struct { - // Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container. - Checksum string `json:"checksum,omitempty"` - // Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`. - Id string `json:"id,omitempty"` - // Related artifact names. 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`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image. - Names []string `json:"names,omitempty"` -} diff --git a/0.1.0/model_provenance_build_provenance.go b/0.1.0/model_provenance_build_provenance.go deleted file mode 100644 index d75556c..0000000 --- a/0.1.0/model_provenance_build_provenance.go +++ /dev/null @@ -1,44 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -import ( - "time" -) - -// Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. -type ProvenanceBuildProvenance struct { - // Required. Unique identifier of the build. - Id string `json:"id,omitempty"` - // ID of the project. - ProjectId string `json:"project_id,omitempty"` - // Commands requested by the build. - Commands []ProvenanceCommand `json:"commands,omitempty"` - // Output of the build. - BuiltArtifacts []ProvenanceArtifact `json:"built_artifacts,omitempty"` - // Time at which the build was created. - CreateTime time.Time `json:"create_time,omitempty"` - // Time at which execution of the build was started. - StartTime time.Time `json:"start_time,omitempty"` - // Time at which execution of the build was finished. - EndTime time.Time `json:"end_time,omitempty"` - // E-mail address of the user who initiated this build. Note that this was the user's e-mail address at the time the build was initiated; this address may not represent the same end-user for all time. - Creator string `json:"creator,omitempty"` - // URI where any logs for this provenance were written. - LogsUri string `json:"logs_uri,omitempty"` - // Details of the Source input to the build. - SourceProvenance *ProvenanceSource `json:"source_provenance,omitempty"` - // Trigger identifier if the build was triggered automatically; empty if not. - TriggerId string `json:"trigger_id,omitempty"` - // Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details. - BuildOptions map[string]string `json:"build_options,omitempty"` - // Version string of the builder at the time this build was executed. - BuilderVersion string `json:"builder_version,omitempty"` -} diff --git a/0.1.0/model_provenance_command.go b/0.1.0/model_provenance_command.go deleted file mode 100644 index b63614a..0000000 --- a/0.1.0/model_provenance_command.go +++ /dev/null @@ -1,26 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Command describes a step performed as part of the build pipeline. -type ProvenanceCommand struct { - // Required. Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`. - Name string `json:"name,omitempty"` - // Environment variables set before running this command. - Env []string `json:"env,omitempty"` - // Command-line arguments used when executing this command. - Args []string `json:"args,omitempty"` - // Working directory (relative to project source root) used when running this command. - Dir string `json:"dir,omitempty"` - // Optional unique identifier for this command, used in wait_for to reference this command as a dependency. - Id string `json:"id,omitempty"` - // The ID(s) of the command(s) that this command depends on. - WaitFor []string `json:"wait_for,omitempty"` -} diff --git a/0.1.0/model_provenance_file_hashes.go b/0.1.0/model_provenance_file_hashes.go deleted file mode 100644 index b7b9377..0000000 --- a/0.1.0/model_provenance_file_hashes.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Container message for hashes of byte content of files, used in source messages to verify integrity of source input to the build. -type ProvenanceFileHashes struct { - // Required. Collection of file hashes. - FileHash []ProvenanceHash `json:"file_hash,omitempty"` -} diff --git a/0.1.0/model_provenance_hash.go b/0.1.0/model_provenance_hash.go deleted file mode 100644 index e2f1d35..0000000 --- a/0.1.0/model_provenance_hash.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Container message for hash values. -type ProvenanceHash struct { - // Required. The type of hash that was performed. - Type_ *HashHashType `json:"type,omitempty"` - // Required. The hash value. - Value string `json:"value,omitempty"` -} diff --git a/0.1.0/model_provenance_source.go b/0.1.0/model_provenance_source.go deleted file mode 100644 index 2ed7b0b..0000000 --- a/0.1.0/model_provenance_source.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Source describes the location of the source used for the build. -type ProvenanceSource struct { - // If provided, the input binary artifacts for the build came from this location. - ArtifactStorageSourceUri string `json:"artifact_storage_source_uri,omitempty"` - // Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (.tar.gz), the FileHash will be for the single path to that file. - FileHashes map[string]ProvenanceFileHashes `json:"file_hashes,omitempty"` - // If provided, the source code used for the build came from this location. - Context *SourceSourceContext `json:"context,omitempty"` - // If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field. - AdditionalContexts []SourceSourceContext `json:"additional_contexts,omitempty"` -} diff --git a/0.1.0/model_rpc_status.go b/0.1.0/model_rpc_status.go deleted file mode 100644 index 83392bb..0000000 --- a/0.1.0/model_rpc_status.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// - Simple to use and understand for most users - Flexible enough to meet unexpected needs # Overview The `Status` message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of [google.rpc.Code][google.rpc.Code], but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers *understand* and *resolve* the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package `google.rpc` that can be used for common error conditions. # Language mapping The `Status` message is the logical representation of the error model, but it is not necessarily the actual wire format. When the `Status` message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C. # Other uses The error model and the `Status` message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments. Example uses of this error model include: - Partial errors. If a service needs to return partial errors to the client, it may embed the `Status` in the normal response to indicate the partial errors. - Workflow errors. A typical workflow has multiple steps. Each step may have a `Status` message for error reporting. - Batch operations. If a client uses batch request and batch response, the `Status` message should be used directly inside batch response, one for each error sub-response. - Asynchronous operations. If an API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the `Status` message. - Logging. If some API errors are stored in logs, the message `Status` could be used directly after any stripping needed for security/privacy reasons. -type RpcStatus struct { - // The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. - Code int32 `json:"code,omitempty"` - // A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client. - Message string `json:"message,omitempty"` - // A list of messages that carry the error details. There is a common set of message types for APIs to use. - Details []ProtobufAny `json:"details,omitempty"` -} diff --git a/0.1.0/model_source_alias_context.go b/0.1.0/model_source_alias_context.go deleted file mode 100644 index 635d91c..0000000 --- a/0.1.0/model_source_alias_context.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// An alias to a repo revision. -type SourceAliasContext struct { - // The alias kind. - Kind *AliasContextKind `json:"kind,omitempty"` - // The alias name. - Name string `json:"name,omitempty"` -} diff --git a/0.1.0/model_source_cloud_repo_source_context.go b/0.1.0/model_source_cloud_repo_source_context.go deleted file mode 100644 index 8f542b5..0000000 --- a/0.1.0/model_source_cloud_repo_source_context.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. -type SourceCloudRepoSourceContext struct { - // The ID of the repo. - RepoId *SourceRepoId `json:"repo_id,omitempty"` - // A revision ID. - RevisionId string `json:"revision_id,omitempty"` - // An alias, which may be a branch or tag. - AliasContext *SourceAliasContext `json:"alias_context,omitempty"` -} diff --git a/0.1.0/model_source_gerrit_source_context.go b/0.1.0/model_source_gerrit_source_context.go deleted file mode 100644 index 5b2f0c6..0000000 --- a/0.1.0/model_source_gerrit_source_context.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// A SourceContext referring to a Gerrit project. -type SourceGerritSourceContext struct { - // The URI of a running Gerrit instance. - HostUri string `json:"host_uri,omitempty"` - // The full project name within the host. Projects may be nested, so \"project/subproject\" is a valid project name. The \"repo name\" is the hostURI/project. - GerritProject string `json:"gerrit_project,omitempty"` - // A revision (commit) ID. - RevisionId string `json:"revision_id,omitempty"` - // An alias, which may be a branch or tag. - AliasContext *SourceAliasContext `json:"alias_context,omitempty"` -} diff --git a/0.1.0/model_source_git_source_context.go b/0.1.0/model_source_git_source_context.go deleted file mode 100644 index a11f07d..0000000 --- a/0.1.0/model_source_git_source_context.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). -type SourceGitSourceContext struct { - // Git repository URL. - Url string `json:"url,omitempty"` - // Git commit hash. - RevisionId string `json:"revision_id,omitempty"` -} diff --git a/0.1.0/model_source_project_repo_id.go b/0.1.0/model_source_project_repo_id.go deleted file mode 100644 index 369434f..0000000 --- a/0.1.0/model_source_project_repo_id.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. -type SourceProjectRepoId struct { - // The ID of the project. - ProjectId string `json:"project_id,omitempty"` - // The name of the repo. Leave empty for the default repo. - RepoName string `json:"repo_name,omitempty"` -} diff --git a/0.1.0/model_source_repo_id.go b/0.1.0/model_source_repo_id.go deleted file mode 100644 index 2817938..0000000 --- a/0.1.0/model_source_repo_id.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// A unique identifier for a Cloud Repo. -type SourceRepoId struct { - // A combination of a project ID and a repo name. - ProjectRepoId *SourceProjectRepoId `json:"project_repo_id,omitempty"` - // A server-assigned, globally unique identifier. - Uid string `json:"uid,omitempty"` -} diff --git a/0.1.0/model_source_source_context.go b/0.1.0/model_source_source_context.go deleted file mode 100644 index 6f976b1..0000000 --- a/0.1.0/model_source_source_context.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory. -type SourceSourceContext struct { - // A SourceContext referring to a revision in a Google Cloud Source Repo. - CloudRepo *SourceCloudRepoSourceContext `json:"cloud_repo,omitempty"` - // A SourceContext referring to a Gerrit project. - Gerrit *SourceGerritSourceContext `json:"gerrit,omitempty"` - // A SourceContext referring to any third party Git repo (e.g., GitHub). - Git *SourceGitSourceContext `json:"git,omitempty"` - // Labels with user defined metadata. - Labels map[string]string `json:"labels,omitempty"` -} diff --git a/0.1.0/model_v1beta1_batch_create_notes_request.go b/0.1.0/model_v1beta1_batch_create_notes_request.go deleted file mode 100644 index 35f447f..0000000 --- a/0.1.0/model_v1beta1_batch_create_notes_request.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Request to create notes in batch. -type V1beta1BatchCreateNotesRequest struct { - // The name of the project in the form of `projects/[PROJECT_ID]`, under which the notes are to be created. - Parent string `json:"parent,omitempty"` - // The notes to create. Max allowed length is 1000. - Notes map[string]V1beta1Note `json:"notes,omitempty"` -} diff --git a/0.1.0/model_v1beta1_batch_create_notes_response.go b/0.1.0/model_v1beta1_batch_create_notes_response.go deleted file mode 100644 index 5d65e3f..0000000 --- a/0.1.0/model_v1beta1_batch_create_notes_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Response for creating notes in batch. -type V1beta1BatchCreateNotesResponse struct { - // The notes that were created. - Notes []V1beta1Note `json:"notes,omitempty"` -} diff --git a/0.1.0/model_v1beta1_batch_create_occurrences_request.go b/0.1.0/model_v1beta1_batch_create_occurrences_request.go deleted file mode 100644 index 3f33c9f..0000000 --- a/0.1.0/model_v1beta1_batch_create_occurrences_request.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Request to create occurrences in batch. -type V1beta1BatchCreateOccurrencesRequest struct { - // The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrences are to be created. - Parent string `json:"parent,omitempty"` - // The occurrences to create. Max allowed length is 1000. - Occurrences []V1beta1Occurrence `json:"occurrences,omitempty"` -} diff --git a/0.1.0/model_v1beta1_batch_create_occurrences_response.go b/0.1.0/model_v1beta1_batch_create_occurrences_response.go deleted file mode 100644 index aa07fa6..0000000 --- a/0.1.0/model_v1beta1_batch_create_occurrences_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Response for creating occurrences in batch. -type V1beta1BatchCreateOccurrencesResponse struct { - // The occurrences that were created. - Occurrences []V1beta1Occurrence `json:"occurrences,omitempty"` -} diff --git a/0.1.0/model_v1beta1_list_note_occurrences_response.go b/0.1.0/model_v1beta1_list_note_occurrences_response.go deleted file mode 100644 index 7c4e958..0000000 --- a/0.1.0/model_v1beta1_list_note_occurrences_response.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Response for listing occurrences for a note. -type V1beta1ListNoteOccurrencesResponse struct { - // The occurrences attached to the specified note. - Occurrences []V1beta1Occurrence `json:"occurrences,omitempty"` - // Token to provide to skip to a particular spot in the list. - NextPageToken string `json:"next_page_token,omitempty"` -} diff --git a/0.1.0/model_v1beta1_list_notes_response.go b/0.1.0/model_v1beta1_list_notes_response.go deleted file mode 100644 index 6a6ec36..0000000 --- a/0.1.0/model_v1beta1_list_notes_response.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Response for listing notes. -type V1beta1ListNotesResponse struct { - // The notes requested. - Notes []V1beta1Note `json:"notes,omitempty"` - // The next pagination token in the list response. It should be used as `page_token` for the following request. An empty value means no more results. - NextPageToken string `json:"next_page_token,omitempty"` -} diff --git a/0.1.0/model_v1beta1_list_occurrences_response.go b/0.1.0/model_v1beta1_list_occurrences_response.go deleted file mode 100644 index e6879ee..0000000 --- a/0.1.0/model_v1beta1_list_occurrences_response.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Response for listing occurrences. -type V1beta1ListOccurrencesResponse struct { - // The occurrences requested. - Occurrences []V1beta1Occurrence `json:"occurrences,omitempty"` - // The next pagination token in the list response. It should be used as `page_token` for the following request. An empty value means no more results. - NextPageToken string `json:"next_page_token,omitempty"` -} diff --git a/0.1.0/model_v1beta1_note.go b/0.1.0/model_v1beta1_note.go deleted file mode 100644 index 55d9846..0000000 --- a/0.1.0/model_v1beta1_note.go +++ /dev/null @@ -1,50 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -import ( - "time" -) - -// A type of analysis that can be done for a resource. -type V1beta1Note struct { - // Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. - Name string `json:"name,omitempty"` - // A one sentence description of this note. - ShortDescription string `json:"short_description,omitempty"` - // A detailed description of this note. - LongDescription string `json:"long_description,omitempty"` - // Output only. The type of analysis. This field can be used as a filter in list requests. - Kind *V1beta1NoteKind `json:"kind,omitempty"` - // URLs associated with this note. - RelatedUrl []V1beta1RelatedUrl `json:"related_url,omitempty"` - // Time of expiration for this note. Empty if note does not expire. - ExpirationTime time.Time `json:"expiration_time,omitempty"` - // Output only. The time this note was created. This field can be used as a filter in list requests. - CreateTime time.Time `json:"create_time,omitempty"` - // Output only. The time this note was last updated. This field can be used as a filter in list requests. - UpdateTime time.Time `json:"update_time,omitempty"` - // Other notes related to this note. - RelatedNoteNames []string `json:"related_note_names,omitempty"` - // A note describing a package vulnerability. - Vulnerability *VulnerabilityVulnerability `json:"vulnerability,omitempty"` - // A note describing build provenance for a verifiable build. - Build *BuildBuild `json:"build,omitempty"` - // A note describing a base image. - BaseImage *ImageBasis `json:"base_image,omitempty"` - // A note describing a package hosted by various package managers. - Package_ *PackagePackage `json:"package,omitempty"` - // A note describing something that can be deployed. - Deployable *DeploymentDeployable `json:"deployable,omitempty"` - // A note describing the initial analysis of a resource. - Discovery *DiscoveryDiscovery `json:"discovery,omitempty"` - // A note describing an attestation role. - AttestationAuthority *AttestationAuthority `json:"attestation_authority,omitempty"` -} diff --git a/0.1.0/model_v1beta1_note_kind.go b/0.1.0/model_v1beta1_note_kind.go deleted file mode 100644 index f353084..0000000 --- a/0.1.0/model_v1beta1_note_kind.go +++ /dev/null @@ -1,24 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas -// V1beta1NoteKind : Kind represents the kinds of notes supported. - NOTE_KIND_UNSPECIFIED: Unknown. - VULNERABILITY: The note and occurrence represent a package vulnerability. - BUILD: The note and occurrence assert build provenance. - IMAGE: This represents an image basis relationship. - PACKAGE: This represents a package installed via a package manager. - DEPLOYMENT: The note and occurrence track deployment events. - DISCOVERY: The note and occurrence track the initial discovery status of a resource. - ATTESTATION: This represents a logical \"role\" that can attest to artifacts. -type V1beta1NoteKind string - -// List of v1beta1NoteKind -const ( - NOTE_KIND_UNSPECIFIED_V1beta1NoteKind V1beta1NoteKind = "NOTE_KIND_UNSPECIFIED" - VULNERABILITY_V1beta1NoteKind V1beta1NoteKind = "VULNERABILITY" - BUILD_V1beta1NoteKind V1beta1NoteKind = "BUILD" - IMAGE_V1beta1NoteKind V1beta1NoteKind = "IMAGE" - PACKAGE__V1beta1NoteKind V1beta1NoteKind = "PACKAGE" - DEPLOYMENT_V1beta1NoteKind V1beta1NoteKind = "DEPLOYMENT" - DISCOVERY_V1beta1NoteKind V1beta1NoteKind = "DISCOVERY" - ATTESTATION_V1beta1NoteKind V1beta1NoteKind = "ATTESTATION" -) diff --git a/0.1.0/model_v1beta1_occurrence.go b/0.1.0/model_v1beta1_occurrence.go deleted file mode 100644 index ef07e45..0000000 --- a/0.1.0/model_v1beta1_occurrence.go +++ /dev/null @@ -1,46 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -import ( - "time" -) - -// An instance of an analysis type that has been found on a resource. -type V1beta1Occurrence struct { - // Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. - Name string `json:"name,omitempty"` - // Required. Immutable. The resource for which the occurrence applies. - Resource *V1beta1Resource `json:"resource,omitempty"` - // 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. - NoteName string `json:"note_name,omitempty"` - // Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. - Kind *V1beta1NoteKind `json:"kind,omitempty"` - // A description of actions that can be taken to remedy the note. - Remediation string `json:"remediation,omitempty"` - // Output only. The time this occurrence was created. - CreateTime time.Time `json:"create_time,omitempty"` - // Output only. The time this occurrence was last updated. - UpdateTime time.Time `json:"update_time,omitempty"` - // Describes a security vulnerability. - Vulnerability *V1beta1vulnerabilityDetails `json:"vulnerability,omitempty"` - // Describes a verifiable build. - Build *V1beta1buildDetails `json:"build,omitempty"` - // Describes how this resource derives from the basis in the associated note. - DerivedImage *V1beta1imageDetails `json:"derived_image,omitempty"` - // Describes the installation of a package on the linked resource. - Installation *V1beta1packageDetails `json:"installation,omitempty"` - // Describes the deployment of an artifact on a runtime. - Deployment *V1beta1deploymentDetails `json:"deployment,omitempty"` - // Describes when a resource was discovered. - Discovered *V1beta1discoveryDetails `json:"discovered,omitempty"` - // Describes an attestation of an artifact. - Attestation *V1beta1attestationDetails `json:"attestation,omitempty"` -} diff --git a/0.1.0/model_v1beta1_related_url.go b/0.1.0/model_v1beta1_related_url.go deleted file mode 100644 index dfd4dd1..0000000 --- a/0.1.0/model_v1beta1_related_url.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Metadata for any related URL information. -type V1beta1RelatedUrl struct { - // Specific URL associated with the resource. - Url string `json:"url,omitempty"` - // Label to describe usage of the URL. - Label string `json:"label,omitempty"` -} diff --git a/0.1.0/model_v1beta1_resource.go b/0.1.0/model_v1beta1_resource.go deleted file mode 100644 index 8079bca..0000000 --- a/0.1.0/model_v1beta1_resource.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// An entity that can have metadata. For example, a Docker image. -type V1beta1Resource struct { - // Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - \"Debian\". - Name string `json:"name,omitempty"` - // Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image. - Uri string `json:"uri,omitempty"` - // Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest. - ContentHash *ProvenanceHash `json:"content_hash,omitempty"` -} diff --git a/0.1.0/model_v1beta1_signature.go b/0.1.0/model_v1beta1_signature.go deleted file mode 100644 index 2ddb29e..0000000 --- a/0.1.0/model_v1beta1_signature.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to the trust anchors defined in policy (e.g. a Kritis policy). Typically this means that the verifier has been configured with a map from `public_key_id` to public key material (and any required parameters, e.g. signing algorithm). In particular, verification implementations MUST NOT treat the signature `public_key_id` as anything more than a key lookup hint. The `public_key_id` DOES NOT validate or authenticate a public key; it only provides a mechanism for quickly selecting a public key ALREADY CONFIGURED on the verifier through a trusted channel. Verification implementations MUST reject signatures in any of the following circumstances: * The `public_key_id` is not recognized by the verifier. * The public key that `public_key_id` refers to does not verify the signature with respect to the payload. The `signature` contents SHOULD NOT be \"attached\" (where the payload is included with the serialized `signature` bytes). Verifiers MUST ignore any \"attached\" payload and only verify signatures with respect to explicitly provided payload (e.g. a `payload` field on the proto message that holds this Signature, or the canonical serialization of the proto message that holds this signature). -type V1beta1Signature struct { - // The content of the signature, an opaque bytestring. The payload that this signature verifies MUST be unambiguously provided with the Signature during verification. A wrapper message might provide the payload explicitly. Alternatively, a message might have a canonical serialization that can always be unambiguously computed to derive the payload. - Signature string `json:"signature,omitempty"` - // The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` MUST be an RFC3986 conformant URI. * When possible, the `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: OpenPGP V4 public key fingerprint: * \"openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA\" See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more details on this scheme. RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER serialization): * \"ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU\" * \"nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5\" - PublicKeyId string `json:"public_key_id,omitempty"` -} diff --git a/0.1.0/model_v1beta1_vulnerability_occurrences_summary.go b/0.1.0/model_v1beta1_vulnerability_occurrences_summary.go deleted file mode 100644 index 4e8b5b3..0000000 --- a/0.1.0/model_v1beta1_vulnerability_occurrences_summary.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// A summary of how many vulnerability occurrences there are per resource and severity type. -type V1beta1VulnerabilityOccurrencesSummary struct { - // A listing by resource of the number of fixable and total vulnerabilities. - Counts []VulnerabilityOccurrencesSummaryFixableTotalByDigest `json:"counts,omitempty"` -} diff --git a/0.1.0/model_v1beta1build_details.go b/0.1.0/model_v1beta1build_details.go deleted file mode 100644 index 0bc1b68..0000000 --- a/0.1.0/model_v1beta1build_details.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Details of a build occurrence. -type V1beta1buildDetails struct { - // Required. The actual provenance for the build. - Provenance *ProvenanceBuildProvenance `json:"provenance,omitempty"` - // 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. - ProvenanceBytes string `json:"provenance_bytes,omitempty"` -} diff --git a/0.1.0/model_v1beta1deployment_details.go b/0.1.0/model_v1beta1deployment_details.go deleted file mode 100644 index f0ee284..0000000 --- a/0.1.0/model_v1beta1deployment_details.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Details of a deployment occurrence. -type V1beta1deploymentDetails struct { - // Required. Deployment history for the resource. - Deployment *DeploymentDeployment `json:"deployment,omitempty"` -} diff --git a/0.1.0/model_v1beta1discovery_details.go b/0.1.0/model_v1beta1discovery_details.go deleted file mode 100644 index 5163c8e..0000000 --- a/0.1.0/model_v1beta1discovery_details.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Details of a discovery occurrence. -type V1beta1discoveryDetails struct { - // Required. Analysis status for the discovered resource. - Discovered *DiscoveryDiscovered `json:"discovered,omitempty"` -} diff --git a/0.1.0/model_v1beta1image_details.go b/0.1.0/model_v1beta1image_details.go deleted file mode 100644 index 1128466..0000000 --- a/0.1.0/model_v1beta1image_details.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Details of an image occurrence. -type V1beta1imageDetails struct { - // Required. Immutable. The child image derived from the base image. - DerivedImage *ImageDerived `json:"derived_image,omitempty"` -} diff --git a/0.1.0/model_v1beta1package_details.go b/0.1.0/model_v1beta1package_details.go deleted file mode 100644 index 8d0a7a8..0000000 --- a/0.1.0/model_v1beta1package_details.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Details of a package occurrence. -type V1beta1packageDetails struct { - // Required. Where the package was installed. - Installation *PackageInstallation `json:"installation,omitempty"` -} diff --git a/0.1.0/model_v1beta1package_location.go b/0.1.0/model_v1beta1package_location.go deleted file mode 100644 index 0c40de3..0000000 --- a/0.1.0/model_v1beta1package_location.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// An occurrence of a particular package installation found within a system's filesystem. E.g., glibc was found in `/var/lib/dpkg/status`. -type V1beta1packageLocation struct { - // Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. - CpeUri string `json:"cpe_uri,omitempty"` - // The version installed at this location. - Version *PackageVersion `json:"version,omitempty"` - // The path from which we gathered that this package/version is installed. - Path string `json:"path,omitempty"` -} diff --git a/0.1.0/model_v1beta1vulnerability_details.go b/0.1.0/model_v1beta1vulnerability_details.go deleted file mode 100644 index 12b2f52..0000000 --- a/0.1.0/model_v1beta1vulnerability_details.go +++ /dev/null @@ -1,29 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Details of a vulnerability Occurrence. -type V1beta1vulnerabilityDetails struct { - Type_ string `json:"type,omitempty"` - // Output only. The note provider assigned Severity of the vulnerability. - Severity *VulnerabilitySeverity `json:"severity,omitempty"` - // Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity. - CvssScore float32 `json:"cvss_score,omitempty"` - // Required. The set of affected locations and their fixes (if available) within the associated resource. - PackageIssue []VulnerabilityPackageIssue `json:"package_issue,omitempty"` - // Output only. A one sentence description of this vulnerability. - ShortDescription string `json:"short_description,omitempty"` - // Output only. A detailed description of this vulnerability. - LongDescription string `json:"long_description,omitempty"` - // Output only. URLs related to this vulnerability. - RelatedUrls []V1beta1RelatedUrl `json:"related_urls,omitempty"` - // The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. - EffectiveSeverity *VulnerabilitySeverity `json:"effective_severity,omitempty"` -} diff --git a/0.1.0/model_version_version_kind.go b/0.1.0/model_version_version_kind.go deleted file mode 100644 index 7d31463..0000000 --- a/0.1.0/model_version_version_kind.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas -// VersionVersionKind : Whether this is an ordinary package version or a sentinel MIN/MAX version. - VERSION_KIND_UNSPECIFIED: Unknown. - NORMAL: A standard package version. - MINIMUM: A special version representing negative infinity. - MAXIMUM: A special version representing positive infinity. -type VersionVersionKind string - -// List of VersionVersionKind -const ( - VERSION_KIND_UNSPECIFIED_VersionVersionKind VersionVersionKind = "VERSION_KIND_UNSPECIFIED" - NORMAL_VersionVersionKind VersionVersionKind = "NORMAL" - MINIMUM_VersionVersionKind VersionVersionKind = "MINIMUM" - MAXIMUM_VersionVersionKind VersionVersionKind = "MAXIMUM" -) diff --git a/0.1.0/model_vulnerability_cvs_sv3.go b/0.1.0/model_vulnerability_cvs_sv3.go deleted file mode 100644 index c28a200..0000000 --- a/0.1.0/model_vulnerability_cvs_sv3.go +++ /dev/null @@ -1,26 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -type VulnerabilityCvsSv3 struct { - // The base score is a function of the base metric scores. - BaseScore float32 `json:"base_score,omitempty"` - ExploitabilityScore float32 `json:"exploitability_score,omitempty"` - ImpactScore float32 `json:"impact_score,omitempty"` - // Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. - AttackVector *CvsSv3AttackVector `json:"attack_vector,omitempty"` - AttackComplexity *CvsSv3AttackComplexity `json:"attack_complexity,omitempty"` - PrivilegesRequired *CvsSv3PrivilegesRequired `json:"privileges_required,omitempty"` - UserInteraction *CvsSv3UserInteraction `json:"user_interaction,omitempty"` - Scope *CvsSv3Scope `json:"scope,omitempty"` - ConfidentialityImpact *CvsSv3Impact `json:"confidentiality_impact,omitempty"` - IntegrityImpact *CvsSv3Impact `json:"integrity_impact,omitempty"` - AvailabilityImpact *CvsSv3Impact `json:"availability_impact,omitempty"` -} diff --git a/0.1.0/model_vulnerability_detail.go b/0.1.0/model_vulnerability_detail.go deleted file mode 100644 index eb8a6bd..0000000 --- a/0.1.0/model_vulnerability_detail.go +++ /dev/null @@ -1,31 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -type VulnerabilityDetail struct { - // Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar. - CpeUri string `json:"cpe_uri,omitempty"` - // Required. The name of the package where the vulnerability was found. - Package_ string `json:"package,omitempty"` - // The min version of the package in which the vulnerability exists. - MinAffectedVersion *PackageVersion `json:"min_affected_version,omitempty"` - // Deprecated, do not use. Use fixed_location instead. The max version of the package in which the vulnerability exists. - MaxAffectedVersion *PackageVersion `json:"max_affected_version,omitempty"` - // The severity (eg: distro assigned severity) for this vulnerability. - SeverityName string `json:"severity_name,omitempty"` - // A vendor-specific description of this note. - Description string `json:"description,omitempty"` - // The fix for this specific package version. - FixedLocation *VulnerabilityVulnerabilityLocation `json:"fixed_location,omitempty"` - // The type of package; whether native or non native(ruby gems, node.js packages etc). - PackageType string `json:"package_type,omitempty"` - // Whether this detail is obsolete. Occurrences are expected not to point to obsolete details. - IsObsolete bool `json:"is_obsolete,omitempty"` -} diff --git a/0.1.0/model_vulnerability_occurrences_summary_fixable_total_by_digest.go b/0.1.0/model_vulnerability_occurrences_summary_fixable_total_by_digest.go deleted file mode 100644 index 99b9766..0000000 --- a/0.1.0/model_vulnerability_occurrences_summary_fixable_total_by_digest.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Per resource and severity counts of fixable and total vulnerabilities. -type VulnerabilityOccurrencesSummaryFixableTotalByDigest struct { - // The affected resource. - Resource *V1beta1Resource `json:"resource,omitempty"` - // The severity for this count. SEVERITY_UNSPECIFIED indicates total across all severities. - Severity *VulnerabilitySeverity `json:"severity,omitempty"` - // The number of fixable vulnerabilities associated with this resource. - FixableCount string `json:"fixable_count,omitempty"` - // The total number of vulnerabilities associated with this resource. - TotalCount string `json:"total_count,omitempty"` -} diff --git a/0.1.0/model_vulnerability_package_issue.go b/0.1.0/model_vulnerability_package_issue.go deleted file mode 100644 index 0b21a86..0000000 --- a/0.1.0/model_vulnerability_package_issue.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// This message wraps a location affected by a vulnerability and its associated fix (if one is available). -type VulnerabilityPackageIssue struct { - // Required. The location of the vulnerability. - AffectedLocation *VulnerabilityVulnerabilityLocation `json:"affected_location,omitempty"` - // The location of the available fix for vulnerability. - FixedLocation *VulnerabilityVulnerabilityLocation `json:"fixed_location,omitempty"` - // Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability. - SeverityName string `json:"severity_name,omitempty"` -} diff --git a/0.1.0/model_vulnerability_severity.go b/0.1.0/model_vulnerability_severity.go deleted file mode 100644 index 78460bd..0000000 --- a/0.1.0/model_vulnerability_severity.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas -// VulnerabilitySeverity : Note provider-assigned severity/impact ranking. - SEVERITY_UNSPECIFIED: Unknown. - MINIMAL: Minimal severity. - LOW: Low severity. - MEDIUM: Medium severity. - HIGH: High severity. - CRITICAL: Critical severity. -type VulnerabilitySeverity string - -// List of vulnerabilitySeverity -const ( - SEVERITY_UNSPECIFIED_VulnerabilitySeverity VulnerabilitySeverity = "SEVERITY_UNSPECIFIED" - MINIMAL_VulnerabilitySeverity VulnerabilitySeverity = "MINIMAL" - LOW_VulnerabilitySeverity VulnerabilitySeverity = "LOW" - MEDIUM_VulnerabilitySeverity VulnerabilitySeverity = "MEDIUM" - HIGH_VulnerabilitySeverity VulnerabilitySeverity = "HIGH" - CRITICAL_VulnerabilitySeverity VulnerabilitySeverity = "CRITICAL" -) diff --git a/0.1.0/model_vulnerability_vulnerability.go b/0.1.0/model_vulnerability_vulnerability.go deleted file mode 100644 index bc37541..0000000 --- a/0.1.0/model_vulnerability_vulnerability.go +++ /dev/null @@ -1,24 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// Vulnerability provides metadata about a security vulnerability in a Note. -type VulnerabilityVulnerability struct { - // The CVSS score for this vulnerability. - CvssScore float32 `json:"cvss_score,omitempty"` - // Note provider assigned impact of the vulnerability. - Severity *VulnerabilitySeverity `json:"severity,omitempty"` - // All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in. - Details []VulnerabilityDetail `json:"details,omitempty"` - // The full description of the CVSSv3. - CvssV3 *VulnerabilityCvsSv3 `json:"cvss_v3,omitempty"` - // Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version. - WindowsDetails []VulnerabilityWindowsDetail `json:"windows_details,omitempty"` -} diff --git a/0.1.0/model_vulnerability_vulnerability_location.go b/0.1.0/model_vulnerability_vulnerability_location.go deleted file mode 100644 index a1d895e..0000000 --- a/0.1.0/model_vulnerability_vulnerability_location.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// The location of the vulnerability. -type VulnerabilityVulnerabilityLocation struct { - // Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. - CpeUri string `json:"cpe_uri,omitempty"` - // Required. The package being described. - Package_ string `json:"package,omitempty"` - // Required. The version of the package being described. - Version *PackageVersion `json:"version,omitempty"` -} diff --git a/0.1.0/model_vulnerability_windows_detail.go b/0.1.0/model_vulnerability_windows_detail.go deleted file mode 100644 index a786361..0000000 --- a/0.1.0/model_vulnerability_windows_detail.go +++ /dev/null @@ -1,21 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -type VulnerabilityWindowsDetail struct { - // Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar. - CpeUri string `json:"cpe_uri,omitempty"` - // Required. The name of the vulnerability. - Name string `json:"name,omitempty"` - // The description of the vulnerability. - Description string `json:"description,omitempty"` - // Required. The names of the KBs which have hotfixes to mitigate this vulnerability. Note that there may be multiple hotfixes (and thus multiple KBs) that mitigate a given vulnerability. Currently any listed kb's presence is considered a fix. - FixingKbs []WindowsDetailKnowledgeBase `json:"fixing_kbs,omitempty"` -} diff --git a/0.1.0/model_windows_detail_knowledge_base.go b/0.1.0/model_windows_detail_knowledge_base.go deleted file mode 100644 index 714f08a..0000000 --- a/0.1.0/model_windows_detail_knowledge_base.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -type WindowsDetailKnowledgeBase struct { - // The KB name (generally of the form KB[0-9]+ i.e. KB123456). - Name string `json:"name,omitempty"` - Url string `json:"url,omitempty"` -} diff --git a/0.1.0/response.go b/0.1.0/response.go deleted file mode 100644 index 8d3cc78..0000000 --- a/0.1.0/response.go +++ /dev/null @@ -1,43 +0,0 @@ -/* - * proto/v1beta1/grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -import ( - "net/http" -) - -type APIResponse struct { - *http.Response `json:"-"` - Message string `json:"message,omitempty"` - // Operation is the name of the swagger operation. - Operation string `json:"operation,omitempty"` - // RequestURL is the request URL. This value is always available, even if the - // embedded *http.Response is nil. - RequestURL string `json:"url,omitempty"` - // Method is the HTTP method used for the request. This value is always - // available, even if the embedded *http.Response is nil. - Method string `json:"method,omitempty"` - // Payload holds the contents of the response body (which may be nil or empty). - // This is provided here as the raw response.Body() reader will have already - // been drained. - Payload []byte `json:"-"` -} - -func NewAPIResponse(r *http.Response) *APIResponse { - - response := &APIResponse{Response: r} - return response -} - -func NewAPIResponseWithError(errorMessage string) *APIResponse { - - response := &APIResponse{Message: errorMessage} - return response -} diff --git a/0.2.0/grafeas/docs/AliasContextKind.md b/0.2.0/grafeas/docs/AliasContextKind.md deleted file mode 100644 index 78893df..0000000 --- a/0.2.0/grafeas/docs/AliasContextKind.md +++ /dev/null @@ -1,9 +0,0 @@ -# AliasContextKind - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/AttestationAttestation.md b/0.2.0/grafeas/docs/AttestationAttestation.md deleted file mode 100644 index c832120..0000000 --- a/0.2.0/grafeas/docs/AttestationAttestation.md +++ /dev/null @@ -1,11 +0,0 @@ -# AttestationAttestation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**PgpSignedAttestation** | [***AttestationPgpSignedAttestation**](attestationPgpSignedAttestation.md) | A PGP signed attestation. | [optional] [default to null] -**GenericSignedAttestation** | [***AttestationGenericSignedAttestation**](attestationGenericSignedAttestation.md) | An attestation that supports multiple `Signature`s over the same attestation payload. The signatures (defined in common.proto) support a superset of public key types and IDs compared to PgpSignedAttestation. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/AttestationAuthority.md b/0.2.0/grafeas/docs/AttestationAuthority.md deleted file mode 100644 index 437d26f..0000000 --- a/0.2.0/grafeas/docs/AttestationAuthority.md +++ /dev/null @@ -1,10 +0,0 @@ -# AttestationAuthority - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Hint** | [***AuthorityHint**](AuthorityHint.md) | Hint hints at the purpose of the attestation authority. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/AttestationGenericSignedAttestationContentType.md b/0.2.0/grafeas/docs/AttestationGenericSignedAttestationContentType.md deleted file mode 100644 index 8c358b6..0000000 --- a/0.2.0/grafeas/docs/AttestationGenericSignedAttestationContentType.md +++ /dev/null @@ -1,9 +0,0 @@ -# AttestationGenericSignedAttestationContentType - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/AttestationPgpSignedAttestationContentType.md b/0.2.0/grafeas/docs/AttestationPgpSignedAttestationContentType.md deleted file mode 100644 index 5c1320d..0000000 --- a/0.2.0/grafeas/docs/AttestationPgpSignedAttestationContentType.md +++ /dev/null @@ -1,9 +0,0 @@ -# AttestationPgpSignedAttestationContentType - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/AuthorityHint.md b/0.2.0/grafeas/docs/AuthorityHint.md deleted file mode 100644 index 71ac518..0000000 --- a/0.2.0/grafeas/docs/AuthorityHint.md +++ /dev/null @@ -1,10 +0,0 @@ -# AuthorityHint - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**HumanReadableName** | **string** | Required. The human readable name of this attestation authority, for example \"qa\". | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/BuildBuild.md b/0.2.0/grafeas/docs/BuildBuild.md deleted file mode 100644 index 5ba54df..0000000 --- a/0.2.0/grafeas/docs/BuildBuild.md +++ /dev/null @@ -1,11 +0,0 @@ -# BuildBuild - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**BuilderVersion** | **string** | Required. Immutable. Version of the builder which produced this build. | [optional] [default to null] -**Signature** | [***BuildBuildSignature**](buildBuildSignature.md) | Signature of the build in occurrences pointing to this build note containing build details. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/BuildBuildSignature.md b/0.2.0/grafeas/docs/BuildBuildSignature.md deleted file mode 100644 index 375e755..0000000 --- a/0.2.0/grafeas/docs/BuildBuildSignature.md +++ /dev/null @@ -1,13 +0,0 @@ -# BuildBuildSignature - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**PublicKey** | **string** | Public key of the builder which can be used to verify that the related findings are valid and unchanged. If `key_type` is empty, this defaults to PEM encoded public keys. This field may be empty if `key_id` references an external key. For Cloud Build based signatures, this is a PEM encoded public key. To verify the Cloud Build signature, place the contents of this field into a file (public.pem). The signature field is base64-decoded into its binary representation in signature.bin, and the provenance bytes from `BuildDetails` are base64-decoded into a binary representation in signed.bin. OpenSSL can then verify the signature: `openssl sha256 -verify public.pem -signature signature.bin signed.bin` | [optional] [default to null] -**Signature** | **string** | Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded. | [optional] [default to null] -**KeyId** | **string** | An ID for the key used to sign. This could be either an ID for the key stored in `public_key` (such as the ID or fingerprint for a PGP key, or the CN for a cert), or a reference to an external key (such as a reference to a key in Cloud Key Management Service). | [optional] [default to null] -**KeyType** | [***BuildSignatureKeyType**](BuildSignatureKeyType.md) | The type of the key, either stored in `public_key` or referenced in `key_id`. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/BuildSignatureKeyType.md b/0.2.0/grafeas/docs/BuildSignatureKeyType.md deleted file mode 100644 index c422692..0000000 --- a/0.2.0/grafeas/docs/BuildSignatureKeyType.md +++ /dev/null @@ -1,9 +0,0 @@ -# BuildSignatureKeyType - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/DeploymentDeployable.md b/0.2.0/grafeas/docs/DeploymentDeployable.md deleted file mode 100644 index 1ae869d..0000000 --- a/0.2.0/grafeas/docs/DeploymentDeployable.md +++ /dev/null @@ -1,10 +0,0 @@ -# DeploymentDeployable - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ResourceUri** | **[]string** | Required. Resource URI for the artifact being deployed. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/DeploymentDeployment.md b/0.2.0/grafeas/docs/DeploymentDeployment.md deleted file mode 100644 index 901e9f4..0000000 --- a/0.2.0/grafeas/docs/DeploymentDeployment.md +++ /dev/null @@ -1,16 +0,0 @@ -# DeploymentDeployment - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**UserEmail** | **string** | Identity of the user that triggered this deployment. | [optional] [default to null] -**DeployTime** | [**time.Time**](time.Time.md) | Required. Beginning of the lifetime of this deployment. | [optional] [default to null] -**UndeployTime** | [**time.Time**](time.Time.md) | End of the lifetime of this deployment. | [optional] [default to null] -**Config** | **string** | Configuration used to create this deployment. | [optional] [default to null] -**Address** | **string** | Address of the runtime element hosting this deployment. | [optional] [default to null] -**ResourceUri** | **[]string** | Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name. | [optional] [default to null] -**Platform** | [***DeploymentPlatform**](DeploymentPlatform.md) | Platform hosting this deployment. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/DeploymentPlatform.md b/0.2.0/grafeas/docs/DeploymentPlatform.md deleted file mode 100644 index fd5e055..0000000 --- a/0.2.0/grafeas/docs/DeploymentPlatform.md +++ /dev/null @@ -1,9 +0,0 @@ -# DeploymentPlatform - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/DiscoveredAnalysisStatus.md b/0.2.0/grafeas/docs/DiscoveredAnalysisStatus.md deleted file mode 100644 index 5cf66c8..0000000 --- a/0.2.0/grafeas/docs/DiscoveredAnalysisStatus.md +++ /dev/null @@ -1,9 +0,0 @@ -# DiscoveredAnalysisStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/DiscoveredContinuousAnalysis.md b/0.2.0/grafeas/docs/DiscoveredContinuousAnalysis.md deleted file mode 100644 index 61e65fc..0000000 --- a/0.2.0/grafeas/docs/DiscoveredContinuousAnalysis.md +++ /dev/null @@ -1,9 +0,0 @@ -# DiscoveredContinuousAnalysis - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/DiscoveryDiscovered.md b/0.2.0/grafeas/docs/DiscoveryDiscovered.md deleted file mode 100644 index b15ab2f..0000000 --- a/0.2.0/grafeas/docs/DiscoveryDiscovered.md +++ /dev/null @@ -1,13 +0,0 @@ -# DiscoveryDiscovered - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ContinuousAnalysis** | [***DiscoveredContinuousAnalysis**](DiscoveredContinuousAnalysis.md) | Whether the resource is continuously analyzed. | [optional] [default to null] -**LastAnalysisTime** | [**time.Time**](time.Time.md) | The last time continuous analysis was done for this resource. Deprecated, do not use. | [optional] [default to null] -**AnalysisStatus** | [***DiscoveredAnalysisStatus**](DiscoveredAnalysisStatus.md) | The status of discovery for the resource. | [optional] [default to null] -**AnalysisStatusError** | [***RpcStatus**](rpcStatus.md) | When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/DiscoveryDiscovery.md b/0.2.0/grafeas/docs/DiscoveryDiscovery.md deleted file mode 100644 index 87047b4..0000000 --- a/0.2.0/grafeas/docs/DiscoveryDiscovery.md +++ /dev/null @@ -1,10 +0,0 @@ -# DiscoveryDiscovery - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**AnalysisKind** | [***V1beta1NoteKind**](v1beta1NoteKind.md) | Required. Immutable. The kind of analysis that is handled by this discovery. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/HashHashType.md b/0.2.0/grafeas/docs/HashHashType.md deleted file mode 100644 index 5c1fdd8..0000000 --- a/0.2.0/grafeas/docs/HashHashType.md +++ /dev/null @@ -1,9 +0,0 @@ -# HashHashType - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/ImageBasis.md b/0.2.0/grafeas/docs/ImageBasis.md deleted file mode 100644 index 9b48cb9..0000000 --- a/0.2.0/grafeas/docs/ImageBasis.md +++ /dev/null @@ -1,11 +0,0 @@ -# ImageBasis - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ResourceUrl** | **string** | Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images. | [optional] [default to null] -**Fingerprint** | [***ImageFingerprint**](imageFingerprint.md) | Required. Immutable. The fingerprint of the base image. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/ImageDerived.md b/0.2.0/grafeas/docs/ImageDerived.md deleted file mode 100644 index 4e53809..0000000 --- a/0.2.0/grafeas/docs/ImageDerived.md +++ /dev/null @@ -1,13 +0,0 @@ -# ImageDerived - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Fingerprint** | [***ImageFingerprint**](imageFingerprint.md) | Required. The fingerprint of the derived image. | [optional] [default to null] -**Distance** | **int32** | Output only. The number of layers by which this image differs from the associated image basis. | [optional] [default to null] -**LayerInfo** | [**[]ImageLayer**](imageLayer.md) | This contains layer-specific metadata, if populated it has length \"distance\" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer. | [optional] [default to null] -**BaseResourceUrl** | **string** | Output only. This contains the base image URL for the derived image occurrence. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/ImageFingerprint.md b/0.2.0/grafeas/docs/ImageFingerprint.md deleted file mode 100644 index 6500afd..0000000 --- a/0.2.0/grafeas/docs/ImageFingerprint.md +++ /dev/null @@ -1,12 +0,0 @@ -# ImageFingerprint - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**V1Name** | **string** | Required. The layer ID of the final layer in the Docker image's v1 representation. | [optional] [default to null] -**V2Blob** | **[]string** | Required. The ordered list of v2 blobs that represent a given image. | [optional] [default to null] -**V2Name** | **string** | Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blob[bottom] [N] := sha256(v2_blob[N] + \" \" + v2_name[N+1]) Only the name of the final blob is kept. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/ImageLayer.md b/0.2.0/grafeas/docs/ImageLayer.md deleted file mode 100644 index 28fc2da..0000000 --- a/0.2.0/grafeas/docs/ImageLayer.md +++ /dev/null @@ -1,11 +0,0 @@ -# ImageLayer - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Directive** | [***LayerDirective**](LayerDirective.md) | Required. The recovered Dockerfile directive used to construct this layer. | [optional] [default to null] -**Arguments** | **string** | The recovered arguments to the Dockerfile directive. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/PackageArchitecture.md b/0.2.0/grafeas/docs/PackageArchitecture.md deleted file mode 100644 index 903eb48..0000000 --- a/0.2.0/grafeas/docs/PackageArchitecture.md +++ /dev/null @@ -1,9 +0,0 @@ -# PackageArchitecture - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/PackageInstallation.md b/0.2.0/grafeas/docs/PackageInstallation.md deleted file mode 100644 index 0589f78..0000000 --- a/0.2.0/grafeas/docs/PackageInstallation.md +++ /dev/null @@ -1,11 +0,0 @@ -# PackageInstallation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | Output only. The name of the installed package. | [optional] [default to null] -**Location** | [**[]V1beta1packageLocation**](v1beta1packageLocation.md) | Required. All of the places within the filesystem versions of this package have been found. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/PackagePackage.md b/0.2.0/grafeas/docs/PackagePackage.md deleted file mode 100644 index c250883..0000000 --- a/0.2.0/grafeas/docs/PackagePackage.md +++ /dev/null @@ -1,11 +0,0 @@ -# PackagePackage - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | Required. Immutable. The name of the package. | [optional] [default to null] -**Distribution** | [**[]PackageDistribution**](packageDistribution.md) | The various channels by which a package is distributed. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/ProvenanceCommand.md b/0.2.0/grafeas/docs/ProvenanceCommand.md deleted file mode 100644 index 45507b6..0000000 --- a/0.2.0/grafeas/docs/ProvenanceCommand.md +++ /dev/null @@ -1,15 +0,0 @@ -# ProvenanceCommand - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | Required. Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`. | [optional] [default to null] -**Env** | **[]string** | Environment variables set before running this command. | [optional] [default to null] -**Args** | **[]string** | Command-line arguments used when executing this command. | [optional] [default to null] -**Dir** | **string** | Working directory (relative to project source root) used when running this command. | [optional] [default to null] -**Id** | **string** | Optional unique identifier for this command, used in wait_for to reference this command as a dependency. | [optional] [default to null] -**WaitFor** | **[]string** | The ID(s) of the command(s) that this command depends on. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/ProvenanceFileHashes.md b/0.2.0/grafeas/docs/ProvenanceFileHashes.md deleted file mode 100644 index 266e581..0000000 --- a/0.2.0/grafeas/docs/ProvenanceFileHashes.md +++ /dev/null @@ -1,10 +0,0 @@ -# ProvenanceFileHashes - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FileHash** | [**[]ProvenanceHash**](provenanceHash.md) | Required. Collection of file hashes. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/ProvenanceHash.md b/0.2.0/grafeas/docs/ProvenanceHash.md deleted file mode 100644 index fe9aede..0000000 --- a/0.2.0/grafeas/docs/ProvenanceHash.md +++ /dev/null @@ -1,11 +0,0 @@ -# ProvenanceHash - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type_** | [***HashHashType**](HashHashType.md) | Required. The type of hash that was performed. | [optional] [default to null] -**Value** | **string** | Required. The hash value. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/ProvenanceSource.md b/0.2.0/grafeas/docs/ProvenanceSource.md deleted file mode 100644 index ce4cbbe..0000000 --- a/0.2.0/grafeas/docs/ProvenanceSource.md +++ /dev/null @@ -1,13 +0,0 @@ -# ProvenanceSource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ArtifactStorageSourceUri** | **string** | If provided, the input binary artifacts for the build came from this location. | [optional] [default to null] -**FileHashes** | [**map[string]ProvenanceFileHashes**](provenanceFileHashes.md) | Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (.tar.gz), the FileHash will be for the single path to that file. | [optional] [default to null] -**Context** | [***SourceSourceContext**](sourceSourceContext.md) | If provided, the source code used for the build came from this location. | [optional] [default to null] -**AdditionalContexts** | [**[]SourceSourceContext**](sourceSourceContext.md) | If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/RpcStatus.md b/0.2.0/grafeas/docs/RpcStatus.md deleted file mode 100644 index 52a1849..0000000 --- a/0.2.0/grafeas/docs/RpcStatus.md +++ /dev/null @@ -1,12 +0,0 @@ -# RpcStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Code** | **int32** | The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. | [optional] [default to null] -**Message** | **string** | A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client. | [optional] [default to null] -**Details** | [**[]ProtobufAny**](protobufAny.md) | A list of messages that carry the error details. There is a common set of message types for APIs to use. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/SourceAliasContext.md b/0.2.0/grafeas/docs/SourceAliasContext.md deleted file mode 100644 index 988ee0c..0000000 --- a/0.2.0/grafeas/docs/SourceAliasContext.md +++ /dev/null @@ -1,11 +0,0 @@ -# SourceAliasContext - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Kind** | [***AliasContextKind**](AliasContextKind.md) | The alias kind. | [optional] [default to null] -**Name** | **string** | The alias name. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/SourceCloudRepoSourceContext.md b/0.2.0/grafeas/docs/SourceCloudRepoSourceContext.md deleted file mode 100644 index 8d99968..0000000 --- a/0.2.0/grafeas/docs/SourceCloudRepoSourceContext.md +++ /dev/null @@ -1,12 +0,0 @@ -# SourceCloudRepoSourceContext - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**RepoId** | [***SourceRepoId**](sourceRepoId.md) | The ID of the repo. | [optional] [default to null] -**RevisionId** | **string** | A revision ID. | [optional] [default to null] -**AliasContext** | [***SourceAliasContext**](sourceAliasContext.md) | An alias, which may be a branch or tag. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/SourceGerritSourceContext.md b/0.2.0/grafeas/docs/SourceGerritSourceContext.md deleted file mode 100644 index cfd0d74..0000000 --- a/0.2.0/grafeas/docs/SourceGerritSourceContext.md +++ /dev/null @@ -1,13 +0,0 @@ -# SourceGerritSourceContext - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**HostUri** | **string** | The URI of a running Gerrit instance. | [optional] [default to null] -**GerritProject** | **string** | The full project name within the host. Projects may be nested, so \"project/subproject\" is a valid project name. The \"repo name\" is the hostURI/project. | [optional] [default to null] -**RevisionId** | **string** | A revision (commit) ID. | [optional] [default to null] -**AliasContext** | [***SourceAliasContext**](sourceAliasContext.md) | An alias, which may be a branch or tag. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/SourceGitSourceContext.md b/0.2.0/grafeas/docs/SourceGitSourceContext.md deleted file mode 100644 index 2ad3cf4..0000000 --- a/0.2.0/grafeas/docs/SourceGitSourceContext.md +++ /dev/null @@ -1,11 +0,0 @@ -# SourceGitSourceContext - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Url** | **string** | Git repository URL. | [optional] [default to null] -**RevisionId** | **string** | Git commit hash. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/SourceProjectRepoId.md b/0.2.0/grafeas/docs/SourceProjectRepoId.md deleted file mode 100644 index ad514c1..0000000 --- a/0.2.0/grafeas/docs/SourceProjectRepoId.md +++ /dev/null @@ -1,11 +0,0 @@ -# SourceProjectRepoId - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ProjectId** | **string** | The ID of the project. | [optional] [default to null] -**RepoName** | **string** | The name of the repo. Leave empty for the default repo. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/SourceRepoId.md b/0.2.0/grafeas/docs/SourceRepoId.md deleted file mode 100644 index cf9a0c9..0000000 --- a/0.2.0/grafeas/docs/SourceRepoId.md +++ /dev/null @@ -1,11 +0,0 @@ -# SourceRepoId - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ProjectRepoId** | [***SourceProjectRepoId**](sourceProjectRepoId.md) | A combination of a project ID and a repo name. | [optional] [default to null] -**Uid** | **string** | A server-assigned, globally unique identifier. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/SourceSourceContext.md b/0.2.0/grafeas/docs/SourceSourceContext.md deleted file mode 100644 index 2f33d3d..0000000 --- a/0.2.0/grafeas/docs/SourceSourceContext.md +++ /dev/null @@ -1,13 +0,0 @@ -# SourceSourceContext - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CloudRepo** | [***SourceCloudRepoSourceContext**](sourceCloudRepoSourceContext.md) | A SourceContext referring to a revision in a Google Cloud Source Repo. | [optional] [default to null] -**Gerrit** | [***SourceGerritSourceContext**](sourceGerritSourceContext.md) | A SourceContext referring to a Gerrit project. | [optional] [default to null] -**Git** | [***SourceGitSourceContext**](sourceGitSourceContext.md) | A SourceContext referring to any third party Git repo (e.g., GitHub). | [optional] [default to null] -**Labels** | **map[string]string** | Labels with user defined metadata. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/SpdxLicense.md b/0.2.0/grafeas/docs/SpdxLicense.md deleted file mode 100644 index fd82686..0000000 --- a/0.2.0/grafeas/docs/SpdxLicense.md +++ /dev/null @@ -1,11 +0,0 @@ -# SpdxLicense - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Expression** | **string** | | [optional] [default to null] -**Comments** | **string** | | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/V1beta1BatchCreateNotesResponse.md b/0.2.0/grafeas/docs/V1beta1BatchCreateNotesResponse.md deleted file mode 100644 index 64251e6..0000000 --- a/0.2.0/grafeas/docs/V1beta1BatchCreateNotesResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# V1beta1BatchCreateNotesResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Notes** | [**[]V1beta1Note**](v1beta1Note.md) | The notes that were created. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/V1beta1BatchCreateOccurrencesResponse.md b/0.2.0/grafeas/docs/V1beta1BatchCreateOccurrencesResponse.md deleted file mode 100644 index 4c96b60..0000000 --- a/0.2.0/grafeas/docs/V1beta1BatchCreateOccurrencesResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# V1beta1BatchCreateOccurrencesResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Occurrences** | [**[]V1beta1Occurrence**](v1beta1Occurrence.md) | The occurrences that were created. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/V1beta1ListNoteOccurrencesResponse.md b/0.2.0/grafeas/docs/V1beta1ListNoteOccurrencesResponse.md deleted file mode 100644 index 92b9ca2..0000000 --- a/0.2.0/grafeas/docs/V1beta1ListNoteOccurrencesResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1beta1ListNoteOccurrencesResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Occurrences** | [**[]V1beta1Occurrence**](v1beta1Occurrence.md) | The occurrences attached to the specified note. | [optional] [default to null] -**NextPageToken** | **string** | Token to provide to skip to a particular spot in the list. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/V1beta1ListNotesResponse.md b/0.2.0/grafeas/docs/V1beta1ListNotesResponse.md deleted file mode 100644 index ed31ab9..0000000 --- a/0.2.0/grafeas/docs/V1beta1ListNotesResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1beta1ListNotesResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Notes** | [**[]V1beta1Note**](v1beta1Note.md) | The notes requested. | [optional] [default to null] -**NextPageToken** | **string** | The next pagination token in the list response. It should be used as `page_token` for the following request. An empty value means no more results. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/V1beta1ListOccurrencesResponse.md b/0.2.0/grafeas/docs/V1beta1ListOccurrencesResponse.md deleted file mode 100644 index 08b4e98..0000000 --- a/0.2.0/grafeas/docs/V1beta1ListOccurrencesResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1beta1ListOccurrencesResponse - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Occurrences** | [**[]V1beta1Occurrence**](v1beta1Occurrence.md) | The occurrences requested. | [optional] [default to null] -**NextPageToken** | **string** | The next pagination token in the list response. It should be used as `page_token` for the following request. An empty value means no more results. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/V1beta1NoteKind.md b/0.2.0/grafeas/docs/V1beta1NoteKind.md deleted file mode 100644 index 35294be..0000000 --- a/0.2.0/grafeas/docs/V1beta1NoteKind.md +++ /dev/null @@ -1,9 +0,0 @@ -# V1beta1NoteKind - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/V1beta1Resource.md b/0.2.0/grafeas/docs/V1beta1Resource.md deleted file mode 100644 index f9add51..0000000 --- a/0.2.0/grafeas/docs/V1beta1Resource.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1beta1Resource - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - \"Debian\". | [optional] [default to null] -**Uri** | **string** | Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image. | [optional] [default to null] -**ContentHash** | [***ProvenanceHash**](provenanceHash.md) | Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/V1beta1VulnerabilityOccurrencesSummary.md b/0.2.0/grafeas/docs/V1beta1VulnerabilityOccurrencesSummary.md deleted file mode 100644 index b76bd36..0000000 --- a/0.2.0/grafeas/docs/V1beta1VulnerabilityOccurrencesSummary.md +++ /dev/null @@ -1,10 +0,0 @@ -# V1beta1VulnerabilityOccurrencesSummary - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Counts** | [**[]VulnerabilityOccurrencesSummaryFixableTotalByDigest**](VulnerabilityOccurrencesSummaryFixableTotalByDigest.md) | A listing by resource of the number of fixable and total vulnerabilities. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/V1beta1attestationDetails.md b/0.2.0/grafeas/docs/V1beta1attestationDetails.md deleted file mode 100644 index f41c0b6..0000000 --- a/0.2.0/grafeas/docs/V1beta1attestationDetails.md +++ /dev/null @@ -1,10 +0,0 @@ -# V1beta1attestationDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Attestation** | [***AttestationAttestation**](attestationAttestation.md) | Required. Attestation for the resource. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/V1beta1buildDetails.md b/0.2.0/grafeas/docs/V1beta1buildDetails.md deleted file mode 100644 index d8ea357..0000000 --- a/0.2.0/grafeas/docs/V1beta1buildDetails.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1beta1buildDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Provenance** | [***ProvenanceBuildProvenance**](provenanceBuildProvenance.md) | Required. The actual provenance for the build. | [optional] [default to null] -**ProvenanceBytes** | **string** | 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. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/V1beta1deploymentDetails.md b/0.2.0/grafeas/docs/V1beta1deploymentDetails.md deleted file mode 100644 index f256d9f..0000000 --- a/0.2.0/grafeas/docs/V1beta1deploymentDetails.md +++ /dev/null @@ -1,10 +0,0 @@ -# V1beta1deploymentDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Deployment** | [***DeploymentDeployment**](deploymentDeployment.md) | Required. Deployment history for the resource. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/V1beta1discoveryDetails.md b/0.2.0/grafeas/docs/V1beta1discoveryDetails.md deleted file mode 100644 index b1159b5..0000000 --- a/0.2.0/grafeas/docs/V1beta1discoveryDetails.md +++ /dev/null @@ -1,10 +0,0 @@ -# V1beta1discoveryDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Discovered** | [***DiscoveryDiscovered**](discoveryDiscovered.md) | Required. Analysis status for the discovered resource. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/V1beta1imageDetails.md b/0.2.0/grafeas/docs/V1beta1imageDetails.md deleted file mode 100644 index 8f14be1..0000000 --- a/0.2.0/grafeas/docs/V1beta1imageDetails.md +++ /dev/null @@ -1,10 +0,0 @@ -# V1beta1imageDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**DerivedImage** | [***ImageDerived**](imageDerived.md) | Required. Immutable. The child image derived from the base image. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/V1beta1packageDetails.md b/0.2.0/grafeas/docs/V1beta1packageDetails.md deleted file mode 100644 index a840a24..0000000 --- a/0.2.0/grafeas/docs/V1beta1packageDetails.md +++ /dev/null @@ -1,10 +0,0 @@ -# V1beta1packageDetails - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Installation** | [***PackageInstallation**](packageInstallation.md) | Required. Where the package was installed. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/V1beta1packageLocation.md b/0.2.0/grafeas/docs/V1beta1packageLocation.md deleted file mode 100644 index 20e8a17..0000000 --- a/0.2.0/grafeas/docs/V1beta1packageLocation.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1beta1packageLocation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CpeUri** | **string** | Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. | [optional] [default to null] -**Version** | [***PackageVersion**](packageVersion.md) | The version installed at this location. | [optional] [default to null] -**Path** | **string** | The path from which we gathered that this package/version is installed. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/VersionVersionKind.md b/0.2.0/grafeas/docs/VersionVersionKind.md deleted file mode 100644 index 6af2169..0000000 --- a/0.2.0/grafeas/docs/VersionVersionKind.md +++ /dev/null @@ -1,9 +0,0 @@ -# VersionVersionKind - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/VulnerabilityOccurrencesSummaryFixableTotalByDigest.md b/0.2.0/grafeas/docs/VulnerabilityOccurrencesSummaryFixableTotalByDigest.md deleted file mode 100644 index ce4cced..0000000 --- a/0.2.0/grafeas/docs/VulnerabilityOccurrencesSummaryFixableTotalByDigest.md +++ /dev/null @@ -1,13 +0,0 @@ -# VulnerabilityOccurrencesSummaryFixableTotalByDigest - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Resource** | [***V1beta1Resource**](v1beta1Resource.md) | The affected resource. | [optional] [default to null] -**Severity** | [***VulnerabilitySeverity**](vulnerabilitySeverity.md) | The severity for this count. SEVERITY_UNSPECIFIED indicates total across all severities. | [optional] [default to null] -**FixableCount** | **string** | The number of fixable vulnerabilities associated with this resource. | [optional] [default to null] -**TotalCount** | **string** | The total number of vulnerabilities associated with this resource. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/VulnerabilitySeverity.md b/0.2.0/grafeas/docs/VulnerabilitySeverity.md deleted file mode 100644 index 16d719a..0000000 --- a/0.2.0/grafeas/docs/VulnerabilitySeverity.md +++ /dev/null @@ -1,9 +0,0 @@ -# VulnerabilitySeverity - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/VulnerabilityVulnerabilityLocation.md b/0.2.0/grafeas/docs/VulnerabilityVulnerabilityLocation.md deleted file mode 100644 index bee8b22..0000000 --- a/0.2.0/grafeas/docs/VulnerabilityVulnerabilityLocation.md +++ /dev/null @@ -1,12 +0,0 @@ -# VulnerabilityVulnerabilityLocation - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CpeUri** | **string** | Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. | [optional] [default to null] -**Package_** | **string** | Required. The package being described. | [optional] [default to null] -**Version** | [***PackageVersion**](packageVersion.md) | Required. The version of the package being described. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/VulnerabilityWindowsDetail.md b/0.2.0/grafeas/docs/VulnerabilityWindowsDetail.md deleted file mode 100644 index cb9b9eb..0000000 --- a/0.2.0/grafeas/docs/VulnerabilityWindowsDetail.md +++ /dev/null @@ -1,13 +0,0 @@ -# VulnerabilityWindowsDetail - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CpeUri** | **string** | Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar. | [optional] [default to null] -**Name** | **string** | Required. The name of the vulnerability. | [optional] [default to null] -**Description** | **string** | The description of the vulnerability. | [optional] [default to null] -**FixingKbs** | [**[]WindowsDetailKnowledgeBase**](WindowsDetailKnowledgeBase.md) | Required. The names of the KBs which have hotfixes to mitigate this vulnerability. Note that there may be multiple hotfixes (and thus multiple KBs) that mitigate a given vulnerability. Currently any listed kb's presence is considered a fix. | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/docs/WindowsDetailKnowledgeBase.md b/0.2.0/grafeas/docs/WindowsDetailKnowledgeBase.md deleted file mode 100644 index f233947..0000000 --- a/0.2.0/grafeas/docs/WindowsDetailKnowledgeBase.md +++ /dev/null @@ -1,11 +0,0 @@ -# WindowsDetailKnowledgeBase - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | The KB name (generally of the form KB[0-9]+ i.e. KB123456). | [optional] [default to null] -**Url** | **string** | | [optional] [default to null] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/0.2.0/grafeas/model_package_installation.go b/0.2.0/grafeas/model_package_installation.go deleted file mode 100644 index 3d3ff8c..0000000 --- a/0.2.0/grafeas/model_package_installation.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// This represents how a particular software package may be installed on a system. -type PackageInstallation struct { - // Output only. The name of the installed package. - Name string `json:"name,omitempty"` - // Required. All of the places within the filesystem versions of this package have been found. - Location []V1beta1packageLocation `json:"location,omitempty"` -} diff --git a/0.2.0/grafeas/model_package_package.go b/0.2.0/grafeas/model_package_package.go deleted file mode 100644 index 84a799c..0000000 --- a/0.2.0/grafeas/model_package_package.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * grafeas.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package grafeas - -// This represents a particular package that is distributed over various channels. E.g., glibc (aka libc6) is distributed by many, at various versions. -type PackagePackage struct { - // Required. Immutable. The name of the package. - Name string `json:"name,omitempty"` - // The various channels by which a package is distributed. - Distribution []PackageDistribution `json:"distribution,omitempty"` -} diff --git a/0.2.0/project/.gitignore b/0.2.0/project/.gitignore deleted file mode 100644 index daf913b..0000000 --- a/0.2.0/project/.gitignore +++ /dev/null @@ -1,24 +0,0 @@ -# Compiled Object files, Static and Dynamic libs (Shared Objects) -*.o -*.a -*.so - -# Folders -_obj -_test - -# Architecture specific extensions/prefixes -*.[568vq] -[568vq].out - -*.cgo1.go -*.cgo2.c -_cgo_defun.c -_cgo_gotypes.go -_cgo_export.* - -_testmain.go - -*.exe -*.test -*.prof diff --git a/0.2.0/project/.swagger-codegen/VERSION b/0.2.0/project/.swagger-codegen/VERSION deleted file mode 100644 index 26f8b8b..0000000 --- a/0.2.0/project/.swagger-codegen/VERSION +++ /dev/null @@ -1 +0,0 @@ -2.4.5 \ No newline at end of file diff --git a/0.2.0/project/.travis.yml b/0.2.0/project/.travis.yml deleted file mode 100644 index f5cb2ce..0000000 --- a/0.2.0/project/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: go - -install: - - go get -d -v . - -script: - - go build -v ./ - diff --git a/0.2.0/project/git_push.sh b/0.2.0/project/git_push.sh deleted file mode 100644 index ae01b18..0000000 --- a/0.2.0/project/git_push.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=`git remote` -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' - diff --git a/config.go.json b/config.go.json index cd9a93f..c602db6 100644 --- a/config.go.json +++ b/config.go.json @@ -1,4 +1,3 @@ { - "packageVersion":"0.2.0", "packageName":"grafeas" } diff --git a/generate/main.go b/generate/main.go index f095208..c4ccf24 100644 --- a/generate/main.go +++ b/generate/main.go @@ -16,7 +16,7 @@ import ( ) // ServerVersion : the version from the upstream repository -var ServerVersion = getDefaultVersion() +//var ServerVersion = getDefaultVersion() // GrafeasRepository : the repository of the Grafeas server to use for downloading Swagger files var GrafeasRepository = "https://github.com/grafeas/grafeas" @@ -30,8 +30,8 @@ var APIVersion = "v1beta1" // SwaggerCodegenVersion : the version of the Swagger CodeGen CLI to download var SwaggerCodegenVersion = "2.4.5" -// MergedClient : whether to keep the generated Swagger clients separate or to merge the paths -var MergedClient = true +//// MergedClient : whether to keep the generated Swagger clients separate or to merge the paths +//var MergedClient = true // trimVersionTag : remove the "v" prefix from the version tag string func trimVersionTag(tag string) string { @@ -132,7 +132,7 @@ func (c *swaggerCodegenConfig) generate() { c.language = stringOrDefault(c.language, "go") c.jar = stringOrDefault(c.jar, "./swagger-codegen-cli.jar") c.configFile = stringOrDefault(c.configFile, "./config.go.json") - c.outputDirectory = stringOrDefault(c.outputDirectory, ServerVersion) + //c.outputDirectory = stringOrDefault(c.outputDirectory, ServerVersion) args := []string{"-jar", c.jar, "generate", "-i", c.inputSpec, "-l", c.language, "-o", c.outputDirectory, "-c", c.configFile} log.Println("[CMD] java " + strings.Join(args, " ")) cmd := exec.Command("java", args...) @@ -158,20 +158,16 @@ func getSwaggerNames() []string { return []string{"grafeas.swagger.json", "project.swagger.json"} } -func swaggerGenerate(mergedClient bool) { +func swaggerGenerate() { swaggerSpecNames := getSwaggerNames() for _, swaggerSpecName := range swaggerSpecNames { swaggerSpecURL := strings.Join([]string{GrafeasRepository, "/raw/", Reference, "/proto/", APIVersion, "/swagger/", swaggerSpecName}, "") log.Printf("[DOWNLOAD] %s\n", swaggerSpecURL) downloadCompatibleSwaggerSpec(swaggerSpecURL, "") fileBasename := strings.Split(swaggerSpecName, ".")[0] - outputDirectory := strings.Join([]string{ServerVersion, fileBasename}, "/") - if fileBasename == "grafeas" && !mergedClient { - outputDirectory = ServerVersion - } swaggerCodeGen := swaggerCodegenConfig{ inputSpec: swaggerSpecName, - outputDirectory: outputDirectory, + outputDirectory: fileBasename, } swaggerCodeGen.generate() } @@ -183,11 +179,10 @@ func main() { Grafeas Repository: %s Reference: %s -Server Version: %s API Version: %s Swagger Codegen Version: %s -`, GrafeasRepository, Reference, ServerVersion, APIVersion, SwaggerCodegenVersion) +`, GrafeasRepository, Reference, APIVersion, SwaggerCodegenVersion) downloadSwaggerCodegenCli(SwaggerCodegenVersion) - swaggerGenerate(MergedClient) + swaggerGenerate() } diff --git a/go.mod b/go.mod index d297b3b..f7fd1d5 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ -module github.com/grafeas/client-go +module github.com/grafeas/client-go/v1 -go 1.17 +go 1.19 require ( github.com/antihax/optional v1.0.0 diff --git a/0.1.0/.gitignore b/grafeas/.gitignore similarity index 100% rename from 0.1.0/.gitignore rename to grafeas/.gitignore diff --git a/0.2.0/grafeas/.swagger-codegen-ignore b/grafeas/.swagger-codegen-ignore similarity index 100% rename from 0.2.0/grafeas/.swagger-codegen-ignore rename to grafeas/.swagger-codegen-ignore diff --git a/0.1.0/.swagger-codegen/VERSION b/grafeas/.swagger-codegen/VERSION similarity index 100% rename from 0.1.0/.swagger-codegen/VERSION rename to grafeas/.swagger-codegen/VERSION diff --git a/0.1.0/.travis.yml b/grafeas/.travis.yml similarity index 100% rename from 0.1.0/.travis.yml rename to grafeas/.travis.yml diff --git a/0.2.0/grafeas/README.md b/grafeas/README.md similarity index 91% rename from 0.2.0/grafeas/README.md rename to grafeas/README.md index 1565fd9..8d208e6 100644 --- a/0.2.0/grafeas/README.md +++ b/grafeas/README.md @@ -6,7 +6,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger This API client was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [swagger-spec](https://github.com/swagger-api/swagger-spec) from a remote server, you can easily generate an API client. - API version: version not set -- Package version: 0.2.0 +- Package version: 1.0.0 - Build package: io.swagger.codegen.languages.GoClientCodegen ## Installation @@ -41,6 +41,9 @@ Class | Method | HTTP request | Description ## Documentation For Models - [AliasContextKind](docs/AliasContextKind.md) + - [AssessmentJustification](docs/AssessmentJustification.md) + - [AssessmentRemediation](docs/AssessmentRemediation.md) + - [AssessmentState](docs/AssessmentState.md) - [AttestationAttestation](docs/AttestationAttestation.md) - [AttestationAuthority](docs/AttestationAuthority.md) - [AttestationGenericSignedAttestation](docs/AttestationGenericSignedAttestation.md) @@ -63,6 +66,8 @@ Class | Method | HTTP request | Description - [DeploymentDeployable](docs/DeploymentDeployable.md) - [DeploymentDeployment](docs/DeploymentDeployment.md) - [DeploymentPlatform](docs/DeploymentPlatform.md) + - [DetailsVexAssessment](docs/DetailsVexAssessment.md) + - [DiscoveredAnalysisCompleted](docs/DiscoveredAnalysisCompleted.md) - [DiscoveredAnalysisStatus](docs/DiscoveredAnalysisStatus.md) - [DiscoveredContinuousAnalysis](docs/DiscoveredContinuousAnalysis.md) - [DiscoveryDiscovered](docs/DiscoveryDiscovered.md) @@ -80,6 +85,7 @@ Class | Method | HTTP request | Description - [IntotoLink](docs/IntotoLink.md) - [IntotoLinkArtifact](docs/IntotoLinkArtifact.md) - [IntotoSigningKey](docs/IntotoSigningKey.md) + - [JustificationJustificationType](docs/JustificationJustificationType.md) - [LayerDirective](docs/LayerDirective.md) - [LinkArtifactHashes](docs/LinkArtifactHashes.md) - [LinkByProducts](docs/LinkByProducts.md) @@ -96,6 +102,7 @@ Class | Method | HTTP request | Description - [ProvenanceFileHashes](docs/ProvenanceFileHashes.md) - [ProvenanceHash](docs/ProvenanceHash.md) - [ProvenanceSource](docs/ProvenanceSource.md) + - [RemediationRemediationType](docs/RemediationRemediationType.md) - [RpcStatus](docs/RpcStatus.md) - [SourceAliasContext](docs/SourceAliasContext.md) - [SourceCloudRepoSourceContext](docs/SourceCloudRepoSourceContext.md) @@ -108,7 +115,6 @@ Class | Method | HTTP request | Description - [SpdxDocumentOccurrence](docs/SpdxDocumentOccurrence.md) - [SpdxFileNote](docs/SpdxFileNote.md) - [SpdxFileOccurrence](docs/SpdxFileOccurrence.md) - - [SpdxLicense](docs/SpdxLicense.md) - [SpdxPackageInfoNote](docs/SpdxPackageInfoNote.md) - [SpdxPackageInfoOccurrence](docs/SpdxPackageInfoOccurrence.md) - [SpdxRelationshipNote](docs/SpdxRelationshipNote.md) @@ -116,8 +122,10 @@ Class | Method | HTTP request | Description - [SpdxRelationshipType](docs/SpdxRelationshipType.md) - [V1beta1BatchCreateNotesResponse](docs/V1beta1BatchCreateNotesResponse.md) - [V1beta1BatchCreateOccurrencesResponse](docs/V1beta1BatchCreateOccurrencesResponse.md) + - [V1beta1Digest](docs/V1beta1Digest.md) - [V1beta1Envelope](docs/V1beta1Envelope.md) - [V1beta1EnvelopeSignature](docs/V1beta1EnvelopeSignature.md) + - [V1beta1License](docs/V1beta1License.md) - [V1beta1ListNoteOccurrencesResponse](docs/V1beta1ListNoteOccurrencesResponse.md) - [V1beta1ListNotesResponse](docs/V1beta1ListNotesResponse.md) - [V1beta1ListOccurrencesResponse](docs/V1beta1ListOccurrencesResponse.md) @@ -139,7 +147,12 @@ Class | Method | HTTP request | Description - [V1beta1provenanceArtifact](docs/V1beta1provenanceArtifact.md) - [V1beta1vulnerabilityDetails](docs/V1beta1vulnerabilityDetails.md) - [VersionVersionKind](docs/VersionVersionKind.md) + - [VexVulnerabilityAssessmentNote](docs/VexVulnerabilityAssessmentNote.md) + - [VulnerabilityAssessmentNoteAssessment](docs/VulnerabilityAssessmentNoteAssessment.md) + - [VulnerabilityAssessmentNoteProduct](docs/VulnerabilityAssessmentNoteProduct.md) + - [VulnerabilityAssessmentNotePublisher](docs/VulnerabilityAssessmentNotePublisher.md) - [VulnerabilityCvss](docs/VulnerabilityCvss.md) + - [VulnerabilityCvssVersion](docs/VulnerabilityCvssVersion.md) - [VulnerabilityDetail](docs/VulnerabilityDetail.md) - [VulnerabilityOccurrencesSummaryFixableTotalByDigest](docs/VulnerabilityOccurrencesSummaryFixableTotalByDigest.md) - [VulnerabilityPackageIssue](docs/VulnerabilityPackageIssue.md) diff --git a/0.2.0/grafeas/api/swagger.yaml b/grafeas/api/swagger.yaml similarity index 83% rename from 0.2.0/grafeas/api/swagger.yaml rename to grafeas/api/swagger.yaml index 6ad0333..69b98a1 100644 --- a/0.2.0/grafeas/api/swagger.yaml +++ b/grafeas/api/swagger.yaml @@ -507,6 +507,59 @@ definitions: - "MOVABLE" - "OTHER" default: "KIND_UNSPECIFIED" + AssessmentJustification: + type: "object" + properties: + justificationType: + description: "The justification type for this vulnerability." + $ref: "#/definitions/JustificationJustificationType" + details: + type: "string" + description: "Additional details on why this justification was chosen." + description: "Justification provides the justification when the state of the\n\ + assessment if NOT_AFFECTED." + example: + justificationType: {} + details: "details" + AssessmentRemediation: + type: "object" + properties: + remediationType: + description: "The type of remediation that can be applied." + $ref: "#/definitions/RemediationRemediationType" + remediationTime: + type: "string" + format: "date-time" + description: "Contains the date from which the remediation is available." + details: + type: "string" + description: "Contains a comprehensive human-readable discussion of the remediation." + remediationUri: + description: "Contains the URL where to obtain the remediation." + $ref: "#/definitions/v1beta1RelatedUrl" + description: "Specifies details on how to handle (and presumably, fix) a vulnerability." + example: + remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + AssessmentState: + type: "string" + description: "Provides the state of this Vulnerability assessment.\n\n - STATE_UNSPECIFIED:\ + \ No state is specified.\n - AFFECTED: This product is known to be affected\ + \ by this vulnerability.\n - NOT_AFFECTED: This product is known to be not affected\ + \ by this vulnerability.\n - FIXED: This product contains a fix for this vulnerability.\n\ + \ - UNDER_INVESTIGATION: It is not known yet whether these versions are or are\ + \ not affected\nby the vulnerability. However, it is still under investigation." + enum: + - "STATE_UNSPECIFIED" + - "AFFECTED" + - "NOT_AFFECTED" + - "FIXED" + - "UNDER_INVESTIGATION" + default: "STATE_UNSPECIFIED" AuthorityHint: type: "object" properties: @@ -539,6 +592,7 @@ definitions: - "ATTACK_COMPLEXITY_UNSPECIFIED" - "ATTACK_COMPLEXITY_LOW" - "ATTACK_COMPLEXITY_HIGH" + - "ATTACK_COMPLEXITY_MEDIUM" default: "ATTACK_COMPLEXITY_UNSPECIFIED" CVSSAttackVector: type: "string" @@ -564,6 +618,8 @@ definitions: - "IMPACT_HIGH" - "IMPACT_LOW" - "IMPACT_NONE" + - "IMPACT_PARTIAL" + - "IMPACT_COMPLETE" default: "IMPACT_UNSPECIFIED" CVSSPrivilegesRequired: type: "string" @@ -598,20 +654,101 @@ definitions: - "FLEX" - "CUSTOM" default: "PLATFORM_UNSPECIFIED" + DetailsVexAssessment: + type: "object" + properties: + cve: + type: "string" + description: "Holds the MITRE standard Common Vulnerabilities and Exposures\ + \ (CVE)\ntracking number for the vulnerability." + relatedUris: + type: "array" + description: "Holds a list of references associated with this vulnerability\ + \ item and\nassessment." + items: + $ref: "#/definitions/v1beta1RelatedUrl" + noteName: + type: "string" + title: "The VulnerabilityAssessment note from which this VexAssessment was\n\ + generated.\nThis will be of the form: `projects/[PROJECT_ID]/notes/[NOTE_ID]`.\n\ + (-- api-linter: core::0122::name-suffix=disabled\n aip.dev/not-precedent:\ + \ The suffix is kept for consistency. --)" + state: + description: "Provides the state of this Vulnerability assessment." + $ref: "#/definitions/AssessmentState" + impacts: + type: "array" + description: "Contains information about the impact of this vulnerability,\n\ + this will change with time." + items: + type: "string" + remediations: + type: "array" + description: "Specifies details on how to handle (and presumably, fix) a vulnerability." + items: + $ref: "#/definitions/AssessmentRemediation" + justification: + description: "Justification provides the justification when the state of the\n\ + assessment if NOT_AFFECTED." + $ref: "#/definitions/AssessmentJustification" + description: "VexAssessment provides all publisher provided Vex information that\ + \ is\nrelated to this vulnerability." + example: + cve: "cve" + relatedUris: + - label: "label" + url: "url" + - label: "label" + url: "url" + noteName: "noteName" + remediations: + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + state: {} + impacts: + - "impacts" + - "impacts" + justification: + justificationType: {} + details: "details" + DiscoveredAnalysisCompleted: + type: "object" + properties: + analysisType: + type: "array" + items: + type: "string" + description: "Indicates which analysis completed successfully. Multiple types\ + \ of analysis\ncan be performed on a single resource." + example: + analysisType: + - "analysisType" + - "analysisType" DiscoveredAnalysisStatus: type: "string" description: "Analysis status for a resource. Currently for initial analysis only\ \ (not\nupdated in continuous analysis).\n\n - ANALYSIS_STATUS_UNSPECIFIED:\ \ Unknown.\n - PENDING: Resource is known but no action has been taken yet.\n\ \ - SCANNING: Resource is being analyzed.\n - FINISHED_SUCCESS: Analysis has\ - \ finished successfully.\n - FINISHED_FAILED: Analysis has finished unsuccessfully,\ - \ the analysis itself is in a bad\nstate.\n - FINISHED_UNSUPPORTED: The resource\ - \ is known not to be supported" + \ finished successfully.\n - COMPLETE: Analysis has completed.\n - FINISHED_FAILED:\ + \ Analysis has finished unsuccessfully, the analysis itself is in a bad\nstate.\n\ + \ - FINISHED_UNSUPPORTED: The resource is known not to be supported" enum: - "ANALYSIS_STATUS_UNSPECIFIED" - "PENDING" - "SCANNING" - "FINISHED_SUCCESS" + - "COMPLETE" - "FINISHED_FAILED" - "FINISHED_UNSUPPORTED" default: "ANALYSIS_STATUS_UNSPECIFIED" @@ -689,6 +826,30 @@ definitions: artifactRule: - "artifactRule" - "artifactRule" + JustificationJustificationType: + type: "string" + description: "Provides the type of justification.\n\n - JUSTIFICATION_TYPE_UNSPECIFIED:\ + \ JUSTIFICATION_TYPE_UNSPECIFIED.\n - COMPONENT_NOT_PRESENT: The vulnerable\ + \ component is not present in the product.\n - VULNERABLE_CODE_NOT_PRESENT:\ + \ The vulnerable code is not present. Typically this case\noccurs when source\ + \ code is configured or built in a way that excludes\nthe vulnerable code.\n\ + \ - VULNERABLE_CODE_NOT_IN_EXECUTE_PATH: The vulnerable code can not be executed.\n\ + Typically this case occurs when the product includes the vulnerable\ncode but\ + \ does not call or use the vulnerable code.\n - VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY:\ + \ The vulnerable code cannot be controlled by an attacker to exploit\nthe vulnerability.\n\ + \ - INLINE_MITIGATIONS_ALREADY_EXIST: The product includes built-in protections\ + \ or features that prevent\nexploitation of the vulnerability. These built-in\ + \ protections cannot\nbe subverted by the attacker and cannot be configured\ + \ or disabled by\nthe user. These mitigations completely prevent exploitation\ + \ based on\nknown attack vectors." + enum: + - "JUSTIFICATION_TYPE_UNSPECIFIED" + - "COMPONENT_NOT_PRESENT" + - "VULNERABLE_CODE_NOT_PRESENT" + - "VULNERABLE_CODE_NOT_IN_EXECUTE_PATH" + - "VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY" + - "INLINE_MITIGATIONS_ALREADY_EXIST" + default: "JUSTIFICATION_TYPE_UNSPECIFIED" LayerDirective: type: "string" description: "Instructions from Dockerfile.\n\n - DIRECTIVE_UNSPECIFIED: Default\ @@ -780,6 +941,20 @@ definitions: category: {} type: "type" locator: "locator" + RemediationRemediationType: + type: "string" + description: "The type of remediation that can be applied.\n\n - REMEDIATION_TYPE_UNSPECIFIED:\ + \ No remediation type specified.\n - MITIGATION: A MITIGATION is available.\n\ + \ - NO_FIX_PLANNED: No fix is planned.\n - NONE_AVAILABLE: Not available.\n\ + \ - VENDOR_FIX: A vendor fix is available.\n - WORKAROUND: A workaround is available." + enum: + - "REMEDIATION_TYPE_UNSPECIFIED" + - "MITIGATION" + - "NO_FIX_PLANNED" + - "NONE_AVAILABLE" + - "VENDOR_FIX" + - "WORKAROUND" + default: "REMEDIATION_TYPE_UNSPECIFIED" VersionVersionKind: type: "string" description: "Whether this is an ordinary package version or a sentinel MIN/MAX\ @@ -792,6 +967,121 @@ definitions: - "MINIMUM" - "MAXIMUM" default: "VERSION_KIND_UNSPECIFIED" + VulnerabilityAssessmentNoteAssessment: + type: "object" + properties: + cve: + type: "string" + description: "Holds the MITRE standard Common Vulnerabilities and Exposures\ + \ (CVE)\ntracking number for the vulnerability." + shortDescription: + type: "string" + description: "A one sentence description of this Vex." + longDescription: + type: "string" + description: "A detailed description of this Vex." + relatedUris: + type: "array" + description: "Holds a list of references associated with this vulnerability\ + \ item and\nassessment. These uris have additional information about the\n\ + vulnerability and the assessment itself. E.g. Link to a document which\n\ + details how this assessment concluded the state of this vulnerability." + items: + $ref: "#/definitions/v1beta1RelatedUrl" + state: + description: "Provides the state of this Vulnerability assessment." + $ref: "#/definitions/AssessmentState" + impacts: + type: "array" + description: "Contains information about the impact of this vulnerability,\n\ + this will change with time." + items: + type: "string" + justification: + description: "Justification provides the justification when the state of the\n\ + assessment if NOT_AFFECTED." + $ref: "#/definitions/AssessmentJustification" + remediations: + type: "array" + description: "Specifies details on how to handle (and presumably, fix) a vulnerability." + items: + $ref: "#/definitions/AssessmentRemediation" + description: "Assessment provides all information that is related to a single\n\ + vulnerability for this product." + example: + longDescription: "longDescription" + cve: "cve" + relatedUris: + - label: "label" + url: "url" + - label: "label" + url: "url" + remediations: + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + shortDescription: "shortDescription" + state: {} + impacts: + - "impacts" + - "impacts" + justification: + justificationType: {} + details: "details" + VulnerabilityAssessmentNoteProduct: + type: "object" + properties: + name: + type: "string" + description: "Name of the product." + id: + type: "string" + description: "Token that identifies a product so that it can be referred to\ + \ from other\nparts in the document. There is no predefined format as long\ + \ as it\nuniquely identifies a group in the context of the current document." + genericUri: + type: "string" + description: "Contains a URI which is vendor-specific.\nExample: The artifact\ + \ repository URL of an image." + title: "Product contains information about a product and how to uniquely identify\n\ + it.\n(-- api-linter: core::0123::resource-annotation=disabled\n aip.dev/not-precedent:\ + \ Product is not a separate resource. --)" + example: + genericUri: "genericUri" + name: "name" + id: "id" + VulnerabilityAssessmentNotePublisher: + type: "object" + properties: + name: + type: "string" + description: "Name of the publisher.\nExamples: 'Google', 'Google Cloud Platform'." + issuingAuthority: + type: "string" + description: "Provides information about the authority of the issuing party\ + \ to\nrelease the document, in particular, the party's constituency and\n\ + responsibilities or other obligations." + context: + type: "string" + title: "The context or namespace.\nContains a URL which is under control of\ + \ the issuing party and can\nbe used as a globally unique identifier for\ + \ that issuing party.\nExample: https://csaf.io" + title: "Publisher contains information about the publisher of\nthis Note.\n(--\ + \ api-linter: core::0123::resource-annotation=disabled\n aip.dev/not-precedent:\ + \ Publisher is not a separate resource. --)" + example: + issuingAuthority: "issuingAuthority" + name: "name" + context: "context" VulnerabilityDetail: type: "object" properties: @@ -1216,6 +1506,14 @@ definitions: analysisStatus: description: "The status of discovery for the resource." $ref: "#/definitions/DiscoveredAnalysisStatus" + analysisCompleted: + $ref: "#/definitions/DiscoveredAnalysisCompleted" + analysisError: + type: "array" + description: "Indicates any errors encountered during analysis of a resource.\ + \ There\ncould be 0 or more of these errors." + items: + $ref: "#/definitions/rpcStatus" analysisStatusError: description: "When an error is encountered this will contain a LocalizedMessage\ \ under\ndetails to show to the user. The LocalizedMessage is output only\ @@ -1223,6 +1521,21 @@ definitions: $ref: "#/definitions/rpcStatus" description: "Provides information about the analysis status of a discovered resource." example: + analysisCompleted: + analysisType: + - "analysisType" + - "analysisType" + analysisError: + - code: 1 + details: + - '@type': "@type" + - '@type': "@type" + message: "message" + - code: 1 + details: + - '@type': "@type" + - '@type': "@type" + message: "message" analysisStatusError: code: 1 details: @@ -1575,10 +1888,12 @@ definitions: default: "ARCHITECTURE_UNSPECIFIED" packageDistribution: type: "object" + required: + - "cpeUri" properties: cpeUri: type: "string" - description: "Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)\n\ + description: "The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)\n\ denoting the package manager version distributing a package." architecture: description: "The CPU architecture for which packages in this distribution\ @@ -1613,20 +1928,46 @@ definitions: architecture: {} packageInstallation: type: "object" + required: + - "name" properties: name: type: "string" - description: "Output only. The name of the installed package." + description: "The name of the installed package." readOnly: true location: type: "array" - description: "Required. All of the places within the filesystem versions of\ - \ this package\nhave been found." + description: "All of the places within the filesystem versions of this package\n\ + have been found." items: $ref: "#/definitions/v1beta1packageLocation" + packageType: + type: "string" + description: "The type of package; whether native or non native (e.g., ruby\ + \ gems,\nnode.js packages, etc.)." + readOnly: true + cpeUri: + type: "string" + description: "The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)\n\ + denoting the package manager version distributing a package.\nThe cpe_uri\ + \ will be blank for language packages." + readOnly: true + architecture: + description: "The CPU architecture for which packages in this distribution\ + \ channel were\nbuilt. Architecture will be blank for language packages." + $ref: "#/definitions/packageArchitecture" + license: + description: "Licenses that have been declared by the authors of the package." + $ref: "#/definitions/v1beta1License" + version: + description: "The version of the package." + $ref: "#/definitions/packageVersion" description: "This represents how a particular software package may be installed\ \ on a\nsystem." example: + license: + expression: "expression" + comments: "comments" name: "name" location: - path: "path" @@ -1645,21 +1986,74 @@ definitions: name: "name" epoch: 6 revision: "revision" + packageType: "packageType" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + architecture: {} packagePackage: type: "object" + required: + - "name" properties: name: type: "string" - description: "Required. Immutable. The name of the package." + description: "The name of the package." distribution: type: "array" description: "The various channels by which a package is distributed." items: $ref: "#/definitions/packageDistribution" - description: "This represents a particular package that is distributed over various\n\ - channels. E.g., glibc (aka libc6) is distributed by many, at various\nversions." + packageType: + type: "string" + description: "The type of package; whether native or non native (e.g., ruby\ + \ gems,\nnode.js packages, etc.)." + cpeUri: + type: "string" + description: "The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)\n\ + denoting the package manager version distributing a package.\nThe cpe_uri\ + \ will be blank for language packages." + architecture: + description: "The CPU architecture for which packages in this distribution\ + \ channel were\nbuilt. Architecture will be blank for language packages." + $ref: "#/definitions/packageArchitecture" + version: + description: "The version of the package." + $ref: "#/definitions/packageVersion" + maintainer: + type: "string" + description: "A freeform text denoting the maintainer of this package." + url: + type: "string" + description: "The homepage for this package." + description: + type: "string" + description: "The description of this package." + license: + description: "Licenses that have been declared by the authors of the package." + $ref: "#/definitions/v1beta1License" + digest: + type: "array" + description: "Hash value, typically a file digest, that allows unique\nidentification\ + \ a specific package." + items: + $ref: "#/definitions/v1beta1Digest" + description: "Package represents a particular package version." example: + license: + expression: "expression" + comments: "comments" name: "name" + digest: + - digestBytes: "digestBytes" + algo: "algo" + - digestBytes: "digestBytes" + algo: "algo" + description: "description" distribution: - latestVersion: inclusive: true @@ -1683,6 +2077,16 @@ definitions: maintainer: "maintainer" url: "url" architecture: {} + packageType: "packageType" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + maintainer: "maintainer" + url: "url" packageVersion: type: "object" properties: @@ -2454,7 +2858,7 @@ definitions: title: "This field contains the license the SPDX file creator has concluded\ \ as\ngoverning the file or alternative values if the governing license\ \ cannot be\ndetermined" - $ref: "#/definitions/spdxLicense" + $ref: "#/definitions/v1beta1License" filesLicenseInfo: type: "array" title: "This field contains the license information actually found in the\ @@ -2503,19 +2907,6 @@ definitions: - "attributions" - "attributions" notice: "notice" - spdxLicense: - type: "object" - properties: - expression: - type: "string" - title: "Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/" - comments: - type: "string" - title: "Comments" - title: "License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license" - example: - expression: "expression" - comments: "comments" spdxPackageInfoNote: type: "object" properties: @@ -2569,7 +2960,7 @@ definitions: type: "string" licenseDeclared: title: "List the licenses that have been declared by the authors of the package" - $ref: "#/definitions/spdxLicense" + $ref: "#/definitions/v1beta1License" copyright: type: "string" title: "Identify the copyright holders of the package, as well as any dates\ @@ -2641,7 +3032,7 @@ definitions: licenseConcluded: title: "package or alternative values, if the governing license cannot be\n\ determined" - $ref: "#/definitions/spdxLicense" + $ref: "#/definitions/v1beta1License" comment: type: "string" title: "A place for the SPDX file creator to record any general\ncomments\ @@ -2831,7 +3222,16 @@ definitions: notes: - longDescription: "longDescription" package: + license: + expression: "expression" + comments: "comments" name: "name" + digest: + - digestBytes: "digestBytes" + algo: "algo" + - digestBytes: "digestBytes" + algo: "algo" + description: "description" distribution: - latestVersion: inclusive: true @@ -2855,7 +3255,59 @@ definitions: maintainer: "maintainer" url: "url" architecture: {} + packageType: "packageType" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + maintainer: "maintainer" + url: "url" kind: {} + vulnerabilityAssessment: + longDescription: "longDescription" + assessment: + longDescription: "longDescription" + cve: "cve" + relatedUris: + - label: "label" + url: "url" + - label: "label" + url: "url" + remediations: + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + shortDescription: "shortDescription" + state: {} + impacts: + - "impacts" + - "impacts" + justification: + justificationType: {} + details: "details" + product: + genericUri: "genericUri" + name: "name" + id: "id" + publisher: + issuingAuthority: "issuingAuthority" + name: "name" + context: "context" + shortDescription: "shortDescription" + title: "title" + languageCode: "languageCode" baseImage: resourceUrl: "resourceUrl" fingerprint: @@ -2915,6 +3367,7 @@ definitions: impactScore: 5.637377 userInteraction: {} authentication: {} + cvssVersion: {} details: - package: "package" minAffectedVersion: @@ -3071,7 +3524,16 @@ definitions: url: "url" - longDescription: "longDescription" package: + license: + expression: "expression" + comments: "comments" name: "name" + digest: + - digestBytes: "digestBytes" + algo: "algo" + - digestBytes: "digestBytes" + algo: "algo" + description: "description" distribution: - latestVersion: inclusive: true @@ -3095,7 +3557,59 @@ definitions: maintainer: "maintainer" url: "url" architecture: {} + packageType: "packageType" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + maintainer: "maintainer" + url: "url" kind: {} + vulnerabilityAssessment: + longDescription: "longDescription" + assessment: + longDescription: "longDescription" + cve: "cve" + relatedUris: + - label: "label" + url: "url" + - label: "label" + url: "url" + remediations: + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + shortDescription: "shortDescription" + state: {} + impacts: + - "impacts" + - "impacts" + justification: + justificationType: {} + details: "details" + product: + genericUri: "genericUri" + name: "name" + id: "id" + publisher: + issuingAuthority: "issuingAuthority" + name: "name" + context: "context" + shortDescription: "shortDescription" + title: "title" + languageCode: "languageCode" baseImage: resourceUrl: "resourceUrl" fingerprint: @@ -3155,6 +3669,7 @@ definitions: impactScore: 5.637377 userInteraction: {} authentication: {} + cvssVersion: {} details: - package: "package" minAffectedVersion: @@ -3322,6 +3837,21 @@ definitions: occurrences: - discovered: discovered: + analysisCompleted: + analysisType: + - "analysisType" + - "analysisType" + analysisError: + - code: 1 + details: + - '@type': "@type" + - '@type': "@type" + message: "message" + - code: 1 + details: + - '@type': "@type" + - '@type': "@type" + message: "message" analysisStatusError: code: 1 details: @@ -3388,11 +3918,23 @@ definitions: severity: {} longDescription: "longDescription" cvssScore: 0.8008282 + cvssV3: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} relatedUrls: - label: "label" url: "url" - label: "label" url: "url" + cvssVersion: {} packageIssue: - affectedLocation: package: "package" @@ -3435,7 +3977,46 @@ definitions: packageType: "packageType" severityName: "severityName" shortDescription: "shortDescription" + cvssV2: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} type: "type" + vexAssessment: + cve: "cve" + relatedUris: + - label: "label" + url: "url" + - label: "label" + url: "url" + noteName: "noteName" + remediations: + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + state: {} + impacts: + - "impacts" + - "impacts" + justification: + justificationType: {} + details: "details" spdxRelationship: comment: "comment" source: "source" @@ -3610,6 +4191,9 @@ definitions: summaryDescription: "summaryDescription" installation: installation: + license: + expression: "expression" + comments: "comments" name: "name" location: - path: "path" @@ -3628,6 +4212,15 @@ definitions: name: "name" epoch: 6 revision: "revision" + packageType: "packageType" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + architecture: {} name: "name" sbom: creatorComment: "creatorComment" @@ -3671,8 +4264,23 @@ definitions: platform: {} - discovered: discovered: - analysisStatusError: - code: 1 + analysisCompleted: + analysisType: + - "analysisType" + - "analysisType" + analysisError: + - code: 1 + details: + - '@type': "@type" + - '@type': "@type" + message: "message" + - code: 1 + details: + - '@type': "@type" + - '@type': "@type" + message: "message" + analysisStatusError: + code: 1 details: - '@type': "@type" - '@type': "@type" @@ -3737,11 +4345,23 @@ definitions: severity: {} longDescription: "longDescription" cvssScore: 0.8008282 + cvssV3: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} relatedUrls: - label: "label" url: "url" - label: "label" url: "url" + cvssVersion: {} packageIssue: - affectedLocation: package: "package" @@ -3784,7 +4404,46 @@ definitions: packageType: "packageType" severityName: "severityName" shortDescription: "shortDescription" + cvssV2: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} type: "type" + vexAssessment: + cve: "cve" + relatedUris: + - label: "label" + url: "url" + - label: "label" + url: "url" + noteName: "noteName" + remediations: + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + state: {} + impacts: + - "impacts" + - "impacts" + justification: + justificationType: {} + details: "details" spdxRelationship: comment: "comment" source: "source" @@ -3959,6 +4618,9 @@ definitions: summaryDescription: "summaryDescription" installation: installation: + license: + expression: "expression" + comments: "comments" name: "name" location: - path: "path" @@ -3977,6 +4639,15 @@ definitions: name: "name" epoch: 6 revision: "revision" + packageType: "packageType" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + architecture: {} name: "name" sbom: creatorComment: "creatorComment" @@ -4018,6 +4689,21 @@ definitions: - "resourceUri" config: "config" platform: {} + v1beta1Digest: + type: "object" + properties: + algo: + type: "string" + description: "`SHA1`, `SHA512` etc." + digestBytes: + type: "string" + format: "byte" + description: "Value of the digest." + pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" + description: "Digest information." + example: + digestBytes: "digestBytes" + algo: "algo" v1beta1Envelope: type: "object" properties: @@ -4053,6 +4739,23 @@ definitions: example: sig: "sig" keyid: "keyid" + v1beta1License: + type: "object" + properties: + expression: + type: "string" + description: "Often a single license can be used to represent the licensing\ + \ terms.\nSometimes it is necessary to include a choice of one or more licenses\n\ + or some combination of license identifiers.\nExamples: \"LGPL-2.1-only OR\ + \ MIT\", \"LGPL-2.1-only AND MIT\",\n\"GPL-2.0-or-later WITH Bison-exception-2.2\"\ + ." + comments: + type: "string" + title: "Comments" + description: "License information." + example: + expression: "expression" + comments: "comments" v1beta1ListNoteOccurrencesResponse: type: "object" properties: @@ -4069,6 +4772,21 @@ definitions: occurrences: - discovered: discovered: + analysisCompleted: + analysisType: + - "analysisType" + - "analysisType" + analysisError: + - code: 1 + details: + - '@type': "@type" + - '@type': "@type" + message: "message" + - code: 1 + details: + - '@type': "@type" + - '@type': "@type" + message: "message" analysisStatusError: code: 1 details: @@ -4135,11 +4853,23 @@ definitions: severity: {} longDescription: "longDescription" cvssScore: 0.8008282 + cvssV3: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} relatedUrls: - label: "label" url: "url" - label: "label" url: "url" + cvssVersion: {} packageIssue: - affectedLocation: package: "package" @@ -4182,7 +4912,46 @@ definitions: packageType: "packageType" severityName: "severityName" shortDescription: "shortDescription" + cvssV2: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} type: "type" + vexAssessment: + cve: "cve" + relatedUris: + - label: "label" + url: "url" + - label: "label" + url: "url" + noteName: "noteName" + remediations: + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + state: {} + impacts: + - "impacts" + - "impacts" + justification: + justificationType: {} + details: "details" spdxRelationship: comment: "comment" source: "source" @@ -4357,6 +5126,9 @@ definitions: summaryDescription: "summaryDescription" installation: installation: + license: + expression: "expression" + comments: "comments" name: "name" location: - path: "path" @@ -4375,6 +5147,15 @@ definitions: name: "name" epoch: 6 revision: "revision" + packageType: "packageType" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + architecture: {} name: "name" sbom: creatorComment: "creatorComment" @@ -4418,6 +5199,21 @@ definitions: platform: {} - discovered: discovered: + analysisCompleted: + analysisType: + - "analysisType" + - "analysisType" + analysisError: + - code: 1 + details: + - '@type': "@type" + - '@type': "@type" + message: "message" + - code: 1 + details: + - '@type': "@type" + - '@type': "@type" + message: "message" analysisStatusError: code: 1 details: @@ -4484,11 +5280,23 @@ definitions: severity: {} longDescription: "longDescription" cvssScore: 0.8008282 + cvssV3: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} relatedUrls: - label: "label" url: "url" - label: "label" url: "url" + cvssVersion: {} packageIssue: - affectedLocation: package: "package" @@ -4531,7 +5339,46 @@ definitions: packageType: "packageType" severityName: "severityName" shortDescription: "shortDescription" + cvssV2: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} type: "type" + vexAssessment: + cve: "cve" + relatedUris: + - label: "label" + url: "url" + - label: "label" + url: "url" + noteName: "noteName" + remediations: + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + state: {} + impacts: + - "impacts" + - "impacts" + justification: + justificationType: {} + details: "details" spdxRelationship: comment: "comment" source: "source" @@ -4706,6 +5553,9 @@ definitions: summaryDescription: "summaryDescription" installation: installation: + license: + expression: "expression" + comments: "comments" name: "name" location: - path: "path" @@ -4724,6 +5574,15 @@ definitions: name: "name" epoch: 6 revision: "revision" + packageType: "packageType" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + architecture: {} name: "name" sbom: creatorComment: "creatorComment" @@ -4784,7 +5643,16 @@ definitions: notes: - longDescription: "longDescription" package: + license: + expression: "expression" + comments: "comments" name: "name" + digest: + - digestBytes: "digestBytes" + algo: "algo" + - digestBytes: "digestBytes" + algo: "algo" + description: "description" distribution: - latestVersion: inclusive: true @@ -4808,7 +5676,59 @@ definitions: maintainer: "maintainer" url: "url" architecture: {} + packageType: "packageType" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + maintainer: "maintainer" + url: "url" kind: {} + vulnerabilityAssessment: + longDescription: "longDescription" + assessment: + longDescription: "longDescription" + cve: "cve" + relatedUris: + - label: "label" + url: "url" + - label: "label" + url: "url" + remediations: + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + shortDescription: "shortDescription" + state: {} + impacts: + - "impacts" + - "impacts" + justification: + justificationType: {} + details: "details" + product: + genericUri: "genericUri" + name: "name" + id: "id" + publisher: + issuingAuthority: "issuingAuthority" + name: "name" + context: "context" + shortDescription: "shortDescription" + title: "title" + languageCode: "languageCode" baseImage: resourceUrl: "resourceUrl" fingerprint: @@ -4868,6 +5788,7 @@ definitions: impactScore: 5.637377 userInteraction: {} authentication: {} + cvssVersion: {} details: - package: "package" minAffectedVersion: @@ -5024,7 +5945,16 @@ definitions: url: "url" - longDescription: "longDescription" package: + license: + expression: "expression" + comments: "comments" name: "name" + digest: + - digestBytes: "digestBytes" + algo: "algo" + - digestBytes: "digestBytes" + algo: "algo" + description: "description" distribution: - latestVersion: inclusive: true @@ -5048,7 +5978,59 @@ definitions: maintainer: "maintainer" url: "url" architecture: {} + packageType: "packageType" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + maintainer: "maintainer" + url: "url" kind: {} + vulnerabilityAssessment: + longDescription: "longDescription" + assessment: + longDescription: "longDescription" + cve: "cve" + relatedUris: + - label: "label" + url: "url" + - label: "label" + url: "url" + remediations: + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + shortDescription: "shortDescription" + state: {} + impacts: + - "impacts" + - "impacts" + justification: + justificationType: {} + details: "details" + product: + genericUri: "genericUri" + name: "name" + id: "id" + publisher: + issuingAuthority: "issuingAuthority" + name: "name" + context: "context" + shortDescription: "shortDescription" + title: "title" + languageCode: "languageCode" baseImage: resourceUrl: "resourceUrl" fingerprint: @@ -5108,6 +6090,7 @@ definitions: impactScore: 5.637377 userInteraction: {} authentication: {} + cvssVersion: {} details: - package: "package" minAffectedVersion: @@ -5281,6 +6264,21 @@ definitions: occurrences: - discovered: discovered: + analysisCompleted: + analysisType: + - "analysisType" + - "analysisType" + analysisError: + - code: 1 + details: + - '@type': "@type" + - '@type': "@type" + message: "message" + - code: 1 + details: + - '@type': "@type" + - '@type': "@type" + message: "message" analysisStatusError: code: 1 details: @@ -5347,11 +6345,23 @@ definitions: severity: {} longDescription: "longDescription" cvssScore: 0.8008282 + cvssV3: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} relatedUrls: - label: "label" url: "url" - label: "label" url: "url" + cvssVersion: {} packageIssue: - affectedLocation: package: "package" @@ -5394,7 +6404,46 @@ definitions: packageType: "packageType" severityName: "severityName" shortDescription: "shortDescription" + cvssV2: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} type: "type" + vexAssessment: + cve: "cve" + relatedUris: + - label: "label" + url: "url" + - label: "label" + url: "url" + noteName: "noteName" + remediations: + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + state: {} + impacts: + - "impacts" + - "impacts" + justification: + justificationType: {} + details: "details" spdxRelationship: comment: "comment" source: "source" @@ -5569,6 +6618,9 @@ definitions: summaryDescription: "summaryDescription" installation: installation: + license: + expression: "expression" + comments: "comments" name: "name" location: - path: "path" @@ -5587,6 +6639,15 @@ definitions: name: "name" epoch: 6 revision: "revision" + packageType: "packageType" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + architecture: {} name: "name" sbom: creatorComment: "creatorComment" @@ -5630,6 +6691,21 @@ definitions: platform: {} - discovered: discovered: + analysisCompleted: + analysisType: + - "analysisType" + - "analysisType" + analysisError: + - code: 1 + details: + - '@type': "@type" + - '@type': "@type" + message: "message" + - code: 1 + details: + - '@type': "@type" + - '@type': "@type" + message: "message" analysisStatusError: code: 1 details: @@ -5696,11 +6772,23 @@ definitions: severity: {} longDescription: "longDescription" cvssScore: 0.8008282 + cvssV3: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} relatedUrls: - label: "label" url: "url" - label: "label" url: "url" + cvssVersion: {} packageIssue: - affectedLocation: package: "package" @@ -5743,7 +6831,46 @@ definitions: packageType: "packageType" severityName: "severityName" shortDescription: "shortDescription" + cvssV2: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} type: "type" + vexAssessment: + cve: "cve" + relatedUris: + - label: "label" + url: "url" + - label: "label" + url: "url" + noteName: "noteName" + remediations: + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + state: {} + impacts: + - "impacts" + - "impacts" + justification: + justificationType: {} + details: "details" spdxRelationship: comment: "comment" source: "source" @@ -5918,6 +7045,9 @@ definitions: summaryDescription: "summaryDescription" installation: installation: + license: + expression: "expression" + comments: "comments" name: "name" location: - path: "path" @@ -5936,6 +7066,15 @@ definitions: name: "name" epoch: 6 revision: "revision" + packageType: "packageType" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + architecture: {} name: "name" sbom: creatorComment: "creatorComment" @@ -6058,11 +7197,23 @@ definitions: spdxRelationship: description: "A note describing an SPDX File." $ref: "#/definitions/spdxRelationshipNote" + vulnerabilityAssessment: + description: "A note describing a vulnerability assessment." + $ref: "#/definitions/vexVulnerabilityAssessmentNote" description: "A type of analysis that can be done for a resource." example: longDescription: "longDescription" package: + license: + expression: "expression" + comments: "comments" name: "name" + digest: + - digestBytes: "digestBytes" + algo: "algo" + - digestBytes: "digestBytes" + algo: "algo" + description: "description" distribution: - latestVersion: inclusive: true @@ -6086,7 +7237,59 @@ definitions: maintainer: "maintainer" url: "url" architecture: {} + packageType: "packageType" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + maintainer: "maintainer" + url: "url" kind: {} + vulnerabilityAssessment: + longDescription: "longDescription" + assessment: + longDescription: "longDescription" + cve: "cve" + relatedUris: + - label: "label" + url: "url" + - label: "label" + url: "url" + remediations: + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + shortDescription: "shortDescription" + state: {} + impacts: + - "impacts" + - "impacts" + justification: + justificationType: {} + details: "details" + product: + genericUri: "genericUri" + name: "name" + id: "id" + publisher: + issuingAuthority: "issuingAuthority" + name: "name" + context: "context" + shortDescription: "shortDescription" + title: "title" + languageCode: "languageCode" baseImage: resourceUrl: "resourceUrl" fingerprint: @@ -6146,6 +7349,7 @@ definitions: impactScore: 5.637377 userInteraction: {} authentication: {} + cvssVersion: {} details: - package: "package" minAffectedVersion: @@ -6313,7 +7517,8 @@ definitions: \ - INTOTO: This represents an in-toto link.\n - SBOM: This represents a software\ \ bill of materials.\n - SPDX_PACKAGE: This represents an SPDX Package.\n -\ \ SPDX_FILE: This represents an SPDX File.\n - SPDX_RELATIONSHIP: This represents\ - \ an SPDX Relationship." + \ an SPDX Relationship.\n - VULNERABILITY_ASSESSMENT: This represents a Vulnerability\ + \ Assessment." enum: - "NOTE_KIND_UNSPECIFIED" - "VULNERABILITY" @@ -6328,6 +7533,7 @@ definitions: - "SPDX_PACKAGE" - "SPDX_FILE" - "SPDX_RELATIONSHIP" + - "VULNERABILITY_ASSESSMENT" default: "NOTE_KIND_UNSPECIFIED" v1beta1Occurrence: type: "object" @@ -6406,6 +7612,21 @@ definitions: example: discovered: discovered: + analysisCompleted: + analysisType: + - "analysisType" + - "analysisType" + analysisError: + - code: 1 + details: + - '@type': "@type" + - '@type': "@type" + message: "message" + - code: 1 + details: + - '@type': "@type" + - '@type': "@type" + message: "message" analysisStatusError: code: 1 details: @@ -6472,11 +7693,23 @@ definitions: severity: {} longDescription: "longDescription" cvssScore: 0.8008282 + cvssV3: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} relatedUrls: - label: "label" url: "url" - label: "label" url: "url" + cvssVersion: {} packageIssue: - affectedLocation: package: "package" @@ -6519,7 +7752,46 @@ definitions: packageType: "packageType" severityName: "severityName" shortDescription: "shortDescription" + cvssV2: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} type: "type" + vexAssessment: + cve: "cve" + relatedUris: + - label: "label" + url: "url" + - label: "label" + url: "url" + noteName: "noteName" + remediations: + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + state: {} + impacts: + - "impacts" + - "impacts" + justification: + justificationType: {} + details: "details" spdxRelationship: comment: "comment" source: "source" @@ -6694,6 +7966,9 @@ definitions: summaryDescription: "summaryDescription" installation: installation: + license: + expression: "expression" + comments: "comments" name: "name" location: - path: "path" @@ -6712,6 +7987,15 @@ definitions: name: "name" epoch: 6 revision: "revision" + packageType: "packageType" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + architecture: {} name: "name" sbom: creatorComment: "creatorComment" @@ -7011,6 +8295,21 @@ definitions: description: "Details of a discovery occurrence." example: discovered: + analysisCompleted: + analysisType: + - "analysisType" + - "analysisType" + analysisError: + - code: 1 + details: + - '@type': "@type" + - '@type': "@type" + message: "message" + - code: 1 + details: + - '@type': "@type" + - '@type': "@type" + message: "message" analysisStatusError: code: 1 details: @@ -7105,6 +8404,9 @@ definitions: description: "Details of a package occurrence." example: installation: + license: + expression: "expression" + comments: "comments" name: "name" location: - path: "path" @@ -7123,15 +8425,24 @@ definitions: name: "name" epoch: 6 revision: "revision" + packageType: "packageType" + cpeUri: "cpeUri" + version: + inclusive: true + kind: {} + name: "name" + epoch: 6 + revision: "revision" + architecture: {} v1beta1packageLocation: type: "object" properties: cpeUri: type: "string" - description: "Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/)\n\ + description: "Deprecated.\nThe CPE URI in [CPE format](https://cpe.mitre.org/specification/)\n\ denoting the package manager version distributing a package." version: - description: "The version installed at this location." + description: "Deprecated.\nThe version installed at this location." $ref: "#/definitions/packageVersion" path: type: "string" @@ -7225,16 +8536,40 @@ definitions: \ severities, this field should be the highest severity for any of\nthe\ \ PackageIssues." $ref: "#/definitions/vulnerabilitySeverity" + cvssVersion: + description: "Output only. CVSS version used to populate cvss_score and severity." + readOnly: true + $ref: "#/definitions/vulnerabilityCVSSVersion" + vexAssessment: + $ref: "#/definitions/DetailsVexAssessment" + cvssV2: + description: "The cvss v2 score for the vulnerability." + $ref: "#/definitions/vulnerabilityCVSS" + cvssV3: + description: "The cvss v3 score for the vulnerability." + $ref: "#/definitions/vulnerabilityCVSS" description: "Details of a vulnerability Occurrence." example: severity: {} longDescription: "longDescription" cvssScore: 0.8008282 + cvssV3: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} relatedUrls: - label: "label" url: "url" - label: "label" url: "url" + cvssVersion: {} packageIssue: - affectedLocation: package: "package" @@ -7277,7 +8612,115 @@ definitions: packageType: "packageType" severityName: "severityName" shortDescription: "shortDescription" + cvssV2: + exploitabilityScore: 5.962134 + confidentialityImpact: {} + attackComplexity: {} + scope: {} + attackVector: {} + baseScore: 1.4658129 + privilegesRequired: {} + impactScore: 5.637377 + userInteraction: {} + authentication: {} type: "type" + vexAssessment: + cve: "cve" + relatedUris: + - label: "label" + url: "url" + - label: "label" + url: "url" + noteName: "noteName" + remediations: + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + state: {} + impacts: + - "impacts" + - "impacts" + justification: + justificationType: {} + details: "details" + vexVulnerabilityAssessmentNote: + type: "object" + properties: + title: + type: "string" + title: "The title of the note. E.g. `Vex-Debian-11.4`" + shortDescription: + type: "string" + description: "A one sentence description of this Vex." + longDescription: + type: "string" + description: "A detailed description of this Vex." + languageCode: + type: "string" + description: "Identifies the language used by this document,\ncorresponding\ + \ to IETF BCP 47 / RFC 5646." + publisher: + description: "Publisher details of this Note." + $ref: "#/definitions/VulnerabilityAssessmentNotePublisher" + product: + description: "The product affected by this vex." + $ref: "#/definitions/VulnerabilityAssessmentNoteProduct" + assessment: + description: "Represents a vulnerability assessment for the product." + $ref: "#/definitions/VulnerabilityAssessmentNoteAssessment" + description: "A single VulnerabilityAssessmentNote represents\none particular\ + \ product's vulnerability assessment for one CVE." + example: + longDescription: "longDescription" + assessment: + longDescription: "longDescription" + cve: "cve" + relatedUris: + - label: "label" + url: "url" + - label: "label" + url: "url" + remediations: + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + - remediationType: {} + remediationUri: + label: "label" + url: "url" + details: "details" + remediationTime: "2000-01-23T04:56:07.000+00:00" + shortDescription: "shortDescription" + state: {} + impacts: + - "impacts" + - "impacts" + justification: + justificationType: {} + details: "details" + product: + genericUri: "genericUri" + name: "name" + id: "id" + publisher: + issuingAuthority: "issuingAuthority" + name: "name" + context: "context" + shortDescription: "shortDescription" + title: "title" + languageCode: "languageCode" vulnerabilityCVSS: type: "object" properties: @@ -7311,7 +8754,11 @@ definitions: $ref: "#/definitions/CVSSImpact" availabilityImpact: $ref: "#/definitions/CVSSImpact" - title: "Common Vulnerability Scoring System.\nFor details, see https://www.first.org/cvss/specification-document" + title: "Common Vulnerability Scoring System.\nThis message is compatible with\ + \ CVSS v2 and v3.\nFor CVSS v2 details, see https://www.first.org/cvss/v2/guide\n\ + CVSS v2 calculator: https://nvd.nist.gov/vuln-metrics/cvss/v2-calculator\nFor\ + \ CVSS v3 details, see https://www.first.org/cvss/specification-document\nCVSS\ + \ v3 calculator: https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator" example: exploitabilityScore: 5.962134 confidentialityImpact: {} @@ -7323,6 +8770,14 @@ definitions: impactScore: 5.637377 userInteraction: {} authentication: {} + vulnerabilityCVSSVersion: + type: "string" + description: "CVSS Version." + enum: + - "CVSS_VERSION_UNSPECIFIED" + - "CVSS_VERSION_2" + - "CVSS_VERSION_3" + default: "CVSS_VERSION_UNSPECIFIED" vulnerabilityPackageIssue: type: "object" properties: @@ -7422,6 +8877,9 @@ definitions: title: "A list of CWE for this vulnerability.\nFor details, see: https://cwe.mitre.org/index.html" items: type: "string" + cvssVersion: + description: "CVSS version used to populate cvss_score and severity." + $ref: "#/definitions/vulnerabilityCVSSVersion" description: "Vulnerability provides metadata about a security vulnerability in\ \ a Note." example: @@ -7441,6 +8899,7 @@ definitions: impactScore: 5.637377 userInteraction: {} authentication: {} + cvssVersion: {} details: - package: "package" minAffectedVersion: diff --git a/0.2.0/grafeas/api_grafeas_v1_beta1.go b/grafeas/api_grafeas_v1_beta1.go similarity index 100% rename from 0.2.0/grafeas/api_grafeas_v1_beta1.go rename to grafeas/api_grafeas_v1_beta1.go diff --git a/0.2.0/grafeas/client.go b/grafeas/client.go similarity index 100% rename from 0.2.0/grafeas/client.go rename to grafeas/client.go diff --git a/0.2.0/grafeas/configuration.go b/grafeas/configuration.go similarity index 97% rename from 0.2.0/grafeas/configuration.go rename to grafeas/configuration.go index 3827565..e74263c 100644 --- a/0.2.0/grafeas/configuration.go +++ b/grafeas/configuration.go @@ -62,7 +62,7 @@ func NewConfiguration() *Configuration { cfg := &Configuration{ BasePath: "https://localhost", DefaultHeader: make(map[string]string), - UserAgent: "Swagger-Codegen/0.2.0/go", + UserAgent: "Swagger-Codegen/1.0.0/go", } return cfg } diff --git a/0.1.0/docs/AliasContextKind.md b/grafeas/docs/AliasContextKind.md similarity index 100% rename from 0.1.0/docs/AliasContextKind.md rename to grafeas/docs/AliasContextKind.md diff --git a/grafeas/docs/AssessmentJustification.md b/grafeas/docs/AssessmentJustification.md new file mode 100644 index 0000000..6c2cb64 --- /dev/null +++ b/grafeas/docs/AssessmentJustification.md @@ -0,0 +1,11 @@ +# AssessmentJustification + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**JustificationType** | [***JustificationJustificationType**](JustificationJustificationType.md) | The justification type for this vulnerability. | [optional] [default to null] +**Details** | **string** | Additional details on why this justification was chosen. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/grafeas/docs/AssessmentRemediation.md b/grafeas/docs/AssessmentRemediation.md new file mode 100644 index 0000000..e5cc6c1 --- /dev/null +++ b/grafeas/docs/AssessmentRemediation.md @@ -0,0 +1,13 @@ +# AssessmentRemediation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RemediationType** | [***RemediationRemediationType**](RemediationRemediationType.md) | The type of remediation that can be applied. | [optional] [default to null] +**RemediationTime** | [**time.Time**](time.Time.md) | Contains the date from which the remediation is available. | [optional] [default to null] +**Details** | **string** | Contains a comprehensive human-readable discussion of the remediation. | [optional] [default to null] +**RemediationUri** | [***V1beta1RelatedUrl**](v1beta1RelatedUrl.md) | Contains the URL where to obtain the remediation. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/LayerDirective.md b/grafeas/docs/AssessmentState.md similarity index 93% rename from 0.2.0/grafeas/docs/LayerDirective.md rename to grafeas/docs/AssessmentState.md index 445dd91..c4aa3b2 100644 --- a/0.2.0/grafeas/docs/LayerDirective.md +++ b/grafeas/docs/AssessmentState.md @@ -1,4 +1,4 @@ -# LayerDirective +# AssessmentState ## Properties Name | Type | Description | Notes diff --git a/0.1.0/docs/AttestationAttestation.md b/grafeas/docs/AttestationAttestation.md similarity index 100% rename from 0.1.0/docs/AttestationAttestation.md rename to grafeas/docs/AttestationAttestation.md diff --git a/0.1.0/docs/AttestationAuthority.md b/grafeas/docs/AttestationAuthority.md similarity index 100% rename from 0.1.0/docs/AttestationAuthority.md rename to grafeas/docs/AttestationAuthority.md diff --git a/0.2.0/grafeas/docs/AttestationGenericSignedAttestation.md b/grafeas/docs/AttestationGenericSignedAttestation.md similarity index 100% rename from 0.2.0/grafeas/docs/AttestationGenericSignedAttestation.md rename to grafeas/docs/AttestationGenericSignedAttestation.md diff --git a/0.1.0/docs/AttestationGenericSignedAttestationContentType.md b/grafeas/docs/AttestationGenericSignedAttestationContentType.md similarity index 100% rename from 0.1.0/docs/AttestationGenericSignedAttestationContentType.md rename to grafeas/docs/AttestationGenericSignedAttestationContentType.md diff --git a/0.2.0/grafeas/docs/AttestationPgpSignedAttestation.md b/grafeas/docs/AttestationPgpSignedAttestation.md similarity index 100% rename from 0.2.0/grafeas/docs/AttestationPgpSignedAttestation.md rename to grafeas/docs/AttestationPgpSignedAttestation.md diff --git a/0.1.0/docs/AttestationPgpSignedAttestationContentType.md b/grafeas/docs/AttestationPgpSignedAttestationContentType.md similarity index 100% rename from 0.1.0/docs/AttestationPgpSignedAttestationContentType.md rename to grafeas/docs/AttestationPgpSignedAttestationContentType.md diff --git a/0.1.0/docs/AuthorityHint.md b/grafeas/docs/AuthorityHint.md similarity index 100% rename from 0.1.0/docs/AuthorityHint.md rename to grafeas/docs/AuthorityHint.md diff --git a/0.2.0/grafeas/docs/Body.md b/grafeas/docs/Body.md similarity index 100% rename from 0.2.0/grafeas/docs/Body.md rename to grafeas/docs/Body.md diff --git a/0.2.0/grafeas/docs/Body1.md b/grafeas/docs/Body1.md similarity index 100% rename from 0.2.0/grafeas/docs/Body1.md rename to grafeas/docs/Body1.md diff --git a/0.1.0/docs/BuildBuild.md b/grafeas/docs/BuildBuild.md similarity index 100% rename from 0.1.0/docs/BuildBuild.md rename to grafeas/docs/BuildBuild.md diff --git a/0.1.0/docs/BuildBuildSignature.md b/grafeas/docs/BuildBuildSignature.md similarity index 100% rename from 0.1.0/docs/BuildBuildSignature.md rename to grafeas/docs/BuildBuildSignature.md diff --git a/0.1.0/docs/BuildSignatureKeyType.md b/grafeas/docs/BuildSignatureKeyType.md similarity index 100% rename from 0.1.0/docs/BuildSignatureKeyType.md rename to grafeas/docs/BuildSignatureKeyType.md diff --git a/0.2.0/grafeas/docs/CvssAttackComplexity.md b/grafeas/docs/CvssAttackComplexity.md similarity index 100% rename from 0.2.0/grafeas/docs/CvssAttackComplexity.md rename to grafeas/docs/CvssAttackComplexity.md diff --git a/0.2.0/grafeas/docs/CvssAttackVector.md b/grafeas/docs/CvssAttackVector.md similarity index 100% rename from 0.2.0/grafeas/docs/CvssAttackVector.md rename to grafeas/docs/CvssAttackVector.md diff --git a/0.2.0/grafeas/docs/CvssAuthentication.md b/grafeas/docs/CvssAuthentication.md similarity index 100% rename from 0.2.0/grafeas/docs/CvssAuthentication.md rename to grafeas/docs/CvssAuthentication.md diff --git a/0.2.0/grafeas/docs/CvssImpact.md b/grafeas/docs/CvssImpact.md similarity index 100% rename from 0.2.0/grafeas/docs/CvssImpact.md rename to grafeas/docs/CvssImpact.md diff --git a/0.2.0/grafeas/docs/CvssPrivilegesRequired.md b/grafeas/docs/CvssPrivilegesRequired.md similarity index 100% rename from 0.2.0/grafeas/docs/CvssPrivilegesRequired.md rename to grafeas/docs/CvssPrivilegesRequired.md diff --git a/0.2.0/grafeas/docs/CvssScope.md b/grafeas/docs/CvssScope.md similarity index 100% rename from 0.2.0/grafeas/docs/CvssScope.md rename to grafeas/docs/CvssScope.md diff --git a/0.2.0/grafeas/docs/CvssUserInteraction.md b/grafeas/docs/CvssUserInteraction.md similarity index 100% rename from 0.2.0/grafeas/docs/CvssUserInteraction.md rename to grafeas/docs/CvssUserInteraction.md diff --git a/0.1.0/docs/DeploymentDeployable.md b/grafeas/docs/DeploymentDeployable.md similarity index 100% rename from 0.1.0/docs/DeploymentDeployable.md rename to grafeas/docs/DeploymentDeployable.md diff --git a/0.1.0/docs/DeploymentDeployment.md b/grafeas/docs/DeploymentDeployment.md similarity index 100% rename from 0.1.0/docs/DeploymentDeployment.md rename to grafeas/docs/DeploymentDeployment.md diff --git a/0.1.0/docs/DeploymentPlatform.md b/grafeas/docs/DeploymentPlatform.md similarity index 100% rename from 0.1.0/docs/DeploymentPlatform.md rename to grafeas/docs/DeploymentPlatform.md diff --git a/grafeas/docs/DetailsVexAssessment.md b/grafeas/docs/DetailsVexAssessment.md new file mode 100644 index 0000000..ca63b45 --- /dev/null +++ b/grafeas/docs/DetailsVexAssessment.md @@ -0,0 +1,16 @@ +# DetailsVexAssessment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cve** | **string** | Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. | [optional] [default to null] +**RelatedUris** | [**[]V1beta1RelatedUrl**](v1beta1RelatedUrl.md) | Holds a list of references associated with this vulnerability item and assessment. | [optional] [default to null] +**NoteName** | **string** | | [optional] [default to null] +**State** | [***AssessmentState**](AssessmentState.md) | Provides the state of this Vulnerability assessment. | [optional] [default to null] +**Impacts** | **[]string** | Contains information about the impact of this vulnerability, this will change with time. | [optional] [default to null] +**Remediations** | [**[]AssessmentRemediation**](AssessmentRemediation.md) | Specifies details on how to handle (and presumably, fix) a vulnerability. | [optional] [default to null] +**Justification** | [***AssessmentJustification**](AssessmentJustification.md) | Justification provides the justification when the state of the assessment if NOT_AFFECTED. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.1.0/docs/CvsSv3PrivilegesRequired.md b/grafeas/docs/DiscoveredAnalysisCompleted.md similarity index 74% rename from 0.1.0/docs/CvsSv3PrivilegesRequired.md rename to grafeas/docs/DiscoveredAnalysisCompleted.md index 07bf90f..5664926 100644 --- a/0.1.0/docs/CvsSv3PrivilegesRequired.md +++ b/grafeas/docs/DiscoveredAnalysisCompleted.md @@ -1,8 +1,9 @@ -# CvsSv3PrivilegesRequired +# DiscoveredAnalysisCompleted ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**AnalysisType** | **[]string** | | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/0.1.0/docs/DiscoveredAnalysisStatus.md b/grafeas/docs/DiscoveredAnalysisStatus.md similarity index 100% rename from 0.1.0/docs/DiscoveredAnalysisStatus.md rename to grafeas/docs/DiscoveredAnalysisStatus.md diff --git a/0.1.0/docs/DiscoveredContinuousAnalysis.md b/grafeas/docs/DiscoveredContinuousAnalysis.md similarity index 100% rename from 0.1.0/docs/DiscoveredContinuousAnalysis.md rename to grafeas/docs/DiscoveredContinuousAnalysis.md diff --git a/0.1.0/docs/DiscoveryDiscovered.md b/grafeas/docs/DiscoveryDiscovered.md similarity index 76% rename from 0.1.0/docs/DiscoveryDiscovered.md rename to grafeas/docs/DiscoveryDiscovered.md index b15ab2f..5eaaf03 100644 --- a/0.1.0/docs/DiscoveryDiscovered.md +++ b/grafeas/docs/DiscoveryDiscovered.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes **ContinuousAnalysis** | [***DiscoveredContinuousAnalysis**](DiscoveredContinuousAnalysis.md) | Whether the resource is continuously analyzed. | [optional] [default to null] **LastAnalysisTime** | [**time.Time**](time.Time.md) | The last time continuous analysis was done for this resource. Deprecated, do not use. | [optional] [default to null] **AnalysisStatus** | [***DiscoveredAnalysisStatus**](DiscoveredAnalysisStatus.md) | The status of discovery for the resource. | [optional] [default to null] +**AnalysisCompleted** | [***DiscoveredAnalysisCompleted**](DiscoveredAnalysisCompleted.md) | | [optional] [default to null] +**AnalysisError** | [**[]RpcStatus**](rpcStatus.md) | Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors. | [optional] [default to null] **AnalysisStatusError** | [***RpcStatus**](rpcStatus.md) | When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API. | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/0.1.0/docs/DiscoveryDiscovery.md b/grafeas/docs/DiscoveryDiscovery.md similarity index 100% rename from 0.1.0/docs/DiscoveryDiscovery.md rename to grafeas/docs/DiscoveryDiscovery.md diff --git a/0.2.0/grafeas/docs/ExternalRefCategory.md b/grafeas/docs/ExternalRefCategory.md similarity index 100% rename from 0.2.0/grafeas/docs/ExternalRefCategory.md rename to grafeas/docs/ExternalRefCategory.md diff --git a/0.2.0/grafeas/docs/FileNoteFileType.md b/grafeas/docs/FileNoteFileType.md similarity index 100% rename from 0.2.0/grafeas/docs/FileNoteFileType.md rename to grafeas/docs/FileNoteFileType.md diff --git a/0.2.0/grafeas/docs/GrafeasV1Beta1Api.md b/grafeas/docs/GrafeasV1Beta1Api.md similarity index 100% rename from 0.2.0/grafeas/docs/GrafeasV1Beta1Api.md rename to grafeas/docs/GrafeasV1Beta1Api.md diff --git a/0.2.0/grafeas/docs/Grafeasv1beta1Signature.md b/grafeas/docs/Grafeasv1beta1Signature.md similarity index 100% rename from 0.2.0/grafeas/docs/Grafeasv1beta1Signature.md rename to grafeas/docs/Grafeasv1beta1Signature.md diff --git a/0.1.0/docs/HashHashType.md b/grafeas/docs/HashHashType.md similarity index 100% rename from 0.1.0/docs/HashHashType.md rename to grafeas/docs/HashHashType.md diff --git a/0.1.0/docs/ImageBasis.md b/grafeas/docs/ImageBasis.md similarity index 100% rename from 0.1.0/docs/ImageBasis.md rename to grafeas/docs/ImageBasis.md diff --git a/0.1.0/docs/ImageDerived.md b/grafeas/docs/ImageDerived.md similarity index 100% rename from 0.1.0/docs/ImageDerived.md rename to grafeas/docs/ImageDerived.md diff --git a/0.1.0/docs/ImageFingerprint.md b/grafeas/docs/ImageFingerprint.md similarity index 100% rename from 0.1.0/docs/ImageFingerprint.md rename to grafeas/docs/ImageFingerprint.md diff --git a/0.1.0/docs/ImageLayer.md b/grafeas/docs/ImageLayer.md similarity index 100% rename from 0.1.0/docs/ImageLayer.md rename to grafeas/docs/ImageLayer.md diff --git a/0.2.0/grafeas/docs/InTotoArtifactRule.md b/grafeas/docs/InTotoArtifactRule.md similarity index 100% rename from 0.2.0/grafeas/docs/InTotoArtifactRule.md rename to grafeas/docs/InTotoArtifactRule.md diff --git a/0.2.0/grafeas/docs/IntotoInToto.md b/grafeas/docs/IntotoInToto.md similarity index 100% rename from 0.2.0/grafeas/docs/IntotoInToto.md rename to grafeas/docs/IntotoInToto.md diff --git a/0.2.0/grafeas/docs/IntotoLink.md b/grafeas/docs/IntotoLink.md similarity index 100% rename from 0.2.0/grafeas/docs/IntotoLink.md rename to grafeas/docs/IntotoLink.md diff --git a/0.2.0/grafeas/docs/IntotoLinkArtifact.md b/grafeas/docs/IntotoLinkArtifact.md similarity index 100% rename from 0.2.0/grafeas/docs/IntotoLinkArtifact.md rename to grafeas/docs/IntotoLinkArtifact.md diff --git a/0.2.0/grafeas/docs/IntotoSigningKey.md b/grafeas/docs/IntotoSigningKey.md similarity index 100% rename from 0.2.0/grafeas/docs/IntotoSigningKey.md rename to grafeas/docs/IntotoSigningKey.md diff --git a/0.1.0/docs/CvsSv3Impact.md b/grafeas/docs/JustificationJustificationType.md similarity index 89% rename from 0.1.0/docs/CvsSv3Impact.md rename to grafeas/docs/JustificationJustificationType.md index 8575bee..3e89608 100644 --- a/0.1.0/docs/CvsSv3Impact.md +++ b/grafeas/docs/JustificationJustificationType.md @@ -1,4 +1,4 @@ -# CvsSv3Impact +# JustificationJustificationType ## Properties Name | Type | Description | Notes diff --git a/0.1.0/docs/LayerDirective.md b/grafeas/docs/LayerDirective.md similarity index 100% rename from 0.1.0/docs/LayerDirective.md rename to grafeas/docs/LayerDirective.md diff --git a/0.2.0/grafeas/docs/LinkArtifactHashes.md b/grafeas/docs/LinkArtifactHashes.md similarity index 100% rename from 0.2.0/grafeas/docs/LinkArtifactHashes.md rename to grafeas/docs/LinkArtifactHashes.md diff --git a/0.2.0/grafeas/docs/LinkByProducts.md b/grafeas/docs/LinkByProducts.md similarity index 100% rename from 0.2.0/grafeas/docs/LinkByProducts.md rename to grafeas/docs/LinkByProducts.md diff --git a/0.2.0/grafeas/docs/LinkEnvironment.md b/grafeas/docs/LinkEnvironment.md similarity index 100% rename from 0.2.0/grafeas/docs/LinkEnvironment.md rename to grafeas/docs/LinkEnvironment.md diff --git a/0.1.0/docs/PackageArchitecture.md b/grafeas/docs/PackageArchitecture.md similarity index 100% rename from 0.1.0/docs/PackageArchitecture.md rename to grafeas/docs/PackageArchitecture.md diff --git a/0.2.0/grafeas/docs/PackageDistribution.md b/grafeas/docs/PackageDistribution.md similarity index 83% rename from 0.2.0/grafeas/docs/PackageDistribution.md rename to grafeas/docs/PackageDistribution.md index c15a9fc..0f1c509 100644 --- a/0.2.0/grafeas/docs/PackageDistribution.md +++ b/grafeas/docs/PackageDistribution.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CpeUri** | **string** | Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. | [optional] [default to null] +**CpeUri** | **string** | The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. | [default to null] **Architecture** | [***PackageArchitecture**](packageArchitecture.md) | The CPU architecture for which packages in this distribution channel were built. | [optional] [default to null] **LatestVersion** | [***PackageVersion**](packageVersion.md) | The latest available version of this package in this distribution channel. | [optional] [default to null] **Maintainer** | **string** | A freeform string denoting the maintainer of this package. | [optional] [default to null] diff --git a/0.2.0/grafeas/docs/PackageInfoNoteExternalRef.md b/grafeas/docs/PackageInfoNoteExternalRef.md similarity index 100% rename from 0.2.0/grafeas/docs/PackageInfoNoteExternalRef.md rename to grafeas/docs/PackageInfoNoteExternalRef.md diff --git a/grafeas/docs/PackageInstallation.md b/grafeas/docs/PackageInstallation.md new file mode 100644 index 0000000..8c83d64 --- /dev/null +++ b/grafeas/docs/PackageInstallation.md @@ -0,0 +1,16 @@ +# PackageInstallation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the installed package. | [default to null] +**Location** | [**[]V1beta1packageLocation**](v1beta1packageLocation.md) | All of the places within the filesystem versions of this package have been found. | [optional] [default to null] +**PackageType** | **string** | The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.). | [optional] [default to null] +**CpeUri** | **string** | 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. | [optional] [default to null] +**Architecture** | [***PackageArchitecture**](packageArchitecture.md) | The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages. | [optional] [default to null] +**License** | [***V1beta1License**](v1beta1License.md) | Licenses that have been declared by the authors of the package. | [optional] [default to null] +**Version** | [***PackageVersion**](packageVersion.md) | The version of the package. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/grafeas/docs/PackagePackage.md b/grafeas/docs/PackagePackage.md new file mode 100644 index 0000000..f46a2f6 --- /dev/null +++ b/grafeas/docs/PackagePackage.md @@ -0,0 +1,20 @@ +# PackagePackage + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the package. | [default to null] +**Distribution** | [**[]PackageDistribution**](packageDistribution.md) | The various channels by which a package is distributed. | [optional] [default to null] +**PackageType** | **string** | The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.). | [optional] [default to null] +**CpeUri** | **string** | 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. | [optional] [default to null] +**Architecture** | [***PackageArchitecture**](packageArchitecture.md) | The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages. | [optional] [default to null] +**Version** | [***PackageVersion**](packageVersion.md) | The version of the package. | [optional] [default to null] +**Maintainer** | **string** | A freeform text denoting the maintainer of this package. | [optional] [default to null] +**Url** | **string** | The homepage for this package. | [optional] [default to null] +**Description** | **string** | The description of this package. | [optional] [default to null] +**License** | [***V1beta1License**](v1beta1License.md) | Licenses that have been declared by the authors of the package. | [optional] [default to null] +**Digest** | [**[]V1beta1Digest**](v1beta1Digest.md) | Hash value, typically a file digest, that allows unique identification a specific package. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/PackageVersion.md b/grafeas/docs/PackageVersion.md similarity index 100% rename from 0.2.0/grafeas/docs/PackageVersion.md rename to grafeas/docs/PackageVersion.md diff --git a/0.2.0/grafeas/docs/ProtobufAny.md b/grafeas/docs/ProtobufAny.md similarity index 100% rename from 0.2.0/grafeas/docs/ProtobufAny.md rename to grafeas/docs/ProtobufAny.md diff --git a/0.2.0/grafeas/docs/ProvenanceBuildProvenance.md b/grafeas/docs/ProvenanceBuildProvenance.md similarity index 100% rename from 0.2.0/grafeas/docs/ProvenanceBuildProvenance.md rename to grafeas/docs/ProvenanceBuildProvenance.md diff --git a/0.1.0/docs/ProvenanceCommand.md b/grafeas/docs/ProvenanceCommand.md similarity index 100% rename from 0.1.0/docs/ProvenanceCommand.md rename to grafeas/docs/ProvenanceCommand.md diff --git a/0.1.0/docs/ProvenanceFileHashes.md b/grafeas/docs/ProvenanceFileHashes.md similarity index 100% rename from 0.1.0/docs/ProvenanceFileHashes.md rename to grafeas/docs/ProvenanceFileHashes.md diff --git a/0.1.0/docs/ProvenanceHash.md b/grafeas/docs/ProvenanceHash.md similarity index 100% rename from 0.1.0/docs/ProvenanceHash.md rename to grafeas/docs/ProvenanceHash.md diff --git a/0.1.0/docs/ProvenanceSource.md b/grafeas/docs/ProvenanceSource.md similarity index 100% rename from 0.1.0/docs/ProvenanceSource.md rename to grafeas/docs/ProvenanceSource.md diff --git a/0.1.0/docs/CvsSv3AttackVector.md b/grafeas/docs/RemediationRemediationType.md similarity index 90% rename from 0.1.0/docs/CvsSv3AttackVector.md rename to grafeas/docs/RemediationRemediationType.md index 907e3db..9ee08d0 100644 --- a/0.1.0/docs/CvsSv3AttackVector.md +++ b/grafeas/docs/RemediationRemediationType.md @@ -1,4 +1,4 @@ -# CvsSv3AttackVector +# RemediationRemediationType ## Properties Name | Type | Description | Notes diff --git a/0.1.0/docs/RpcStatus.md b/grafeas/docs/RpcStatus.md similarity index 100% rename from 0.1.0/docs/RpcStatus.md rename to grafeas/docs/RpcStatus.md diff --git a/0.1.0/docs/SourceAliasContext.md b/grafeas/docs/SourceAliasContext.md similarity index 100% rename from 0.1.0/docs/SourceAliasContext.md rename to grafeas/docs/SourceAliasContext.md diff --git a/0.1.0/docs/SourceCloudRepoSourceContext.md b/grafeas/docs/SourceCloudRepoSourceContext.md similarity index 100% rename from 0.1.0/docs/SourceCloudRepoSourceContext.md rename to grafeas/docs/SourceCloudRepoSourceContext.md diff --git a/0.1.0/docs/SourceGerritSourceContext.md b/grafeas/docs/SourceGerritSourceContext.md similarity index 100% rename from 0.1.0/docs/SourceGerritSourceContext.md rename to grafeas/docs/SourceGerritSourceContext.md diff --git a/0.1.0/docs/SourceGitSourceContext.md b/grafeas/docs/SourceGitSourceContext.md similarity index 100% rename from 0.1.0/docs/SourceGitSourceContext.md rename to grafeas/docs/SourceGitSourceContext.md diff --git a/0.1.0/docs/SourceProjectRepoId.md b/grafeas/docs/SourceProjectRepoId.md similarity index 100% rename from 0.1.0/docs/SourceProjectRepoId.md rename to grafeas/docs/SourceProjectRepoId.md diff --git a/0.1.0/docs/SourceRepoId.md b/grafeas/docs/SourceRepoId.md similarity index 100% rename from 0.1.0/docs/SourceRepoId.md rename to grafeas/docs/SourceRepoId.md diff --git a/0.1.0/docs/SourceSourceContext.md b/grafeas/docs/SourceSourceContext.md similarity index 100% rename from 0.1.0/docs/SourceSourceContext.md rename to grafeas/docs/SourceSourceContext.md diff --git a/0.2.0/grafeas/docs/SpdxDocumentNote.md b/grafeas/docs/SpdxDocumentNote.md similarity index 100% rename from 0.2.0/grafeas/docs/SpdxDocumentNote.md rename to grafeas/docs/SpdxDocumentNote.md diff --git a/0.2.0/grafeas/docs/SpdxDocumentOccurrence.md b/grafeas/docs/SpdxDocumentOccurrence.md similarity index 100% rename from 0.2.0/grafeas/docs/SpdxDocumentOccurrence.md rename to grafeas/docs/SpdxDocumentOccurrence.md diff --git a/0.2.0/grafeas/docs/SpdxFileNote.md b/grafeas/docs/SpdxFileNote.md similarity index 100% rename from 0.2.0/grafeas/docs/SpdxFileNote.md rename to grafeas/docs/SpdxFileNote.md diff --git a/0.2.0/grafeas/docs/SpdxFileOccurrence.md b/grafeas/docs/SpdxFileOccurrence.md similarity index 88% rename from 0.2.0/grafeas/docs/SpdxFileOccurrence.md rename to grafeas/docs/SpdxFileOccurrence.md index 6c7fa96..38b15f2 100644 --- a/0.2.0/grafeas/docs/SpdxFileOccurrence.md +++ b/grafeas/docs/SpdxFileOccurrence.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **string** | | [optional] [default to null] -**LicenseConcluded** | [***SpdxLicense**](spdxLicense.md) | | [optional] [default to null] +**LicenseConcluded** | [***V1beta1License**](v1beta1License.md) | | [optional] [default to null] **FilesLicenseInfo** | **[]string** | | [optional] [default to null] **Copyright** | **string** | | [optional] [default to null] **Comment** | **string** | | [optional] [default to null] diff --git a/0.2.0/grafeas/docs/SpdxPackageInfoNote.md b/grafeas/docs/SpdxPackageInfoNote.md similarity index 93% rename from 0.2.0/grafeas/docs/SpdxPackageInfoNote.md rename to grafeas/docs/SpdxPackageInfoNote.md index 6547b72..cbe1a58 100644 --- a/0.2.0/grafeas/docs/SpdxPackageInfoNote.md +++ b/grafeas/docs/SpdxPackageInfoNote.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **Checksum** | **string** | | [optional] [default to null] **HomePage** | **string** | | [optional] [default to null] **FilesLicenseInfo** | **[]string** | | [optional] [default to null] -**LicenseDeclared** | [***SpdxLicense**](spdxLicense.md) | | [optional] [default to null] +**LicenseDeclared** | [***V1beta1License**](v1beta1License.md) | | [optional] [default to null] **Copyright** | **string** | | [optional] [default to null] **SummaryDescription** | **string** | | [optional] [default to null] **DetailedDescription** | **string** | | [optional] [default to null] diff --git a/0.2.0/grafeas/docs/SpdxPackageInfoOccurrence.md b/grafeas/docs/SpdxPackageInfoOccurrence.md similarity index 90% rename from 0.2.0/grafeas/docs/SpdxPackageInfoOccurrence.md rename to grafeas/docs/SpdxPackageInfoOccurrence.md index 6212eff..6878341 100644 --- a/0.2.0/grafeas/docs/SpdxPackageInfoOccurrence.md +++ b/grafeas/docs/SpdxPackageInfoOccurrence.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **Id** | **string** | | [optional] [default to null] **Filename** | **string** | | [optional] [default to null] **SourceInfo** | **string** | | [optional] [default to null] -**LicenseConcluded** | [***SpdxLicense**](spdxLicense.md) | | [optional] [default to null] +**LicenseConcluded** | [***V1beta1License**](v1beta1License.md) | | [optional] [default to null] **Comment** | **string** | | [optional] [default to null] **PackageType** | **string** | The type of package: OS, MAVEN, GO, GO_STDLIB, etc. | [optional] [default to null] **Title** | **string** | | [optional] [default to null] diff --git a/0.2.0/grafeas/docs/SpdxRelationshipNote.md b/grafeas/docs/SpdxRelationshipNote.md similarity index 100% rename from 0.2.0/grafeas/docs/SpdxRelationshipNote.md rename to grafeas/docs/SpdxRelationshipNote.md diff --git a/0.2.0/grafeas/docs/SpdxRelationshipOccurrence.md b/grafeas/docs/SpdxRelationshipOccurrence.md similarity index 100% rename from 0.2.0/grafeas/docs/SpdxRelationshipOccurrence.md rename to grafeas/docs/SpdxRelationshipOccurrence.md diff --git a/0.2.0/grafeas/docs/SpdxRelationshipType.md b/grafeas/docs/SpdxRelationshipType.md similarity index 100% rename from 0.2.0/grafeas/docs/SpdxRelationshipType.md rename to grafeas/docs/SpdxRelationshipType.md diff --git a/0.1.0/docs/V1beta1BatchCreateNotesResponse.md b/grafeas/docs/V1beta1BatchCreateNotesResponse.md similarity index 100% rename from 0.1.0/docs/V1beta1BatchCreateNotesResponse.md rename to grafeas/docs/V1beta1BatchCreateNotesResponse.md diff --git a/0.1.0/docs/V1beta1BatchCreateOccurrencesResponse.md b/grafeas/docs/V1beta1BatchCreateOccurrencesResponse.md similarity index 100% rename from 0.1.0/docs/V1beta1BatchCreateOccurrencesResponse.md rename to grafeas/docs/V1beta1BatchCreateOccurrencesResponse.md diff --git a/0.2.0/grafeas/docs/V1beta1RelatedUrl.md b/grafeas/docs/V1beta1Digest.md similarity index 63% rename from 0.2.0/grafeas/docs/V1beta1RelatedUrl.md rename to grafeas/docs/V1beta1Digest.md index 4d78105..15d15a6 100644 --- a/0.2.0/grafeas/docs/V1beta1RelatedUrl.md +++ b/grafeas/docs/V1beta1Digest.md @@ -1,10 +1,10 @@ -# V1beta1RelatedUrl +# V1beta1Digest ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Url** | **string** | Specific URL associated with the resource. | [optional] [default to null] -**Label** | **string** | Label to describe usage of the URL. | [optional] [default to null] +**Algo** | **string** | `SHA1`, `SHA512` etc. | [optional] [default to null] +**DigestBytes** | **string** | Value of the digest. | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/0.2.0/grafeas/docs/V1beta1Envelope.md b/grafeas/docs/V1beta1Envelope.md similarity index 100% rename from 0.2.0/grafeas/docs/V1beta1Envelope.md rename to grafeas/docs/V1beta1Envelope.md diff --git a/0.2.0/grafeas/docs/V1beta1EnvelopeSignature.md b/grafeas/docs/V1beta1EnvelopeSignature.md similarity index 100% rename from 0.2.0/grafeas/docs/V1beta1EnvelopeSignature.md rename to grafeas/docs/V1beta1EnvelopeSignature.md diff --git a/grafeas/docs/V1beta1License.md b/grafeas/docs/V1beta1License.md new file mode 100644 index 0000000..7230c1a --- /dev/null +++ b/grafeas/docs/V1beta1License.md @@ -0,0 +1,11 @@ +# V1beta1License + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Expression** | **string** | 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\". | [optional] [default to null] +**Comments** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.1.0/docs/V1beta1ListNoteOccurrencesResponse.md b/grafeas/docs/V1beta1ListNoteOccurrencesResponse.md similarity index 100% rename from 0.1.0/docs/V1beta1ListNoteOccurrencesResponse.md rename to grafeas/docs/V1beta1ListNoteOccurrencesResponse.md diff --git a/0.1.0/docs/V1beta1ListNotesResponse.md b/grafeas/docs/V1beta1ListNotesResponse.md similarity index 100% rename from 0.1.0/docs/V1beta1ListNotesResponse.md rename to grafeas/docs/V1beta1ListNotesResponse.md diff --git a/0.1.0/docs/V1beta1ListOccurrencesResponse.md b/grafeas/docs/V1beta1ListOccurrencesResponse.md similarity index 100% rename from 0.1.0/docs/V1beta1ListOccurrencesResponse.md rename to grafeas/docs/V1beta1ListOccurrencesResponse.md diff --git a/0.2.0/grafeas/docs/V1beta1Note.md b/grafeas/docs/V1beta1Note.md similarity index 94% rename from 0.2.0/grafeas/docs/V1beta1Note.md rename to grafeas/docs/V1beta1Note.md index c58c436..f5b066a 100644 --- a/0.2.0/grafeas/docs/V1beta1Note.md +++ b/grafeas/docs/V1beta1Note.md @@ -24,6 +24,7 @@ Name | Type | Description | Notes **SpdxPackage** | [***SpdxPackageInfoNote**](spdxPackageInfoNote.md) | A note describing an SPDX Package. | [optional] [default to null] **SpdxFile** | [***SpdxFileNote**](spdxFileNote.md) | A note describing an SPDX File. | [optional] [default to null] **SpdxRelationship** | [***SpdxRelationshipNote**](spdxRelationshipNote.md) | A note describing an SPDX File. | [optional] [default to null] +**VulnerabilityAssessment** | [***VexVulnerabilityAssessmentNote**](vexVulnerabilityAssessmentNote.md) | A note describing a vulnerability assessment. | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/0.1.0/docs/V1beta1NoteKind.md b/grafeas/docs/V1beta1NoteKind.md similarity index 100% rename from 0.1.0/docs/V1beta1NoteKind.md rename to grafeas/docs/V1beta1NoteKind.md diff --git a/0.2.0/grafeas/docs/V1beta1Occurrence.md b/grafeas/docs/V1beta1Occurrence.md similarity index 100% rename from 0.2.0/grafeas/docs/V1beta1Occurrence.md rename to grafeas/docs/V1beta1Occurrence.md diff --git a/0.1.0/docs/V1beta1RelatedUrl.md b/grafeas/docs/V1beta1RelatedUrl.md similarity index 100% rename from 0.1.0/docs/V1beta1RelatedUrl.md rename to grafeas/docs/V1beta1RelatedUrl.md diff --git a/0.1.0/docs/V1beta1Resource.md b/grafeas/docs/V1beta1Resource.md similarity index 100% rename from 0.1.0/docs/V1beta1Resource.md rename to grafeas/docs/V1beta1Resource.md diff --git a/0.1.0/docs/V1beta1VulnerabilityOccurrencesSummary.md b/grafeas/docs/V1beta1VulnerabilityOccurrencesSummary.md similarity index 100% rename from 0.1.0/docs/V1beta1VulnerabilityOccurrencesSummary.md rename to grafeas/docs/V1beta1VulnerabilityOccurrencesSummary.md diff --git a/0.1.0/docs/V1beta1attestationDetails.md b/grafeas/docs/V1beta1attestationDetails.md similarity index 100% rename from 0.1.0/docs/V1beta1attestationDetails.md rename to grafeas/docs/V1beta1attestationDetails.md diff --git a/0.1.0/docs/V1beta1buildDetails.md b/grafeas/docs/V1beta1buildDetails.md similarity index 100% rename from 0.1.0/docs/V1beta1buildDetails.md rename to grafeas/docs/V1beta1buildDetails.md diff --git a/0.1.0/docs/V1beta1deploymentDetails.md b/grafeas/docs/V1beta1deploymentDetails.md similarity index 100% rename from 0.1.0/docs/V1beta1deploymentDetails.md rename to grafeas/docs/V1beta1deploymentDetails.md diff --git a/0.1.0/docs/V1beta1discoveryDetails.md b/grafeas/docs/V1beta1discoveryDetails.md similarity index 100% rename from 0.1.0/docs/V1beta1discoveryDetails.md rename to grafeas/docs/V1beta1discoveryDetails.md diff --git a/0.1.0/docs/V1beta1imageDetails.md b/grafeas/docs/V1beta1imageDetails.md similarity index 100% rename from 0.1.0/docs/V1beta1imageDetails.md rename to grafeas/docs/V1beta1imageDetails.md diff --git a/0.2.0/grafeas/docs/V1beta1intotoDetails.md b/grafeas/docs/V1beta1intotoDetails.md similarity index 100% rename from 0.2.0/grafeas/docs/V1beta1intotoDetails.md rename to grafeas/docs/V1beta1intotoDetails.md diff --git a/0.2.0/grafeas/docs/V1beta1intotoSignature.md b/grafeas/docs/V1beta1intotoSignature.md similarity index 100% rename from 0.2.0/grafeas/docs/V1beta1intotoSignature.md rename to grafeas/docs/V1beta1intotoSignature.md diff --git a/0.1.0/docs/V1beta1packageDetails.md b/grafeas/docs/V1beta1packageDetails.md similarity index 100% rename from 0.1.0/docs/V1beta1packageDetails.md rename to grafeas/docs/V1beta1packageDetails.md diff --git a/0.1.0/docs/V1beta1packageLocation.md b/grafeas/docs/V1beta1packageLocation.md similarity index 55% rename from 0.1.0/docs/V1beta1packageLocation.md rename to grafeas/docs/V1beta1packageLocation.md index 20e8a17..c239f35 100644 --- a/0.1.0/docs/V1beta1packageLocation.md +++ b/grafeas/docs/V1beta1packageLocation.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CpeUri** | **string** | Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. | [optional] [default to null] -**Version** | [***PackageVersion**](packageVersion.md) | The version installed at this location. | [optional] [default to null] +**CpeUri** | **string** | Deprecated. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. | [optional] [default to null] +**Version** | [***PackageVersion**](packageVersion.md) | Deprecated. The version installed at this location. | [optional] [default to null] **Path** | **string** | The path from which we gathered that this package/version is installed. | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/0.2.0/grafeas/docs/V1beta1provenanceArtifact.md b/grafeas/docs/V1beta1provenanceArtifact.md similarity index 100% rename from 0.2.0/grafeas/docs/V1beta1provenanceArtifact.md rename to grafeas/docs/V1beta1provenanceArtifact.md diff --git a/0.2.0/grafeas/docs/V1beta1vulnerabilityDetails.md b/grafeas/docs/V1beta1vulnerabilityDetails.md similarity index 79% rename from 0.2.0/grafeas/docs/V1beta1vulnerabilityDetails.md rename to grafeas/docs/V1beta1vulnerabilityDetails.md index 211f691..feaef8d 100644 --- a/0.2.0/grafeas/docs/V1beta1vulnerabilityDetails.md +++ b/grafeas/docs/V1beta1vulnerabilityDetails.md @@ -11,6 +11,10 @@ Name | Type | Description | Notes **LongDescription** | **string** | Output only. A detailed description of this vulnerability. | [optional] [default to null] **RelatedUrls** | [**[]V1beta1RelatedUrl**](v1beta1RelatedUrl.md) | Output only. URLs related to this vulnerability. | [optional] [default to null] **EffectiveSeverity** | [***VulnerabilitySeverity**](vulnerabilitySeverity.md) | The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues. | [optional] [default to null] +**CvssVersion** | [***VulnerabilityCvssVersion**](vulnerabilityCVSSVersion.md) | Output only. CVSS version used to populate cvss_score and severity. | [optional] [default to null] +**VexAssessment** | [***DetailsVexAssessment**](DetailsVexAssessment.md) | | [optional] [default to null] +**CvssV2** | [***VulnerabilityCvss**](vulnerabilityCVSS.md) | The cvss v2 score for the vulnerability. | [optional] [default to null] +**CvssV3** | [***VulnerabilityCvss**](vulnerabilityCVSS.md) | The cvss v3 score for the vulnerability. | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/0.1.0/docs/VersionVersionKind.md b/grafeas/docs/VersionVersionKind.md similarity index 100% rename from 0.1.0/docs/VersionVersionKind.md rename to grafeas/docs/VersionVersionKind.md diff --git a/grafeas/docs/VexVulnerabilityAssessmentNote.md b/grafeas/docs/VexVulnerabilityAssessmentNote.md new file mode 100644 index 0000000..4e709bf --- /dev/null +++ b/grafeas/docs/VexVulnerabilityAssessmentNote.md @@ -0,0 +1,16 @@ +# VexVulnerabilityAssessmentNote + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Title** | **string** | | [optional] [default to null] +**ShortDescription** | **string** | A one sentence description of this Vex. | [optional] [default to null] +**LongDescription** | **string** | A detailed description of this Vex. | [optional] [default to null] +**LanguageCode** | **string** | Identifies the language used by this document, corresponding to IETF BCP 47 / RFC 5646. | [optional] [default to null] +**Publisher** | [***VulnerabilityAssessmentNotePublisher**](VulnerabilityAssessmentNotePublisher.md) | Publisher details of this Note. | [optional] [default to null] +**Product** | [***VulnerabilityAssessmentNoteProduct**](VulnerabilityAssessmentNoteProduct.md) | The product affected by this vex. | [optional] [default to null] +**Assessment** | [***VulnerabilityAssessmentNoteAssessment**](VulnerabilityAssessmentNoteAssessment.md) | Represents a vulnerability assessment for the product. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/grafeas/docs/VulnerabilityAssessmentNoteAssessment.md b/grafeas/docs/VulnerabilityAssessmentNoteAssessment.md new file mode 100644 index 0000000..9816274 --- /dev/null +++ b/grafeas/docs/VulnerabilityAssessmentNoteAssessment.md @@ -0,0 +1,17 @@ +# VulnerabilityAssessmentNoteAssessment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cve** | **string** | Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. | [optional] [default to null] +**ShortDescription** | **string** | A one sentence description of this Vex. | [optional] [default to null] +**LongDescription** | **string** | A detailed description of this Vex. | [optional] [default to null] +**RelatedUris** | [**[]V1beta1RelatedUrl**](v1beta1RelatedUrl.md) | Holds a list of references associated with this vulnerability item and assessment. These uris have additional information about the vulnerability and the assessment itself. E.g. Link to a document which details how this assessment concluded the state of this vulnerability. | [optional] [default to null] +**State** | [***AssessmentState**](AssessmentState.md) | Provides the state of this Vulnerability assessment. | [optional] [default to null] +**Impacts** | **[]string** | Contains information about the impact of this vulnerability, this will change with time. | [optional] [default to null] +**Justification** | [***AssessmentJustification**](AssessmentJustification.md) | Justification provides the justification when the state of the assessment if NOT_AFFECTED. | [optional] [default to null] +**Remediations** | [**[]AssessmentRemediation**](AssessmentRemediation.md) | Specifies details on how to handle (and presumably, fix) a vulnerability. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/grafeas/docs/VulnerabilityAssessmentNoteProduct.md b/grafeas/docs/VulnerabilityAssessmentNoteProduct.md new file mode 100644 index 0000000..b4d3e8f --- /dev/null +++ b/grafeas/docs/VulnerabilityAssessmentNoteProduct.md @@ -0,0 +1,12 @@ +# VulnerabilityAssessmentNoteProduct + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name of the product. | [optional] [default to null] +**Id** | **string** | Token that identifies a product so that it can be referred to from other parts in the document. There is no predefined format as long as it uniquely identifies a group in the context of the current document. | [optional] [default to null] +**GenericUri** | **string** | Contains a URI which is vendor-specific. Example: The artifact repository URL of an image. | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/grafeas/docs/VulnerabilityAssessmentNotePublisher.md b/grafeas/docs/VulnerabilityAssessmentNotePublisher.md new file mode 100644 index 0000000..99a9301 --- /dev/null +++ b/grafeas/docs/VulnerabilityAssessmentNotePublisher.md @@ -0,0 +1,12 @@ +# VulnerabilityAssessmentNotePublisher + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Name of the publisher. Examples: 'Google', 'Google Cloud Platform'. | [optional] [default to null] +**IssuingAuthority** | **string** | Provides information about the authority of the issuing party to release the document, in particular, the party's constituency and responsibilities or other obligations. | [optional] [default to null] +**Context** | **string** | | [optional] [default to null] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/0.2.0/grafeas/docs/VulnerabilityCvss.md b/grafeas/docs/VulnerabilityCvss.md similarity index 100% rename from 0.2.0/grafeas/docs/VulnerabilityCvss.md rename to grafeas/docs/VulnerabilityCvss.md diff --git a/0.1.0/docs/CvsSv3AttackComplexity.md b/grafeas/docs/VulnerabilityCvssVersion.md similarity index 91% rename from 0.1.0/docs/CvsSv3AttackComplexity.md rename to grafeas/docs/VulnerabilityCvssVersion.md index 7855c5e..e15e612 100644 --- a/0.1.0/docs/CvsSv3AttackComplexity.md +++ b/grafeas/docs/VulnerabilityCvssVersion.md @@ -1,4 +1,4 @@ -# CvsSv3AttackComplexity +# VulnerabilityCvssVersion ## Properties Name | Type | Description | Notes diff --git a/0.2.0/grafeas/docs/VulnerabilityDetail.md b/grafeas/docs/VulnerabilityDetail.md similarity index 100% rename from 0.2.0/grafeas/docs/VulnerabilityDetail.md rename to grafeas/docs/VulnerabilityDetail.md diff --git a/0.1.0/docs/VulnerabilityOccurrencesSummaryFixableTotalByDigest.md b/grafeas/docs/VulnerabilityOccurrencesSummaryFixableTotalByDigest.md similarity index 100% rename from 0.1.0/docs/VulnerabilityOccurrencesSummaryFixableTotalByDigest.md rename to grafeas/docs/VulnerabilityOccurrencesSummaryFixableTotalByDigest.md diff --git a/0.2.0/grafeas/docs/VulnerabilityPackageIssue.md b/grafeas/docs/VulnerabilityPackageIssue.md similarity index 100% rename from 0.2.0/grafeas/docs/VulnerabilityPackageIssue.md rename to grafeas/docs/VulnerabilityPackageIssue.md diff --git a/0.1.0/docs/VulnerabilitySeverity.md b/grafeas/docs/VulnerabilitySeverity.md similarity index 100% rename from 0.1.0/docs/VulnerabilitySeverity.md rename to grafeas/docs/VulnerabilitySeverity.md diff --git a/0.2.0/grafeas/docs/VulnerabilityVulnerability.md b/grafeas/docs/VulnerabilityVulnerability.md similarity index 91% rename from 0.2.0/grafeas/docs/VulnerabilityVulnerability.md rename to grafeas/docs/VulnerabilityVulnerability.md index 1bebb3a..a227999 100644 --- a/0.2.0/grafeas/docs/VulnerabilityVulnerability.md +++ b/grafeas/docs/VulnerabilityVulnerability.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **SourceUpdateTime** | [**time.Time**](time.Time.md) | The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker. | [optional] [default to null] **CvssV2** | [***VulnerabilityCvss**](vulnerabilityCVSS.md) | The full description of the CVSS for version 2. | [optional] [default to null] **Cwe** | **[]string** | | [optional] [default to null] +**CvssVersion** | [***VulnerabilityCvssVersion**](vulnerabilityCVSSVersion.md) | CVSS version used to populate cvss_score and severity. | [optional] [default to null] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/0.1.0/docs/VulnerabilityVulnerabilityLocation.md b/grafeas/docs/VulnerabilityVulnerabilityLocation.md similarity index 100% rename from 0.1.0/docs/VulnerabilityVulnerabilityLocation.md rename to grafeas/docs/VulnerabilityVulnerabilityLocation.md diff --git a/0.1.0/docs/VulnerabilityWindowsDetail.md b/grafeas/docs/VulnerabilityWindowsDetail.md similarity index 100% rename from 0.1.0/docs/VulnerabilityWindowsDetail.md rename to grafeas/docs/VulnerabilityWindowsDetail.md diff --git a/0.1.0/docs/WindowsDetailKnowledgeBase.md b/grafeas/docs/WindowsDetailKnowledgeBase.md similarity index 100% rename from 0.1.0/docs/WindowsDetailKnowledgeBase.md rename to grafeas/docs/WindowsDetailKnowledgeBase.md diff --git a/0.1.0/git_push.sh b/grafeas/git_push.sh similarity index 100% rename from 0.1.0/git_push.sh rename to grafeas/git_push.sh diff --git a/0.2.0/grafeas/model_alias_context_kind.go b/grafeas/model_alias_context_kind.go similarity index 100% rename from 0.2.0/grafeas/model_alias_context_kind.go rename to grafeas/model_alias_context_kind.go diff --git a/grafeas/model_assessment_justification.go b/grafeas/model_assessment_justification.go new file mode 100644 index 0000000..1d83a2c --- /dev/null +++ b/grafeas/model_assessment_justification.go @@ -0,0 +1,18 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Justification provides the justification when the state of the assessment if NOT_AFFECTED. +type AssessmentJustification struct { + // The justification type for this vulnerability. + JustificationType *JustificationJustificationType `json:"justificationType,omitempty"` + // Additional details on why this justification was chosen. + Details string `json:"details,omitempty"` +} diff --git a/grafeas/model_assessment_remediation.go b/grafeas/model_assessment_remediation.go new file mode 100644 index 0000000..f1c1c16 --- /dev/null +++ b/grafeas/model_assessment_remediation.go @@ -0,0 +1,26 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +import ( + "time" +) + +// Specifies details on how to handle (and presumably, fix) a vulnerability. +type AssessmentRemediation struct { + // The type of remediation that can be applied. + RemediationType *RemediationRemediationType `json:"remediationType,omitempty"` + // Contains the date from which the remediation is available. + RemediationTime time.Time `json:"remediationTime,omitempty"` + // Contains a comprehensive human-readable discussion of the remediation. + Details string `json:"details,omitempty"` + // Contains the URL where to obtain the remediation. + RemediationUri *V1beta1RelatedUrl `json:"remediationUri,omitempty"` +} diff --git a/grafeas/model_assessment_state.go b/grafeas/model_assessment_state.go new file mode 100644 index 0000000..2851134 --- /dev/null +++ b/grafeas/model_assessment_state.go @@ -0,0 +1,21 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas +// AssessmentState : Provides the state of this Vulnerability assessment. - STATE_UNSPECIFIED: No state is specified. - AFFECTED: This product is known to be affected by this vulnerability. - NOT_AFFECTED: This product is known to be not affected by this vulnerability. - FIXED: This product contains a fix for this vulnerability. - UNDER_INVESTIGATION: It is not known yet whether these versions are or are not affected by the vulnerability. However, it is still under investigation. +type AssessmentState string + +// List of AssessmentState +const ( + STATE_UNSPECIFIED_AssessmentState AssessmentState = "STATE_UNSPECIFIED" + AFFECTED_AssessmentState AssessmentState = "AFFECTED" + NOT_AFFECTED_AssessmentState AssessmentState = "NOT_AFFECTED" + FIXED_AssessmentState AssessmentState = "FIXED" + UNDER_INVESTIGATION_AssessmentState AssessmentState = "UNDER_INVESTIGATION" +) diff --git a/0.2.0/grafeas/model_attestation_attestation.go b/grafeas/model_attestation_attestation.go similarity index 100% rename from 0.2.0/grafeas/model_attestation_attestation.go rename to grafeas/model_attestation_attestation.go diff --git a/0.2.0/grafeas/model_attestation_authority.go b/grafeas/model_attestation_authority.go similarity index 100% rename from 0.2.0/grafeas/model_attestation_authority.go rename to grafeas/model_attestation_authority.go diff --git a/0.2.0/grafeas/model_attestation_generic_signed_attestation.go b/grafeas/model_attestation_generic_signed_attestation.go similarity index 100% rename from 0.2.0/grafeas/model_attestation_generic_signed_attestation.go rename to grafeas/model_attestation_generic_signed_attestation.go diff --git a/0.2.0/grafeas/model_attestation_generic_signed_attestation_content_type.go b/grafeas/model_attestation_generic_signed_attestation_content_type.go similarity index 100% rename from 0.2.0/grafeas/model_attestation_generic_signed_attestation_content_type.go rename to grafeas/model_attestation_generic_signed_attestation_content_type.go diff --git a/0.2.0/grafeas/model_attestation_pgp_signed_attestation.go b/grafeas/model_attestation_pgp_signed_attestation.go similarity index 100% rename from 0.2.0/grafeas/model_attestation_pgp_signed_attestation.go rename to grafeas/model_attestation_pgp_signed_attestation.go diff --git a/0.2.0/grafeas/model_attestation_pgp_signed_attestation_content_type.go b/grafeas/model_attestation_pgp_signed_attestation_content_type.go similarity index 100% rename from 0.2.0/grafeas/model_attestation_pgp_signed_attestation_content_type.go rename to grafeas/model_attestation_pgp_signed_attestation_content_type.go diff --git a/0.2.0/grafeas/model_authority_hint.go b/grafeas/model_authority_hint.go similarity index 100% rename from 0.2.0/grafeas/model_authority_hint.go rename to grafeas/model_authority_hint.go diff --git a/0.2.0/grafeas/model_body.go b/grafeas/model_body.go similarity index 100% rename from 0.2.0/grafeas/model_body.go rename to grafeas/model_body.go diff --git a/0.2.0/grafeas/model_body_1.go b/grafeas/model_body_1.go similarity index 100% rename from 0.2.0/grafeas/model_body_1.go rename to grafeas/model_body_1.go diff --git a/0.2.0/grafeas/model_build_build.go b/grafeas/model_build_build.go similarity index 100% rename from 0.2.0/grafeas/model_build_build.go rename to grafeas/model_build_build.go diff --git a/0.2.0/grafeas/model_build_build_signature.go b/grafeas/model_build_build_signature.go similarity index 100% rename from 0.2.0/grafeas/model_build_build_signature.go rename to grafeas/model_build_build_signature.go diff --git a/0.2.0/grafeas/model_build_signature_key_type.go b/grafeas/model_build_signature_key_type.go similarity index 100% rename from 0.2.0/grafeas/model_build_signature_key_type.go rename to grafeas/model_build_signature_key_type.go diff --git a/0.2.0/grafeas/model_cvss_attack_complexity.go b/grafeas/model_cvss_attack_complexity.go similarity index 88% rename from 0.2.0/grafeas/model_cvss_attack_complexity.go rename to grafeas/model_cvss_attack_complexity.go index ec47900..4b2f183 100644 --- a/0.2.0/grafeas/model_cvss_attack_complexity.go +++ b/grafeas/model_cvss_attack_complexity.go @@ -16,4 +16,5 @@ const ( UNSPECIFIED_CvssAttackComplexity CvssAttackComplexity = "ATTACK_COMPLEXITY_UNSPECIFIED" LOW_CvssAttackComplexity CvssAttackComplexity = "ATTACK_COMPLEXITY_LOW" HIGH_CvssAttackComplexity CvssAttackComplexity = "ATTACK_COMPLEXITY_HIGH" + MEDIUM_CvssAttackComplexity CvssAttackComplexity = "ATTACK_COMPLEXITY_MEDIUM" ) diff --git a/0.2.0/grafeas/model_cvss_attack_vector.go b/grafeas/model_cvss_attack_vector.go similarity index 100% rename from 0.2.0/grafeas/model_cvss_attack_vector.go rename to grafeas/model_cvss_attack_vector.go diff --git a/0.2.0/grafeas/model_cvss_authentication.go b/grafeas/model_cvss_authentication.go similarity index 100% rename from 0.2.0/grafeas/model_cvss_authentication.go rename to grafeas/model_cvss_authentication.go diff --git a/0.2.0/grafeas/model_cvss_impact.go b/grafeas/model_cvss_impact.go similarity index 83% rename from 0.2.0/grafeas/model_cvss_impact.go rename to grafeas/model_cvss_impact.go index f00eb82..e6a3908 100644 --- a/0.2.0/grafeas/model_cvss_impact.go +++ b/grafeas/model_cvss_impact.go @@ -17,4 +17,6 @@ const ( HIGH_CvssImpact CvssImpact = "IMPACT_HIGH" LOW_CvssImpact CvssImpact = "IMPACT_LOW" NONE_CvssImpact CvssImpact = "IMPACT_NONE" + PARTIAL_CvssImpact CvssImpact = "IMPACT_PARTIAL" + COMPLETE_CvssImpact CvssImpact = "IMPACT_COMPLETE" ) diff --git a/0.2.0/grafeas/model_cvss_privileges_required.go b/grafeas/model_cvss_privileges_required.go similarity index 100% rename from 0.2.0/grafeas/model_cvss_privileges_required.go rename to grafeas/model_cvss_privileges_required.go diff --git a/0.2.0/grafeas/model_cvss_scope.go b/grafeas/model_cvss_scope.go similarity index 100% rename from 0.2.0/grafeas/model_cvss_scope.go rename to grafeas/model_cvss_scope.go diff --git a/0.2.0/grafeas/model_cvss_user_interaction.go b/grafeas/model_cvss_user_interaction.go similarity index 100% rename from 0.2.0/grafeas/model_cvss_user_interaction.go rename to grafeas/model_cvss_user_interaction.go diff --git a/0.2.0/grafeas/model_deployment_deployable.go b/grafeas/model_deployment_deployable.go similarity index 100% rename from 0.2.0/grafeas/model_deployment_deployable.go rename to grafeas/model_deployment_deployable.go diff --git a/0.2.0/grafeas/model_deployment_deployment.go b/grafeas/model_deployment_deployment.go similarity index 100% rename from 0.2.0/grafeas/model_deployment_deployment.go rename to grafeas/model_deployment_deployment.go diff --git a/0.2.0/grafeas/model_deployment_platform.go b/grafeas/model_deployment_platform.go similarity index 100% rename from 0.2.0/grafeas/model_deployment_platform.go rename to grafeas/model_deployment_platform.go diff --git a/grafeas/model_details_vex_assessment.go b/grafeas/model_details_vex_assessment.go new file mode 100644 index 0000000..9410ea4 --- /dev/null +++ b/grafeas/model_details_vex_assessment.go @@ -0,0 +1,27 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// VexAssessment provides all publisher provided Vex information that is related to this vulnerability. +type DetailsVexAssessment struct { + // Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. + Cve string `json:"cve,omitempty"` + // Holds a list of references associated with this vulnerability item and assessment. + RelatedUris []V1beta1RelatedUrl `json:"relatedUris,omitempty"` + NoteName string `json:"noteName,omitempty"` + // Provides the state of this Vulnerability assessment. + State *AssessmentState `json:"state,omitempty"` + // Contains information about the impact of this vulnerability, this will change with time. + Impacts []string `json:"impacts,omitempty"` + // Specifies details on how to handle (and presumably, fix) a vulnerability. + Remediations []AssessmentRemediation `json:"remediations,omitempty"` + // Justification provides the justification when the state of the assessment if NOT_AFFECTED. + Justification *AssessmentJustification `json:"justification,omitempty"` +} diff --git a/0.1.0/model_v1beta1attestation_details.go b/grafeas/model_discovered_analysis_completed.go similarity index 52% rename from 0.1.0/model_v1beta1attestation_details.go rename to grafeas/model_discovered_analysis_completed.go index db40c2a..3451308 100644 --- a/0.1.0/model_v1beta1attestation_details.go +++ b/grafeas/model_discovered_analysis_completed.go @@ -1,5 +1,5 @@ /* - * proto/v1beta1/grafeas.proto + * grafeas.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * @@ -9,8 +9,7 @@ package grafeas -// Details of an attestation occurrence. -type V1beta1attestationDetails struct { - // Required. Attestation for the resource. - Attestation *AttestationAttestation `json:"attestation,omitempty"` +// Indicates which analysis completed successfully. Multiple types of analysis can be performed on a single resource. +type DiscoveredAnalysisCompleted struct { + AnalysisType []string `json:"analysisType,omitempty"` } diff --git a/0.2.0/grafeas/model_discovered_analysis_status.go b/grafeas/model_discovered_analysis_status.go similarity index 80% rename from 0.2.0/grafeas/model_discovered_analysis_status.go rename to grafeas/model_discovered_analysis_status.go index 1fa742c..7b8052a 100644 --- a/0.2.0/grafeas/model_discovered_analysis_status.go +++ b/grafeas/model_discovered_analysis_status.go @@ -8,7 +8,7 @@ */ package grafeas -// DiscoveredAnalysisStatus : Analysis status for a resource. Currently for initial analysis only (not updated in continuous analysis). - ANALYSIS_STATUS_UNSPECIFIED: Unknown. - PENDING: Resource is known but no action has been taken yet. - SCANNING: Resource is being analyzed. - FINISHED_SUCCESS: Analysis has finished successfully. - FINISHED_FAILED: Analysis has finished unsuccessfully, the analysis itself is in a bad state. - FINISHED_UNSUPPORTED: The resource is known not to be supported +// DiscoveredAnalysisStatus : Analysis status for a resource. Currently for initial analysis only (not updated in continuous analysis). - ANALYSIS_STATUS_UNSPECIFIED: Unknown. - PENDING: Resource is known but no action has been taken yet. - SCANNING: Resource is being analyzed. - FINISHED_SUCCESS: Analysis has finished successfully. - COMPLETE: Analysis has completed. - FINISHED_FAILED: Analysis has finished unsuccessfully, the analysis itself is in a bad state. - FINISHED_UNSUPPORTED: The resource is known not to be supported type DiscoveredAnalysisStatus string // List of DiscoveredAnalysisStatus @@ -17,6 +17,7 @@ const ( PENDING_DiscoveredAnalysisStatus DiscoveredAnalysisStatus = "PENDING" SCANNING_DiscoveredAnalysisStatus DiscoveredAnalysisStatus = "SCANNING" FINISHED_SUCCESS_DiscoveredAnalysisStatus DiscoveredAnalysisStatus = "FINISHED_SUCCESS" + COMPLETE_DiscoveredAnalysisStatus DiscoveredAnalysisStatus = "COMPLETE" FINISHED_FAILED_DiscoveredAnalysisStatus DiscoveredAnalysisStatus = "FINISHED_FAILED" FINISHED_UNSUPPORTED_DiscoveredAnalysisStatus DiscoveredAnalysisStatus = "FINISHED_UNSUPPORTED" ) diff --git a/0.2.0/grafeas/model_discovered_continuous_analysis.go b/grafeas/model_discovered_continuous_analysis.go similarity index 100% rename from 0.2.0/grafeas/model_discovered_continuous_analysis.go rename to grafeas/model_discovered_continuous_analysis.go diff --git a/0.2.0/grafeas/model_discovery_discovered.go b/grafeas/model_discovery_discovered.go similarity index 80% rename from 0.2.0/grafeas/model_discovery_discovered.go rename to grafeas/model_discovery_discovered.go index bf3f0cf..ab02081 100644 --- a/0.2.0/grafeas/model_discovery_discovered.go +++ b/grafeas/model_discovery_discovered.go @@ -21,6 +21,9 @@ type DiscoveryDiscovered struct { LastAnalysisTime time.Time `json:"lastAnalysisTime,omitempty"` // The status of discovery for the resource. AnalysisStatus *DiscoveredAnalysisStatus `json:"analysisStatus,omitempty"` + AnalysisCompleted *DiscoveredAnalysisCompleted `json:"analysisCompleted,omitempty"` + // Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors. + AnalysisError []RpcStatus `json:"analysisError,omitempty"` // When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API. AnalysisStatusError *RpcStatus `json:"analysisStatusError,omitempty"` } diff --git a/0.2.0/grafeas/model_discovery_discovery.go b/grafeas/model_discovery_discovery.go similarity index 100% rename from 0.2.0/grafeas/model_discovery_discovery.go rename to grafeas/model_discovery_discovery.go diff --git a/0.2.0/grafeas/model_external_ref_category.go b/grafeas/model_external_ref_category.go similarity index 100% rename from 0.2.0/grafeas/model_external_ref_category.go rename to grafeas/model_external_ref_category.go diff --git a/0.2.0/grafeas/model_file_note_file_type.go b/grafeas/model_file_note_file_type.go similarity index 100% rename from 0.2.0/grafeas/model_file_note_file_type.go rename to grafeas/model_file_note_file_type.go diff --git a/0.2.0/grafeas/model_grafeasv1beta1_signature.go b/grafeas/model_grafeasv1beta1_signature.go similarity index 100% rename from 0.2.0/grafeas/model_grafeasv1beta1_signature.go rename to grafeas/model_grafeasv1beta1_signature.go diff --git a/0.2.0/grafeas/model_hash_hash_type.go b/grafeas/model_hash_hash_type.go similarity index 100% rename from 0.2.0/grafeas/model_hash_hash_type.go rename to grafeas/model_hash_hash_type.go diff --git a/0.2.0/grafeas/model_image_basis.go b/grafeas/model_image_basis.go similarity index 100% rename from 0.2.0/grafeas/model_image_basis.go rename to grafeas/model_image_basis.go diff --git a/0.2.0/grafeas/model_image_derived.go b/grafeas/model_image_derived.go similarity index 100% rename from 0.2.0/grafeas/model_image_derived.go rename to grafeas/model_image_derived.go diff --git a/0.2.0/grafeas/model_image_fingerprint.go b/grafeas/model_image_fingerprint.go similarity index 100% rename from 0.2.0/grafeas/model_image_fingerprint.go rename to grafeas/model_image_fingerprint.go diff --git a/0.2.0/grafeas/model_image_layer.go b/grafeas/model_image_layer.go similarity index 100% rename from 0.2.0/grafeas/model_image_layer.go rename to grafeas/model_image_layer.go diff --git a/0.2.0/grafeas/model_in_toto_artifact_rule.go b/grafeas/model_in_toto_artifact_rule.go similarity index 100% rename from 0.2.0/grafeas/model_in_toto_artifact_rule.go rename to grafeas/model_in_toto_artifact_rule.go diff --git a/0.2.0/grafeas/model_intoto_in_toto.go b/grafeas/model_intoto_in_toto.go similarity index 100% rename from 0.2.0/grafeas/model_intoto_in_toto.go rename to grafeas/model_intoto_in_toto.go diff --git a/0.2.0/grafeas/model_intoto_link.go b/grafeas/model_intoto_link.go similarity index 100% rename from 0.2.0/grafeas/model_intoto_link.go rename to grafeas/model_intoto_link.go diff --git a/0.2.0/grafeas/model_intoto_link_artifact.go b/grafeas/model_intoto_link_artifact.go similarity index 100% rename from 0.2.0/grafeas/model_intoto_link_artifact.go rename to grafeas/model_intoto_link_artifact.go diff --git a/0.2.0/grafeas/model_intoto_signing_key.go b/grafeas/model_intoto_signing_key.go similarity index 100% rename from 0.2.0/grafeas/model_intoto_signing_key.go rename to grafeas/model_intoto_signing_key.go diff --git a/grafeas/model_justification_justification_type.go b/grafeas/model_justification_justification_type.go new file mode 100644 index 0000000..6c703ff --- /dev/null +++ b/grafeas/model_justification_justification_type.go @@ -0,0 +1,22 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas +// JustificationJustificationType : Provides the type of justification. - JUSTIFICATION_TYPE_UNSPECIFIED: JUSTIFICATION_TYPE_UNSPECIFIED. - COMPONENT_NOT_PRESENT: The vulnerable component is not present in the product. - VULNERABLE_CODE_NOT_PRESENT: The vulnerable code is not present. Typically this case occurs when source code is configured or built in a way that excludes the vulnerable code. - VULNERABLE_CODE_NOT_IN_EXECUTE_PATH: The vulnerable code can not be executed. Typically this case occurs when the product includes the vulnerable code but does not call or use the vulnerable code. - VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY: The vulnerable code cannot be controlled by an attacker to exploit the vulnerability. - INLINE_MITIGATIONS_ALREADY_EXIST: The product includes built-in protections or features that prevent exploitation of the vulnerability. These built-in protections cannot be subverted by the attacker and cannot be configured or disabled by the user. These mitigations completely prevent exploitation based on known attack vectors. +type JustificationJustificationType string + +// List of JustificationJustificationType +const ( + JUSTIFICATION_TYPE_UNSPECIFIED_JustificationJustificationType JustificationJustificationType = "JUSTIFICATION_TYPE_UNSPECIFIED" + COMPONENT_NOT_PRESENT_JustificationJustificationType JustificationJustificationType = "COMPONENT_NOT_PRESENT" + VULNERABLE_CODE_NOT_PRESENT_JustificationJustificationType JustificationJustificationType = "VULNERABLE_CODE_NOT_PRESENT" + VULNERABLE_CODE_NOT_IN_EXECUTE_PATH_JustificationJustificationType JustificationJustificationType = "VULNERABLE_CODE_NOT_IN_EXECUTE_PATH" + VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY_JustificationJustificationType JustificationJustificationType = "VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY" + INLINE_MITIGATIONS_ALREADY_EXIST_JustificationJustificationType JustificationJustificationType = "INLINE_MITIGATIONS_ALREADY_EXIST" +) diff --git a/0.2.0/grafeas/model_layer_directive.go b/grafeas/model_layer_directive.go similarity index 100% rename from 0.2.0/grafeas/model_layer_directive.go rename to grafeas/model_layer_directive.go diff --git a/0.2.0/grafeas/model_link_artifact_hashes.go b/grafeas/model_link_artifact_hashes.go similarity index 100% rename from 0.2.0/grafeas/model_link_artifact_hashes.go rename to grafeas/model_link_artifact_hashes.go diff --git a/0.2.0/grafeas/model_link_by_products.go b/grafeas/model_link_by_products.go similarity index 100% rename from 0.2.0/grafeas/model_link_by_products.go rename to grafeas/model_link_by_products.go diff --git a/0.2.0/grafeas/model_link_environment.go b/grafeas/model_link_environment.go similarity index 100% rename from 0.2.0/grafeas/model_link_environment.go rename to grafeas/model_link_environment.go diff --git a/0.2.0/grafeas/model_package_architecture.go b/grafeas/model_package_architecture.go similarity index 100% rename from 0.2.0/grafeas/model_package_architecture.go rename to grafeas/model_package_architecture.go diff --git a/0.2.0/grafeas/model_package_distribution.go b/grafeas/model_package_distribution.go similarity index 85% rename from 0.2.0/grafeas/model_package_distribution.go rename to grafeas/model_package_distribution.go index 3b60838..cdbe7a4 100644 --- a/0.2.0/grafeas/model_package_distribution.go +++ b/grafeas/model_package_distribution.go @@ -11,8 +11,8 @@ package grafeas // This represents a particular channel of distribution for a given package. E.g., Debian's jessie-backports dpkg mirror. type PackageDistribution struct { - // Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. - CpeUri string `json:"cpeUri,omitempty"` + // The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. + CpeUri string `json:"cpeUri"` // The CPU architecture for which packages in this distribution channel were built. Architecture *PackageArchitecture `json:"architecture,omitempty"` // The latest available version of this package in this distribution channel. diff --git a/0.2.0/grafeas/model_package_info_note_external_ref.go b/grafeas/model_package_info_note_external_ref.go similarity index 100% rename from 0.2.0/grafeas/model_package_info_note_external_ref.go rename to grafeas/model_package_info_note_external_ref.go diff --git a/grafeas/model_package_installation.go b/grafeas/model_package_installation.go new file mode 100644 index 0000000..1cc6a8e --- /dev/null +++ b/grafeas/model_package_installation.go @@ -0,0 +1,28 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// This represents how a particular software package may be installed on a system. +type PackageInstallation struct { + // The name of the installed package. + Name string `json:"name"` + // All of the places within the filesystem versions of this package have been found. + Location []V1beta1packageLocation `json:"location,omitempty"` + // The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.). + PackageType string `json:"packageType,omitempty"` + // 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. + CpeUri string `json:"cpeUri,omitempty"` + // The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages. + Architecture *PackageArchitecture `json:"architecture,omitempty"` + // Licenses that have been declared by the authors of the package. + License *V1beta1License `json:"license,omitempty"` + // The version of the package. + Version *PackageVersion `json:"version,omitempty"` +} diff --git a/grafeas/model_package_package.go b/grafeas/model_package_package.go new file mode 100644 index 0000000..1847676 --- /dev/null +++ b/grafeas/model_package_package.go @@ -0,0 +1,36 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Package represents a particular package version. +type PackagePackage struct { + // The name of the package. + Name string `json:"name"` + // The various channels by which a package is distributed. + Distribution []PackageDistribution `json:"distribution,omitempty"` + // The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.). + PackageType string `json:"packageType,omitempty"` + // 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. + CpeUri string `json:"cpeUri,omitempty"` + // The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages. + Architecture *PackageArchitecture `json:"architecture,omitempty"` + // The version of the package. + Version *PackageVersion `json:"version,omitempty"` + // A freeform text denoting the maintainer of this package. + Maintainer string `json:"maintainer,omitempty"` + // The homepage for this package. + Url string `json:"url,omitempty"` + // The description of this package. + Description string `json:"description,omitempty"` + // Licenses that have been declared by the authors of the package. + License *V1beta1License `json:"license,omitempty"` + // Hash value, typically a file digest, that allows unique identification a specific package. + Digest []V1beta1Digest `json:"digest,omitempty"` +} diff --git a/0.2.0/grafeas/model_package_version.go b/grafeas/model_package_version.go similarity index 100% rename from 0.2.0/grafeas/model_package_version.go rename to grafeas/model_package_version.go diff --git a/0.2.0/grafeas/model_protobuf_any.go b/grafeas/model_protobuf_any.go similarity index 100% rename from 0.2.0/grafeas/model_protobuf_any.go rename to grafeas/model_protobuf_any.go diff --git a/0.2.0/grafeas/model_provenance_build_provenance.go b/grafeas/model_provenance_build_provenance.go similarity index 100% rename from 0.2.0/grafeas/model_provenance_build_provenance.go rename to grafeas/model_provenance_build_provenance.go diff --git a/0.2.0/grafeas/model_provenance_command.go b/grafeas/model_provenance_command.go similarity index 100% rename from 0.2.0/grafeas/model_provenance_command.go rename to grafeas/model_provenance_command.go diff --git a/0.2.0/grafeas/model_provenance_file_hashes.go b/grafeas/model_provenance_file_hashes.go similarity index 100% rename from 0.2.0/grafeas/model_provenance_file_hashes.go rename to grafeas/model_provenance_file_hashes.go diff --git a/0.2.0/grafeas/model_provenance_hash.go b/grafeas/model_provenance_hash.go similarity index 100% rename from 0.2.0/grafeas/model_provenance_hash.go rename to grafeas/model_provenance_hash.go diff --git a/0.2.0/grafeas/model_provenance_source.go b/grafeas/model_provenance_source.go similarity index 100% rename from 0.2.0/grafeas/model_provenance_source.go rename to grafeas/model_provenance_source.go diff --git a/grafeas/model_remediation_remediation_type.go b/grafeas/model_remediation_remediation_type.go new file mode 100644 index 0000000..3d639ae --- /dev/null +++ b/grafeas/model_remediation_remediation_type.go @@ -0,0 +1,22 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas +// RemediationRemediationType : The type of remediation that can be applied. - REMEDIATION_TYPE_UNSPECIFIED: No remediation type specified. - MITIGATION: A MITIGATION is available. - NO_FIX_PLANNED: No fix is planned. - NONE_AVAILABLE: Not available. - VENDOR_FIX: A vendor fix is available. - WORKAROUND: A workaround is available. +type RemediationRemediationType string + +// List of RemediationRemediationType +const ( + REMEDIATION_TYPE_UNSPECIFIED_RemediationRemediationType RemediationRemediationType = "REMEDIATION_TYPE_UNSPECIFIED" + MITIGATION_RemediationRemediationType RemediationRemediationType = "MITIGATION" + NO_FIX_PLANNED_RemediationRemediationType RemediationRemediationType = "NO_FIX_PLANNED" + NONE_AVAILABLE_RemediationRemediationType RemediationRemediationType = "NONE_AVAILABLE" + VENDOR_FIX_RemediationRemediationType RemediationRemediationType = "VENDOR_FIX" + WORKAROUND_RemediationRemediationType RemediationRemediationType = "WORKAROUND" +) diff --git a/0.2.0/grafeas/model_rpc_status.go b/grafeas/model_rpc_status.go similarity index 100% rename from 0.2.0/grafeas/model_rpc_status.go rename to grafeas/model_rpc_status.go diff --git a/0.2.0/grafeas/model_source_alias_context.go b/grafeas/model_source_alias_context.go similarity index 100% rename from 0.2.0/grafeas/model_source_alias_context.go rename to grafeas/model_source_alias_context.go diff --git a/0.2.0/grafeas/model_source_cloud_repo_source_context.go b/grafeas/model_source_cloud_repo_source_context.go similarity index 100% rename from 0.2.0/grafeas/model_source_cloud_repo_source_context.go rename to grafeas/model_source_cloud_repo_source_context.go diff --git a/0.2.0/grafeas/model_source_gerrit_source_context.go b/grafeas/model_source_gerrit_source_context.go similarity index 100% rename from 0.2.0/grafeas/model_source_gerrit_source_context.go rename to grafeas/model_source_gerrit_source_context.go diff --git a/0.2.0/grafeas/model_source_git_source_context.go b/grafeas/model_source_git_source_context.go similarity index 100% rename from 0.2.0/grafeas/model_source_git_source_context.go rename to grafeas/model_source_git_source_context.go diff --git a/0.2.0/grafeas/model_source_project_repo_id.go b/grafeas/model_source_project_repo_id.go similarity index 100% rename from 0.2.0/grafeas/model_source_project_repo_id.go rename to grafeas/model_source_project_repo_id.go diff --git a/0.2.0/grafeas/model_source_repo_id.go b/grafeas/model_source_repo_id.go similarity index 100% rename from 0.2.0/grafeas/model_source_repo_id.go rename to grafeas/model_source_repo_id.go diff --git a/0.2.0/grafeas/model_source_source_context.go b/grafeas/model_source_source_context.go similarity index 100% rename from 0.2.0/grafeas/model_source_source_context.go rename to grafeas/model_source_source_context.go diff --git a/0.2.0/grafeas/model_spdx_document_note.go b/grafeas/model_spdx_document_note.go similarity index 100% rename from 0.2.0/grafeas/model_spdx_document_note.go rename to grafeas/model_spdx_document_note.go diff --git a/0.2.0/grafeas/model_spdx_document_occurrence.go b/grafeas/model_spdx_document_occurrence.go similarity index 100% rename from 0.2.0/grafeas/model_spdx_document_occurrence.go rename to grafeas/model_spdx_document_occurrence.go diff --git a/0.2.0/grafeas/model_spdx_file_note.go b/grafeas/model_spdx_file_note.go similarity index 100% rename from 0.2.0/grafeas/model_spdx_file_note.go rename to grafeas/model_spdx_file_note.go diff --git a/0.2.0/grafeas/model_spdx_file_occurrence.go b/grafeas/model_spdx_file_occurrence.go similarity index 90% rename from 0.2.0/grafeas/model_spdx_file_occurrence.go rename to grafeas/model_spdx_file_occurrence.go index efef013..c2c1b88 100644 --- a/0.2.0/grafeas/model_spdx_file_occurrence.go +++ b/grafeas/model_spdx_file_occurrence.go @@ -11,7 +11,7 @@ package grafeas type SpdxFileOccurrence struct { Id string `json:"id,omitempty"` - LicenseConcluded *SpdxLicense `json:"licenseConcluded,omitempty"` + LicenseConcluded *V1beta1License `json:"licenseConcluded,omitempty"` FilesLicenseInfo []string `json:"filesLicenseInfo,omitempty"` Copyright string `json:"copyright,omitempty"` Comment string `json:"comment,omitempty"` diff --git a/0.2.0/grafeas/model_spdx_package_info_note.go b/grafeas/model_spdx_package_info_note.go similarity index 94% rename from 0.2.0/grafeas/model_spdx_package_info_note.go rename to grafeas/model_spdx_package_info_note.go index 63f7c07..dcde802 100644 --- a/0.2.0/grafeas/model_spdx_package_info_note.go +++ b/grafeas/model_spdx_package_info_note.go @@ -20,7 +20,7 @@ type SpdxPackageInfoNote struct { Checksum string `json:"checksum,omitempty"` HomePage string `json:"homePage,omitempty"` FilesLicenseInfo []string `json:"filesLicenseInfo,omitempty"` - LicenseDeclared *SpdxLicense `json:"licenseDeclared,omitempty"` + LicenseDeclared *V1beta1License `json:"licenseDeclared,omitempty"` Copyright string `json:"copyright,omitempty"` SummaryDescription string `json:"summaryDescription,omitempty"` DetailedDescription string `json:"detailedDescription,omitempty"` diff --git a/0.2.0/grafeas/model_spdx_package_info_occurrence.go b/grafeas/model_spdx_package_info_occurrence.go similarity index 91% rename from 0.2.0/grafeas/model_spdx_package_info_occurrence.go rename to grafeas/model_spdx_package_info_occurrence.go index a519415..8107956 100644 --- a/0.2.0/grafeas/model_spdx_package_info_occurrence.go +++ b/grafeas/model_spdx_package_info_occurrence.go @@ -13,7 +13,7 @@ type SpdxPackageInfoOccurrence struct { Id string `json:"id,omitempty"` Filename string `json:"filename,omitempty"` SourceInfo string `json:"sourceInfo,omitempty"` - LicenseConcluded *SpdxLicense `json:"licenseConcluded,omitempty"` + LicenseConcluded *V1beta1License `json:"licenseConcluded,omitempty"` Comment string `json:"comment,omitempty"` // The type of package: OS, MAVEN, GO, GO_STDLIB, etc. PackageType string `json:"packageType,omitempty"` diff --git a/0.2.0/grafeas/model_spdx_relationship_note.go b/grafeas/model_spdx_relationship_note.go similarity index 100% rename from 0.2.0/grafeas/model_spdx_relationship_note.go rename to grafeas/model_spdx_relationship_note.go diff --git a/0.2.0/grafeas/model_spdx_relationship_occurrence.go b/grafeas/model_spdx_relationship_occurrence.go similarity index 100% rename from 0.2.0/grafeas/model_spdx_relationship_occurrence.go rename to grafeas/model_spdx_relationship_occurrence.go diff --git a/0.2.0/grafeas/model_spdx_relationship_type.go b/grafeas/model_spdx_relationship_type.go similarity index 100% rename from 0.2.0/grafeas/model_spdx_relationship_type.go rename to grafeas/model_spdx_relationship_type.go diff --git a/0.2.0/grafeas/model_v1beta1_batch_create_notes_response.go b/grafeas/model_v1beta1_batch_create_notes_response.go similarity index 100% rename from 0.2.0/grafeas/model_v1beta1_batch_create_notes_response.go rename to grafeas/model_v1beta1_batch_create_notes_response.go diff --git a/0.2.0/grafeas/model_v1beta1_batch_create_occurrences_response.go b/grafeas/model_v1beta1_batch_create_occurrences_response.go similarity index 100% rename from 0.2.0/grafeas/model_v1beta1_batch_create_occurrences_response.go rename to grafeas/model_v1beta1_batch_create_occurrences_response.go diff --git a/0.2.0/grafeas/model_spdx_license.go b/grafeas/model_v1beta1_digest.go similarity index 58% rename from 0.2.0/grafeas/model_spdx_license.go rename to grafeas/model_v1beta1_digest.go index 8b4a8d2..2dc533e 100644 --- a/0.2.0/grafeas/model_spdx_license.go +++ b/grafeas/model_v1beta1_digest.go @@ -9,7 +9,10 @@ package grafeas -type SpdxLicense struct { - Expression string `json:"expression,omitempty"` - Comments string `json:"comments,omitempty"` +// Digest information. +type V1beta1Digest struct { + // `SHA1`, `SHA512` etc. + Algo string `json:"algo,omitempty"` + // Value of the digest. + DigestBytes string `json:"digestBytes,omitempty"` } diff --git a/0.2.0/grafeas/model_v1beta1_envelope.go b/grafeas/model_v1beta1_envelope.go similarity index 100% rename from 0.2.0/grafeas/model_v1beta1_envelope.go rename to grafeas/model_v1beta1_envelope.go diff --git a/0.2.0/grafeas/model_v1beta1_envelope_signature.go b/grafeas/model_v1beta1_envelope_signature.go similarity index 100% rename from 0.2.0/grafeas/model_v1beta1_envelope_signature.go rename to grafeas/model_v1beta1_envelope_signature.go diff --git a/grafeas/model_v1beta1_license.go b/grafeas/model_v1beta1_license.go new file mode 100644 index 0000000..c6a009f --- /dev/null +++ b/grafeas/model_v1beta1_license.go @@ -0,0 +1,17 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// License information. +type V1beta1License struct { + // 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\". + Expression string `json:"expression,omitempty"` + Comments string `json:"comments,omitempty"` +} diff --git a/0.2.0/grafeas/model_v1beta1_list_note_occurrences_response.go b/grafeas/model_v1beta1_list_note_occurrences_response.go similarity index 100% rename from 0.2.0/grafeas/model_v1beta1_list_note_occurrences_response.go rename to grafeas/model_v1beta1_list_note_occurrences_response.go diff --git a/0.2.0/grafeas/model_v1beta1_list_notes_response.go b/grafeas/model_v1beta1_list_notes_response.go similarity index 100% rename from 0.2.0/grafeas/model_v1beta1_list_notes_response.go rename to grafeas/model_v1beta1_list_notes_response.go diff --git a/0.2.0/grafeas/model_v1beta1_list_occurrences_response.go b/grafeas/model_v1beta1_list_occurrences_response.go similarity index 100% rename from 0.2.0/grafeas/model_v1beta1_list_occurrences_response.go rename to grafeas/model_v1beta1_list_occurrences_response.go diff --git a/0.2.0/grafeas/model_v1beta1_note.go b/grafeas/model_v1beta1_note.go similarity index 94% rename from 0.2.0/grafeas/model_v1beta1_note.go rename to grafeas/model_v1beta1_note.go index 1149c7d..5e70ac0 100644 --- a/0.2.0/grafeas/model_v1beta1_note.go +++ b/grafeas/model_v1beta1_note.go @@ -57,4 +57,6 @@ type V1beta1Note struct { SpdxFile *SpdxFileNote `json:"spdxFile,omitempty"` // A note describing an SPDX File. SpdxRelationship *SpdxRelationshipNote `json:"spdxRelationship,omitempty"` + // A note describing a vulnerability assessment. + VulnerabilityAssessment *VexVulnerabilityAssessmentNote `json:"vulnerabilityAssessment,omitempty"` } diff --git a/0.2.0/grafeas/model_v1beta1_note_kind.go b/grafeas/model_v1beta1_note_kind.go similarity index 90% rename from 0.2.0/grafeas/model_v1beta1_note_kind.go rename to grafeas/model_v1beta1_note_kind.go index 1736855..ae5751b 100644 --- a/0.2.0/grafeas/model_v1beta1_note_kind.go +++ b/grafeas/model_v1beta1_note_kind.go @@ -8,7 +8,7 @@ */ package grafeas -// V1beta1NoteKind : Kind represents the kinds of notes supported. - NOTE_KIND_UNSPECIFIED: Default value. This value is unused. - VULNERABILITY: The note and occurrence represent a package vulnerability. - BUILD: The note and occurrence assert build provenance. - IMAGE: This represents an image basis relationship. - PACKAGE: This represents a package installed via a package manager. - DEPLOYMENT: The note and occurrence track deployment events. - DISCOVERY: The note and occurrence track the initial discovery status of a resource. - ATTESTATION: This represents a logical \"role\" that can attest to artifacts. - INTOTO: This represents an in-toto link. - SBOM: This represents a software bill of materials. - SPDX_PACKAGE: This represents an SPDX Package. - SPDX_FILE: This represents an SPDX File. - SPDX_RELATIONSHIP: This represents an SPDX Relationship. +// V1beta1NoteKind : Kind represents the kinds of notes supported. - NOTE_KIND_UNSPECIFIED: Default value. This value is unused. - VULNERABILITY: The note and occurrence represent a package vulnerability. - BUILD: The note and occurrence assert build provenance. - IMAGE: This represents an image basis relationship. - PACKAGE: This represents a package installed via a package manager. - DEPLOYMENT: The note and occurrence track deployment events. - DISCOVERY: The note and occurrence track the initial discovery status of a resource. - ATTESTATION: This represents a logical \"role\" that can attest to artifacts. - INTOTO: This represents an in-toto link. - SBOM: This represents a software bill of materials. - SPDX_PACKAGE: This represents an SPDX Package. - SPDX_FILE: This represents an SPDX File. - SPDX_RELATIONSHIP: This represents an SPDX Relationship. - VULNERABILITY_ASSESSMENT: This represents a Vulnerability Assessment. type V1beta1NoteKind string // List of v1beta1NoteKind @@ -26,4 +26,5 @@ const ( SPDX_PACKAGE_V1beta1NoteKind V1beta1NoteKind = "SPDX_PACKAGE" SPDX_FILE_V1beta1NoteKind V1beta1NoteKind = "SPDX_FILE" SPDX_RELATIONSHIP_V1beta1NoteKind V1beta1NoteKind = "SPDX_RELATIONSHIP" + VULNERABILITY_ASSESSMENT_V1beta1NoteKind V1beta1NoteKind = "VULNERABILITY_ASSESSMENT" ) diff --git a/0.2.0/grafeas/model_v1beta1_occurrence.go b/grafeas/model_v1beta1_occurrence.go similarity index 100% rename from 0.2.0/grafeas/model_v1beta1_occurrence.go rename to grafeas/model_v1beta1_occurrence.go diff --git a/0.2.0/grafeas/model_v1beta1_related_url.go b/grafeas/model_v1beta1_related_url.go similarity index 100% rename from 0.2.0/grafeas/model_v1beta1_related_url.go rename to grafeas/model_v1beta1_related_url.go diff --git a/0.2.0/grafeas/model_v1beta1_resource.go b/grafeas/model_v1beta1_resource.go similarity index 100% rename from 0.2.0/grafeas/model_v1beta1_resource.go rename to grafeas/model_v1beta1_resource.go diff --git a/0.2.0/grafeas/model_v1beta1_vulnerability_occurrences_summary.go b/grafeas/model_v1beta1_vulnerability_occurrences_summary.go similarity index 100% rename from 0.2.0/grafeas/model_v1beta1_vulnerability_occurrences_summary.go rename to grafeas/model_v1beta1_vulnerability_occurrences_summary.go diff --git a/0.2.0/grafeas/model_v1beta1attestation_details.go b/grafeas/model_v1beta1attestation_details.go similarity index 100% rename from 0.2.0/grafeas/model_v1beta1attestation_details.go rename to grafeas/model_v1beta1attestation_details.go diff --git a/0.2.0/grafeas/model_v1beta1build_details.go b/grafeas/model_v1beta1build_details.go similarity index 100% rename from 0.2.0/grafeas/model_v1beta1build_details.go rename to grafeas/model_v1beta1build_details.go diff --git a/0.2.0/grafeas/model_v1beta1deployment_details.go b/grafeas/model_v1beta1deployment_details.go similarity index 100% rename from 0.2.0/grafeas/model_v1beta1deployment_details.go rename to grafeas/model_v1beta1deployment_details.go diff --git a/0.2.0/grafeas/model_v1beta1discovery_details.go b/grafeas/model_v1beta1discovery_details.go similarity index 100% rename from 0.2.0/grafeas/model_v1beta1discovery_details.go rename to grafeas/model_v1beta1discovery_details.go diff --git a/0.2.0/grafeas/model_v1beta1image_details.go b/grafeas/model_v1beta1image_details.go similarity index 100% rename from 0.2.0/grafeas/model_v1beta1image_details.go rename to grafeas/model_v1beta1image_details.go diff --git a/0.2.0/grafeas/model_v1beta1intoto_details.go b/grafeas/model_v1beta1intoto_details.go similarity index 100% rename from 0.2.0/grafeas/model_v1beta1intoto_details.go rename to grafeas/model_v1beta1intoto_details.go diff --git a/0.2.0/grafeas/model_v1beta1intoto_signature.go b/grafeas/model_v1beta1intoto_signature.go similarity index 100% rename from 0.2.0/grafeas/model_v1beta1intoto_signature.go rename to grafeas/model_v1beta1intoto_signature.go diff --git a/0.2.0/grafeas/model_v1beta1package_details.go b/grafeas/model_v1beta1package_details.go similarity index 100% rename from 0.2.0/grafeas/model_v1beta1package_details.go rename to grafeas/model_v1beta1package_details.go diff --git a/0.2.0/grafeas/model_v1beta1package_location.go b/grafeas/model_v1beta1package_location.go similarity index 76% rename from 0.2.0/grafeas/model_v1beta1package_location.go rename to grafeas/model_v1beta1package_location.go index 3ce64ce..06843f9 100644 --- a/0.2.0/grafeas/model_v1beta1package_location.go +++ b/grafeas/model_v1beta1package_location.go @@ -11,9 +11,9 @@ package grafeas // An occurrence of a particular package installation found within a system's filesystem. E.g., glibc was found in `/var/lib/dpkg/status`. type V1beta1packageLocation struct { - // Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. + // Deprecated. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. CpeUri string `json:"cpeUri,omitempty"` - // The version installed at this location. + // Deprecated. The version installed at this location. Version *PackageVersion `json:"version,omitempty"` // The path from which we gathered that this package/version is installed. Path string `json:"path,omitempty"` diff --git a/0.2.0/grafeas/model_v1beta1provenance_artifact.go b/grafeas/model_v1beta1provenance_artifact.go similarity index 100% rename from 0.2.0/grafeas/model_v1beta1provenance_artifact.go rename to grafeas/model_v1beta1provenance_artifact.go diff --git a/0.2.0/grafeas/model_v1beta1vulnerability_details.go b/grafeas/model_v1beta1vulnerability_details.go similarity index 83% rename from 0.2.0/grafeas/model_v1beta1vulnerability_details.go rename to grafeas/model_v1beta1vulnerability_details.go index 0192ef4..a495203 100644 --- a/0.2.0/grafeas/model_v1beta1vulnerability_details.go +++ b/grafeas/model_v1beta1vulnerability_details.go @@ -26,4 +26,11 @@ type V1beta1vulnerabilityDetails struct { RelatedUrls []V1beta1RelatedUrl `json:"relatedUrls,omitempty"` // The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues. EffectiveSeverity *VulnerabilitySeverity `json:"effectiveSeverity,omitempty"` + // Output only. CVSS version used to populate cvss_score and severity. + CvssVersion *VulnerabilityCvssVersion `json:"cvssVersion,omitempty"` + VexAssessment *DetailsVexAssessment `json:"vexAssessment,omitempty"` + // The cvss v2 score for the vulnerability. + CvssV2 *VulnerabilityCvss `json:"cvssV2,omitempty"` + // The cvss v3 score for the vulnerability. + CvssV3 *VulnerabilityCvss `json:"cvssV3,omitempty"` } diff --git a/0.2.0/grafeas/model_version_version_kind.go b/grafeas/model_version_version_kind.go similarity index 100% rename from 0.2.0/grafeas/model_version_version_kind.go rename to grafeas/model_version_version_kind.go diff --git a/grafeas/model_vex_vulnerability_assessment_note.go b/grafeas/model_vex_vulnerability_assessment_note.go new file mode 100644 index 0000000..7de90c1 --- /dev/null +++ b/grafeas/model_vex_vulnerability_assessment_note.go @@ -0,0 +1,27 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// A single VulnerabilityAssessmentNote represents one particular product's vulnerability assessment for one CVE. +type VexVulnerabilityAssessmentNote struct { + Title string `json:"title,omitempty"` + // A one sentence description of this Vex. + ShortDescription string `json:"shortDescription,omitempty"` + // A detailed description of this Vex. + LongDescription string `json:"longDescription,omitempty"` + // Identifies the language used by this document, corresponding to IETF BCP 47 / RFC 5646. + LanguageCode string `json:"languageCode,omitempty"` + // Publisher details of this Note. + Publisher *VulnerabilityAssessmentNotePublisher `json:"publisher,omitempty"` + // The product affected by this vex. + Product *VulnerabilityAssessmentNoteProduct `json:"product,omitempty"` + // Represents a vulnerability assessment for the product. + Assessment *VulnerabilityAssessmentNoteAssessment `json:"assessment,omitempty"` +} diff --git a/grafeas/model_vulnerability_assessment_note_assessment.go b/grafeas/model_vulnerability_assessment_note_assessment.go new file mode 100644 index 0000000..1d8eb2a --- /dev/null +++ b/grafeas/model_vulnerability_assessment_note_assessment.go @@ -0,0 +1,30 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +// Assessment provides all information that is related to a single vulnerability for this product. +type VulnerabilityAssessmentNoteAssessment struct { + // Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. + Cve string `json:"cve,omitempty"` + // A one sentence description of this Vex. + ShortDescription string `json:"shortDescription,omitempty"` + // A detailed description of this Vex. + LongDescription string `json:"longDescription,omitempty"` + // Holds a list of references associated with this vulnerability item and assessment. These uris have additional information about the vulnerability and the assessment itself. E.g. Link to a document which details how this assessment concluded the state of this vulnerability. + RelatedUris []V1beta1RelatedUrl `json:"relatedUris,omitempty"` + // Provides the state of this Vulnerability assessment. + State *AssessmentState `json:"state,omitempty"` + // Contains information about the impact of this vulnerability, this will change with time. + Impacts []string `json:"impacts,omitempty"` + // Justification provides the justification when the state of the assessment if NOT_AFFECTED. + Justification *AssessmentJustification `json:"justification,omitempty"` + // Specifies details on how to handle (and presumably, fix) a vulnerability. + Remediations []AssessmentRemediation `json:"remediations,omitempty"` +} diff --git a/grafeas/model_vulnerability_assessment_note_product.go b/grafeas/model_vulnerability_assessment_note_product.go new file mode 100644 index 0000000..1e4d023 --- /dev/null +++ b/grafeas/model_vulnerability_assessment_note_product.go @@ -0,0 +1,19 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +type VulnerabilityAssessmentNoteProduct struct { + // Name of the product. + Name string `json:"name,omitempty"` + // Token that identifies a product so that it can be referred to from other parts in the document. There is no predefined format as long as it uniquely identifies a group in the context of the current document. + Id string `json:"id,omitempty"` + // Contains a URI which is vendor-specific. Example: The artifact repository URL of an image. + GenericUri string `json:"genericUri,omitempty"` +} diff --git a/grafeas/model_vulnerability_assessment_note_publisher.go b/grafeas/model_vulnerability_assessment_note_publisher.go new file mode 100644 index 0000000..0607eaf --- /dev/null +++ b/grafeas/model_vulnerability_assessment_note_publisher.go @@ -0,0 +1,18 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas + +type VulnerabilityAssessmentNotePublisher struct { + // Name of the publisher. Examples: 'Google', 'Google Cloud Platform'. + Name string `json:"name,omitempty"` + // Provides information about the authority of the issuing party to release the document, in particular, the party's constituency and responsibilities or other obligations. + IssuingAuthority string `json:"issuingAuthority,omitempty"` + Context string `json:"context,omitempty"` +} diff --git a/0.2.0/grafeas/model_vulnerability_cvss.go b/grafeas/model_vulnerability_cvss.go similarity index 100% rename from 0.2.0/grafeas/model_vulnerability_cvss.go rename to grafeas/model_vulnerability_cvss.go diff --git a/grafeas/model_vulnerability_cvss_version.go b/grafeas/model_vulnerability_cvss_version.go new file mode 100644 index 0000000..1e918fb --- /dev/null +++ b/grafeas/model_vulnerability_cvss_version.go @@ -0,0 +1,19 @@ +/* + * grafeas.proto + * + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * + * API version: version not set + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) + */ + +package grafeas +// VulnerabilityCvssVersion : CVSS Version. +type VulnerabilityCvssVersion string + +// List of vulnerabilityCVSSVersion +const ( + UNSPECIFIED_VulnerabilityCvssVersion VulnerabilityCvssVersion = "CVSS_VERSION_UNSPECIFIED" + 2__VulnerabilityCvssVersion VulnerabilityCvssVersion = "CVSS_VERSION_2" + 3__VulnerabilityCvssVersion VulnerabilityCvssVersion = "CVSS_VERSION_3" +) diff --git a/0.2.0/grafeas/model_vulnerability_detail.go b/grafeas/model_vulnerability_detail.go similarity index 100% rename from 0.2.0/grafeas/model_vulnerability_detail.go rename to grafeas/model_vulnerability_detail.go diff --git a/0.2.0/grafeas/model_vulnerability_occurrences_summary_fixable_total_by_digest.go b/grafeas/model_vulnerability_occurrences_summary_fixable_total_by_digest.go similarity index 100% rename from 0.2.0/grafeas/model_vulnerability_occurrences_summary_fixable_total_by_digest.go rename to grafeas/model_vulnerability_occurrences_summary_fixable_total_by_digest.go diff --git a/0.2.0/grafeas/model_vulnerability_package_issue.go b/grafeas/model_vulnerability_package_issue.go similarity index 100% rename from 0.2.0/grafeas/model_vulnerability_package_issue.go rename to grafeas/model_vulnerability_package_issue.go diff --git a/0.2.0/grafeas/model_vulnerability_severity.go b/grafeas/model_vulnerability_severity.go similarity index 100% rename from 0.2.0/grafeas/model_vulnerability_severity.go rename to grafeas/model_vulnerability_severity.go diff --git a/0.2.0/grafeas/model_vulnerability_vulnerability.go b/grafeas/model_vulnerability_vulnerability.go similarity index 92% rename from 0.2.0/grafeas/model_vulnerability_vulnerability.go rename to grafeas/model_vulnerability_vulnerability.go index db725b0..1abddbf 100644 --- a/0.2.0/grafeas/model_vulnerability_vulnerability.go +++ b/grafeas/model_vulnerability_vulnerability.go @@ -30,4 +30,6 @@ type VulnerabilityVulnerability struct { // The full description of the CVSS for version 2. CvssV2 *VulnerabilityCvss `json:"cvssV2,omitempty"` Cwe []string `json:"cwe,omitempty"` + // CVSS version used to populate cvss_score and severity. + CvssVersion *VulnerabilityCvssVersion `json:"cvssVersion,omitempty"` } diff --git a/0.2.0/grafeas/model_vulnerability_vulnerability_location.go b/grafeas/model_vulnerability_vulnerability_location.go similarity index 100% rename from 0.2.0/grafeas/model_vulnerability_vulnerability_location.go rename to grafeas/model_vulnerability_vulnerability_location.go diff --git a/0.2.0/grafeas/model_vulnerability_windows_detail.go b/grafeas/model_vulnerability_windows_detail.go similarity index 100% rename from 0.2.0/grafeas/model_vulnerability_windows_detail.go rename to grafeas/model_vulnerability_windows_detail.go diff --git a/0.2.0/grafeas/model_windows_detail_knowledge_base.go b/grafeas/model_windows_detail_knowledge_base.go similarity index 100% rename from 0.2.0/grafeas/model_windows_detail_knowledge_base.go rename to grafeas/model_windows_detail_knowledge_base.go diff --git a/0.2.0/grafeas/response.go b/grafeas/response.go similarity index 100% rename from 0.2.0/grafeas/response.go rename to grafeas/response.go diff --git a/0.2.0/grafeas/.gitignore b/project/.gitignore similarity index 100% rename from 0.2.0/grafeas/.gitignore rename to project/.gitignore diff --git a/0.2.0/project/.swagger-codegen-ignore b/project/.swagger-codegen-ignore similarity index 100% rename from 0.2.0/project/.swagger-codegen-ignore rename to project/.swagger-codegen-ignore diff --git a/0.2.0/grafeas/.swagger-codegen/VERSION b/project/.swagger-codegen/VERSION similarity index 100% rename from 0.2.0/grafeas/.swagger-codegen/VERSION rename to project/.swagger-codegen/VERSION diff --git a/0.2.0/grafeas/.travis.yml b/project/.travis.yml similarity index 100% rename from 0.2.0/grafeas/.travis.yml rename to project/.travis.yml diff --git a/0.2.0/project/README.md b/project/README.md similarity index 98% rename from 0.2.0/project/README.md rename to project/README.md index 29b9b87..bbd48dc 100644 --- a/0.2.0/project/README.md +++ b/project/README.md @@ -6,7 +6,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger This API client was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [swagger-spec](https://github.com/swagger-api/swagger-spec) from a remote server, you can easily generate an API client. - API version: version not set -- Package version: 0.2.0 +- Package version: 1.0.0 - Build package: io.swagger.codegen.languages.GoClientCodegen ## Installation diff --git a/0.2.0/project/api/swagger.yaml b/project/api/swagger.yaml similarity index 100% rename from 0.2.0/project/api/swagger.yaml rename to project/api/swagger.yaml diff --git a/0.2.0/project/api_projects.go b/project/api_projects.go similarity index 100% rename from 0.2.0/project/api_projects.go rename to project/api_projects.go diff --git a/0.2.0/project/client.go b/project/client.go similarity index 100% rename from 0.2.0/project/client.go rename to project/client.go diff --git a/0.2.0/project/configuration.go b/project/configuration.go similarity index 97% rename from 0.2.0/project/configuration.go rename to project/configuration.go index 4af12f3..456fd26 100644 --- a/0.2.0/project/configuration.go +++ b/project/configuration.go @@ -62,7 +62,7 @@ func NewConfiguration() *Configuration { cfg := &Configuration{ BasePath: "https://localhost", DefaultHeader: make(map[string]string), - UserAgent: "Swagger-Codegen/0.2.0/go", + UserAgent: "Swagger-Codegen/1.0.0/go", } return cfg } diff --git a/0.2.0/project/docs/ProjectListProjectsResponse.md b/project/docs/ProjectListProjectsResponse.md similarity index 100% rename from 0.2.0/project/docs/ProjectListProjectsResponse.md rename to project/docs/ProjectListProjectsResponse.md diff --git a/0.2.0/project/docs/ProjectProject.md b/project/docs/ProjectProject.md similarity index 100% rename from 0.2.0/project/docs/ProjectProject.md rename to project/docs/ProjectProject.md diff --git a/0.2.0/project/docs/ProjectsApi.md b/project/docs/ProjectsApi.md similarity index 100% rename from 0.2.0/project/docs/ProjectsApi.md rename to project/docs/ProjectsApi.md diff --git a/0.2.0/project/docs/ProtobufAny.md b/project/docs/ProtobufAny.md similarity index 100% rename from 0.2.0/project/docs/ProtobufAny.md rename to project/docs/ProtobufAny.md diff --git a/0.2.0/project/docs/RpcStatus.md b/project/docs/RpcStatus.md similarity index 100% rename from 0.2.0/project/docs/RpcStatus.md rename to project/docs/RpcStatus.md diff --git a/0.2.0/grafeas/git_push.sh b/project/git_push.sh similarity index 100% rename from 0.2.0/grafeas/git_push.sh rename to project/git_push.sh diff --git a/0.2.0/project/model_project_list_projects_response.go b/project/model_project_list_projects_response.go similarity index 100% rename from 0.2.0/project/model_project_list_projects_response.go rename to project/model_project_list_projects_response.go diff --git a/0.2.0/project/model_project_project.go b/project/model_project_project.go similarity index 100% rename from 0.2.0/project/model_project_project.go rename to project/model_project_project.go diff --git a/0.2.0/project/model_protobuf_any.go b/project/model_protobuf_any.go similarity index 100% rename from 0.2.0/project/model_protobuf_any.go rename to project/model_protobuf_any.go diff --git a/0.2.0/project/model_rpc_status.go b/project/model_rpc_status.go similarity index 100% rename from 0.2.0/project/model_rpc_status.go rename to project/model_rpc_status.go diff --git a/0.2.0/project/response.go b/project/response.go similarity index 100% rename from 0.2.0/project/response.go rename to project/response.go From 0e371d9c59c1644d97a6ba150d163f3ca315edbf Mon Sep 17 00:00:00 2001 From: Nolan Emirot Date: Tue, 13 Jul 2021 12:17:07 -0500 Subject: [PATCH 4/4] fix: path codegen --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2f8adfc..d1e594a 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ The API is defined once in a JSON file, which is then used to auto-generate libr This simplifies maintainance and upgrades. Along with the auto-generated portions of the library, there may be manual changes to the library files. -These files are preserved between library generations through the [.swagger-codegen-ignore](../0.1.0/.swagger-codegen-ignore) file. +These files are preserved between library generations through the [.swagger-codegen-ignore](./0.1.0/.swagger-codegen-ignore) file. Therefore, it is expected that new versions of the library are generated on top of previous ones, to preserve the manual changes. ## Regenerating the Library