pulp_cookbook_client 0.1.0b9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +162 -0
  4. data/Rakefile +10 -0
  5. data/docs/AsyncOperationResponse.md +17 -0
  6. data/docs/ContentCookbooksApi.md +208 -0
  7. data/docs/ContentSummary.md +21 -0
  8. data/docs/ContentSummaryResponse.md +21 -0
  9. data/docs/CookbookCookbookDistribution.md +27 -0
  10. data/docs/CookbookCookbookDistributionResponse.md +33 -0
  11. data/docs/CookbookCookbookPackageContent.md +25 -0
  12. data/docs/CookbookCookbookPackageContentResponse.md +29 -0
  13. data/docs/CookbookCookbookPublication.md +19 -0
  14. data/docs/CookbookCookbookPublicationResponse.md +25 -0
  15. data/docs/CookbookCookbookRemote.md +59 -0
  16. data/docs/CookbookCookbookRemoteResponse.md +55 -0
  17. data/docs/CookbookCookbookRepository.md +25 -0
  18. data/docs/CookbookCookbookRepositoryResponse.md +33 -0
  19. data/docs/DistributionsCookbookApi.md +372 -0
  20. data/docs/PaginatedRepositoryVersionResponseList.md +23 -0
  21. data/docs/PaginatedcookbookCookbookDistributionResponseList.md +23 -0
  22. data/docs/PaginatedcookbookCookbookPackageContentResponseList.md +23 -0
  23. data/docs/PaginatedcookbookCookbookPublicationResponseList.md +23 -0
  24. data/docs/PaginatedcookbookCookbookRemoteResponseList.md +23 -0
  25. data/docs/PaginatedcookbookCookbookRepositoryResponseList.md +23 -0
  26. data/docs/PatchedcookbookCookbookDistribution.md +27 -0
  27. data/docs/PatchedcookbookCookbookRemote.md +59 -0
  28. data/docs/PatchedcookbookCookbookRepository.md +25 -0
  29. data/docs/PolicyEnum.md +16 -0
  30. data/docs/PublicationsCookbookApi.md +257 -0
  31. data/docs/RemotesCookbookApi.md +376 -0
  32. data/docs/RepositoriesCookbookApi.md +475 -0
  33. data/docs/RepositoriesCookbookVersionsApi.md +271 -0
  34. data/docs/RepositoryAddRemoveContent.md +21 -0
  35. data/docs/RepositorySyncURL.md +19 -0
  36. data/docs/RepositoryVersion.md +17 -0
  37. data/docs/RepositoryVersionResponse.md +27 -0
  38. data/git_push.sh +58 -0
  39. data/lib/pulp_cookbook_client/api/content_cookbooks_api.rb +264 -0
  40. data/lib/pulp_cookbook_client/api/distributions_cookbook_api.rb +457 -0
  41. data/lib/pulp_cookbook_client/api/publications_cookbook_api.rb +312 -0
  42. data/lib/pulp_cookbook_client/api/remotes_cookbook_api.rb +463 -0
  43. data/lib/pulp_cookbook_client/api/repositories_cookbook_api.rb +583 -0
  44. data/lib/pulp_cookbook_client/api/repositories_cookbook_versions_api.rb +339 -0
  45. data/lib/pulp_cookbook_client/api_client.rb +406 -0
  46. data/lib/pulp_cookbook_client/api_error.rb +57 -0
  47. data/lib/pulp_cookbook_client/configuration.rb +250 -0
  48. data/lib/pulp_cookbook_client/models/async_operation_response.rb +213 -0
  49. data/lib/pulp_cookbook_client/models/content_summary.rb +246 -0
  50. data/lib/pulp_cookbook_client/models/content_summary_response.rb +246 -0
  51. data/lib/pulp_cookbook_client/models/cookbook_cookbook_distribution.rb +308 -0
  52. data/lib/pulp_cookbook_client/models/cookbook_cookbook_distribution_response.rb +299 -0
  53. data/lib/pulp_cookbook_client/models/cookbook_cookbook_package_content.rb +287 -0
  54. data/lib/pulp_cookbook_client/models/cookbook_cookbook_package_content_response.rb +272 -0
  55. data/lib/pulp_cookbook_client/models/cookbook_cookbook_publication.rb +217 -0
  56. data/lib/pulp_cookbook_client/models/cookbook_cookbook_publication_response.rb +248 -0
  57. data/lib/pulp_cookbook_client/models/cookbook_cookbook_remote.rb +677 -0
  58. data/lib/pulp_cookbook_client/models/cookbook_cookbook_remote_response.rb +493 -0
  59. data/lib/pulp_cookbook_client/models/cookbook_cookbook_repository.rb +304 -0
  60. data/lib/pulp_cookbook_client/models/cookbook_cookbook_repository_response.rb +307 -0
  61. data/lib/pulp_cookbook_client/models/paginated_repository_version_response_list.rb +237 -0
  62. data/lib/pulp_cookbook_client/models/paginatedcookbook_cookbook_distribution_response_list.rb +237 -0
  63. data/lib/pulp_cookbook_client/models/paginatedcookbook_cookbook_package_content_response_list.rb +237 -0
  64. data/lib/pulp_cookbook_client/models/paginatedcookbook_cookbook_publication_response_list.rb +237 -0
  65. data/lib/pulp_cookbook_client/models/paginatedcookbook_cookbook_remote_response_list.rb +237 -0
  66. data/lib/pulp_cookbook_client/models/paginatedcookbook_cookbook_repository_response_list.rb +237 -0
  67. data/lib/pulp_cookbook_client/models/patchedcookbook_cookbook_distribution.rb +290 -0
  68. data/lib/pulp_cookbook_client/models/patchedcookbook_cookbook_remote.rb +659 -0
  69. data/lib/pulp_cookbook_client/models/patchedcookbook_cookbook_repository.rb +295 -0
  70. data/lib/pulp_cookbook_client/models/policy_enum.rb +37 -0
  71. data/lib/pulp_cookbook_client/models/repository_add_remove_content.rb +232 -0
  72. data/lib/pulp_cookbook_client/models/repository_sync_url.rb +220 -0
  73. data/lib/pulp_cookbook_client/models/repository_version.rb +208 -0
  74. data/lib/pulp_cookbook_client/models/repository_version_response.rb +255 -0
  75. data/lib/pulp_cookbook_client/version.rb +15 -0
  76. data/lib/pulp_cookbook_client.rb +72 -0
  77. data/pulp_cookbook_client.gemspec +39 -0
  78. data/spec/api/content_cookbooks_api_spec.rb +87 -0
  79. data/spec/api/distributions_cookbook_api_spec.rb +125 -0
  80. data/spec/api/publications_cookbook_api_spec.rb +98 -0
  81. data/spec/api/remotes_cookbook_api_spec.rb +127 -0
  82. data/spec/api/repositories_cookbook_api_spec.rb +146 -0
  83. data/spec/api/repositories_cookbook_versions_api_spec.rb +104 -0
  84. data/spec/api_client_spec.rb +188 -0
  85. data/spec/configuration_spec.rb +42 -0
  86. data/spec/models/async_operation_response_spec.rb +41 -0
  87. data/spec/models/content_summary_response_spec.rb +53 -0
  88. data/spec/models/content_summary_spec.rb +53 -0
  89. data/spec/models/cookbook_cookbook_distribution_response_spec.rb +89 -0
  90. data/spec/models/cookbook_cookbook_distribution_spec.rb +71 -0
  91. data/spec/models/cookbook_cookbook_package_content_response_spec.rb +77 -0
  92. data/spec/models/cookbook_cookbook_package_content_spec.rb +65 -0
  93. data/spec/models/cookbook_cookbook_publication_response_spec.rb +65 -0
  94. data/spec/models/cookbook_cookbook_publication_spec.rb +47 -0
  95. data/spec/models/cookbook_cookbook_remote_response_spec.rb +155 -0
  96. data/spec/models/cookbook_cookbook_remote_spec.rb +167 -0
  97. data/spec/models/cookbook_cookbook_repository_response_spec.rb +89 -0
  98. data/spec/models/cookbook_cookbook_repository_spec.rb +65 -0
  99. data/spec/models/paginated_repository_version_response_list_spec.rb +59 -0
  100. data/spec/models/paginatedcookbook_cookbook_distribution_response_list_spec.rb +59 -0
  101. data/spec/models/paginatedcookbook_cookbook_package_content_response_list_spec.rb +59 -0
  102. data/spec/models/paginatedcookbook_cookbook_publication_response_list_spec.rb +59 -0
  103. data/spec/models/paginatedcookbook_cookbook_remote_response_list_spec.rb +59 -0
  104. data/spec/models/paginatedcookbook_cookbook_repository_response_list_spec.rb +59 -0
  105. data/spec/models/patchedcookbook_cookbook_distribution_spec.rb +71 -0
  106. data/spec/models/patchedcookbook_cookbook_remote_spec.rb +167 -0
  107. data/spec/models/patchedcookbook_cookbook_repository_spec.rb +65 -0
  108. data/spec/models/policy_enum_spec.rb +35 -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/models/repository_version_spec.rb +41 -0
  113. data/spec/spec_helper.rb +111 -0
  114. metadata +251 -0
