summaryrefslogtreecommitdiff
path: root/opendc/api/v1/specifications
diff options
context:
space:
mode:
Diffstat (limited to 'opendc/api/v1/specifications')
-rw-r--r--opendc/api/v1/specifications/cpus/endpoint.py1
-rw-r--r--opendc/api/v1/specifications/cpus/id/endpoint.py3
-rw-r--r--opendc/api/v1/specifications/failure-models/endpoint.py1
-rw-r--r--opendc/api/v1/specifications/failure-models/id/endpoint.py3
-rw-r--r--opendc/api/v1/specifications/gpus/endpoint.py1
-rw-r--r--opendc/api/v1/specifications/gpus/id/endpoint.py3
-rw-r--r--opendc/api/v1/specifications/memories/endpoint.py1
-rw-r--r--opendc/api/v1/specifications/memories/id/endpoint.py3
-rw-r--r--opendc/api/v1/specifications/storages/endpoint.py1
-rw-r--r--opendc/api/v1/specifications/storages/id/endpoint.py3
10 files changed, 15 insertions, 5 deletions
diff --git a/opendc/api/v1/specifications/cpus/endpoint.py b/opendc/api/v1/specifications/cpus/endpoint.py
index 5c856255..5cdbb9ec 100644
--- a/opendc/api/v1/specifications/cpus/endpoint.py
+++ b/opendc/api/v1/specifications/cpus/endpoint.py
@@ -1,6 +1,7 @@
from opendc.models.cpu import CPU
from opendc.util.rest import Response
+
def GET(request):
"""Get a list of the specifications of all CPUs."""
diff --git a/opendc/api/v1/specifications/cpus/id/endpoint.py b/opendc/api/v1/specifications/cpus/id/endpoint.py
index 158576cb..c2453e51 100644
--- a/opendc/api/v1/specifications/cpus/id/endpoint.py
+++ b/opendc/api/v1/specifications/cpus/id/endpoint.py
@@ -2,6 +2,7 @@ from opendc.models.cpu import CPU
from opendc.util import exceptions
from opendc.util.rest import Response
+
def GET(request):
"""Get the specs of a CPU."""
@@ -9,7 +10,7 @@ def GET(request):
try:
request.check_required_parameters(
- path = {
+ path={
'id': 'int'
}
)
diff --git a/opendc/api/v1/specifications/failure-models/endpoint.py b/opendc/api/v1/specifications/failure-models/endpoint.py
index 2530d032..fff668c0 100644
--- a/opendc/api/v1/specifications/failure-models/endpoint.py
+++ b/opendc/api/v1/specifications/failure-models/endpoint.py
@@ -1,6 +1,7 @@
from opendc.models.failure_model import FailureModel
from opendc.util.rest import Response
+
def GET(request):
"""Get all Failure Models."""
diff --git a/opendc/api/v1/specifications/failure-models/id/endpoint.py b/opendc/api/v1/specifications/failure-models/id/endpoint.py
index 8a7d2e1d..0797c9c9 100644
--- a/opendc/api/v1/specifications/failure-models/id/endpoint.py
+++ b/opendc/api/v1/specifications/failure-models/id/endpoint.py
@@ -2,6 +2,7 @@ from opendc.models.failure_model import FailureModel
from opendc.util import exceptions
from opendc.util.rest import Response
+
def GET(request):
"""Get this Failure Model."""
@@ -9,7 +10,7 @@ def GET(request):
try:
request.check_required_parameters(
- path = {
+ path={
'id': 'int'
}
)
diff --git a/opendc/api/v1/specifications/gpus/endpoint.py b/opendc/api/v1/specifications/gpus/endpoint.py
index 8728d203..5676f62b 100644
--- a/opendc/api/v1/specifications/gpus/endpoint.py
+++ b/opendc/api/v1/specifications/gpus/endpoint.py
@@ -1,6 +1,7 @@
from opendc.models.gpu import GPU
from opendc.util.rest import Response
+
def GET(request):
"""Get a list of the specifications of all GPUs."""
diff --git a/opendc/api/v1/specifications/gpus/id/endpoint.py b/opendc/api/v1/specifications/gpus/id/endpoint.py
index 41b5a9e4..81113dc3 100644
--- a/opendc/api/v1/specifications/gpus/id/endpoint.py
+++ b/opendc/api/v1/specifications/gpus/id/endpoint.py
@@ -2,6 +2,7 @@ from opendc.models.gpu import GPU
from opendc.util import exceptions
from opendc.util.rest import Response
+
def GET(request):
"""Get the specs of a GPU."""
@@ -9,7 +10,7 @@ def GET(request):
try:
request.check_required_parameters(
- path = {
+ path={
'id': 'int'
}
)
diff --git a/opendc/api/v1/specifications/memories/endpoint.py b/opendc/api/v1/specifications/memories/endpoint.py
index b275b6f0..271824b3 100644
--- a/opendc/api/v1/specifications/memories/endpoint.py
+++ b/opendc/api/v1/specifications/memories/endpoint.py
@@ -1,6 +1,7 @@
from opendc.models.memory import Memory
from opendc.util.rest import Response
+
def GET(request):
"""Get a list of the specifications of all Memories."""
diff --git a/opendc/api/v1/specifications/memories/id/endpoint.py b/opendc/api/v1/specifications/memories/id/endpoint.py
index 3132efab..863099ca 100644
--- a/opendc/api/v1/specifications/memories/id/endpoint.py
+++ b/opendc/api/v1/specifications/memories/id/endpoint.py
@@ -2,6 +2,7 @@ from opendc.models.memory import Memory
from opendc.util import exceptions
from opendc.util.rest import Response
+
def GET(request):
"""Get the specs of a Memory."""
@@ -9,7 +10,7 @@ def GET(request):
try:
request.check_required_parameters(
- path = {
+ path={
'id': 'int'
}
)
diff --git a/opendc/api/v1/specifications/storages/endpoint.py b/opendc/api/v1/specifications/storages/endpoint.py
index 875ed987..28f33177 100644
--- a/opendc/api/v1/specifications/storages/endpoint.py
+++ b/opendc/api/v1/specifications/storages/endpoint.py
@@ -1,6 +1,7 @@
from opendc.models.storage import Storage
from opendc.util.rest import Response
+
def GET(request):
"""Get a list of the specifications of all Storages."""
diff --git a/opendc/api/v1/specifications/storages/id/endpoint.py b/opendc/api/v1/specifications/storages/id/endpoint.py
index b0d254a4..ebe65857 100644
--- a/opendc/api/v1/specifications/storages/id/endpoint.py
+++ b/opendc/api/v1/specifications/storages/id/endpoint.py
@@ -2,6 +2,7 @@ from opendc.models.storage import Storage
from opendc.util import exceptions
from opendc.util.rest import Response
+
def GET(request):
"""Get the specs of a Storage."""
@@ -9,7 +10,7 @@ def GET(request):
try:
request.check_required_parameters(
- path = {
+ path={
'id': 'int'
}
)