TopologicalInventoryIngressApiClient - the Ruby gem for the Topological Inventory Ingress API
Topological Inventory Ingress API
This SDK is automatically generated by the OpenAPI Generator project:
- API version: 0.0.2
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
To build the Ruby code into a gem:
gem build topological_inventory-ingress_api-client.gemspec
Then either install the gem locally:
gem install ./topological_inventory-ingress_api-client-1.0.0.gem
(for development, run gem install --dev ./topological_inventory-ingress_api-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 'topological_inventory-ingress_api-client', '~> 1.0.0'
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 'topological_inventory-ingress_api-client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
Include the Ruby code directly using -I
as follows:
ruby -Ilib script.rb
Please follow the installation procedure and then run the following code:
# Load the gem
require 'topological_inventory-ingress_api-client'
# Setup authorization
TopologicalInventoryIngressApiClient.configure do |config|
# Configure HTTP basic authorization: UserSecurity
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = TopologicalInventoryIngressApiClient::DefaultApi.new
opts = {
inventory: TopologicalInventoryIngressApiClient::Inventory.new # Inventory | Inventory payload
}
begin
#save inventory
api_instance.save_inventory(opts)
rescue TopologicalInventoryIngressApiClient::ApiError => e
puts "Exception when calling DefaultApi->save_inventory: #{e}"
end
All URIs are relative to http://localhost/topological_inventory/ingress_api/0.0.2
Class | Method | HTTP request | Description |
---|---|---|---|
TopologicalInventoryIngressApiClient::DefaultApi | save_inventory | POST /inventory | save inventory |
TopologicalInventoryIngressApiClient::DefaultApi | search_schemas | GET /schemas | searches schemas |
- TopologicalInventoryIngressApiClient::Container
- TopologicalInventoryIngressApiClient::ContainerGroup
- TopologicalInventoryIngressApiClient::ContainerGroupTag
- TopologicalInventoryIngressApiClient::ContainerImage
- TopologicalInventoryIngressApiClient::ContainerImageTag
- TopologicalInventoryIngressApiClient::ContainerNode
- TopologicalInventoryIngressApiClient::ContainerNodeTag
- TopologicalInventoryIngressApiClient::ContainerProject
- TopologicalInventoryIngressApiClient::ContainerProjectTag
- TopologicalInventoryIngressApiClient::ContainerTemplate
- TopologicalInventoryIngressApiClient::ContainerTemplateTag
- TopologicalInventoryIngressApiClient::Flavor
- TopologicalInventoryIngressApiClient::Inventory
- TopologicalInventoryIngressApiClient::InventoryCollection
- TopologicalInventoryIngressApiClient::InventoryObjectLazy
- TopologicalInventoryIngressApiClient::OrchestrationStack
- TopologicalInventoryIngressApiClient::Schema
- TopologicalInventoryIngressApiClient::ServiceInstance
- TopologicalInventoryIngressApiClient::ServiceOffering
- TopologicalInventoryIngressApiClient::ServiceOfferingIcon
- TopologicalInventoryIngressApiClient::ServiceOfferingTag
- TopologicalInventoryIngressApiClient::ServicePlan
- TopologicalInventoryIngressApiClient::Source
- TopologicalInventoryIngressApiClient::SourceRegion
- TopologicalInventoryIngressApiClient::Subscription
- TopologicalInventoryIngressApiClient::Tag
- TopologicalInventoryIngressApiClient::Vm
- TopologicalInventoryIngressApiClient::VmTag
- TopologicalInventoryIngressApiClient::Volume
- TopologicalInventoryIngressApiClient::VolumeAttachment
- TopologicalInventoryIngressApiClient::VolumeType
- Type: HTTP basic authentication