pulp_deb_client 2.11.2 → 2.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (169) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +8 -8
  4. data/docs/ContentSummary.md +3 -3
  5. data/docs/ContentSummaryResponse.md +3 -3
  6. data/docs/DebAptDistribution.md +2 -0
  7. data/docs/DebAptDistributionResponse.md +2 -0
  8. data/docs/DebAptRemote.md +7 -5
  9. data/docs/DebAptRemoteResponse.md +7 -5
  10. data/docs/DebAptRepository.md +2 -0
  11. data/docs/DebAptRepositoryResponse.md +2 -0
  12. data/docs/PatcheddebAptDistribution.md +2 -0
  13. data/docs/PatcheddebAptRemote.md +7 -5
  14. data/docs/PatcheddebAptRepository.md +2 -0
  15. data/docs/PublicationsAptApi.md +4 -0
  16. data/docs/PublicationsVerbatimApi.md +4 -0
  17. data/docs/{RepositoriesDebVersionsApi.md → RepositoriesAptVersionsApi.md} +13 -13
  18. data/docs/RepositoryAddRemoveContent.md +2 -2
  19. data/docs/RepositoryVersionResponse.md +2 -0
  20. data/lib/pulp_deb_client.rb +2 -2
  21. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +1 -1
  22. data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +1 -1
  23. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +1 -9
  24. data/lib/pulp_deb_client/api/content_package_indices_api.rb +1 -1
  25. data/lib/pulp_deb_client/api/content_package_release_components_api.rb +1 -1
  26. data/lib/pulp_deb_client/api/content_packages_api.rb +1 -9
  27. data/lib/pulp_deb_client/api/content_release_architectures_api.rb +1 -1
  28. data/lib/pulp_deb_client/api/content_release_components_api.rb +1 -1
  29. data/lib/pulp_deb_client/api/content_release_files_api.rb +1 -1
  30. data/lib/pulp_deb_client/api/content_releases_api.rb +1 -1
  31. data/lib/pulp_deb_client/api/distributions_apt_api.rb +1 -1
  32. data/lib/pulp_deb_client/api/publications_apt_api.rb +7 -1
  33. data/lib/pulp_deb_client/api/publications_verbatim_api.rb +7 -1
  34. data/lib/pulp_deb_client/api/remotes_apt_api.rb +1 -1
  35. data/lib/pulp_deb_client/api/repositories_apt_api.rb +1 -1
  36. data/lib/pulp_deb_client/api/{repositories_deb_versions_api.rb → repositories_apt_versions_api.rb} +15 -35
  37. data/lib/pulp_deb_client/api_client.rb +12 -8
  38. data/lib/pulp_deb_client/api_error.rb +1 -1
  39. data/lib/pulp_deb_client/configuration.rb +8 -1
  40. data/lib/pulp_deb_client/models/async_operation_response.rb +1 -1
  41. data/lib/pulp_deb_client/models/content_summary.rb +13 -7
  42. data/lib/pulp_deb_client/models/content_summary_response.rb +13 -7
  43. data/lib/pulp_deb_client/models/deb_apt_distribution.rb +13 -2
  44. data/lib/pulp_deb_client/models/deb_apt_distribution_response.rb +13 -2
  45. data/lib/pulp_deb_client/models/deb_apt_publication.rb +1 -1
  46. data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +1 -1
  47. data/lib/pulp_deb_client/models/deb_apt_remote.rb +19 -7
  48. data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +19 -7
  49. data/lib/pulp_deb_client/models/deb_apt_repository.rb +28 -2
  50. data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +28 -2
  51. data/lib/pulp_deb_client/models/deb_base_package.rb +1 -1
  52. data/lib/pulp_deb_client/models/deb_base_package_response.rb +1 -1
  53. data/lib/pulp_deb_client/models/deb_generic_content.rb +1 -1
  54. data/lib/pulp_deb_client/models/deb_generic_content_response.rb +1 -1
  55. data/lib/pulp_deb_client/models/deb_installer_file_index.rb +1 -1
  56. data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +1 -1
  57. data/lib/pulp_deb_client/models/deb_package_index.rb +1 -1
  58. data/lib/pulp_deb_client/models/deb_package_index_response.rb +1 -1
  59. data/lib/pulp_deb_client/models/deb_package_release_component.rb +1 -1
  60. data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +1 -1
  61. data/lib/pulp_deb_client/models/deb_release.rb +1 -1
  62. data/lib/pulp_deb_client/models/deb_release_architecture.rb +1 -1
  63. data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +1 -1
  64. data/lib/pulp_deb_client/models/deb_release_component.rb +1 -1
  65. data/lib/pulp_deb_client/models/deb_release_component_response.rb +1 -1
  66. data/lib/pulp_deb_client/models/deb_release_file.rb +1 -1
  67. data/lib/pulp_deb_client/models/deb_release_file_response.rb +1 -1
  68. data/lib/pulp_deb_client/models/deb_release_response.rb +1 -1
  69. data/lib/pulp_deb_client/models/deb_verbatim_publication.rb +1 -1
  70. data/lib/pulp_deb_client/models/deb_verbatim_publication_response.rb +1 -1
  71. data/lib/pulp_deb_client/models/paginated_repository_version_response_list.rb +1 -1
  72. data/lib/pulp_deb_client/models/paginateddeb_apt_distribution_response_list.rb +1 -1
  73. data/lib/pulp_deb_client/models/paginateddeb_apt_publication_response_list.rb +1 -1
  74. data/lib/pulp_deb_client/models/paginateddeb_apt_remote_response_list.rb +1 -1
  75. data/lib/pulp_deb_client/models/paginateddeb_apt_repository_response_list.rb +1 -1
  76. data/lib/pulp_deb_client/models/paginateddeb_base_package_response_list.rb +1 -1
  77. data/lib/pulp_deb_client/models/paginateddeb_generic_content_response_list.rb +1 -1
  78. data/lib/pulp_deb_client/models/paginateddeb_installer_file_index_response_list.rb +1 -1
  79. data/lib/pulp_deb_client/models/paginateddeb_package_index_response_list.rb +1 -1
  80. data/lib/pulp_deb_client/models/paginateddeb_package_release_component_response_list.rb +1 -1
  81. data/lib/pulp_deb_client/models/paginateddeb_release_architecture_response_list.rb +1 -1
  82. data/lib/pulp_deb_client/models/paginateddeb_release_component_response_list.rb +1 -1
  83. data/lib/pulp_deb_client/models/paginateddeb_release_file_response_list.rb +1 -1
  84. data/lib/pulp_deb_client/models/paginateddeb_release_response_list.rb +1 -1
  85. data/lib/pulp_deb_client/models/paginateddeb_verbatim_publication_response_list.rb +1 -1
  86. data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +13 -2
  87. data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +19 -7
  88. data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +28 -2
  89. data/lib/pulp_deb_client/models/policy_enum.rb +1 -1
  90. data/lib/pulp_deb_client/models/repository_add_remove_content.rb +3 -3
  91. data/lib/pulp_deb_client/models/repository_sync_url.rb +1 -1
  92. data/lib/pulp_deb_client/models/repository_version.rb +1 -1
  93. data/lib/pulp_deb_client/models/repository_version_response.rb +11 -2
  94. data/lib/pulp_deb_client/version.rb +2 -2
  95. data/pulp_deb_client.gemspec +1 -1
  96. data/spec/api/content_generic_contents_api_spec.rb +1 -1
  97. data/spec/api/content_installer_file_indices_api_spec.rb +1 -1
  98. data/spec/api/content_installer_packages_api_spec.rb +1 -1
  99. data/spec/api/content_package_indices_api_spec.rb +1 -1
  100. data/spec/api/content_package_release_components_api_spec.rb +1 -1
  101. data/spec/api/content_packages_api_spec.rb +1 -1
  102. data/spec/api/content_release_architectures_api_spec.rb +1 -1
  103. data/spec/api/content_release_components_api_spec.rb +1 -1
  104. data/spec/api/content_release_files_api_spec.rb +1 -1
  105. data/spec/api/content_releases_api_spec.rb +1 -1
  106. data/spec/api/distributions_apt_api_spec.rb +1 -1
  107. data/spec/api/publications_apt_api_spec.rb +3 -1
  108. data/spec/api/publications_verbatim_api_spec.rb +3 -1
  109. data/spec/api/remotes_apt_api_spec.rb +1 -1
  110. data/spec/api/repositories_apt_api_spec.rb +1 -1
  111. data/spec/api/{repositories_deb_versions_api_spec.rb → repositories_apt_versions_api_spec.rb} +7 -7
  112. data/spec/api_client_spec.rb +2 -2
  113. data/spec/configuration_spec.rb +1 -1
  114. data/spec/models/async_operation_response_spec.rb +1 -1
  115. data/spec/models/content_summary_response_spec.rb +1 -1
  116. data/spec/models/content_summary_spec.rb +1 -1
  117. data/spec/models/deb_apt_distribution_response_spec.rb +7 -1
  118. data/spec/models/deb_apt_distribution_spec.rb +7 -1
  119. data/spec/models/deb_apt_publication_response_spec.rb +1 -1
  120. data/spec/models/deb_apt_publication_spec.rb +1 -1
  121. data/spec/models/deb_apt_remote_response_spec.rb +7 -1
  122. data/spec/models/deb_apt_remote_spec.rb +7 -1
  123. data/spec/models/deb_apt_repository_response_spec.rb +7 -1
  124. data/spec/models/deb_apt_repository_spec.rb +7 -1
  125. data/spec/models/deb_base_package_response_spec.rb +1 -1
  126. data/spec/models/deb_base_package_spec.rb +1 -1
  127. data/spec/models/deb_generic_content_response_spec.rb +1 -1
  128. data/spec/models/deb_generic_content_spec.rb +1 -1
  129. data/spec/models/deb_installer_file_index_response_spec.rb +1 -1
  130. data/spec/models/deb_installer_file_index_spec.rb +1 -1
  131. data/spec/models/deb_package_index_response_spec.rb +1 -1
  132. data/spec/models/deb_package_index_spec.rb +1 -1
  133. data/spec/models/deb_package_release_component_response_spec.rb +1 -1
  134. data/spec/models/deb_package_release_component_spec.rb +1 -1
  135. data/spec/models/deb_release_architecture_response_spec.rb +1 -1
  136. data/spec/models/deb_release_architecture_spec.rb +1 -1
  137. data/spec/models/deb_release_component_response_spec.rb +1 -1
  138. data/spec/models/deb_release_component_spec.rb +1 -1
  139. data/spec/models/deb_release_file_response_spec.rb +1 -1
  140. data/spec/models/deb_release_file_spec.rb +1 -1
  141. data/spec/models/deb_release_response_spec.rb +1 -1
  142. data/spec/models/deb_release_spec.rb +1 -1
  143. data/spec/models/deb_verbatim_publication_response_spec.rb +1 -1
  144. data/spec/models/deb_verbatim_publication_spec.rb +1 -1
  145. data/spec/models/paginated_repository_version_response_list_spec.rb +1 -1
  146. data/spec/models/paginateddeb_apt_distribution_response_list_spec.rb +1 -1
  147. data/spec/models/paginateddeb_apt_publication_response_list_spec.rb +1 -1
  148. data/spec/models/paginateddeb_apt_remote_response_list_spec.rb +1 -1
  149. data/spec/models/paginateddeb_apt_repository_response_list_spec.rb +1 -1
  150. data/spec/models/paginateddeb_base_package_response_list_spec.rb +1 -1
  151. data/spec/models/paginateddeb_generic_content_response_list_spec.rb +1 -1
  152. data/spec/models/paginateddeb_installer_file_index_response_list_spec.rb +1 -1
  153. data/spec/models/paginateddeb_package_index_response_list_spec.rb +1 -1
  154. data/spec/models/paginateddeb_package_release_component_response_list_spec.rb +1 -1
  155. data/spec/models/paginateddeb_release_architecture_response_list_spec.rb +1 -1
  156. data/spec/models/paginateddeb_release_component_response_list_spec.rb +1 -1
  157. data/spec/models/paginateddeb_release_file_response_list_spec.rb +1 -1
  158. data/spec/models/paginateddeb_release_response_list_spec.rb +1 -1
  159. data/spec/models/paginateddeb_verbatim_publication_response_list_spec.rb +1 -1
  160. data/spec/models/patcheddeb_apt_distribution_spec.rb +7 -1
  161. data/spec/models/patcheddeb_apt_remote_spec.rb +7 -1
  162. data/spec/models/patcheddeb_apt_repository_spec.rb +7 -1
  163. data/spec/models/policy_enum_spec.rb +1 -1
  164. data/spec/models/repository_add_remove_content_spec.rb +1 -1
  165. data/spec/models/repository_sync_url_spec.rb +1 -1
  166. data/spec/models/repository_version_response_spec.rb +7 -1
  167. data/spec/models/repository_version_spec.rb +1 -1
  168. data/spec/spec_helper.rb +1 -1
  169. metadata +57 -57
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -33,9 +33,9 @@ module PulpDebClient
33
33
  # Attribute type mapping.
34
34
  def self.openapi_types
35
35
  {
36
- :'added' => :'Object',
37
- :'removed' => :'Object',
38
- :'present' => :'Object'
36
+ :'added' => :'Hash<String, Object>',
37
+ :'removed' => :'Hash<String, Object>',
38
+ :'present' => :'Hash<String, Object>'
39
39
  }
40
40
  end
41
41
 
@@ -61,15 +61,21 @@ module PulpDebClient
61
61
  }
62
62
 
63
63
  if attributes.key?(:'added')
64
- self.added = attributes[:'added']
64
+ if (value = attributes[:'added']).is_a?(Hash)
65
+ self.added = value
66
+ end
65
67
  end
66
68
 
67
69
  if attributes.key?(:'removed')
68
- self.removed = attributes[:'removed']
70
+ if (value = attributes[:'removed']).is_a?(Hash)
71
+ self.removed = value
72
+ end
69
73
  end
70
74
 
71
75
  if attributes.key?(:'present')
72
- self.present = attributes[:'present']
76
+ if (value = attributes[:'present']).is_a?(Hash)
77
+ self.present = value
78
+ end
73
79
  end
74
80
  end
75
81
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -33,9 +33,9 @@ module PulpDebClient
33
33
  # Attribute type mapping.
34
34
  def self.openapi_types
35
35
  {
36
- :'added' => :'Object',
37
- :'removed' => :'Object',
38
- :'present' => :'Object'
36
+ :'added' => :'Hash<String, Object>',
37
+ :'removed' => :'Hash<String, Object>',
38
+ :'present' => :'Hash<String, Object>'
39
39
  }
40
40
  end
41
41
 
@@ -61,15 +61,21 @@ module PulpDebClient
61
61
  }
62
62
 
63
63
  if attributes.key?(:'added')
64
- self.added = attributes[:'added']
64
+ if (value = attributes[:'added']).is_a?(Hash)
65
+ self.added = value
66
+ end
65
67
  end
66
68
 
67
69
  if attributes.key?(:'removed')
68
- self.removed = attributes[:'removed']
70
+ if (value = attributes[:'removed']).is_a?(Hash)
71
+ self.removed = value
72
+ end
69
73
  end
70
74
 
71
75
  if attributes.key?(:'present')
72
- self.present = attributes[:'present']
76
+ if (value = attributes[:'present']).is_a?(Hash)
77
+ self.present = value
78
+ end
73
79
  end
74
80
  end
75
81
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -26,6 +26,9 @@ module PulpDebClient
26
26
  # A unique name. Ex, `rawhide` and `stable`.
27
27
  attr_accessor :name
28
28
 
29
+ # The latest RepositoryVersion for this Repository will be served.
30
+ attr_accessor :repository
31
+
29
32
  # Publication to be served
30
33
  attr_accessor :publication
31
34
 
@@ -36,6 +39,7 @@ module PulpDebClient
36
39
  :'content_guard' => :'content_guard',
37
40
  :'pulp_labels' => :'pulp_labels',
38
41
  :'name' => :'name',
42
+ :'repository' => :'repository',
39
43
  :'publication' => :'publication'
40
44
  }
41
45
  end
@@ -47,6 +51,7 @@ module PulpDebClient
47
51
  :'content_guard' => :'String',
48
52
  :'pulp_labels' => :'Object',
49
53
  :'name' => :'String',
54
+ :'repository' => :'String',
50
55
  :'publication' => :'String'
51
56
  }
52
57
  end
@@ -55,6 +60,7 @@ module PulpDebClient
55
60
  def self.openapi_nullable
56
61
  Set.new([
57
62
  :'content_guard',
63
+ :'repository',
58
64
  :'publication'
59
65
  ])
60
66
  end
@@ -90,6 +96,10 @@ module PulpDebClient
90
96
  self.name = attributes[:'name']
91
97
  end
92
98
 
99
+ if attributes.key?(:'repository')
100
+ self.repository = attributes[:'repository']
101
+ end
102
+
93
103
  if attributes.key?(:'publication')
94
104
  self.publication = attributes[:'publication']
95
105
  end
@@ -127,6 +137,7 @@ module PulpDebClient
127
137
  content_guard == o.content_guard &&
128
138
  pulp_labels == o.pulp_labels &&
129
139
  name == o.name &&
140
+ repository == o.repository &&
130
141
  publication == o.publication
131
142
  end
132
143
 
@@ -139,7 +150,7 @@ module PulpDebClient
139
150
  # Calculates hash code according to all attributes.
140
151
  # @return [Integer] Hash code
141
152
  def hash
142
- [base_path, content_guard, pulp_labels, name, publication].hash
153
+ [base_path, content_guard, pulp_labels, name, repository, publication].hash
143
154
  end
144
155
 
145
156
  # Builds the object from hash
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -34,6 +34,9 @@ module PulpDebClient
34
34
  # A unique name. Ex, `rawhide` and `stable`.
35
35
  attr_accessor :name
36
36
 
37
+ # The latest RepositoryVersion for this Repository will be served.
38
+ attr_accessor :repository
39
+
37
40
  # Publication to be served
38
41
  attr_accessor :publication
39
42
 
@@ -47,6 +50,7 @@ module PulpDebClient
47
50
  :'content_guard' => :'content_guard',
48
51
  :'pulp_labels' => :'pulp_labels',
49
52
  :'name' => :'name',
53
+ :'repository' => :'repository',
50
54
  :'publication' => :'publication'
51
55
  }
52
56
  end
@@ -61,6 +65,7 @@ module PulpDebClient
61
65
  :'content_guard' => :'String',
62
66
  :'pulp_labels' => :'Object',
63
67
  :'name' => :'String',
68
+ :'repository' => :'String',
64
69
  :'publication' => :'String'
65
70
  }
66
71
  end
@@ -69,6 +74,7 @@ module PulpDebClient
69
74
  def self.openapi_nullable
70
75
  Set.new([
71
76
  :'content_guard',
77
+ :'repository',
72
78
  :'publication'
73
79
  ])
74
80
  end
@@ -116,6 +122,10 @@ module PulpDebClient
116
122
  self.name = attributes[:'name']
117
123
  end
118
124
 
125
+ if attributes.key?(:'repository')
126
+ self.repository = attributes[:'repository']
127
+ end
128
+
119
129
  if attributes.key?(:'publication')
120
130
  self.publication = attributes[:'publication']
121
131
  end
@@ -156,6 +166,7 @@ module PulpDebClient
156
166
  content_guard == o.content_guard &&
157
167
  pulp_labels == o.pulp_labels &&
158
168
  name == o.name &&
169
+ repository == o.repository &&
159
170
  publication == o.publication
160
171
  end
161
172
 
@@ -168,7 +179,7 @@ module PulpDebClient
168
179
  # Calculates hash code according to all attributes.
169
180
  # @return [Integer] Hash code
170
181
  def hash
171
- [pulp_href, pulp_created, base_path, base_url, content_guard, pulp_labels, name, publication].hash
182
+ [pulp_href, pulp_created, base_path, base_url, content_guard, pulp_labels, name, repository, publication].hash
172
183
  end
173
184
 
174
185
  # Builds the object from hash
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -50,22 +50,25 @@ module PulpDebClient
50
50
 
51
51
  attr_accessor :pulp_labels
52
52
 
53
- # Total number of simultaneous connections.
53
+ # Total number of simultaneous connections. If not set then the default value will be used.
54
54
  attr_accessor :download_concurrency
55
55
 
56
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
57
+ attr_accessor :max_retries
58
+
56
59
  # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.
57
60
  attr_accessor :policy
58
61
 
59
- # aiohttp.ClientTimeout.total (q.v.) for download-connections.
62
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
60
63
  attr_accessor :total_timeout
61
64
 
62
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections.
65
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
63
66
  attr_accessor :connect_timeout
64
67
 
65
- # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
68
+ # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
66
69
  attr_accessor :sock_connect_timeout
67
70
 
68
- # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
71
+ # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
69
72
  attr_accessor :sock_read_timeout
70
73
 
71
74
  # Headers for aiohttp.Clientsession
@@ -114,6 +117,7 @@ module PulpDebClient
114
117
  :'password' => :'password',
115
118
  :'pulp_labels' => :'pulp_labels',
116
119
  :'download_concurrency' => :'download_concurrency',
120
+ :'max_retries' => :'max_retries',
117
121
  :'policy' => :'policy',
118
122
  :'total_timeout' => :'total_timeout',
119
123
  :'connect_timeout' => :'connect_timeout',
@@ -148,6 +152,7 @@ module PulpDebClient
148
152
  :'password' => :'String',
149
153
  :'pulp_labels' => :'Object',
150
154
  :'download_concurrency' => :'Integer',
155
+ :'max_retries' => :'Integer',
151
156
  :'policy' => :'PolicyEnum',
152
157
  :'total_timeout' => :'Float',
153
158
  :'connect_timeout' => :'Float',
@@ -177,6 +182,8 @@ module PulpDebClient
177
182
  :'proxy_password',
178
183
  :'username',
179
184
  :'password',
185
+ :'download_concurrency',
186
+ :'max_retries',
180
187
  :'total_timeout',
181
188
  :'connect_timeout',
182
189
  :'sock_connect_timeout',
@@ -255,6 +262,10 @@ module PulpDebClient
255
262
  self.download_concurrency = attributes[:'download_concurrency']
256
263
  end
257
264
 
265
+ if attributes.key?(:'max_retries')
266
+ self.max_retries = attributes[:'max_retries']
267
+ end
268
+
258
269
  if attributes.key?(:'policy')
259
270
  self.policy = attributes[:'policy']
260
271
  end
@@ -439,6 +450,7 @@ module PulpDebClient
439
450
  password == o.password &&
440
451
  pulp_labels == o.pulp_labels &&
441
452
  download_concurrency == o.download_concurrency &&
453
+ max_retries == o.max_retries &&
442
454
  policy == o.policy &&
443
455
  total_timeout == o.total_timeout &&
444
456
  connect_timeout == o.connect_timeout &&
@@ -465,7 +477,7 @@ module PulpDebClient
465
477
  # Calculates hash code according to all attributes.
466
478
  # @return [Integer] Hash code
467
479
  def hash
468
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
480
+ [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
469
481
  end
470
482
 
471
483
  # Builds the object from hash
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -43,22 +43,25 @@ module PulpDebClient
43
43
  # Timestamp of the most recent update of the remote.
44
44
  attr_accessor :pulp_last_updated
45
45
 
46
- # Total number of simultaneous connections.
46
+ # Total number of simultaneous connections. If not set then the default value will be used.
47
47
  attr_accessor :download_concurrency
48
48
 
49
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
50
+ attr_accessor :max_retries
51
+
49
52
  # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.
50
53
  attr_accessor :policy
51
54
 
52
- # aiohttp.ClientTimeout.total (q.v.) for download-connections.
55
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
53
56
  attr_accessor :total_timeout
54
57
 
55
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections.
58
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
56
59
  attr_accessor :connect_timeout
57
60
 
58
- # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
61
+ # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
59
62
  attr_accessor :sock_connect_timeout
60
63
 
61
- # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
64
+ # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
62
65
  attr_accessor :sock_read_timeout
63
66
 
64
67
  # Headers for aiohttp.Clientsession
@@ -105,6 +108,7 @@ module PulpDebClient
105
108
  :'pulp_labels' => :'pulp_labels',
106
109
  :'pulp_last_updated' => :'pulp_last_updated',
107
110
  :'download_concurrency' => :'download_concurrency',
111
+ :'max_retries' => :'max_retries',
108
112
  :'policy' => :'policy',
109
113
  :'total_timeout' => :'total_timeout',
110
114
  :'connect_timeout' => :'connect_timeout',
@@ -137,6 +141,7 @@ module PulpDebClient
137
141
  :'pulp_labels' => :'Object',
138
142
  :'pulp_last_updated' => :'DateTime',
139
143
  :'download_concurrency' => :'Integer',
144
+ :'max_retries' => :'Integer',
140
145
  :'policy' => :'PolicyEnum',
141
146
  :'total_timeout' => :'Float',
142
147
  :'connect_timeout' => :'Float',
@@ -161,6 +166,8 @@ module PulpDebClient
161
166
  :'ca_cert',
162
167
  :'client_cert',
163
168
  :'proxy_url',
169
+ :'download_concurrency',
170
+ :'max_retries',
164
171
  :'total_timeout',
165
172
  :'connect_timeout',
166
173
  :'sock_connect_timeout',
@@ -231,6 +238,10 @@ module PulpDebClient
231
238
  self.download_concurrency = attributes[:'download_concurrency']
232
239
  end
233
240
 
241
+ if attributes.key?(:'max_retries')
242
+ self.max_retries = attributes[:'max_retries']
243
+ end
244
+
234
245
  if attributes.key?(:'policy')
235
246
  self.policy = attributes[:'policy']
236
247
  end
@@ -413,6 +424,7 @@ module PulpDebClient
413
424
  pulp_labels == o.pulp_labels &&
414
425
  pulp_last_updated == o.pulp_last_updated &&
415
426
  download_concurrency == o.download_concurrency &&
427
+ max_retries == o.max_retries &&
416
428
  policy == o.policy &&
417
429
  total_timeout == o.total_timeout &&
418
430
  connect_timeout == o.connect_timeout &&
@@ -439,7 +451,7 @@ module PulpDebClient
439
451
  # Calculates hash code according to all attributes.
440
452
  # @return [Integer] Hash code
441
453
  def hash
442
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
454
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, distributions, components, architectures, sync_sources, sync_udebs, sync_installer, gpgkey, ignore_missing_package_indices].hash
443
455
  end
