Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

Grafeas

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

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

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 

Setuptools

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 grafeas

Getting Started

Please 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)

Documentation for API Endpoints

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.

Documentation For Models

Documentation for Project API Endpoints

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.

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages