pulpcore_client 3.0.0rc2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +79 -0
  4. data/README.md +151 -0
  5. data/Rakefile +10 -0
  6. data/docs/Artifact.md +37 -0
  7. data/docs/ArtifactsApi.md +253 -0
  8. data/docs/AsyncOperationResponse.md +17 -0
  9. data/docs/InlineResponse200.md +23 -0
  10. data/docs/InlineResponse2001.md +23 -0
  11. data/docs/InlineResponse2002.md +23 -0
  12. data/docs/InlineResponse2003.md +23 -0
  13. data/docs/InlineResponse2004.md +23 -0
  14. data/docs/InlineResponse2005.md +23 -0
  15. data/docs/OrphansApi.md +58 -0
  16. data/docs/ProgressReport.md +27 -0
  17. data/docs/RepositoriesApi.md +584 -0
  18. data/docs/Repository.md +27 -0
  19. data/docs/RepositoryVersion.md +25 -0
  20. data/docs/RepositoryVersionCreate.md +21 -0
  21. data/docs/StatusApi.md +57 -0
  22. data/docs/Task.md +41 -0
  23. data/docs/TasksApi.md +263 -0
  24. data/docs/Upload.md +25 -0
  25. data/docs/UploadsApi.md +395 -0
  26. data/docs/Worker.md +27 -0
  27. data/docs/WorkersApi.md +136 -0
  28. data/git_push.sh +55 -0
  29. data/lib/pulpcore_client/api/artifacts_api.rb +306 -0
  30. data/lib/pulpcore_client/api/orphans_api.rb +78 -0
  31. data/lib/pulpcore_client/api/repositories_api.rb +710 -0
  32. data/lib/pulpcore_client/api/status_api.rb +76 -0
  33. data/lib/pulpcore_client/api/tasks_api.rb +330 -0
  34. data/lib/pulpcore_client/api/uploads_api.rb +493 -0
  35. data/lib/pulpcore_client/api/workers_api.rb +172 -0
  36. data/lib/pulpcore_client/api_client.rb +387 -0
  37. data/lib/pulpcore_client/api_error.rb +57 -0
  38. data/lib/pulpcore_client/configuration.rb +251 -0
  39. data/lib/pulpcore_client/models/artifact.rb +296 -0
  40. data/lib/pulpcore_client/models/async_operation_response.rb +202 -0
  41. data/lib/pulpcore_client/models/inline_response200.rb +235 -0
  42. data/lib/pulpcore_client/models/inline_response2001.rb +235 -0
  43. data/lib/pulpcore_client/models/inline_response2002.rb +235 -0
  44. data/lib/pulpcore_client/models/inline_response2003.rb +235 -0
  45. data/lib/pulpcore_client/models/inline_response2004.rb +235 -0
  46. data/lib/pulpcore_client/models/inline_response2005.rb +235 -0
  47. data/lib/pulpcore_client/models/progress_report.rb +277 -0
  48. data/lib/pulpcore_client/models/repository.rb +268 -0
  49. data/lib/pulpcore_client/models/repository_version.rb +235 -0
  50. data/lib/pulpcore_client/models/repository_version_create.rb +231 -0
  51. data/lib/pulpcore_client/models/task.rb +360 -0
  52. data/lib/pulpcore_client/models/upload.rb +257 -0
  53. data/lib/pulpcore_client/models/worker.rb +261 -0
  54. data/lib/pulpcore_client/version.rb +15 -0
  55. data/lib/pulpcore_client.rb +61 -0
  56. data/pulpcore_client.gemspec +45 -0
  57. data/spec/api/artifacts_api_spec.rb +96 -0
  58. data/spec/api/orphans_api_spec.rb +46 -0
  59. data/spec/api/repositories_api_spec.rb +171 -0
  60. data/spec/api/status_api_spec.rb +46 -0
  61. data/spec/api/tasks_api_spec.rb +102 -0
  62. data/spec/api/uploads_api_spec.rb +123 -0
  63. data/spec/api/workers_api_spec.rb +68 -0
  64. data/spec/api_client_spec.rb +226 -0
  65. data/spec/configuration_spec.rb +42 -0
  66. data/spec/models/artifact_spec.rb +101 -0
  67. data/spec/models/async_operation_response_spec.rb +41 -0
  68. data/spec/models/inline_response2001_spec.rb +59 -0
  69. data/spec/models/inline_response2002_spec.rb +59 -0
  70. data/spec/models/inline_response2003_spec.rb +59 -0
  71. data/spec/models/inline_response2004_spec.rb +59 -0
  72. data/spec/models/inline_response2005_spec.rb +59 -0
  73. data/spec/models/inline_response200_spec.rb +59 -0
  74. data/spec/models/progress_report_spec.rb +71 -0
  75. data/spec/models/repository_spec.rb +71 -0
  76. data/spec/models/repository_version_create_spec.rb +53 -0
  77. data/spec/models/repository_version_spec.rb +65 -0
  78. data/spec/models/task_spec.rb +113 -0
  79. data/spec/models/upload_spec.rb +65 -0
  80. data/spec/models/worker_spec.rb +71 -0
  81. data/spec/spec_helper.rb +111 -0
  82. metadata +329 -0
@@ -0,0 +1,261 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.0.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpcoreClient
16
+ class Worker
17
+ attr_accessor :_href
18
+
19
+ # Timestamp of creation.
20
+ attr_accessor :_created
21
+
22
+ # The name of the worker.
23
+ attr_accessor :name
24
+
25
+ # Timestamp of the last time the worker talked to the service.
26
+ attr_accessor :last_heartbeat
27
+
28
+ # True if the worker is considered online, otherwise False
29
+ attr_accessor :online
30
+
31
+ # True if the worker is considerd missing, otherwise False
32
+ attr_accessor :missing
33
+
34
+ # Attribute mapping from ruby-style variable name to JSON key.
35
+ def self.attribute_map
36
+ {
37
+ :'_href' => :'_href',
38
+ :'_created' => :'_created',
39
+ :'name' => :'name',
40
+ :'last_heartbeat' => :'last_heartbeat',
41
+ :'online' => :'online',
42
+ :'missing' => :'missing'
43
+ }
44
+ end
45
+
46
+ # Attribute type mapping.
47
+ def self.openapi_types
48
+ {
49
+ :'_href' => :'String',
50
+ :'_created' => :'DateTime',
51
+ :'name' => :'String',
52
+ :'last_heartbeat' => :'DateTime',
53
+ :'online' => :'Boolean',
54
+ :'missing' => :'Boolean'
55
+ }
56
+ end
57
+
58
+ # Initializes the object
59
+ # @param [Hash] attributes Model attributes in the form of hash
60
+ def initialize(attributes = {})
61
+ if (!attributes.is_a?(Hash))
62
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::Worker` initialize method"
63
+ end
64
+
65
+ # check to see if the attribute exists and convert string to symbol for hash key
66
+ attributes = attributes.each_with_object({}) { |(k, v), h|
67
+ if (!self.class.attribute_map.key?(k.to_sym))
68
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::Worker`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
69
+ end
70
+ h[k.to_sym] = v
71
+ }
72
+
73
+ if attributes.key?(:'_href')
74
+ self._href = attributes[:'_href']
75
+ end
76
+
77
+ if attributes.key?(:'_created')
78
+ self._created = attributes[:'_created']
79
+ end
80
+
81
+ if attributes.key?(:'name')
82
+ self.name = attributes[:'name']
83
+ end
84
+
85
+ if attributes.key?(:'last_heartbeat')
86
+ self.last_heartbeat = attributes[:'last_heartbeat']
87
+ end
88
+
89
+ if attributes.key?(:'online')
90
+ self.online = attributes[:'online']
91
+ end
92
+
93
+ if attributes.key?(:'missing')
94
+ self.missing = attributes[:'missing']
95
+ end
96
+ end
97
+
98
+ # Show invalid properties with the reasons. Usually used together with valid?
99
+ # @return Array for valid properties with the reasons
100
+ def list_invalid_properties
101
+ invalid_properties = Array.new
102
+ if !@name.nil? && @name.to_s.length < 1
103
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
104
+ end
105
+
106
+ invalid_properties
107
+ end
108
+
109
+ # Check to see if the all the properties in the model are valid
110
+ # @return true if the model is valid
111
+ def valid?
112
+ return false if !@name.nil? && @name.to_s.length < 1
113
+ true
114
+ end
115
+
116
+ # Custom attribute writer method with validation
117
+ # @param [Object] name Value to be assigned
118
+ def name=(name)
119
+ if !name.nil? && name.to_s.length < 1
120
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
121
+ end
122
+
123
+ @name = name
124
+ end
125
+
126
+ # Checks equality by comparing each attribute.
127
+ # @param [Object] Object to be compared
128
+ def ==(o)
129
+ return true if self.equal?(o)
130
+ self.class == o.class &&
131
+ _href == o._href &&
132
+ _created == o._created &&
133
+ name == o.name &&
134
+ last_heartbeat == o.last_heartbeat &&
135
+ online == o.online &&
136
+ missing == o.missing
137
+ end
138
+
139
+ # @see the `==` method
140
+ # @param [Object] Object to be compared
141
+ def eql?(o)
142
+ self == o
143
+ end
144
+
145
+ # Calculates hash code according to all attributes.
146
+ # @return [Integer] Hash code
147
+ def hash
148
+ [_href, _created, name, last_heartbeat, online, missing].hash
149
+ end
150
+
151
+ # Builds the object from hash
152
+ # @param [Hash] attributes Model attributes in the form of hash
153
+ # @return [Object] Returns the model itself
154
+ def self.build_from_hash(attributes)
155
+ new.build_from_hash(attributes)
156
+ end
157
+
158
+ # Builds the object from hash
159
+ # @param [Hash] attributes Model attributes in the form of hash
160
+ # @return [Object] Returns the model itself
161
+ def build_from_hash(attributes)
162
+ return nil unless attributes.is_a?(Hash)
163
+ self.class.openapi_types.each_pair do |key, type|
164
+ if type =~ /\AArray<(.*)>/i
165
+ # check to ensure the input is an array given that the attribute
166
+ # is documented as an array but the input is not
167
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
168
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
169
+ end
170
+ elsif !attributes[self.class.attribute_map[key]].nil?
171
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
172
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
173
+ end
174
+
175
+ self
176
+ end
177
+
178
+ # Deserializes the data based on type
179
+ # @param string type Data type
180
+ # @param string value Value to be deserialized
181
+ # @return [Object] Deserialized data
182
+ def _deserialize(type, value)
183
+ case type.to_sym
184
+ when :DateTime
185
+ DateTime.parse(value)
186
+ when :Date
187
+ Date.parse(value)
188
+ when :String
189
+ value.to_s
190
+ when :Integer
191
+ value.to_i
192
+ when :Float
193
+ value.to_f
194
+ when :Boolean
195
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
196
+ true
197
+ else
198
+ false
199
+ end
200
+ when :Object
201
+ # generic object (usually a Hash), return directly
202
+ value
203
+ when /\AArray<(?<inner_type>.+)>\z/
204
+ inner_type = Regexp.last_match[:inner_type]
205
+ value.map { |v| _deserialize(inner_type, v) }
206
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
207
+ k_type = Regexp.last_match[:k_type]
208
+ v_type = Regexp.last_match[:v_type]
209
+ {}.tap do |hash|
210
+ value.each do |k, v|
211
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
212
+ end
213
+ end
214
+ else # model
215
+ PulpcoreClient.const_get(type).build_from_hash(value)
216
+ end
217
+ end
218
+
219
+ # Returns the string representation of the object
220
+ # @return [String] String presentation of the object
221
+ def to_s
222
+ to_hash.to_s
223
+ end
224
+
225
+ # to_body is an alias to to_hash (backward compatibility)
226
+ # @return [Hash] Returns the object in the form of hash
227
+ def to_body
228
+ to_hash
229
+ end
230
+
231
+ # Returns the object in the form of hash
232
+ # @return [Hash] Returns the object in the form of hash
233
+ def to_hash
234
+ hash = {}
235
+ self.class.attribute_map.each_pair do |attr, param|
236
+ value = self.send(attr)
237
+ next if value.nil?
238
+ hash[param] = _to_hash(value)
239
+ end
240
+ hash
241
+ end
242
+
243
+ # Outputs non-array value in the form of hash
244
+ # For object, use to_hash. Otherwise, just return the value
245
+ # @param [Object] value Any valid value
246
+ # @return [Hash] Returns the value in the form of hash
247
+ def _to_hash(value)
248
+ if value.is_a?(Array)
249
+ value.compact.map { |v| _to_hash(v) }
250
+ elsif value.is_a?(Hash)
251
+ {}.tap do |hash|
252
+ value.each { |k, v| hash[k] = _to_hash(v) }
253
+ end
254
+ elsif value.respond_to? :to_hash
255
+ value.to_hash
256
+ else
257
+ value
258
+ end
259
+ end
260
+ end
261
+ end
@@ -0,0 +1,15 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.0.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ module PulpcoreClient
14
+ VERSION = '3.0.0rc2'
15
+ end
@@ -0,0 +1,61 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.0.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ # Common files
14
+ require 'pulpcore_client/api_client'
15
+ require 'pulpcore_client/api_error'
16
+ require 'pulpcore_client/version'
17
+ require 'pulpcore_client/configuration'
18
+
19
+ # Models
20
+ require 'pulpcore_client/models/artifact'
21
+ require 'pulpcore_client/models/async_operation_response'
22
+ require 'pulpcore_client/models/inline_response200'
23
+ require 'pulpcore_client/models/inline_response2001'
24
+ require 'pulpcore_client/models/inline_response2002'
25
+ require 'pulpcore_client/models/inline_response2003'
26
+ require 'pulpcore_client/models/inline_response2004'
27
+ require 'pulpcore_client/models/inline_response2005'
28
+ require 'pulpcore_client/models/progress_report'
29
+ require 'pulpcore_client/models/repository'
30
+ require 'pulpcore_client/models/repository_version'
31
+ require 'pulpcore_client/models/repository_version_create'
32
+ require 'pulpcore_client/models/task'
33
+ require 'pulpcore_client/models/upload'
34
+ require 'pulpcore_client/models/worker'
35
+
36
+ # APIs
37
+ require 'pulpcore_client/api/artifacts_api'
38
+ require 'pulpcore_client/api/orphans_api'
39
+ require 'pulpcore_client/api/repositories_api'
40
+ require 'pulpcore_client/api/status_api'
41
+ require 'pulpcore_client/api/tasks_api'
42
+ require 'pulpcore_client/api/uploads_api'
43
+ require 'pulpcore_client/api/workers_api'
44
+
45
+ module PulpcoreClient
46
+ class << self
47
+ # Customize default settings for the SDK using block.
48
+ # PulpcoreClient.configure do |config|
49
+ # config.username = "xxx"
50
+ # config.password = "xxx"
51
+ # end
52
+ # If no block given, return the default Configuration object.
53
+ def configure
54
+ if block_given?
55
+ yield(Configuration.default)
56
+ else
57
+ Configuration.default
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,45 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ =begin
4
+ #Pulp 3 API
5
+
6
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: v3
9
+
10
+ Generated by: https://openapi-generator.tech
11
+ OpenAPI Generator version: 4.0.1-SNAPSHOT
12
+
13
+ =end
14
+
15
+ $:.push File.expand_path("../lib", __FILE__)
16
+ require "pulpcore_client/version"
17
+
18
+ Gem::Specification.new do |s|
19
+ s.name = "pulpcore_client"
20
+ s.version = PulpcoreClient::VERSION
21
+ s.platform = Gem::Platform::RUBY
22
+ s.authors = ["OpenAPI-Generator"]
23
+ s.email = [""]
24
+ s.homepage = "https://openapi-generator.tech"
25
+ s.summary = "Pulp 3 API Ruby Gem"
26
+ s.description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
27
+ s.license = 'GPLv2'
28
+ s.required_ruby_version = ">= 1.9"
29
+
30
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
+ s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
+
33
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
+ s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
35
+ s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
36
+ s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
37
+ s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
38
+ s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
39
+ s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
40
+
41
+ s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
42
+ s.test_files = `find spec/*`.split("\n")
43
+ s.executables = []
44
+ s.require_paths = ["lib"]
45
+ end
@@ -0,0 +1,96 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.0.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PulpcoreClient::ArtifactsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'ArtifactsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpcoreClient::ArtifactsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ArtifactsApi' do
30
+ it 'should create an instance of ArtifactsApi' do
31
+ expect(@api_instance).to be_instance_of(PulpcoreClient::ArtifactsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for artifacts_create
36
+ # Create an artifact
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [File] :file The stored file.
39
+ # @option opts [Integer] :size The size of the file in bytes.
40
+ # @option opts [String] :md5 The MD5 checksum of the file if available.
41
+ # @option opts [String] :sha1 The SHA-1 checksum of the file if available.
42
+ # @option opts [String] :sha224 The SHA-224 checksum of the file if available.
43
+ # @option opts [String] :sha256 The SHA-256 checksum of the file if available.
44
+ # @option opts [String] :sha384 The SHA-384 checksum of the file if available.
45
+ # @option opts [String] :sha512 The SHA-512 checksum of the file if available.
46
+ # @option opts [String] :upload An href for an Upload.
47
+ # @return [Artifact]
48
+ describe 'artifacts_create test' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
51
+ end
52
+ end
53
+
54
+ # unit tests for artifacts_delete
55
+ # Delete an artifact
56
+ # Remove Artifact only if it is not associated with any Content.
57
+ # @param artifact_href URI of Artifact. e.g.: /pulp/api/v3/artifacts/1/
58
+ # @param [Hash] opts the optional parameters
59
+ # @return [nil]
60
+ describe 'artifacts_delete test' do
61
+ it 'should work' do
62
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
63
+ end
64
+ end
65
+
66
+ # unit tests for artifacts_list
67
+ # List artifacts
68
+ # @param [Hash] opts the optional parameters
69
+ # @option opts [String] :repository_version Repository Version referenced by HREF
70
+ # @option opts [String] :md5 Filter results where md5 matches value
71
+ # @option opts [String] :sha1 Filter results where sha1 matches value
72
+ # @option opts [String] :sha224 Filter results where sha224 matches value
73
+ # @option opts [String] :sha256 Filter results where sha256 matches value
74
+ # @option opts [String] :sha384 Filter results where sha384 matches value
75
+ # @option opts [String] :sha512 Filter results where sha512 matches value
76
+ # @option opts [Integer] :page A page number within the paginated result set.
77
+ # @option opts [Integer] :page_size Number of results to return per page.
78
+ # @return [InlineResponse200]
79
+ describe 'artifacts_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 artifacts_read
86
+ # Inspect an artifact
87
+ # @param artifact_href URI of Artifact. e.g.: /pulp/api/v3/artifacts/1/
88
+ # @param [Hash] opts the optional parameters
89
+ # @return [Artifact]
90
+ describe 'artifacts_read test' do
91
+ it 'should work' do
92
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
93
+ end
94
+ end
95
+
96
+ end
@@ -0,0 +1,46 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.0.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PulpcoreClient::OrphansApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'OrphansApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpcoreClient::OrphansApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of OrphansApi' do
30
+ it 'should create an instance of OrphansApi' do
31
+ expect(@api_instance).to be_instance_of(PulpcoreClient::OrphansApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for orphans_delete
36
+ # Delete orphans
37
+ # Trigger an asynchronous task that deletes allorphaned content and artifacts.
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [AsyncOperationResponse]
40
+ describe 'orphans_delete test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ end
@@ -0,0 +1,171 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.0.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PulpcoreClient::RepositoriesApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'RepositoriesApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpcoreClient::RepositoriesApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of RepositoriesApi' do
30
+ it 'should create an instance of RepositoriesApi' do
31
+ expect(@api_instance).to be_instance_of(PulpcoreClient::RepositoriesApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for repositories_create
36
+ # Create a repository
37
+ # @param data
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [Repository]
40
+ describe 'repositories_create test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ # unit tests for repositories_delete
47
+ # Delete a repository
48
+ # Trigger an asynchronous task to delete a repository.
49
+ # @param repository_href URI of Repository. e.g.: /pulp/api/v3/repositories/1/
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [AsyncOperationResponse]
52
+ describe 'repositories_delete test' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ # unit tests for repositories_list
59
+ # List repositories
60
+ # @param [Hash] opts the optional parameters
61
+ # @option opts [String] :name
62
+ # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
63
+ # @option opts [Integer] :page A page number within the paginated result set.
64
+ # @option opts [Integer] :page_size Number of results to return per page.
65
+ # @return [InlineResponse2001]
66
+ describe 'repositories_list test' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
69
+ end
70
+ end
71
+
72
+ # unit tests for repositories_partial_update
73
+ # Partially update a repository
74
+ # @param repository_href URI of Repository. e.g.: /pulp/api/v3/repositories/1/
75
+ # @param data
76
+ # @param [Hash] opts the optional parameters
77
+ # @return [Repository]
78
+ describe 'repositories_partial_update 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 repositories_read
85
+ # Inspect a repository
86
+ # @param repository_href URI of Repository. e.g.: /pulp/api/v3/repositories/1/
87
+ # @param [Hash] opts the optional parameters
88
+ # @return [Repository]
89
+ describe 'repositories_read test' do
90
+ it 'should work' do
91
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
+ end
93
+ end
94
+
95
+ # unit tests for repositories_update
96
+ # Update a repository
97
+ # Trigger an asynchronous task to updatea repository.
98
+ # @param repository_href URI of Repository. e.g.: /pulp/api/v3/repositories/1/
99
+ # @param data
100
+ # @param [Hash] opts the optional parameters
101
+ # @return [AsyncOperationResponse]
102
+ describe 'repositories_update test' do
103
+ it 'should work' do
104
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
105
+ end
106
+ end
107
+
108
+ # unit tests for repositories_versions_create
109
+ # Create a repository version
110
+ # Trigger an asynchronous task to create a new repository version.
111
+ # @param repository_href URI of Repository. e.g.: /pulp/api/v3/repositories/1/
112
+ # @param data
113
+ # @param [Hash] opts the optional parameters
114
+ # @return [AsyncOperationResponse]
115
+ describe 'repositories_versions_create test' do
116
+ it 'should work' do
117
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
118
+ end
119
+ end
120
+
121
+ # unit tests for repositories_versions_delete
122
+ # Delete a repository version
123
+ # Trigger an asynchronous task to delete a repositroy version.
124
+ # @param repository_version_href URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/
125
+ # @param [Hash] opts the optional parameters
126
+ # @return [AsyncOperationResponse]
127
+ describe 'repositories_versions_delete test' do
128
+ it 'should work' do
129
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
130
+ end
131
+ end
132
+
133
+ # unit tests for repositories_versions_list
134
+ # List repository versions
135
+ # @param repository_href URI of Repository. e.g.: /pulp/api/v3/repositories/1/
136
+ # @param [Hash] opts the optional parameters
137
+ # @option opts [String] :ordering Which field to use when ordering the results.
138
+ # @option opts [Float] :number
139
+ # @option opts [Float] :number__lt Filter results where number is less than value
140
+ # @option opts [Float] :number__lte Filter results where number is less than or equal to value
141
+ # @option opts [Float] :number__gt Filter results where number is greater than value
142
+ # @option opts [Float] :number__gte Filter results where number is greater than or equal to value
143
+ # @option opts [Float] :number__range Filter results where number is between two comma separated values
144
+ # @option opts [String] :_created__lt Filter results where _created is less than value
145
+ # @option opts [String] :_created__lte Filter results where _created is less than or equal to value
146
+ # @option opts [String] :_created__gt Filter results where _created is greater than value
147
+ # @option opts [String] :_created__gte Filter results where _created is greater than or equal to value
148
+ # @option opts [String] :_created__range Filter results where _created is between two comma separated values
149
+ # @option opts [String] :content Content Unit referenced by HREF
150
+ # @option opts [String] :_created ISO 8601 formatted dates are supported
151
+ # @option opts [Integer] :page A page number within the paginated result set.
152
+ # @option opts [Integer] :page_size Number of results to return per page.
153
+ # @return [InlineResponse2002]
154
+ describe 'repositories_versions_list test' do
155
+ it 'should work' do
156
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
157
+ end
158
+ end
159
+
160
+ # unit tests for repositories_versions_read
161
+ # Inspect a repository version
162
+ # @param repository_version_href URI of Repository Version. e.g.: /pulp/api/v3/repositories/1/versions/1/
163
+ # @param [Hash] opts the optional parameters
164
+ # @return [RepositoryVersion]
165
+ describe 'repositories_versions_read test' do
166
+ it 'should work' do
167
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
168
+ end
169
+ end
170
+
171
+ end