pulp_gem_client 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +160 -0
  4. data/Rakefile +10 -0
  5. data/docs/AsyncOperationResponse.md +17 -0
  6. data/docs/ContentGemApi.md +210 -0
  7. data/docs/ContentSummaryResponse.md +21 -0
  8. data/docs/DistributionsGemApi.md +382 -0
  9. data/docs/GemGemContent.md +21 -0
  10. data/docs/GemGemContentResponse.md +35 -0
  11. data/docs/GemGemDistribution.md +31 -0
  12. data/docs/GemGemDistributionResponse.md +37 -0
  13. data/docs/GemGemPublication.md +19 -0
  14. data/docs/GemGemPublicationResponse.md +23 -0
  15. data/docs/GemGemRemote.md +63 -0
  16. data/docs/GemGemRemoteResponse.md +61 -0
  17. data/docs/GemGemRemoteResponseHiddenFields.md +19 -0
  18. data/docs/GemGemRepository.md +25 -0
  19. data/docs/GemGemRepositoryResponse.md +33 -0
  20. data/docs/PaginatedRepositoryVersionResponseList.md +23 -0
  21. data/docs/PaginatedgemGemContentResponseList.md +23 -0
  22. data/docs/PaginatedgemGemDistributionResponseList.md +23 -0
  23. data/docs/PaginatedgemGemPublicationResponseList.md +23 -0
  24. data/docs/PaginatedgemGemRemoteResponseList.md +23 -0
  25. data/docs/PaginatedgemGemRepositoryResponseList.md +23 -0
  26. data/docs/PatchedgemGemDistribution.md +31 -0
  27. data/docs/PatchedgemGemRemote.md +63 -0
  28. data/docs/PatchedgemGemRepository.md +25 -0
  29. data/docs/PolicyEnum.md +16 -0
  30. data/docs/PublicationsGemApi.md +263 -0
  31. data/docs/RemotesGemApi.md +380 -0
  32. data/docs/Repair.md +17 -0
  33. data/docs/RepositoriesGemApi.md +502 -0
  34. data/docs/RepositoriesGemVersionsApi.md +273 -0
  35. data/docs/RepositoryAddRemoveContent.md +21 -0
  36. data/docs/RepositorySyncURL.md +19 -0
  37. data/docs/RepositoryVersionResponse.md +27 -0
  38. data/lib/pulp_gem_client/api/content_gem_api.rb +259 -0
  39. data/lib/pulp_gem_client/api/distributions_gem_api.rb +476 -0
  40. data/lib/pulp_gem_client/api/publications_gem_api.rb +325 -0
  41. data/lib/pulp_gem_client/api/remotes_gem_api.rb +473 -0
  42. data/lib/pulp_gem_client/api/repositories_gem_api.rb +628 -0
  43. data/lib/pulp_gem_client/api/repositories_gem_versions_api.rb +346 -0
  44. data/lib/pulp_gem_client/api_client.rb +403 -0
  45. data/lib/pulp_gem_client/api_error.rb +57 -0
  46. data/lib/pulp_gem_client/configuration.rb +251 -0
  47. data/lib/pulp_gem_client/models/async_operation_response.rb +213 -0
  48. data/lib/pulp_gem_client/models/content_summary_response.rb +246 -0
  49. data/lib/pulp_gem_client/models/gem_gem_content.rb +228 -0
  50. data/lib/pulp_gem_client/models/gem_gem_content_response.rb +303 -0
  51. data/lib/pulp_gem_client/models/gem_gem_distribution.rb +333 -0
  52. data/lib/pulp_gem_client/models/gem_gem_distribution_response.rb +324 -0
  53. data/lib/pulp_gem_client/models/gem_gem_publication.rb +217 -0
  54. data/lib/pulp_gem_client/models/gem_gem_publication_response.rb +236 -0
  55. data/lib/pulp_gem_client/models/gem_gem_remote.rb +704 -0
  56. data/lib/pulp_gem_client/models/gem_gem_remote_response.rb +532 -0
  57. data/lib/pulp_gem_client/models/gem_gem_remote_response_hidden_fields.rb +215 -0
  58. data/lib/pulp_gem_client/models/gem_gem_repository.rb +306 -0
  59. data/lib/pulp_gem_client/models/gem_gem_repository_response.rb +309 -0
  60. data/lib/pulp_gem_client/models/paginated_repository_version_response_list.rb +237 -0
  61. data/lib/pulp_gem_client/models/paginatedgem_gem_content_response_list.rb +237 -0
  62. data/lib/pulp_gem_client/models/paginatedgem_gem_distribution_response_list.rb +237 -0
  63. data/lib/pulp_gem_client/models/paginatedgem_gem_publication_response_list.rb +237 -0
  64. data/lib/pulp_gem_client/models/paginatedgem_gem_remote_response_list.rb +237 -0
  65. data/lib/pulp_gem_client/models/paginatedgem_gem_repository_response_list.rb +237 -0
  66. data/lib/pulp_gem_client/models/patchedgem_gem_distribution.rb +315 -0
  67. data/lib/pulp_gem_client/models/patchedgem_gem_remote.rb +686 -0
  68. data/lib/pulp_gem_client/models/patchedgem_gem_repository.rb +297 -0
  69. data/lib/pulp_gem_client/models/policy_enum.rb +37 -0
  70. data/lib/pulp_gem_client/models/repair.rb +209 -0
  71. data/lib/pulp_gem_client/models/repository_add_remove_content.rb +232 -0
  72. data/lib/pulp_gem_client/models/repository_sync_url.rb +220 -0
  73. data/lib/pulp_gem_client/models/repository_version_response.rb +255 -0
  74. data/lib/pulp_gem_client/version.rb +15 -0
  75. data/lib/pulp_gem_client.rb +72 -0
  76. data/pulp_gem_client.gemspec +39 -0
  77. data/spec/api/content_gem_api_spec.rb +88 -0
  78. data/spec/api/distributions_gem_api_spec.rb +130 -0
  79. data/spec/api/publications_gem_api_spec.rb +101 -0
  80. data/spec/api/remotes_gem_api_spec.rb +129 -0
  81. data/spec/api/repositories_gem_api_spec.rb +160 -0
  82. data/spec/api/repositories_gem_versions_api_spec.rb +105 -0
  83. data/spec/api_client_spec.rb +188 -0
  84. data/spec/configuration_spec.rb +42 -0
  85. data/spec/models/async_operation_response_spec.rb +41 -0
  86. data/spec/models/content_summary_response_spec.rb +53 -0
  87. data/spec/models/gem_gem_content_response_spec.rb +95 -0
  88. data/spec/models/gem_gem_content_spec.rb +53 -0
  89. data/spec/models/gem_gem_distribution_response_spec.rb +101 -0
  90. data/spec/models/gem_gem_distribution_spec.rb +83 -0
  91. data/spec/models/gem_gem_publication_response_spec.rb +59 -0
  92. data/spec/models/gem_gem_publication_spec.rb +47 -0
  93. data/spec/models/gem_gem_remote_response_hidden_fields_spec.rb +47 -0
  94. data/spec/models/gem_gem_remote_response_spec.rb +173 -0
  95. data/spec/models/gem_gem_remote_spec.rb +179 -0
  96. data/spec/models/gem_gem_repository_response_spec.rb +89 -0
  97. data/spec/models/gem_gem_repository_spec.rb +65 -0
  98. data/spec/models/paginated_repository_version_response_list_spec.rb +59 -0
  99. data/spec/models/paginatedgem_gem_content_response_list_spec.rb +59 -0
  100. data/spec/models/paginatedgem_gem_distribution_response_list_spec.rb +59 -0
  101. data/spec/models/paginatedgem_gem_publication_response_list_spec.rb +59 -0
  102. data/spec/models/paginatedgem_gem_remote_response_list_spec.rb +59 -0
  103. data/spec/models/paginatedgem_gem_repository_response_list_spec.rb +59 -0
  104. data/spec/models/patchedgem_gem_distribution_spec.rb +83 -0
  105. data/spec/models/patchedgem_gem_remote_spec.rb +179 -0
  106. data/spec/models/patchedgem_gem_repository_spec.rb +65 -0
  107. data/spec/models/policy_enum_spec.rb +35 -0
  108. data/spec/models/repair_spec.rb +41 -0
  109. data/spec/models/repository_add_remove_content_spec.rb +53 -0
  110. data/spec/models/repository_sync_url_spec.rb +47 -0
  111. data/spec/models/repository_version_response_spec.rb +71 -0
  112. data/spec/spec_helper.rb +111 -0
  113. 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 * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;checksum&#x60; - Checksum * &#x60;-checksum&#x60; - Checksum (descending) * &#x60;prerelease&#x60; - Prerelease * &#x60;-prerelease&#x60; - Prerelease (descending) * &#x60;dependencies&#x60; - Dependencies * &#x60;-dependencies&#x60; - Dependencies (descending) * &#x60;required_ruby_version&#x60; - Required ruby version * &#x60;-required_ruby_version&#x60; - Required ruby version (descending) * &#x60;required_rubygems_version&#x60; - Required rubygems version * &#x60;-required_rubygems_version&#x60; - Required rubygems version (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - 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 * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;hidden&#x60; - Hidden * &#x60;-hidden&#x60; - Hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - 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 * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;pass_through&#x60; - Pass through * &#x60;-pass_through&#x60; - Pass through (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - 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 * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;url&#x60; - Url * &#x60;-url&#x60; - Url (descending) * &#x60;ca_cert&#x60; - Ca cert * &#x60;-ca_cert&#x60; - Ca cert (descending) * &#x60;client_cert&#x60; - Client cert * &#x60;-client_cert&#x60; - Client cert (descending) * &#x60;client_key&#x60; - Client key * &#x60;-client_key&#x60; - Client key (descending) * &#x60;tls_validation&#x60; - Tls validation * &#x60;-tls_validation&#x60; - Tls validation (descending) * &#x60;username&#x60; - Username * &#x60;-username&#x60; - Username (descending) * &#x60;password&#x60; - Password * &#x60;-password&#x60; - Password (descending) * &#x60;proxy_url&#x60; - Proxy url * &#x60;-proxy_url&#x60; - Proxy url (descending) * &#x60;proxy_username&#x60; - Proxy username * &#x60;-proxy_username&#x60; - Proxy username (descending) * &#x60;proxy_password&#x60; - Proxy password * &#x60;-proxy_password&#x60; - Proxy password (descending) * &#x60;download_concurrency&#x60; - Download concurrency * &#x60;-download_concurrency&#x60; - Download concurrency (descending) * &#x60;max_retries&#x60; - Max retries * &#x60;-max_retries&#x60; - Max retries (descending) * &#x60;policy&#x60; - Policy * &#x60;-policy&#x60; - Policy (descending) * &#x60;total_timeout&#x60; - Total timeout * &#x60;-total_timeout&#x60; - Total timeout (descending) * &#x60;connect_timeout&#x60; - Connect timeout * &#x60;-connect_timeout&#x60; - Connect timeout (descending) * &#x60;sock_connect_timeout&#x60; - Sock connect timeout * &#x60;-sock_connect_timeout&#x60; - Sock connect timeout (descending) * &#x60;sock_read_timeout&#x60; - Sock read timeout * &#x60;-sock_read_timeout&#x60; - Sock read timeout (descending) * &#x60;headers&#x60; - Headers * &#x60;-headers&#x60; - Headers (descending) * &#x60;rate_limit&#x60; - Rate limit * &#x60;-rate_limit&#x60; - Rate limit (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - 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