No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
This Python package is automatically generated by the Swagger Codegen project:
- API version: v1beta1
- Package version: v1beta1
- Build package: io.swagger.codegen.languages.PythonClientCodegen
Python 2.7 and 3.4+
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)
Then import the package:
import grafeas Install via Setuptools.
python setup.py install --user(or sudo python setup.py install to install the package for all users)
Then import the package:
import grafeasPlease follow the installation procedure and then run the following:
from __future__ import print_function
import time
import grafeas
from grafeas.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = grafeas.GrafeasV1Beta1Api(grafeas.ApiClient(configuration))
parent = 'parent_example' # str | The name of the project in the form of `projects/[PROJECT_ID]`, under which the notes are to be created.
body = grafeas.Body() # Body |
try:
# Creates new notes in batch.
api_response = api_instance.grafeas_v1_beta1_batch_create_notes(parent, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling GrafeasV1Beta1Api->grafeas_v1_beta1_batch_create_notes: %s\n" % e)All URIs are relative to https://localhost
| Class | Method | HTTP request | Description |
|---|---|---|---|
| GrafeasV1Beta1Api | grafeas_v1_beta1_batch_create_notes | POST /v1beta1/{parent}/notes:batchCreate | Creates new notes in batch. |
| GrafeasV1Beta1Api | grafeas_v1_beta1_batch_create_occurrences | POST /v1beta1/{parent}/occurrences:batchCreate | Creates new occurrences in batch. |
| GrafeasV1Beta1Api | grafeas_v1_beta1_create_note | POST /v1beta1/{parent}/notes | Creates a new note. |
| GrafeasV1Beta1Api | grafeas_v1_beta1_create_occurrence | POST /v1beta1/{parent}/occurrences | Creates a new occurrence. |
| GrafeasV1Beta1Api | grafeas_v1_beta1_delete_note | DELETE /v1beta1/{name_1} | Deletes the specified note. |
| GrafeasV1Beta1Api | grafeas_v1_beta1_delete_occurrence | 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 | grafeas_v1_beta1_get_note | GET /v1beta1/{name_1} | Gets the specified note. |
| GrafeasV1Beta1Api | grafeas_v1_beta1_get_occurrence | GET /v1beta1/{name} | Gets the specified occurrence. |
| GrafeasV1Beta1Api | grafeas_v1_beta1_get_occurrence_note | 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 | grafeas_v1_beta1_get_vulnerability_occurrences_summary | GET /v1beta1/{parent}/occurrences:vulnerabilitySummary | Gets a summary of the number and severity of occurrences. |
| GrafeasV1Beta1Api | grafeas_v1_beta1_list_note_occurrences | 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 | grafeas_v1_beta1_list_notes | GET /v1beta1/{parent}/notes | Lists notes for the specified project. |
| GrafeasV1Beta1Api | grafeas_v1_beta1_list_occurrences | GET /v1beta1/{parent}/occurrences | Lists occurrences for the specified project. |
| GrafeasV1Beta1Api | grafeas_v1_beta1_update_note | PATCH /v1beta1/{name_1} | Updates the specified note. |
| GrafeasV1Beta1Api | grafeas_v1_beta1_update_occurrence | PATCH /v1beta1/{name} | Updates the specified occurrence. |
- AliasContextKind
- AttestationAttestation
- AttestationAuthority
- AttestationGenericSignedAttestation
- AttestationGenericSignedAttestationContentType
- AttestationPgpSignedAttestation
- AttestationPgpSignedAttestationContentType
- AuthorityHint
- Body
- Body1
- BuildBuild
- BuildBuildSignature
- BuildSignatureKeyType
- CVSSAttackComplexity
- CVSSAttackVector
- CVSSAuthentication
- CVSSImpact
- CVSSPrivilegesRequired
- CVSSScope
- CVSSUserInteraction
- DeploymentDeployable
- DeploymentDeployment
- DeploymentPlatform
- DiscoveredAnalysisStatus
- DiscoveredContinuousAnalysis
- DiscoveryDiscovered
- DiscoveryDiscovery
- ExternalRefCategory
- FileNoteFileType
- Grafeasv1beta1Signature
- HashHashType
- ImageBasis
- ImageDerived
- ImageFingerprint
- ImageLayer
- InTotoArtifactRule
- IntotoInToto
- IntotoLink
- IntotoLinkArtifact
- IntotoSigningKey
- LayerDirective
- LinkArtifactHashes
- LinkByProducts
- LinkEnvironment
- PackageArchitecture
- PackageDistribution
- PackageInfoNoteExternalRef
- PackageInstallation
- PackagePackage
- PackageVersion
- ProtobufAny
- ProvenanceBuildProvenance
- ProvenanceCommand
- ProvenanceFileHashes
- ProvenanceHash
- ProvenanceSource
- RpcStatus
- SourceAliasContext
- SourceCloudRepoSourceContext
- SourceGerritSourceContext
- SourceGitSourceContext
- SourceProjectRepoId
- SourceRepoId
- SourceSourceContext
- SpdxDocumentNote
- SpdxDocumentOccurrence
- SpdxFileNote
- SpdxFileOccurrence
- SpdxLicense
- SpdxPackageInfoNote
- SpdxPackageInfoOccurrence
- SpdxRelationshipNote
- SpdxRelationshipOccurrence
- SpdxRelationshipType
- V1beta1BatchCreateNotesResponse
- V1beta1BatchCreateOccurrencesResponse
- V1beta1Envelope
- V1beta1EnvelopeSignature
- V1beta1ListNoteOccurrencesResponse
- V1beta1ListNotesResponse
- V1beta1ListOccurrencesResponse
- V1beta1Note
- V1beta1NoteKind
- V1beta1Occurrence
- V1beta1RelatedUrl
- V1beta1Resource
- V1beta1VulnerabilityOccurrencesSummary
- V1beta1attestationDetails
- V1beta1buildDetails
- V1beta1deploymentDetails
- V1beta1discoveryDetails
- V1beta1imageDetails
- V1beta1intotoDetails
- V1beta1intotoSignature
- V1beta1packageDetails
- V1beta1packageLocation
- V1beta1provenanceArtifact
- V1beta1vulnerabilityDetails
- VersionVersionKind
- VulnerabilityCVSS
- VulnerabilityDetail
- VulnerabilityOccurrencesSummaryFixableTotalByDigest
- VulnerabilityPackageIssue
- VulnerabilitySeverity
- VulnerabilityVulnerability
- VulnerabilityVulnerabilityLocation
- VulnerabilityWindowsDetail
- WindowsDetailKnowledgeBase
All URIs are relative to https://localhost
| Class | Method | HTTP request | Description |
|---|---|---|---|
| ProjectsApi | projects_create_project | POST /v1beta1/projects | Creates a new project. |
| ProjectsApi | projects_delete_project | DELETE /v1beta1/{name} | Deletes the specified project. |
| ProjectsApi | projects_get_project | GET /v1beta1/{name} | Gets the specified project. |
| ProjectsApi | projects_list_projects | GET /v1beta1/projects | Lists projects. |
All endpoints do not require authorization.