pulp_gem_client 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +160 -0
- data/Rakefile +10 -0
- data/docs/AsyncOperationResponse.md +17 -0
- data/docs/ContentGemApi.md +210 -0
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/DistributionsGemApi.md +382 -0
- data/docs/GemGemContent.md +21 -0
- data/docs/GemGemContentResponse.md +35 -0
- data/docs/GemGemDistribution.md +31 -0
- data/docs/GemGemDistributionResponse.md +37 -0
- data/docs/GemGemPublication.md +19 -0
- data/docs/GemGemPublicationResponse.md +23 -0
- data/docs/GemGemRemote.md +63 -0
- data/docs/GemGemRemoteResponse.md +61 -0
- data/docs/GemGemRemoteResponseHiddenFields.md +19 -0
- data/docs/GemGemRepository.md +25 -0
- data/docs/GemGemRepositoryResponse.md +33 -0
- data/docs/PaginatedRepositoryVersionResponseList.md +23 -0
- data/docs/PaginatedgemGemContentResponseList.md +23 -0
- data/docs/PaginatedgemGemDistributionResponseList.md +23 -0
- data/docs/PaginatedgemGemPublicationResponseList.md +23 -0
- data/docs/PaginatedgemGemRemoteResponseList.md +23 -0
- data/docs/PaginatedgemGemRepositoryResponseList.md +23 -0
- data/docs/PatchedgemGemDistribution.md +31 -0
- data/docs/PatchedgemGemRemote.md +63 -0
- data/docs/PatchedgemGemRepository.md +25 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/PublicationsGemApi.md +263 -0
- data/docs/RemotesGemApi.md +380 -0
- data/docs/Repair.md +17 -0
- data/docs/RepositoriesGemApi.md +502 -0
- data/docs/RepositoriesGemVersionsApi.md +273 -0
- data/docs/RepositoryAddRemoveContent.md +21 -0
- data/docs/RepositorySyncURL.md +19 -0
- data/docs/RepositoryVersionResponse.md +27 -0
- data/lib/pulp_gem_client/api/content_gem_api.rb +259 -0
- data/lib/pulp_gem_client/api/distributions_gem_api.rb +476 -0
- data/lib/pulp_gem_client/api/publications_gem_api.rb +325 -0
- data/lib/pulp_gem_client/api/remotes_gem_api.rb +473 -0
- data/lib/pulp_gem_client/api/repositories_gem_api.rb +628 -0
- data/lib/pulp_gem_client/api/repositories_gem_versions_api.rb +346 -0
- data/lib/pulp_gem_client/api_client.rb +403 -0
- data/lib/pulp_gem_client/api_error.rb +57 -0
- data/lib/pulp_gem_client/configuration.rb +251 -0
- data/lib/pulp_gem_client/models/async_operation_response.rb +213 -0
- data/lib/pulp_gem_client/models/content_summary_response.rb +246 -0
- data/lib/pulp_gem_client/models/gem_gem_content.rb +228 -0
- data/lib/pulp_gem_client/models/gem_gem_content_response.rb +303 -0
- data/lib/pulp_gem_client/models/gem_gem_distribution.rb +333 -0
- data/lib/pulp_gem_client/models/gem_gem_distribution_response.rb +324 -0
- data/lib/pulp_gem_client/models/gem_gem_publication.rb +217 -0
- data/lib/pulp_gem_client/models/gem_gem_publication_response.rb +236 -0
- data/lib/pulp_gem_client/models/gem_gem_remote.rb +704 -0
- data/lib/pulp_gem_client/models/gem_gem_remote_response.rb +532 -0
- data/lib/pulp_gem_client/models/gem_gem_remote_response_hidden_fields.rb +215 -0
- data/lib/pulp_gem_client/models/gem_gem_repository.rb +306 -0
- data/lib/pulp_gem_client/models/gem_gem_repository_response.rb +309 -0
- data/lib/pulp_gem_client/models/paginated_repository_version_response_list.rb +237 -0
- data/lib/pulp_gem_client/models/paginatedgem_gem_content_response_list.rb +237 -0
- data/lib/pulp_gem_client/models/paginatedgem_gem_distribution_response_list.rb +237 -0
- data/lib/pulp_gem_client/models/paginatedgem_gem_publication_response_list.rb +237 -0
- data/lib/pulp_gem_client/models/paginatedgem_gem_remote_response_list.rb +237 -0
- data/lib/pulp_gem_client/models/paginatedgem_gem_repository_response_list.rb +237 -0
- data/lib/pulp_gem_client/models/patchedgem_gem_distribution.rb +315 -0
- data/lib/pulp_gem_client/models/patchedgem_gem_remote.rb +686 -0
- data/lib/pulp_gem_client/models/patchedgem_gem_repository.rb +297 -0
- data/lib/pulp_gem_client/models/policy_enum.rb +37 -0
- data/lib/pulp_gem_client/models/repair.rb +209 -0
- data/lib/pulp_gem_client/models/repository_add_remove_content.rb +232 -0
- data/lib/pulp_gem_client/models/repository_sync_url.rb +220 -0
- data/lib/pulp_gem_client/models/repository_version_response.rb +255 -0
- data/lib/pulp_gem_client/version.rb +15 -0
- data/lib/pulp_gem_client.rb +72 -0
- data/pulp_gem_client.gemspec +39 -0
- data/spec/api/content_gem_api_spec.rb +88 -0
- data/spec/api/distributions_gem_api_spec.rb +130 -0
- data/spec/api/publications_gem_api_spec.rb +101 -0
- data/spec/api/remotes_gem_api_spec.rb +129 -0
- data/spec/api/repositories_gem_api_spec.rb +160 -0
- data/spec/api/repositories_gem_versions_api_spec.rb +105 -0
- data/spec/api_client_spec.rb +188 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/async_operation_response_spec.rb +41 -0
- data/spec/models/content_summary_response_spec.rb +53 -0
- data/spec/models/gem_gem_content_response_spec.rb +95 -0
- data/spec/models/gem_gem_content_spec.rb +53 -0
- data/spec/models/gem_gem_distribution_response_spec.rb +101 -0
- data/spec/models/gem_gem_distribution_spec.rb +83 -0
- data/spec/models/gem_gem_publication_response_spec.rb +59 -0
- data/spec/models/gem_gem_publication_spec.rb +47 -0
- data/spec/models/gem_gem_remote_response_hidden_fields_spec.rb +47 -0
- data/spec/models/gem_gem_remote_response_spec.rb +173 -0
- data/spec/models/gem_gem_remote_spec.rb +179 -0
- data/spec/models/gem_gem_repository_response_spec.rb +89 -0
- data/spec/models/gem_gem_repository_spec.rb +65 -0
- data/spec/models/paginated_repository_version_response_list_spec.rb +59 -0
- data/spec/models/paginatedgem_gem_content_response_list_spec.rb +59 -0
- data/spec/models/paginatedgem_gem_distribution_response_list_spec.rb +59 -0
- data/spec/models/paginatedgem_gem_publication_response_list_spec.rb +59 -0
- data/spec/models/paginatedgem_gem_remote_response_list_spec.rb +59 -0
- data/spec/models/paginatedgem_gem_repository_response_list_spec.rb +59 -0
- data/spec/models/patchedgem_gem_distribution_spec.rb +83 -0
- data/spec/models/patchedgem_gem_remote_spec.rb +179 -0
- data/spec/models/patchedgem_gem_repository_spec.rb +65 -0
- data/spec/models/policy_enum_spec.rb +35 -0
- data/spec/models/repair_spec.rb +41 -0
- data/spec/models/repository_add_remove_content_spec.rb +53 -0
- data/spec/models/repository_sync_url_spec.rb +47 -0
- data/spec/models/repository_version_response_spec.rb +71 -0
- data/spec/spec_helper.rb +111 -0
- metadata +250 -0
@@ -0,0 +1,15 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
module PulpGemClient
|
14
|
+
VERSION = '0.1.0'
|
15
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
# Common files
|
14
|
+
require 'pulp_gem_client/api_client'
|
15
|
+
require 'pulp_gem_client/api_error'
|
16
|
+
require 'pulp_gem_client/version'
|
17
|
+
require 'pulp_gem_client/configuration'
|
18
|
+
|
19
|
+
# Models
|
20
|
+
require 'pulp_gem_client/models/async_operation_response'
|
21
|
+
require 'pulp_gem_client/models/content_summary_response'
|
22
|
+
require 'pulp_gem_client/models/gem_gem_content'
|
23
|
+
require 'pulp_gem_client/models/gem_gem_content_response'
|
24
|
+
require 'pulp_gem_client/models/gem_gem_distribution'
|
25
|
+
require 'pulp_gem_client/models/gem_gem_distribution_response'
|
26
|
+
require 'pulp_gem_client/models/gem_gem_publication'
|
27
|
+
require 'pulp_gem_client/models/gem_gem_publication_response'
|
28
|
+
require 'pulp_gem_client/models/gem_gem_remote'
|
29
|
+
require 'pulp_gem_client/models/gem_gem_remote_response'
|
30
|
+
require 'pulp_gem_client/models/gem_gem_remote_response_hidden_fields'
|
31
|
+
require 'pulp_gem_client/models/gem_gem_repository'
|
32
|
+
require 'pulp_gem_client/models/gem_gem_repository_response'
|
33
|
+
require 'pulp_gem_client/models/paginated_repository_version_response_list'
|
34
|
+
require 'pulp_gem_client/models/paginatedgem_gem_content_response_list'
|
35
|
+
require 'pulp_gem_client/models/paginatedgem_gem_distribution_response_list'
|
36
|
+
require 'pulp_gem_client/models/paginatedgem_gem_publication_response_list'
|
37
|
+
require 'pulp_gem_client/models/paginatedgem_gem_remote_response_list'
|
38
|
+
require 'pulp_gem_client/models/paginatedgem_gem_repository_response_list'
|
39
|
+
require 'pulp_gem_client/models/patchedgem_gem_distribution'
|
40
|
+
require 'pulp_gem_client/models/patchedgem_gem_remote'
|
41
|
+
require 'pulp_gem_client/models/patchedgem_gem_repository'
|
42
|
+
require 'pulp_gem_client/models/policy_enum'
|
43
|
+
require 'pulp_gem_client/models/repair'
|
44
|
+
require 'pulp_gem_client/models/repository_add_remove_content'
|
45
|
+
require 'pulp_gem_client/models/repository_sync_url'
|
46
|
+
require 'pulp_gem_client/models/repository_version_response'
|
47
|
+
|
48
|
+
# APIs
|
49
|
+
require 'pulp_gem_client/api/content_gem_api'
|
50
|
+
require 'pulp_gem_client/api/distributions_gem_api'
|
51
|
+
require 'pulp_gem_client/api/publications_gem_api'
|
52
|
+
require 'pulp_gem_client/api/remotes_gem_api'
|
53
|
+
require 'pulp_gem_client/api/repositories_gem_api'
|
54
|
+
require 'pulp_gem_client/api/repositories_gem_versions_api'
|
55
|
+
|
56
|
+
module PulpGemClient
|
57
|
+
class << self
|
58
|
+
# Customize default settings for the SDK using block.
|
59
|
+
# PulpGemClient.configure do |config|
|
60
|
+
# config.username = "xxx"
|
61
|
+
# config.password = "xxx"
|
62
|
+
# end
|
63
|
+
# If no block given, return the default Configuration object.
|
64
|
+
def configure
|
65
|
+
if block_given?
|
66
|
+
yield(Configuration.default)
|
67
|
+
else
|
68
|
+
Configuration.default
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
=begin
|
4
|
+
#Pulp 3 API
|
5
|
+
|
6
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
7
|
+
|
8
|
+
The version of the OpenAPI document: v3
|
9
|
+
Contact: pulp-list@redhat.com
|
10
|
+
Generated by: https://openapi-generator.tech
|
11
|
+
OpenAPI Generator version: 4.3.1
|
12
|
+
|
13
|
+
=end
|
14
|
+
|
15
|
+
$:.push File.expand_path("../lib", __FILE__)
|
16
|
+
require "pulp_gem_client/version"
|
17
|
+
|
18
|
+
Gem::Specification.new do |s|
|
19
|
+
s.name = "pulp_gem_client"
|
20
|
+
s.version = PulpGemClient::VERSION
|
21
|
+
s.platform = Gem::Platform::RUBY
|
22
|
+
s.authors = ["OpenAPI-Generator"]
|
23
|
+
s.email = ["pulp-list@redhat.com"]
|
24
|
+
s.homepage = "https://github.com/pulp/pulp_gem"
|
25
|
+
s.summary = "Pulp 3 API Ruby Gem"
|
26
|
+
s.description = "Fetch, Upload, Organize, and Distribute Software Packages"
|
27
|
+
s.license = 'GPLv2+'
|
28
|
+
s.required_ruby_version = ">= 1.9"
|
29
|
+
|
30
|
+
s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 2.0'
|
31
|
+
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
|
+
|
33
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
34
|
+
|
35
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
36
|
+
s.test_files = `find spec/*`.split("\n")
|
37
|
+
s.executables = []
|
38
|
+
s.require_paths = ["lib"]
|
39
|
+
end
|
@@ -0,0 +1,88 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PulpGemClient::ContentGemApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'ContentGemApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpGemClient::ContentGemApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of ContentGemApi' do
|
30
|
+
it 'should create an instance of ContentGemApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpGemClient::ContentGemApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create
|
36
|
+
# Create a gem content
|
37
|
+
# Trigger an asynchronous task to create content,optionally create new repository version.
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [String] :artifact Artifact file representing the physical content
|
40
|
+
# @option opts [File] :file An uploaded file that should be turned into the artifact of the content unit.
|
41
|
+
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
42
|
+
# @return [AsyncOperationResponse]
|
43
|
+
describe 'create test' do
|
44
|
+
it 'should work' do
|
45
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
# unit tests for list
|
50
|
+
# List gem contents
|
51
|
+
# A ViewSet for GemContent.
|
52
|
+
# @param [Hash] opts the optional parameters
|
53
|
+
# @option opts [String] :checksum Filter results where checksum matches value
|
54
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
55
|
+
# @option opts [String] :name Filter results where name matches value
|
56
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
57
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `checksum` - Checksum * `-checksum` - Checksum (descending) * `prerelease` - Prerelease * `-prerelease` - Prerelease (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `required_ruby_version` - Required ruby version * `-required_ruby_version` - Required ruby version (descending) * `required_rubygems_version` - Required rubygems version * `-required_rubygems_version` - Required rubygems version (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
58
|
+
# @option opts [Boolean] :prerelease Filter results where prerelease matches value
|
59
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
60
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
61
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
62
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
63
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
64
|
+
# @option opts [String] :version Filter results where version matches value
|
65
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
66
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
67
|
+
# @return [PaginatedgemGemContentResponseList]
|
68
|
+
describe 'list test' do
|
69
|
+
it 'should work' do
|
70
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
# unit tests for read
|
75
|
+
# Inspect a gem content
|
76
|
+
# A ViewSet for GemContent.
|
77
|
+
# @param gem_gem_content_href
|
78
|
+
# @param [Hash] opts the optional parameters
|
79
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
80
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
81
|
+
# @return [GemGemContentResponse]
|
82
|
+
describe 'read test' do
|
83
|
+
it 'should work' do
|
84
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
end
|
@@ -0,0 +1,130 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PulpGemClient::DistributionsGemApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'DistributionsGemApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpGemClient::DistributionsGemApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of DistributionsGemApi' do
|
30
|
+
it 'should create an instance of DistributionsGemApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpGemClient::DistributionsGemApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create
|
36
|
+
# Create a gem distribution
|
37
|
+
# Trigger an asynchronous create task
|
38
|
+
# @param gem_gem_distribution
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [AsyncOperationResponse]
|
41
|
+
describe 'create test' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# unit tests for delete
|
48
|
+
# Delete a gem distribution
|
49
|
+
# Trigger an asynchronous delete task
|
50
|
+
# @param gem_gem_distribution_href
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @return [AsyncOperationResponse]
|
53
|
+
describe 'delete test' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# unit tests for list
|
60
|
+
# List gem distributions
|
61
|
+
# ViewSet for GemDistributions.
|
62
|
+
# @param [Hash] opts the optional parameters
|
63
|
+
# @option opts [String] :base_path Filter results where base_path matches value
|
64
|
+
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
65
|
+
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
66
|
+
# @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
|
67
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
68
|
+
# @option opts [String] :name Filter results where name matches value
|
69
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
70
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
71
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
72
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
73
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
74
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
75
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
76
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
77
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
78
|
+
# @option opts [String] :repository Filter results where repository matches value
|
79
|
+
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
80
|
+
# @option opts [String] :with_content Filter distributions based on the content served by them
|
81
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
82
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
83
|
+
# @return [PaginatedgemGemDistributionResponseList]
|
84
|
+
describe 'list test' do
|
85
|
+
it 'should work' do
|
86
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
# unit tests for partial_update
|
91
|
+
# Update a gem distribution
|
92
|
+
# Trigger an asynchronous partial update task
|
93
|
+
# @param gem_gem_distribution_href
|
94
|
+
# @param patchedgem_gem_distribution
|
95
|
+
# @param [Hash] opts the optional parameters
|
96
|
+
# @return [AsyncOperationResponse]
|
97
|
+
describe 'partial_update test' do
|
98
|
+
it 'should work' do
|
99
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
# unit tests for read
|
104
|
+
# Inspect a gem distribution
|
105
|
+
# ViewSet for GemDistributions.
|
106
|
+
# @param gem_gem_distribution_href
|
107
|
+
# @param [Hash] opts the optional parameters
|
108
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
109
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
110
|
+
# @return [GemGemDistributionResponse]
|
111
|
+
describe 'read test' do
|
112
|
+
it 'should work' do
|
113
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
# unit tests for update
|
118
|
+
# Update a gem distribution
|
119
|
+
# Trigger an asynchronous update task
|
120
|
+
# @param gem_gem_distribution_href
|
121
|
+
# @param gem_gem_distribution
|
122
|
+
# @param [Hash] opts the optional parameters
|
123
|
+
# @return [AsyncOperationResponse]
|
124
|
+
describe 'update test' do
|
125
|
+
it 'should work' do
|
126
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
end
|
@@ -0,0 +1,101 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PulpGemClient::PublicationsGemApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'PublicationsGemApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpGemClient::PublicationsGemApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of PublicationsGemApi' do
|
30
|
+
it 'should create an instance of PublicationsGemApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpGemClient::PublicationsGemApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create
|
36
|
+
# Create a gem publication
|
37
|
+
# Trigger an asynchronous task to publish gem content
|
38
|
+
# @param gem_gem_publication
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [AsyncOperationResponse]
|
41
|
+
describe 'create test' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# unit tests for delete
|
48
|
+
# Delete a gem publication
|
49
|
+
# A ViewSet for GemPublication.
|
50
|
+
# @param gem_gem_publication_href
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @return [nil]
|
53
|
+
describe 'delete test' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# unit tests for list
|
60
|
+
# List gem publications
|
61
|
+
# A ViewSet for GemPublication.
|
62
|
+
# @param [Hash] opts the optional parameters
|
63
|
+
# @option opts [String] :content Content Unit referenced by HREF
|
64
|
+
# @option opts [String] :content__in Content Unit referenced by HREF
|
65
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
66
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
67
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `complete` - Complete * `-complete` - Complete (descending) * `pass_through` - Pass through * `-pass_through` - Pass through (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
68
|
+
# @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
|
69
|
+
# @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
|
70
|
+
# @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
71
|
+
# @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
|
72
|
+
# @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
73
|
+
# @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
74
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
75
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
76
|
+
# @option opts [String] :repository Repository referenced by HREF
|
77
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
78
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
79
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
80
|
+
# @return [PaginatedgemGemPublicationResponseList]
|
81
|
+
describe 'list test' do
|
82
|
+
it 'should work' do
|
83
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# unit tests for read
|
88
|
+
# Inspect a gem publication
|
89
|
+
# A ViewSet for GemPublication.
|
90
|
+
# @param gem_gem_publication_href
|
91
|
+
# @param [Hash] opts the optional parameters
|
92
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
93
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
94
|
+
# @return [GemGemPublicationResponse]
|
95
|
+
describe 'read test' do
|
96
|
+
it 'should work' do
|
97
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
end
|
@@ -0,0 +1,129 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PulpGemClient::RemotesGemApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'RemotesGemApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpGemClient::RemotesGemApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of RemotesGemApi' do
|
30
|
+
it 'should create an instance of RemotesGemApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpGemClient::RemotesGemApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create
|
36
|
+
# Create a gem remote
|
37
|
+
# A ViewSet for GemRemote.
|
38
|
+
# @param gem_gem_remote
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [GemGemRemoteResponse]
|
41
|
+
describe 'create test' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# unit tests for delete
|
48
|
+
# Delete a gem remote
|
49
|
+
# Trigger an asynchronous delete task
|
50
|
+
# @param gem_gem_remote_href
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @return [AsyncOperationResponse]
|
53
|
+
describe 'delete test' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# unit tests for list
|
60
|
+
# List gem remotes
|
61
|
+
# A ViewSet for GemRemote.
|
62
|
+
# @param [Hash] opts the optional parameters
|
63
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
64
|
+
# @option opts [String] :name Filter results where name matches value
|
65
|
+
# @option opts [String] :name__contains Filter results where name contains value
|
66
|
+
# @option opts [String] :name__icontains Filter results where name contains value
|
67
|
+
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
68
|
+
# @option opts [String] :name__startswith Filter results where name starts with value
|
69
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
70
|
+
# @option opts [Array<String>] :ordering Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
71
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
72
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
73
|
+
# @option opts [String] :pulp_label_select Filter labels by search string
|
74
|
+
# @option opts [DateTime] :pulp_last_updated Filter results where pulp_last_updated matches value
|
75
|
+
# @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
76
|
+
# @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
|
77
|
+
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
78
|
+
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
79
|
+
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
80
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
81
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
82
|
+
# @return [PaginatedgemGemRemoteResponseList]
|
83
|
+
describe 'list test' do
|
84
|
+
it 'should work' do
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
# unit tests for partial_update
|
90
|
+
# Update a gem remote
|
91
|
+
# Trigger an asynchronous partial update task
|
92
|
+
# @param gem_gem_remote_href
|
93
|
+
# @param patchedgem_gem_remote
|
94
|
+
# @param [Hash] opts the optional parameters
|
95
|
+
# @return [AsyncOperationResponse]
|
96
|
+
describe 'partial_update test' do
|
97
|
+
it 'should work' do
|
98
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
# unit tests for read
|
103
|
+
# Inspect a gem remote
|
104
|
+
# A ViewSet for GemRemote.
|
105
|
+
# @param gem_gem_remote_href
|
106
|
+
# @param [Hash] opts the optional parameters
|
107
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
108
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
109
|
+
# @return [GemGemRemoteResponse]
|
110
|
+
describe 'read test' do
|
111
|
+
it 'should work' do
|
112
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
# unit tests for update
|
117
|
+
# Update a gem remote
|
118
|
+
# Trigger an asynchronous update task
|
119
|
+
# @param gem_gem_remote_href
|
120
|
+
# @param gem_gem_remote
|
121
|
+
# @param [Hash] opts the optional parameters
|
122
|
+
# @return [AsyncOperationResponse]
|
123
|
+
describe 'update test' do
|
124
|
+
it 'should work' do
|
125
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
end
|