Skip to content

imnotbrandon/fly-api

Repository files navigation

flyio

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: 1.0
  • Package version: 1.0.0
  • 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 flyio 

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 flyio

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import flyio
from flyio.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = flyio.AppsApi(flyio.ApiClient(configuration))
request = flyio.CreateAppRequest() # CreateAppRequest | App body

try:
    api_instance.apps_create(request)
except ApiException as e:
    print("Exception when calling AppsApi->apps_create: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.machines.dev/v1

Class Method HTTP request Description
AppsApi apps_create POST /apps
AppsApi apps_delete DELETE /apps/{app_name}
AppsApi apps_list GET /apps
AppsApi apps_show GET /apps/{app_name}
MachinesApi machines_cordon POST /apps/{app_name}/machines/{machine_id}/cordon
MachinesApi machines_create POST /apps/{app_name}/machines
MachinesApi machines_create_lease POST /apps/{app_name}/machines/{machine_id}/lease
MachinesApi machines_delete DELETE /apps/{app_name}/machines/{machine_id}
MachinesApi machines_delete_metadata DELETE /apps/{app_name}/machines/{machine_id}/metadata/{key}
MachinesApi machines_exec POST /apps/{app_name}/machines/{machine_id}/exec
MachinesApi machines_list GET /apps/{app_name}/machines
MachinesApi machines_list_events GET /apps/{app_name}/machines/{machine_id}/events
MachinesApi machines_list_processes GET /apps/{app_name}/machines/{machine_id}/ps
MachinesApi machines_list_versions GET /apps/{app_name}/machines/{machine_id}/versions
MachinesApi machines_release_lease DELETE /apps/{app_name}/machines/{machine_id}/lease
MachinesApi machines_restart POST /apps/{app_name}/machines/{machine_id}/restart
MachinesApi machines_show GET /apps/{app_name}/machines/{machine_id}
MachinesApi machines_show_lease GET /apps/{app_name}/machines/{machine_id}/lease
MachinesApi machines_show_metadata GET /apps/{app_name}/machines/{machine_id}/metadata
MachinesApi machines_signal POST /apps/{app_name}/machines/{machine_id}/signal
MachinesApi machines_start POST /apps/{app_name}/machines/{machine_id}/start
MachinesApi machines_stop POST /apps/{app_name}/machines/{machine_id}/stop
MachinesApi machines_uncordon POST /apps/{app_name}/machines/{machine_id}/uncordon
MachinesApi machines_update POST /apps/{app_name}/machines/{machine_id}
MachinesApi machines_update_metadata POST /apps/{app_name}/machines/{machine_id}/metadata/{key}
MachinesApi machines_wait GET /apps/{app_name}/machines/{machine_id}/wait
VolumesApi create_volume_snapshot POST /apps/{app_name}/volumes/{volume_id}/snapshots
VolumesApi volume_delete DELETE /apps/{app_name}/volumes/{volume_id}
VolumesApi volumes_create POST /apps/{app_name}/volumes
VolumesApi volumes_extend PUT /apps/{app_name}/volumes/{volume_id}/extend
VolumesApi volumes_get_by_id GET /apps/{app_name}/volumes/{volume_id}
VolumesApi volumes_list GET /apps/{app_name}/volumes
VolumesApi volumes_list_snapshots GET /apps/{app_name}/volumes/{volume_id}/snapshots
VolumesApi volumes_update POST /apps/{app_name}/volumes/{volume_id}

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors