pulp_deb_client 2.14.1 → 2.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/docs/ContentGenericContentsApi.md +1 -1
  4. data/docs/ContentInstallerFileIndicesApi.md +1 -1
  5. data/docs/ContentInstallerPackagesApi.md +1 -1
  6. data/docs/ContentPackageIndicesApi.md +1 -1
  7. data/docs/ContentPackageReleaseComponentsApi.md +1 -1
  8. data/docs/ContentPackagesApi.md +1 -1
  9. data/docs/ContentReleaseArchitecturesApi.md +1 -1
  10. data/docs/ContentReleaseComponentsApi.md +1 -1
  11. data/docs/ContentReleaseFilesApi.md +1 -1
  12. data/docs/ContentReleasesApi.md +1 -1
  13. data/docs/DebAptRemote.md +1 -1
  14. data/docs/DebAptRemoteResponse.md +1 -1
  15. data/docs/DebAptRepository.md +3 -3
  16. data/docs/DebAptRepositoryResponse.md +3 -3
  17. data/docs/DebPackageIndex.md +2 -2
  18. data/docs/DebPackageIndexResponse.md +2 -2
  19. data/docs/DistributionsAptApi.md +1 -1
  20. data/docs/PatcheddebAptRemote.md +1 -1
  21. data/docs/PatcheddebAptRepository.md +3 -3
  22. data/docs/PublicationsAptApi.md +1 -1
  23. data/docs/PublicationsVerbatimApi.md +1 -1
  24. data/docs/RemotesAptApi.md +1 -1
  25. data/docs/RepositoriesAptApi.md +1 -1
  26. data/docs/RepositoriesAptVersionsApi.md +1 -1
  27. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +4 -0
  28. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +4 -0
  29. data/lib/pulp_deb_client/api/content_packages_api.rb +4 -0
  30. data/lib/pulp_deb_client/configuration.rb +2 -2
  31. data/lib/pulp_deb_client/models/deb_apt_distribution.rb +38 -0
  32. data/lib/pulp_deb_client/models/deb_apt_remote.rb +223 -1
  33. data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +1 -1
  34. data/lib/pulp_deb_client/models/deb_apt_repository.rb +51 -16
  35. data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +17 -16
  36. data/lib/pulp_deb_client/models/deb_base_package.rb +15 -0
  37. data/lib/pulp_deb_client/models/deb_generic_content.rb +19 -0
  38. data/lib/pulp_deb_client/models/deb_installer_file_index.rb +53 -0
  39. data/lib/pulp_deb_client/models/deb_package_index.rb +41 -6
  40. data/lib/pulp_deb_client/models/deb_package_index_response.rb +0 -10
  41. data/lib/pulp_deb_client/models/deb_release.rb +57 -0
  42. data/lib/pulp_deb_client/models/deb_release_architecture.rb +19 -0
  43. data/lib/pulp_deb_client/models/deb_release_component.rb +19 -0
  44. data/lib/pulp_deb_client/models/deb_release_file.rb +64 -0
  45. data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +30 -0
  46. data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +211 -1
  47. data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +47 -16
  48. data/lib/pulp_deb_client/version.rb +1 -1
  49. data/pulp_deb_client.gemspec +1 -1
  50. data/spec/configuration_spec.rb +3 -3
  51. data/spec/models/deb_apt_repository_response_spec.rb +1 -1
  52. data/spec/models/deb_apt_repository_spec.rb +1 -1
  53. data/spec/models/patcheddeb_apt_repository_spec.rb +1 -1
  54. metadata +63 -57
@@ -24,8 +24,9 @@ module PulpDebClient
24
24
  attr_accessor :description
25
25
 
26
26
  # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
27
- attr_accessor :retained_versions
27
+ attr_accessor :retain_repo_versions
28
28
 
29
+ # An optional remote to use by default when syncing.
29
30
  attr_accessor :remote
30
31
 
31
32
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -34,7 +35,7 @@ module PulpDebClient
34
35
  :'pulp_labels' => :'pulp_labels',
35
36
  :'name' => :'name',
36
37
  :'description' => :'description',
37
- :'retained_versions' => :'retained_versions',
38
+ :'retain_repo_versions' => :'retain_repo_versions',
38
39
  :'remote' => :'remote'
39
40
  }
40
41
  end
@@ -45,7 +46,7 @@ module PulpDebClient
45
46
  :'pulp_labels' => :'Object',
46
47
  :'name' => :'String',
47
48
  :'description' => :'String',
48
- :'retained_versions' => :'Integer',
49
+ :'retain_repo_versions' => :'Integer',
49
50
  :'remote' => :'String'
50
51
  }
51
52
  end
@@ -54,7 +55,7 @@ module PulpDebClient
54
55
  def self.openapi_nullable
