Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pulp_file_client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pulp_file_client

  • 3.68.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

pulp_file_client

PulpFileClient - the Ruby gem for the Pulp 3 API

Fetch, Upload, Organize, and Distribute Software Packages

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: v3
  • Package version: 3.68.0
  • Build package: org.openapitools.codegen.languages.RubyClientCodegen For more information, please visit https://pulpproject.org

Installation

Build a gem

To build the Ruby code into a gem:

gem build pulp_file_client.gemspec

Then either install the gem locally:

gem install ./pulp_file_client-3.68.0.gem

(for development, run gem install --dev ./pulp_file_client-3.68.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 'pulp_file_client', '~> 3.68.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 'pulp_file_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_file_client'

# Setup authorization
PulpFileClient.configure do |config|
  # Configure HTTP basic authorization: basicAuth
  config.username = 'YOUR_USERNAME'
  config.password = 'YOUR_PASSWORD'
end

api_instance = PulpFileClient::AcsFileApi.new
file_file_alternate_content_source_href = 'file_file_alternate_content_source_href_example' # String | 
nested_role = PulpFileClient::NestedRole.new # NestedRole | 

begin
  #Add a role
  result = api_instance.add_role(file_file_alternate_content_source_href, nested_role)
  p result
rescue PulpFileClient::ApiError => e
  puts "Exception when calling AcsFileApi->add_role: #{e}"
end

Documentation for API Endpoints

All URIs are relative to http://localhost:24817

ClassMethodHTTP requestDescription
PulpFileClient::AcsFileApiadd_rolePOST {file_file_alternate_content_source_href}add_role/Add a role
PulpFileClient::AcsFileApicreatePOST /pulp/api/v3/acs/file/file/Create a file alternate content source
PulpFileClient::AcsFileApideleteDELETE {file_file_alternate_content_source_href}Delete a file alternate content source
PulpFileClient::AcsFileApilistGET /pulp/api/v3/acs/file/file/List file alternate content sources
PulpFileClient::AcsFileApilist_rolesGET {file_file_alternate_content_source_href}list_roles/List roles
PulpFileClient::AcsFileApimy_permissionsGET {file_file_alternate_content_source_href}my_permissions/List user permissions
PulpFileClient::AcsFileApipartial_updatePATCH {file_file_alternate_content_source_href}Update a file alternate content source
PulpFileClient::AcsFileApireadGET {file_file_alternate_content_source_href}Inspect a file alternate content source
PulpFileClient::AcsFileApirefreshPOST {file_file_alternate_content_source_href}refresh/Refresh metadata
PulpFileClient::AcsFileApiremove_rolePOST {file_file_alternate_content_source_href}remove_role/Remove a role
PulpFileClient::AcsFileApiupdatePUT {file_file_alternate_content_source_href}Update a file alternate content source
PulpFileClient::ContentFilesApicreatePOST /pulp/api/v3/content/file/files/Create a file content
PulpFileClient::ContentFilesApilistGET /pulp/api/v3/content/file/files/List file contents
PulpFileClient::ContentFilesApireadGET {file_file_content_href}Inspect a file content
PulpFileClient::DistributionsFileApiadd_rolePOST {file_file_distribution_href}add_role/Add a role
PulpFileClient::DistributionsFileApicreatePOST /pulp/api/v3/distributions/file/file/Create a file distribution
PulpFileClient::DistributionsFileApideleteDELETE {file_file_distribution_href}Delete a file distribution
PulpFileClient::DistributionsFileApilistGET /pulp/api/v3/distributions/file/file/List file distributions
PulpFileClient::DistributionsFileApilist_rolesGET {file_file_distribution_href}list_roles/List roles
PulpFileClient::DistributionsFileApimy_permissionsGET {file_file_distribution_href}my_permissions/List user permissions
PulpFileClient::DistributionsFileApipartial_updatePATCH {file_file_distribution_href}Update a file distribution
PulpFileClient::DistributionsFileApireadGET {file_file_distribution_href}Inspect a file distribution
PulpFileClient::DistributionsFileApiremove_rolePOST {file_file_distribution_href}remove_role/Remove a role
PulpFileClient::DistributionsFileApiset_labelPOST {file_file_distribution_href}set_label/Set a label
PulpFileClient::DistributionsFileApiunset_labelPOST {file_file_distribution_href}unset_label/Unset a label
PulpFileClient::DistributionsFileApiupdatePUT {file_file_distribution_href}Update a file distribution
PulpFileClient::PublicationsFileApiadd_rolePOST {file_file_publication_href}add_role/Add a role
PulpFileClient::PublicationsFileApicreatePOST /pulp/api/v3/publications/file/file/Create a file publication
PulpFileClient::PublicationsFileApideleteDELETE {file_file_publication_href}Delete a file publication
PulpFileClient::PublicationsFileApilistGET /pulp/api/v3/publications/file/file/List file publications
PulpFileClient::PublicationsFileApilist_rolesGET {file_file_publication_href}list_roles/List roles
PulpFileClient::PublicationsFileApimy_permissionsGET {file_file_publication_href}my_permissions/List user permissions
PulpFileClient::PublicationsFileApireadGET {file_file_publication_href}Inspect a file publication
PulpFileClient::PublicationsFileApiremove_rolePOST {file_file_publication_href}remove_role/Remove a role
PulpFileClient::RemotesFileApiadd_rolePOST {file_file_remote_href}add_role/Add a role
PulpFileClient::RemotesFileApicreatePOST /pulp/api/v3/remotes/file/file/Create a file remote
PulpFileClient::RemotesFileApideleteDELETE {file_file_remote_href}Delete a file remote
PulpFileClient::RemotesFileApilistGET /pulp/api/v3/remotes/file/file/List file remotes
PulpFileClient::RemotesFileApilist_rolesGET {file_file_remote_href}list_roles/List roles
PulpFileClient::RemotesFileApimy_permissionsGET {file_file_remote_href}my_permissions/List user permissions
PulpFileClient::RemotesFileApipartial_updatePATCH {file_file_remote_href}Update a file remote
PulpFileClient::RemotesFileApireadGET {file_file_remote_href}Inspect a file remote
PulpFileClient::RemotesFileApiremove_rolePOST {file_file_remote_href}remove_role/Remove a role
PulpFileClient::RemotesFileApiset_labelPOST {file_file_remote_href}set_label/Set a label
PulpFileClient::RemotesFileApiunset_labelPOST {file_file_remote_href}unset_label/Unset a label
PulpFileClient::RemotesFileApiupdatePUT {file_file_remote_href}Update a file remote
PulpFileClient::RepositoriesFileApiadd_rolePOST {file_file_repository_href}add_role/Add a role
PulpFileClient::RepositoriesFileApicreatePOST /pulp/api/v3/repositories/file/file/Create a file repository
PulpFileClient::RepositoriesFileApideleteDELETE {file_file_repository_href}Delete a file repository
PulpFileClient::RepositoriesFileApilistGET /pulp/api/v3/repositories/file/file/List file repositorys
PulpFileClient::RepositoriesFileApilist_rolesGET {file_file_repository_href}list_roles/List roles
PulpFileClient::RepositoriesFileApimodifyPOST {file_file_repository_href}modify/Modify Repository Content
PulpFileClient::RepositoriesFileApimy_permissionsGET {file_file_repository_href}my_permissions/List user permissions
PulpFileClient::RepositoriesFileApipartial_updatePATCH {file_file_repository_href}Update a file repository
PulpFileClient::RepositoriesFileApireadGET {file_file_repository_href}Inspect a file repository
PulpFileClient::RepositoriesFileApiremove_rolePOST {file_file_repository_href}remove_role/Remove a role
PulpFileClient::RepositoriesFileApiset_labelPOST {file_file_repository_href}set_label/Set a label
PulpFileClient::RepositoriesFileApisyncPOST {file_file_repository_href}sync/Sync from a remote
PulpFileClient::RepositoriesFileApiunset_labelPOST {file_file_repository_href}unset_label/Unset a label
PulpFileClient::RepositoriesFileApiupdatePUT {file_file_repository_href}Update a file repository
PulpFileClient::RepositoriesFileVersionsApideleteDELETE {file_file_repository_version_href}Delete a repository version
PulpFileClient::RepositoriesFileVersionsApilistGET {file_file_repository_href}versions/List repository versions
PulpFileClient::RepositoriesFileVersionsApireadGET {file_file_repository_version_href}Inspect a repository version
PulpFileClient::RepositoriesFileVersionsApirepairPOST {file_file_repository_version_href}repair/

Documentation for Models

Documentation for Authorization

basicAuth

  • Type: HTTP basic authentication

FAQs

Package last updated on 12 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc