harbor2_legacy_client
Harbor2LegacyClient - the Ruby gem for the Harbor API
These APIs provide services for manipulating Harbor project.
This SDK is automatically generated by the Swagger Codegen project:
- API version: 2.0
- Package version: 2.3.3.1
- Build package: io.swagger.codegen.languages.RubyClientCodegen
Installation
Build a gem
To build the Ruby code into a gem:
gem build harbor2_legacy_client.gemspec
Then either install the gem locally:
gem install ./harbor2_legacy_client-2.3.3.1.gem
(for development, run gem install --dev ./harbor2_legacy_client-2.3.3.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 'harbor2_legacy_client', '~> 2.3.3.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 'harbor2_legacy_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 'harbor2_legacy_client'
# Setup authorization
Harbor2LegacyClient.configure do |config|
# Configure HTTP basic authorization: basicAuth
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = Harbor2LegacyClient::ChartRepositoryApi.new
repo = 'repo_example' # String | The project name
name = 'name_example' # String | The chart name
version = 'version_example' # String | The chart version
begin
#Return the attahced labels of chart.
api_instance.chartrepo_repo_charts_name_version_labels_get(repo, name, version)
rescue Harbor2LegacyClient::ApiError => e
puts "Exception when calling ChartRepositoryApi->chartrepo_repo_charts_name_version_labels_get: #{e}"
end
Documentation for API Endpoints
All URIs are relative to http://localhost/api/v2.0
Class | Method | HTTP request | Description |
---|---|---|---|
Harbor2LegacyClient::ChartRepositoryApi | chartrepo_repo_charts_name_version_labels_get | GET /chartrepo/{repo}/charts/{name}/{version}/labels | Return the attahced labels of chart. |
Harbor2LegacyClient::ChartRepositoryApi | chartrepo_repo_charts_name_version_labels_id_delete | DELETE /chartrepo/{repo}/charts/{name}/{version}/labels/{id} | Remove label from chart. |
Harbor2LegacyClient::ChartRepositoryApi | chartrepo_repo_charts_name_version_labels_post | POST /chartrepo/{repo}/charts/{name}/{version}/labels | Mark label to chart. |
Harbor2LegacyClient::LabelApi | chartrepo_repo_charts_name_version_labels_get | GET /chartrepo/{repo}/charts/{name}/{version}/labels | Return the attahced labels of chart. |
Harbor2LegacyClient::LabelApi | chartrepo_repo_charts_name_version_labels_id_delete | DELETE /chartrepo/{repo}/charts/{name}/{version}/labels/{id} | Remove label from chart. |
Harbor2LegacyClient::LabelApi | chartrepo_repo_charts_name_version_labels_post | POST /chartrepo/{repo}/charts/{name}/{version}/labels | Mark label to chart. |
Harbor2LegacyClient::ProductsApi | chartrepo_repo_charts_name_version_labels_get | GET /chartrepo/{repo}/charts/{name}/{version}/labels | Return the attahced labels of chart. |
Harbor2LegacyClient::ProductsApi | chartrepo_repo_charts_name_version_labels_id_delete | DELETE /chartrepo/{repo}/charts/{name}/{version}/labels/{id} | Remove label from chart. |
Harbor2LegacyClient::ProductsApi | chartrepo_repo_charts_name_version_labels_post | POST /chartrepo/{repo}/charts/{name}/{version}/labels | Mark label to chart. |
Harbor2LegacyClient::ProductsApi | email_ping_post | POST /email/ping | Test connection and authentication with email server. |
Documentation for Models
- Harbor2LegacyClient::BadRequestFormatedError
- Harbor2LegacyClient::ChartAPIError
- Harbor2LegacyClient::ChartMetadata
- Harbor2LegacyClient::ChartVersion
- Harbor2LegacyClient::ComponentOverviewEntry
- Harbor2LegacyClient::ConflictFormatedError
- Harbor2LegacyClient::EmailServerSetting
- Harbor2LegacyClient::ForbiddenChartAPIError
- Harbor2LegacyClient::InsufficientStorageChartAPIError
- Harbor2LegacyClient::InternalChartAPIError
- Harbor2LegacyClient::Label
- Harbor2LegacyClient::Labels
- Harbor2LegacyClient::Namespace
- Harbor2LegacyClient::NotFoundChartAPIError
- Harbor2LegacyClient::Permission
- Harbor2LegacyClient::UnauthorizedChartAPIError
Documentation for Authorization
basicAuth
- Type: HTTP basic authentication