55
56
  Set.new([
56
57
  :'description',
57
- :'retained_versions',
58
+ :'retain_repo_versions',
58
59
  :'remote'
59
60
  ])
60
61
  end
@@ -86,8 +87,8 @@ module PulpDebClient
86
87
  self.description = attributes[:'description']
87
88
  end
88
89
 
89
- if attributes.key?(:'retained_versions')
90
- self.retained_versions = attributes[:'retained_versions']
90
+ if attributes.key?(:'retain_repo_versions')
91
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
91
92
  end
92
93
 
93
94
  if attributes.key?(:'remote')
@@ -99,8 +100,16 @@ module PulpDebClient
99
100
  # @return Array for valid properties with the reasons
100
101
  def list_invalid_properties
101
102
  invalid_properties = Array.new
102
- if !@retained_versions.nil? && @retained_versions < 1
103
- invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
103
+ if !@name.nil? && @name.to_s.length < 1
104
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
105
+ end
106
+
107
+ if !@description.nil? && @description.to_s.length < 1
108
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
109
+ end
110
+
111
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
112
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
104
113
  end
105
114
 
106
115
  invalid_properties
@@ -109,18 +118,40 @@ module PulpDebClient
109
118
  # Check to see if the all the properties in the model are valid
110
119
  # @return true if the model is valid
111
120
  def valid?
112
- return false if !@retained_versions.nil? && @retained_versions < 1
121
+ return false if !@name.nil? && @name.to_s.length < 1
122
+ return false if !@description.nil? && @description.to_s.length < 1
123
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
113
124
  true
114
125
  end
115
126
 
116
127
  # Custom attribute writer method with validation
117
- # @param [Object] retained_versions Value to be assigned
118
- def retained_versions=(retained_versions)
119
- if !retained_versions.nil? && retained_versions < 1
120
- fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
128
+ # @param [Object] name Value to be assigned
129
+ def name=(name)
130
+ if !name.nil? && name.to_s.length < 1
131
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
132
+ end
133
+
134
+ @name = name
135
+ end
136
+
137
+ # Custom attribute writer method with validation
138
+ # @param [Object] description Value to be assigned
139
+ def description=(description)
140
+ if !description.nil? && description.to_s.length < 1
141
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
142
+ end
143
+
144
+ @description = description
145
+ end
146
+
147
+ # Custom attribute writer method with validation
148
+ # @param [Object] retain_repo_versions Value to be assigned
149
+ def retain_repo_versions=(retain_repo_versions)
150
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
151
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
121
152
  end
122
153
 
123
- @retained_versions = retained_versions
154
+ @retain_repo_versions = retain_repo_versions
124
155
  end
125
156
 
126
157
  # Checks equality by comparing each attribute.
@@ -131,7 +162,7 @@ module PulpDebClient
131
162
  pulp_labels == o.pulp_labels &&
132
163
  name == o.name &&
133
164
  description == o.description &&
134
- retained_versions == o.retained_versions &&
165
+ retain_repo_versions == o.retain_repo_versions &&
135
166
  remote == o.remote
136
167
  end
137
168
 
@@ -144,7 +175,7 @@ module PulpDebClient
144
175
  # Calculates hash code according to all attributes.
145
176
  # @return [Integer] Hash code
146
177
  def hash
147
- [pulp_labels, name, description, retained_versions, remote].hash
178
+ [pulp_labels, name, description, retain_repo_versions, remote].hash
148
179
  end
149
180
 
150
181
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpDebClient
14
- VERSION = '2.14.1'
14
+ VERSION = '2.17.0'
15
15
  end
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
27
27
  s.license = 'GPL-2.0+'
28
28
  s.required_ruby_version = ">= 1.9"
29
29
 
30
- s.add_runtime_dependency 'faraday', '>= 0.14.0'
30
+ s.add_runtime_dependency 'faraday', '~> 1.0', '< 1.9.0'
31
31
  s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
32
 
33
33
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
@@ -18,7 +18,7 @@ describe PulpDebClient::Configuration do
18
18
  before(:each) do
19
19
  # uncomment below to setup host and base_path
20
20
  # require 'URI'
21
- # uri = URI.parse("http://pulp")
21
+ # uri = URI.parse("https://pulp")
22
22
  # PulpDebClient.configure do |c|
23
23
  # c.host = uri.host
24
24
  # c.base_path = uri.path
@@ -28,14 +28,14 @@ describe PulpDebClient::Configuration do
28
28
  describe '#base_url' do
29
29
  it 'should have the default value' do
30
30
  # uncomment below to test default value of the base path
31
- # expect(config.base_url).to eq("http://pulp")
31
+ # expect(config.base_url).to eq("https://pulp")
32
32
  end
33
33
 
34
34
  it 'should remove trailing slashes' do
35
35
  [nil, '', '/', '//'].each do |base_path|
36
36
  config.base_path = base_path
37
37
  # uncomment below to test trailing slashes
38
- # expect(config.base_url).to eq("http://pulp")
38
+ # expect(config.base_url).to eq("https://pulp")
39
39
  end
40
40
  end
41
41
  end
@@ -74,7 +74,7 @@ describe 'DebAptRepositoryResponse' do
74
74
  end
75
75
  end
76
76
 
77
- describe 'test attribute "retained_versions"' do
77
+ describe 'test attribute "retain_repo_versions"' do
78
78
  it 'should work' do
79
79
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
80
  end
@@ -50,7 +50,7 @@ describe 'DebAptRepository' do
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "retained_versions"' do
53
+ describe 'test attribute "retain_repo_versions"' do
54
54
  it 'should work' do
55
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
56
  end
@@ -50,7 +50,7 @@ describe 'PatcheddebAptRepository' do
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "retained_versions"' do
53
+ describe 'test attribute "retain_repo_versions"' do
54
54
  it 'should work' do
55
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
56
  end
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_deb_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.14.1
4
+ version: 2.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-29 00:00:00.000000000 Z
11
+ date: 2022-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.14.0
19
+ version: '1.0'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 1.9.0
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - ">="
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '1.0'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: 0.14.0
32
+ version: 1.9.0
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: json
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -318,76 +324,76 @@ signing_key:
318
324
  specification_version: 4
319
325
  summary: Pulp 3 API Ruby Gem
320
326
  test_files:
321
- - spec/api/content_releases_api_spec.rb
322
- - spec/api/content_package_indices_api_spec.rb
323
- - spec/api/content_release_files_api_spec.rb
324
- - spec/api/content_release_architectures_api_spec.rb
327
+ - spec/api/content_installer_packages_api_spec.rb
328
+ - spec/api/content_release_components_api_spec.rb
325
329
  - spec/api/remotes_apt_api_spec.rb
330
+ - spec/api/content_release_architectures_api_spec.rb
326
331
  - spec/api/repositories_apt_api_spec.rb
327
- - spec/api/content_installer_file_indices_api_spec.rb
328
- - spec/api/distributions_apt_api_spec.rb
329
- - spec/api/content_installer_packages_api_spec.rb
330
- - spec/api/content_package_release_components_api_spec.rb
331
- - spec/api/content_generic_contents_api_spec.rb
332
- - spec/api/publications_apt_api_spec.rb
333
332
  - spec/api/content_packages_api_spec.rb
333
+ - spec/api/publications_apt_api_spec.rb
334
+ - spec/api/content_generic_contents_api_spec.rb
334
335
  - spec/api/repositories_apt_versions_api_spec.rb
335
- - spec/api/content_release_components_api_spec.rb
336
+ - spec/api/distributions_apt_api_spec.rb
337
+ - spec/api/content_releases_api_spec.rb
336
338
  - spec/api/publications_verbatim_api_spec.rb
339
+ - spec/api/content_installer_file_indices_api_spec.rb
340
+ - spec/api/content_release_files_api_spec.rb
341
+ - spec/api/content_package_indices_api_spec.rb
342
+ - spec/api/content_package_release_components_api_spec.rb
337
343
  - spec/api_client_spec.rb
338
344
  - spec/configuration_spec.rb
339
- - spec/models/deb_base_package_spec.rb
340
- - spec/models/deb_verbatim_publication_response_spec.rb
341
- - spec/models/paginateddeb_package_release_component_response_list_spec.rb
342
- - spec/models/paginateddeb_release_architecture_response_list_spec.rb
343
- - spec/models/deb_installer_file_index_response_spec.rb
344
- - spec/models/deb_apt_remote_response_spec.rb
345
- - spec/models/patcheddeb_apt_remote_spec.rb
345
+ - spec/models/deb_release_component_response_spec.rb
346
+ - spec/models/deb_verbatim_publication_spec.rb
346
347
  - spec/models/deb_release_file_spec.rb
347
- - spec/models/deb_installer_file_index_spec.rb
348
- - spec/models/deb_package_release_component_response_spec.rb
349
- - spec/models/paginateddeb_base_package_response_list_spec.rb
350
- - spec/models/paginateddeb_generic_content_response_list_spec.rb
348
+ - spec/models/paginateddeb_release_file_response_list_spec.rb
349
+ - spec/models/deb_release_architecture_response_spec.rb
350
+ - spec/models/paginateddeb_verbatim_publication_response_list_spec.rb
351
351
  - spec/models/deb_apt_repository_spec.rb
352
+ - spec/models/paginateddeb_package_index_response_list_spec.rb
353
+ - spec/models/paginateddeb_apt_remote_response_list_spec.rb
354
+ - spec/models/paginated_repository_version_response_list_spec.rb
352
355
  - spec/models/deb_generic_content_response_spec.rb
