All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
create_project | POST /v1alpha1/projects | Creates a new `Project`. |
delete_project | DELETE /v1alpha1/{name} | Deletes the given `Project` from the system. |
get_project | GET /v1alpha1/{name} | Returns the requested `Project`. |
list_projects | GET /v1alpha1/projects | Lists `Projects` |
ProtobufEmpty create_project(body)
Creates a new Project
.
# load the gem
require 'grafeas'
api_instance = Grafeas::GrafeasProjectsApi.new
body = Grafeas::ApiProject.new # ApiProject |
begin
#Creates a new `Project`.
result = api_instance.create_project(body)
p result
rescue Grafeas::ApiError => e
puts "Exception when calling GrafeasProjectsApi->create_project: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
body | ApiProject |
No authorization required
- Content-Type: application/json
- Accept: application/json
ProtobufEmpty delete_project(name)
Deletes the given Project
from the system.
# load the gem
require 'grafeas'
api_instance = Grafeas::GrafeasProjectsApi.new
name = 'name_example' # String |
begin
#Deletes the given `Project` from the system.
result = api_instance.delete_project(name)
p result
rescue Grafeas::ApiError => e
puts "Exception when calling GrafeasProjectsApi->delete_project: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
name | String |
No authorization required
- Content-Type: application/json
- Accept: application/json
ApiProject get_project(name)
Returns the requested Project
.
# load the gem
require 'grafeas'
api_instance = Grafeas::GrafeasProjectsApi.new
name = 'name_example' # String |
begin
#Returns the requested `Project`.
result = api_instance.get_project(name)
p result
rescue Grafeas::ApiError => e
puts "Exception when calling GrafeasProjectsApi->get_project: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
name | String |
No authorization required
- Content-Type: application/json
- Accept: application/json
ApiListProjectsResponse list_projects(opts)
Lists Projects
# load the gem
require 'grafeas'
api_instance = Grafeas::GrafeasProjectsApi.new
opts = {
filter: 'filter_example', # String | The filter expression.
page_size: 56, # Integer | Number of projects to return in the list.
page_token: 'page_token_example' # String | Token to provide to skip to a particular spot in the list.
}
begin
#Lists `Projects`
result = api_instance.list_projects(opts)
p result
rescue Grafeas::ApiError => e
puts "Exception when calling GrafeasProjectsApi->list_projects: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
filter | String | The filter expression. | [optional] |
page_size | Integer | Number of projects to return in the list. | [optional] |
page_token | String | Token to provide to skip to a particular spot in the list. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json