Skip to main content

swagger_client

SwaggerClient - the Ruby gem for the Estuary API

This is the API for the Estuary application.

This SDK is automatically generated by the Swagger Codegen project:

  • API version: 0.0.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.RubyClientCodegen For more information, please visit https://docs.estuary.tech/feedback

Installation

Build a gem

To build the Ruby code into a gem:

gem build swagger_client.gemspec

Then either install the gem locally:

gem install ./swagger_client-1.0.0.gem

(for development, run gem install --dev ./swagger_client-1.0.0.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'swagger_client', '~> 1.0.0'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:

gem 'swagger_client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'swagger_client'

# Setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: bearerAuth
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end

api_instance = SwaggerClient::AdminApi.new

body = [SwaggerClient::Array<String>.new] # Array<String> | Peer ids


begin
#Remove peers on Peering Service
api_instance.admin_peering_peers_delete(body)
rescue SwaggerClient::ApiError => e
puts "Exception when calling AdminApi->admin_peering_peers_delete: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://api.estuary.tech

ClassMethodHTTP requestDescription
SwaggerClient::AdminApiadmin_peering_peers_deleteDELETE /admin/peering/peersRemove peers on Peering Service
SwaggerClient::AdminApiadmin_peering_peers_getGET /admin/peering/peersList all Peering peers
SwaggerClient::AdminApiadmin_peering_peers_postPOST /admin/peering/peersAdd peers on Peering Service
SwaggerClient::AdminApiadmin_peering_start_postPOST /admin/peering/startStart Peering
SwaggerClient::AdminApiadmin_peering_status_getGET /admin/peering/statusCheck Peering Status
SwaggerClient::AdminApiadmin_peering_stop_postPOST /admin/peering/stopStop Peering
SwaggerClient::AdminApiadmin_system_config_getGET /admin/system/configGet systems(estuary/shuttle) config
SwaggerClient::AdminApiadmin_users_getGET /admin/usersGet all users
SwaggerClient::AutoretrieveApiadmin_autoretrieve_init_postPOST /admin/autoretrieve/initRegister autoretrieve server
SwaggerClient::AutoretrieveApiadmin_autoretrieve_list_getGET /admin/autoretrieve/listList autoretrieve servers
SwaggerClient::AutoretrieveApiautoretrieve_heartbeat_postPOST /autoretrieve/heartbeatMarks autoretrieve server as up
SwaggerClient::CollectionsApicollections_coluuid_commit_postPOST /collections/{coluuid}/commitProduce a CID of the collection contents
SwaggerClient::CollectionsApicollections_coluuid_contents_deleteDELETE /collections/{coluuid}/contentsDeletes a content from a collection
SwaggerClient::CollectionsApicollections_coluuid_deleteDELETE /collections/{coluuid}Deletes a collection
SwaggerClient::CollectionsApicollections_coluuid_getGET /collections/{coluuid}Get contents in a collection
SwaggerClient::CollectionsApicollections_coluuid_postPOST /collections/{coluuid}Add contents to a collection
SwaggerClient::CollectionsApicollections_fs_add_postPOST /collections/fs/addAdd a file to a collection
SwaggerClient::CollectionsApicollections_getGET /collections/List all collections
SwaggerClient::CollectionsApicollections_postPOST /collections/Create a new collection
SwaggerClient::ContentApicontent_add_car_postPOST /content/add-carAdd Car object
SwaggerClient::ContentApicontent_add_ipfs_postPOST /content/add-ipfsAdd IPFS object
SwaggerClient::ContentApicontent_add_postPOST /content/addAdd new content
SwaggerClient::ContentApicontent_aggregated_content_getGET /content/aggregated/{content}Get aggregated content stats
SwaggerClient::ContentApicontent_all_deals_getGET /content/all-dealsGet all deals for a user
SwaggerClient::ContentApicontent_bw_usage_content_getGET /content/bw-usage/{content}Get content bandwidth
SwaggerClient::ContentApicontent_create_postPOST /content/createAdd a new content
SwaggerClient::ContentApicontent_deals_getGET /content/dealsContent with deals
SwaggerClient::ContentApicontent_ensure_replication_datacid_getGET /content/ensure-replication/{datacid}Ensure Replication
SwaggerClient::ContentApicontent_failures_content_getGET /content/failures/{content}List all failures for a content
SwaggerClient::ContentApicontent_id_getGET /content/{id}Content
SwaggerClient::ContentApicontent_importdeal_postPOST /content/importdealImport a deal
SwaggerClient::ContentApicontent_list_getGET /content/listList all pinned content
SwaggerClient::ContentApicontent_read_cont_getGET /content/read/{cont}Read content
SwaggerClient::ContentApicontent_staging_zones_getGET /content/staging-zonesGet staging zone for user
SwaggerClient::ContentApicontent_stats_getGET /content/statsGet content statistics
SwaggerClient::ContentApicontent_status_id_getGET /content/status/{id}Content Status
SwaggerClient::DealsApideal_estimate_postPOST /deal/estimateEstimate the cost of a deal
SwaggerClient::DealsApideal_info_dealid_getGET /deal/info/{dealid}Get Deal Info
SwaggerClient::DealsApideal_proposal_propcid_getGET /deal/proposal/{propcid}Get Proposal
SwaggerClient::DealsApideal_query_miner_getGET /deal/query/{miner}Query Ask
SwaggerClient::DealsApideal_status_by_proposal_propcid_getGET /deal/status-by-proposal/{propcid}Get Deal Status by PropCid
SwaggerClient::DealsApideal_status_miner_propcid_getGET /deal/status/{miner}/{propcid}Deal Status
SwaggerClient::DealsApideal_transfer_in_progress_getGET /deal/transfer/in-progressTransfer In Progress
SwaggerClient::DealsApideals_failures_getGET /deals/failuresGet storage failures for user
SwaggerClient::DealsApideals_make_miner_postPOST /deals/make/{miner}Make Deal
SwaggerClient::DealsApideals_status_deal_getGET /deals/status/{deal}Get Deal Status
SwaggerClient::DealsApipublic_deals_failures_getGET /public/deals/failuresGet storage failures
SwaggerClient::DealsApipublic_miners_storage_query_miner_getGET /public/miners/storage/query/{miner}Query Ask
SwaggerClient::DefaultApideal_transfer_status_postPOST /deal/transfer/status
SwaggerClient::MetricsApipublic_metrics_deals_on_chain_getGET /public/metrics/deals-on-chainGet deal metrics
SwaggerClient::MinerApipublic_miners_deals_miner_getGET /public/miners/deals/{miner}Get all miners deals
SwaggerClient::MinerApipublic_miners_stats_miner_getGET /public/miners/stats/{miner}Get miner stats
SwaggerClient::NetApinet_addrs_getGET /net/addrsNet Addrs
SwaggerClient::NetApipublic_miners_failures_miner_getGET /public/miners/failures/{miner}Get all miners
SwaggerClient::NetApipublic_miners_getGET /public/minersGet all miners
SwaggerClient::NetApipublic_net_addrs_getGET /public/net/addrsNet Addrs
SwaggerClient::NetApipublic_net_peers_getGET /public/net/peersNet Peers
SwaggerClient::PeeringApiadmin_peering_peers_deleteDELETE /admin/peering/peersRemove peers on Peering Service
SwaggerClient::PeeringApiadmin_peering_peers_getGET /admin/peering/peersList all Peering peers
SwaggerClient::PeeringApiadmin_peering_peers_postPOST /admin/peering/peersAdd peers on Peering Service
SwaggerClient::PeeringApiadmin_peering_start_postPOST /admin/peering/startStart Peering
SwaggerClient::PeeringApiadmin_peering_status_getGET /admin/peering/statusCheck Peering Status
SwaggerClient::PeeringApiadmin_peering_stop_postPOST /admin/peering/stopStop Peering
SwaggerClient::PeersApiadmin_peering_peers_deleteDELETE /admin/peering/peersRemove peers on Peering Service
SwaggerClient::PeersApiadmin_peering_peers_getGET /admin/peering/peersList all Peering peers
SwaggerClient::PeersApiadmin_peering_peers_postPOST /admin/peering/peersAdd peers on Peering Service
SwaggerClient::PeersApiadmin_peering_start_postPOST /admin/peering/startStart Peering
SwaggerClient::PeersApiadmin_peering_status_getGET /admin/peering/statusCheck Peering Status
SwaggerClient::PeersApiadmin_peering_stop_postPOST /admin/peering/stopStop Peering
SwaggerClient::PinningApipinning_pins_getGET /pinning/pinsList all pin status objects
SwaggerClient::PinningApipinning_pins_pinid_deleteDELETE /pinning/pins/{pinid}Delete a pinned object
SwaggerClient::PinningApipinning_pins_pinid_getGET /pinning/pins/{pinid}Get a pin status object
SwaggerClient::PinningApipinning_pins_pinid_postPOST /pinning/pins/{pinid}Replace a pinned object
SwaggerClient::PinningApipinning_pins_postPOST /pinning/pinsAdd and pin object
SwaggerClient::PublicApipublic_by_cid_cid_getGET /public/by-cid/{cid}Get Content by Cid
SwaggerClient::PublicApipublic_info_getGET /public/infoGet public node info
SwaggerClient::PublicApipublic_metrics_deals_on_chain_getGET /public/metrics/deals-on-chainGet deal metrics
SwaggerClient::PublicApipublic_miners_deals_miner_getGET /public/miners/deals/{miner}Get all miners deals
SwaggerClient::PublicApipublic_miners_failures_miner_getGET /public/miners/failures/{miner}Get all miners
SwaggerClient::PublicApipublic_miners_getGET /public/minersGet all miners
SwaggerClient::PublicApipublic_miners_stats_miner_getGET /public/miners/stats/{miner}Get miner stats
SwaggerClient::PublicApipublic_net_addrs_getGET /public/net/addrsNet Addrs
SwaggerClient::PublicApipublic_net_peers_getGET /public/net/peersNet Peers
SwaggerClient::PublicApipublic_stats_getGET /public/statsPublic stats
SwaggerClient::UserApiuser_api_keys_getGET /user/api-keysGet API keys for a user
SwaggerClient::UserApiuser_api_keys_key_deleteDELETE /user/api-keys/{key}Revoke a User API Key.
SwaggerClient::UserApiuser_api_keys_postPOST /user/api-keysCreate API keys for a user
SwaggerClient::UserApiuser_export_getGET /user/exportExport user data
SwaggerClient::UserApiuser_stats_getGET /user/statsCreate API keys for a user

Documentation for Models

Documentation for Authorization

bearerAuth

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header