353
- - spec/models/deb_apt_repository_response_spec.rb
354
- - spec/models/deb_release_component_spec.rb
355
- - spec/models/repository_version_spec.rb
356
- - spec/models/deb_release_component_response_spec.rb
356
+ - spec/models/deb_package_release_component_spec.rb
357
+ - spec/models/deb_release_file_response_spec.rb
358
+ - spec/models/deb_apt_distribution_response_spec.rb
359
+ - spec/models/repository_add_remove_content_spec.rb
357
360
  - spec/models/paginateddeb_apt_publication_response_list_spec.rb
358
- - spec/models/paginateddeb_verbatim_publication_response_list_spec.rb
361
+ - spec/models/deb_package_release_component_response_spec.rb
362
+ - spec/models/deb_installer_file_index_spec.rb
363
+ - spec/models/deb_apt_publication_spec.rb
364
+ - spec/models/paginateddeb_generic_content_response_list_spec.rb
365
+ - spec/models/patcheddeb_apt_remote_spec.rb
359
366
  - spec/models/policy_enum_spec.rb
360
- - spec/models/repository_version_response_spec.rb
361
- - spec/models/deb_release_spec.rb
362
- - spec/models/deb_release_response_spec.rb
363
- - spec/models/patcheddeb_apt_repository_spec.rb
364
- - spec/models/deb_apt_distribution_response_spec.rb
365
367
  - spec/models/repository_sync_url_spec.rb
366
- - spec/models/deb_apt_publication_spec.rb
368
+ - spec/models/deb_package_index_response_spec.rb
369
+ - spec/models/deb_base_package_spec.rb
370
+ - spec/models/deb_apt_remote_response_spec.rb
367
371
  - spec/models/paginateddeb_apt_distribution_response_list_spec.rb
372
+ - spec/models/deb_generic_content_spec.rb
373
+ - spec/models/repository_version_response_spec.rb
374
+ - spec/models/deb_release_architecture_spec.rb
375
+ - spec/models/deb_verbatim_publication_response_spec.rb
376
+ - spec/models/paginateddeb_apt_repository_response_list_spec.rb
377
+ - spec/models/deb_base_package_response_spec.rb
368
378
  - spec/models/paginateddeb_installer_file_index_response_list_spec.rb
369
379
  - spec/models/content_summary_response_spec.rb
370
- - spec/models/deb_package_index_response_spec.rb
371
- - spec/models/deb_package_release_component_spec.rb
372
- - spec/models/deb_generic_content_spec.rb
373
- - spec/models/async_operation_response_spec.rb
374
- - spec/models/paginated_repository_version_response_list_spec.rb
375
- - spec/models/patcheddeb_apt_distribution_spec.rb
376
- - spec/models/deb_apt_remote_spec.rb
380
+ - spec/models/paginateddeb_base_package_response_list_spec.rb
377
381
  - spec/models/deb_package_index_spec.rb
378
- - spec/models/deb_apt_publication_response_spec.rb
379
- - spec/models/deb_release_file_response_spec.rb
380
- - spec/models/deb_verbatim_publication_spec.rb
381
- - spec/models/paginateddeb_release_file_response_list_spec.rb
382
+ - spec/models/paginateddeb_package_release_component_response_list_spec.rb
382
383
  - spec/models/deb_apt_distribution_spec.rb
384
+ - spec/models/deb_release_spec.rb
383
385
  - spec/models/content_summary_spec.rb
384
- - spec/models/deb_release_architecture_response_spec.rb
385
- - spec/models/deb_base_package_response_spec.rb
386
- - spec/models/paginateddeb_apt_repository_response_list_spec.rb
387
- - spec/models/paginateddeb_apt_remote_response_list_spec.rb
388
386
  - spec/models/paginateddeb_release_component_response_list_spec.rb
389
- - spec/models/repository_add_remove_content_spec.rb
390
- - spec/models/paginateddeb_package_index_response_list_spec.rb
391
387
  - spec/models/paginateddeb_release_response_list_spec.rb
392
- - spec/models/deb_release_architecture_spec.rb
388
+ - spec/models/deb_release_component_spec.rb
389
+ - spec/models/repository_version_spec.rb
390
+ - spec/models/async_operation_response_spec.rb
391
+ - spec/models/deb_release_response_spec.rb
392
+ - spec/models/deb_apt_remote_spec.rb
393
+ - spec/models/deb_apt_publication_response_spec.rb
394
+ - spec/models/patcheddeb_apt_repository_spec.rb
395
+ - spec/models/patcheddeb_apt_distribution_spec.rb
396
+ - spec/models/paginateddeb_release_architecture_response_list_spec.rb
397
+ - spec/models/deb_apt_repository_response_spec.rb
398
+ - spec/models/deb_installer_file_index_response_spec.rb
393
399
  - spec/spec_helper.rb