444
456
 
445
457
  # Builds the object from hash
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -23,6 +23,9 @@ module PulpDebClient
23
23
  # An optional description.
24
24
  attr_accessor :description
25
25
 
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
28
+
26
29
  attr_accessor :remote
27
30
 
28
31
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -31,6 +34,7 @@ module PulpDebClient
31
34
  :'pulp_labels' => :'pulp_labels',
32
35
  :'name' => :'name',
33
36
  :'description' => :'description',
37
+ :'retained_versions' => :'retained_versions',
34
38
  :'remote' => :'remote'
35
39
  }
36
40
  end
@@ -41,6 +45,7 @@ module PulpDebClient
41
45
  :'pulp_labels' => :'Object',
42
46
  :'name' => :'String',
43
47
  :'description' => :'String',
48
+ :'retained_versions' => :'Integer',
44
49
  :'remote' => :'String'
45
50
  }
46
51
  end
@@ -49,6 +54,7 @@ module PulpDebClient
49
54
  def self.openapi_nullable
50
55
  Set.new([
51
56
  :'description',
57
+ :'retained_versions',
52
58
  :'remote'
53
59
  ])
54
60
  end
@@ -80,6 +86,10 @@ module PulpDebClient
80
86
  self.description = attributes[:'description']
81
87
  end
82
88
 
89
+ if attributes.key?(:'retained_versions')
90
+ self.retained_versions = attributes[:'retained_versions']
91
+ end
92
+
83
93
  if attributes.key?(:'remote')
84
94
  self.remote = attributes[:'remote']
85
95
  end
@@ -93,6 +103,10 @@ module PulpDebClient
93
103
  invalid_properties.push('invalid value for "name", name cannot be nil.')
94
104
  end
95
105
 
106
+ if !@retained_versions.nil? && @retained_versions < 1
107
+ invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
108
+ end
109
+
96
110
  invalid_properties
97
111
  end
98
112
 
@@ -100,9 +114,20 @@ module PulpDebClient
100
114
  # @return true if the model is valid
101
115
  def valid?
102
116
  return false if @name.nil?
117
+ return false if !@retained_versions.nil? && @retained_versions < 1
103
118
  true
104
119
  end
105
120
 
121
+ # Custom attribute writer method with validation
122
+ # @param [Object] retained_versions Value to be assigned
123
+ def retained_versions=(retained_versions)
124
+ if !retained_versions.nil? && retained_versions < 1
125
+ fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
126
+ end
127
+
128
+ @retained_versions = retained_versions
129
+ end
130
+
106
131
  # Checks equality by comparing each attribute.
107
132
  # @param [Object] Object to be compared
108
133
  def ==(o)
@@ -111,6 +136,7 @@ module PulpDebClient
111
136
  pulp_labels == o.pulp_labels &&
112
137
  name == o.name &&
113
138
  description == o.description &&
139
+ retained_versions == o.retained_versions &&
114
140
  remote == o.remote
115
141
  end
116
142
 
@@ -123,7 +149,7 @@ module PulpDebClient
123
149
  # Calculates hash code according to all attributes.
124
150
  # @return [Integer] Hash code
125
151
  def hash
126
- [pulp_labels, name, description, remote].hash
152
+ [pulp_labels, name, description, retained_versions, remote].hash
127
153
  end
128
154
 
129
155
  # Builds the object from hash