pulp_certguard_client
PulpCertguardClient - the Ruby gem for the Pulp 3 API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
This SDK is automatically generated by the OpenAPI Generator project:
- API version: v3
- Package version: 1.0.1
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
Installation
Build a gem
To build the Ruby code into a gem:
gem build pulp_certguard_client.gemspec
Then either install the gem locally:
gem install ./pulp_certguard_client-1.0.1.gem
(for development, run gem install --dev ./pulp_certguard_client-1.0.1.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 'pulp_certguard_client', '~> 1.0.1'
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 'pulp_certguard_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 'pulp_certguard_client'
# Setup authorization
PulpCertguardClient.configure do |config|
# Configure HTTP basic authorization: Basic
config.username = 'YOUR_USERNAME'
config.password = 'YOUR_PASSWORD'
end
api_instance = PulpCertguardClient::ContentguardsRhsmApi.new
data = PulpCertguardClient::CertguardRHSMCertGuard.new # CertguardRHSMCertGuard |
begin
#Create a rhsm cert guard
result = api_instance.create(data)
p result
rescue PulpCertguardClient::ApiError => e
puts "Exception when calling ContentguardsRhsmApi->create: #{e}"
end
Documentation for API Endpoints
All URIs are relative to http://pulp
Class | Method | HTTP request | Description |
---|---|---|---|
PulpCertguardClient::ContentguardsRhsmApi | create | POST /pulp/api/v3/contentguards/certguard/rhsm/ | Create a rhsm cert guard |
PulpCertguardClient::ContentguardsRhsmApi | delete | DELETE r_h_s_m_cert_guard_href | Delete a rhsm cert guard |
PulpCertguardClient::ContentguardsRhsmApi | list | GET /pulp/api/v3/contentguards/certguard/rhsm/ | List rhsm cert guards |
PulpCertguardClient::ContentguardsRhsmApi | partial_update | PATCH r_h_s_m_cert_guard_href | Partially update a rhsm cert guard |
PulpCertguardClient::ContentguardsRhsmApi | read | GET r_h_s_m_cert_guard_href | Inspect a rhsm cert guard |
PulpCertguardClient::ContentguardsRhsmApi | update | PUT r_h_s_m_cert_guard_href | Update a rhsm cert guard |
PulpCertguardClient::ContentguardsX509Api | create | POST /pulp/api/v3/contentguards/certguard/x509/ | Create a x509 cert guard |
PulpCertguardClient::ContentguardsX509Api | delete | DELETE x509_cert_guard_href | Delete a x509 cert guard |
PulpCertguardClient::ContentguardsX509Api | list | GET /pulp/api/v3/contentguards/certguard/x509/ | List x509 cert guards |
PulpCertguardClient::ContentguardsX509Api | partial_update | PATCH x509_cert_guard_href | Partially update a x509 cert guard |
PulpCertguardClient::ContentguardsX509Api | read | GET x509_cert_guard_href | Inspect a x509 cert guard |
PulpCertguardClient::ContentguardsX509Api | update | PUT x509_cert_guard_href | Update a x509 cert guard |
Documentation for Models
- PulpCertguardClient::CertguardRHSMCertGuard
- PulpCertguardClient::CertguardX509CertGuard
- PulpCertguardClient::InlineResponse200
- PulpCertguardClient::InlineResponse2001
Documentation for Authorization
Basic
- Type: HTTP basic authentication