@@ -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_cookbook_client/api_client'
15
+ require 'pulp_cookbook_client/api_error'
16
+ require 'pulp_cookbook_client/version'
17
+ require 'pulp_cookbook_client/configuration'
18
+
19
+ # Models
20
+ require 'pulp_cookbook_client/models/async_operation_response'
21
+ require 'pulp_cookbook_client/models/content_summary'
22
+ require 'pulp_cookbook_client/models/content_summary_response'
23
+ require 'pulp_cookbook_client/models/cookbook_cookbook_distribution'
24
+ require 'pulp_cookbook_client/models/cookbook_cookbook_distribution_response'
25
+ require 'pulp_cookbook_client/models/cookbook_cookbook_package_content'
26
+ require 'pulp_cookbook_client/models/cookbook_cookbook_package_content_response'
27
+ require 'pulp_cookbook_client/models/cookbook_cookbook_publication'
28
+ require 'pulp_cookbook_client/models/cookbook_cookbook_publication_response'
29
+ require 'pulp_cookbook_client/models/cookbook_cookbook_remote'
30
+ require 'pulp_cookbook_client/models/cookbook_cookbook_remote_response'
31
+ require 'pulp_cookbook_client/models/cookbook_cookbook_repository'
32
+ require 'pulp_cookbook_client/models/cookbook_cookbook_repository_response'
33
+ require 'pulp_cookbook_client/models/paginated_repository_version_response_list'
34
+ require 'pulp_cookbook_client/models/paginatedcookbook_cookbook_distribution_response_list'
35
+ require 'pulp_cookbook_client/models/paginatedcookbook_cookbook_package_content_response_list'
36
+ require 'pulp_cookbook_client/models/paginatedcookbook_cookbook_publication_response_list'
37
+ require 'pulp_cookbook_client/models/paginatedcookbook_cookbook_remote_response_list'
38
+ require 'pulp_cookbook_client/models/paginatedcookbook_cookbook_repository_response_list'
39
+ require 'pulp_cookbook_client/models/patchedcookbook_cookbook_distribution'
40
+ require 'pulp_cookbook_client/models/patchedcookbook_cookbook_remote'
41
+ require 'pulp_cookbook_client/models/patchedcookbook_cookbook_repository'
42
+ require 'pulp_cookbook_client/models/policy_enum'
43
+ require 'pulp_cookbook_client/models/repository_add_remove_content'
44
+ require 'pulp_cookbook_client/models/repository_sync_url'
45
+ require 'pulp_cookbook_client/models/repository_version'
46
+ require 'pulp_cookbook_client/models/repository_version_response'
47
+
48
+ # APIs
49
+ require 'pulp_cookbook_client/api/content_cookbooks_api'
50
+ require 'pulp_cookbook_client/api/distributions_cookbook_api'
51
+ require 'pulp_cookbook_client/api/publications_cookbook_api'
52
+ require 'pulp_cookbook_client/api/remotes_cookbook_api'
53
+ require 'pulp_cookbook_client/api/repositories_cookbook_api'
54
+ require 'pulp_cookbook_client/api/repositories_cookbook_versions_api'
55
+
56
+ module PulpCookbookClient
57
+ class << self
58
+ # Customize default settings for the SDK using block.
59
+ # PulpCookbookClient.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_cookbook_client/version"
17
+
18
+ Gem::Specification.new do |s|
19
+ s.name = "pulp_cookbook_client"
20
+ s.version = PulpCookbookClient::VERSION
21
+ s.platform = Gem::Platform::RUBY
22
+ s.authors = ["OpenAPI-Generator"]
23
+ s.email = ["pulp-list@redhat.com"]
24
+ s.homepage = "https://openapi-generator.tech"
25
+ s.summary = "Pulp 3 API Ruby Gem"
26
+ s.description = "Fetch, Upload, Organize, and Distribute Software Packages"
27
+ s.license = 'GPL-2.0+'
28
+ s.required_ruby_version = ">= 1.9"
29
+
30
+ s.add_runtime_dependency 'faraday', '~> 0.17', '< 1.9.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,87 @@
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 PulpCookbookClient::ContentCookbooksApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'ContentCookbooksApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpCookbookClient::ContentCookbooksApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ContentCookbooksApi' do
30
+ it 'should create an instance of ContentCookbooksApi' do
31
+ expect(@api_instance).to be_instance_of(PulpCookbookClient::ContentCookbooksApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for create
36
+ # Create a cookbook package content
37
+ # Trigger an asynchronous task to create content,optionally create new repository version.
38
+ # @param name name of the cookbook
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [String] :artifact Artifact file representing the physical content
41
+ # @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
42
+ # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
43
+ # @option opts [String] :version version of the cookbook
44
+ # @return [AsyncOperationResponse]
45
+ describe 'create test' do
46
+ it 'should work' do
47
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
48
+ end
49
+ end
50
+
51
+ # unit tests for list
52
+ # List cookbook package contents
53
+ # Cookbook Content Endpoint. CookbookContent represents a single cookbook, which can be added and removed from repositories.
54
+ # @param [Hash] opts the optional parameters
55
+ # @option opts [String] :content_id Filter results where content_id matches value
56
+ # @option opts [Integer] :limit Number of results to return per page.
57
+ # @option opts [String] :name Filter results where name matches value
58
+ # @option opts [Integer] :offset The initial index from which to return the results.
59
+ # @option opts [String] :ordering Which field to use when ordering the results.
60
+ # @option opts [String] :repository_version Repository Version referenced by HREF
61
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
62
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
63
+ # @option opts [String] :version Filter results where version matches value
64
+ # @option opts [String] :fields A list of fields to include in the response.
65
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
66
+ # @return [PaginatedcookbookCookbookPackageContentResponseList]
67
+ describe 'list test' do
68
+ it 'should work' do
69
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
70
+ end
71
+ end
72
+
73
+ # unit tests for read
74
+ # Inspect a cookbook package content
75
+ # Cookbook Content Endpoint. CookbookContent represents a single cookbook, which can be added and removed from repositories.
76
+ # @param cookbook_cookbook_package_content_href
77
+ # @param [Hash] opts the optional parameters
78
+ # @option opts [String] :fields A list of fields to include in the response.
79
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
80
+ # @return [CookbookCookbookPackageContentResponse]
81
+ describe 'read 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
+ end
@@ -0,0 +1,125 @@
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 PulpCookbookClient::DistributionsCookbookApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'DistributionsCookbookApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpCookbookClient::DistributionsCookbookApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of DistributionsCookbookApi' do
30
+ it 'should create an instance of DistributionsCookbookApi' do
31
+ expect(@api_instance).to be_instance_of(PulpCookbookClient::DistributionsCookbookApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for create
36
+ # Create a cookbook distribution
37
+ # Trigger an asynchronous create task
38
+ # @param cookbook_cookbook_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 cookbook distribution
49
+ # Trigger an asynchronous delete task
50
+ # @param cookbook_cookbook_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 cookbook distributions
61
+ # Cookbook Distreibution Endpoint. CookbookDistributions host Cookbook Publications which makes the metadata and the referenced Cookbook Content available to clients like berkshelf. Additionally, a CookbookDistribution with an associated CookbookPublication can be the target url of a Cookbook Remote , allowing another instance of Pulp to sync the content.
62
+ # @param [Hash] opts the optional parameters
63
+ # @option opts [String] :base_path
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
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 [String] :ordering Which field to use when ordering the results.
75
+ # @option opts [String] :pulp_label_select Filter labels by search string
76
+ # @option opts [String] :fields A list of fields to include in the response.
77
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
78
+ # @return [PaginatedcookbookCookbookDistributionResponseList]
79
+ describe 'list test' do
80
+ it 'should work' do
81
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
82
+ end
83
+ end
84
+
85
+ # unit tests for partial_update
86
+ # Update a cookbook distribution
87
+ # Trigger an asynchronous partial update task
88
+ # @param cookbook_cookbook_distribution_href
89
+ # @param patchedcookbook_cookbook_distribution
90
+ # @param [Hash] opts the optional parameters
91
+ # @return [AsyncOperationResponse]
92
+ describe 'partial_update test' do
93
+ it 'should work' do
94
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
95
+ end
96
+ end
97
+
98
+ # unit tests for read
99
+ # Inspect a cookbook distribution
100
+ # Cookbook Distreibution Endpoint. CookbookDistributions host Cookbook Publications which makes the metadata and the referenced Cookbook Content available to clients like berkshelf. Additionally, a CookbookDistribution with an associated CookbookPublication can be the target url of a Cookbook Remote , allowing another instance of Pulp to sync the content.
101
+ # @param cookbook_cookbook_distribution_href
102
+ # @param [Hash] opts the optional parameters
103
+ # @option opts [String] :fields A list of fields to include in the response.
104
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
105
+ # @return [CookbookCookbookDistributionResponse]
106
+ describe 'read test' do
107
+ it 'should work' do
108
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
109
+ end
110
+ end
111
+
112
+ # unit tests for update
113
+ # Update a cookbook distribution
114
+ # Trigger an asynchronous update task
115
+ # @param cookbook_cookbook_distribution_href
116
+ # @param cookbook_cookbook_distribution
117
+ # @param [Hash] opts the optional parameters
118
+ # @return [AsyncOperationResponse]
119
+ describe 'update test' do
120
+ it 'should work' do
121
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
122
+ end
123
+ end
124
+
125
+ end
@@ -0,0 +1,98 @@
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 PulpCookbookClient::PublicationsCookbookApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'PublicationsCookbookApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpCookbookClient::PublicationsCookbookApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of PublicationsCookbookApi' do
30
+ it 'should create an instance of PublicationsCookbookApi' do
31
+ expect(@api_instance).to be_instance_of(PulpCookbookClient::PublicationsCookbookApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for create
36
+ # Create a cookbook publication
37
+ # Trigger an asynchronous task to publish cookbook content.
38
+ # @param cookbook_cookbook_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 cookbook publication
49
+ # File Publication Endpoint. A CookbookPublication contains metadata about all the Cookbook Content in a particular Cookbook Repository Version. Once a CookbookPublication has been created, it can be hosted using the Cookbook Distribution API.
50
+ # @param cookbook_cookbook_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 cookbook publications
61
+ # File Publication Endpoint. A CookbookPublication contains metadata about all the Cookbook Content in a particular Cookbook Repository Version. Once a CookbookPublication has been created, it can be hosted using the Cookbook Distribution API.
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 [String] :ordering Which field to use when ordering the results.
68
+ # @option opts [DateTime] :pulp_created ISO 8601 formatted dates are supported
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 [String] :repository_version Repository Version referenced by HREF
75
+ # @option opts [String] :fields A list of fields to include in the response.
76
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
77
+ # @return [PaginatedcookbookCookbookPublicationResponseList]
78
+ describe 'list test' do
79
+ it 'should work' do
80
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
81
+ end
82
+ end
83
+
84
+ # unit tests for read
85
+ # Inspect a cookbook publication
86
+ # File Publication Endpoint. A CookbookPublication contains metadata about all the Cookbook Content in a particular Cookbook Repository Version. Once a CookbookPublication has been created, it can be hosted using the Cookbook Distribution API.
87
+ # @param cookbook_cookbook_publication_href
88
+ # @param [Hash] opts the optional parameters
89
+ # @option opts [String] :fields A list of fields to include in the response.
90
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
91
+ # @return [CookbookCookbookPublicationResponse]
92
+ describe 'read test' do
93
+ it 'should work' do
94
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
95
+ end
96
+ end
97
+
98
+ end
@@ -0,0 +1,127 @@
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 PulpCookbookClient::RemotesCookbookApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'RemotesCookbookApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpCookbookClient::RemotesCookbookApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of RemotesCookbookApi' do
30
+ it 'should create an instance of RemotesCookbookApi' do
31
+ expect(@api_instance).to be_instance_of(PulpCookbookClient::RemotesCookbookApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for create
36
+ # Create a cookbook remote
37
+ # Cookbook Remote Endpoint. CookbookRemote represents an external source of Cookbook Content. The target url of a CookbookRemote must point to a universe API endpont.
38
+ # @param cookbook_cookbook_remote
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [CookbookCookbookRemoteResponse]
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 cookbook remote
49
+ # Trigger an asynchronous delete task
50
+ # @param cookbook_cookbook_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 cookbook remotes
61
+ # Cookbook Remote Endpoint. CookbookRemote represents an external source of Cookbook Content. The target url of a CookbookRemote must point to a universe API endpont.
62
+ # @param [Hash] opts the optional parameters
63
+ # @option opts [Integer] :limit Number of results to return per page.
64
+ # @option opts [String] :name
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 [String] :ordering Which field to use when ordering the results.
71
+ # @option opts [String] :pulp_label_select Filter labels by search string
72
+ # @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
73
+ # @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
74
+ # @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
75
+ # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
76
+ # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
77
+ # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
78
+ # @option opts [String] :fields A list of fields to include in the response.
79
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
80
+ # @return [PaginatedcookbookCookbookRemoteResponseList]
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 partial_update
88
+ # Update a cookbook remote
89
+ # Trigger an asynchronous partial update task
90
+ # @param cookbook_cookbook_remote_href
91
+ # @param patchedcookbook_cookbook_remote
92
+ # @param [Hash] opts the optional parameters
93
+ # @return [AsyncOperationResponse]
94
+ describe 'partial_update test' do
95
+ it 'should work' do
96
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
97
+ end
98
+ end
99
+
100
+ # unit tests for read
101
+ # Inspect a cookbook remote
102
+ # Cookbook Remote Endpoint. CookbookRemote represents an external source of Cookbook Content. The target url of a CookbookRemote must point to a universe API endpont.
103
+ # @param cookbook_cookbook_remote_href
104
+ # @param [Hash] opts the optional parameters
105
+ # @option opts [String] :fields A list of fields to include in the response.
106
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
107
+ # @return [CookbookCookbookRemoteResponse]
108
+ describe 'read test' do
109
+ it 'should work' do
110
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
111
+ end
112
+ end
113
+
114
+ # unit tests for update
115
+ # Update a cookbook remote
116
+ # Trigger an asynchronous update task
117
+ # @param cookbook_cookbook_remote_href
118
+ # @param cookbook_cookbook_remote
119
+ # @param [Hash] opts the optional parameters
120
+ # @return [AsyncOperationResponse]
121
+ describe 'update test' do
122
+ it 'should work' do
123
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
124
+ end
125
+ end
126
+
127
+ end