pulp_deb_client 2.11.2 → 2.13.1

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 (165) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +4 -4
  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/DebAptRepository.md +2 -0
  9. data/docs/DebAptRepositoryResponse.md +2 -0
  10. data/docs/PatcheddebAptDistribution.md +2 -0
  11. data/docs/PatcheddebAptRepository.md +2 -0
  12. data/docs/PublicationsAptApi.md +4 -0
  13. data/docs/PublicationsVerbatimApi.md +4 -0
  14. data/docs/RepositoryAddRemoveContent.md +2 -2
  15. data/docs/RepositoryVersionResponse.md +2 -0
  16. data/lib/pulp_deb_client.rb +1 -1
  17. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +1 -1
  18. data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +1 -1
  19. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +1 -9
  20. data/lib/pulp_deb_client/api/content_package_indices_api.rb +1 -1
  21. data/lib/pulp_deb_client/api/content_package_release_components_api.rb +1 -1
  22. data/lib/pulp_deb_client/api/content_packages_api.rb +1 -9
  23. data/lib/pulp_deb_client/api/content_release_architectures_api.rb +1 -1
  24. data/lib/pulp_deb_client/api/content_release_components_api.rb +1 -1
  25. data/lib/pulp_deb_client/api/content_release_files_api.rb +1 -1
  26. data/lib/pulp_deb_client/api/content_releases_api.rb +1 -1
  27. data/lib/pulp_deb_client/api/distributions_apt_api.rb +1 -1
  28. data/lib/pulp_deb_client/api/publications_apt_api.rb +7 -1
  29. data/lib/pulp_deb_client/api/publications_verbatim_api.rb +7 -1
  30. data/lib/pulp_deb_client/api/remotes_apt_api.rb +1 -1
  31. data/lib/pulp_deb_client/api/repositories_apt_api.rb +1 -1
  32. data/lib/pulp_deb_client/api/repositories_deb_versions_api.rb +1 -21
  33. data/lib/pulp_deb_client/api_client.rb +12 -8
  34. data/lib/pulp_deb_client/api_error.rb +1 -1
  35. data/lib/pulp_deb_client/configuration.rb +8 -1
  36. data/lib/pulp_deb_client/models/async_operation_response.rb +1 -1
  37. data/lib/pulp_deb_client/models/content_summary.rb +13 -7
  38. data/lib/pulp_deb_client/models/content_summary_response.rb +13 -7
  39. data/lib/pulp_deb_client/models/deb_apt_distribution.rb +13 -2
  40. data/lib/pulp_deb_client/models/deb_apt_distribution_response.rb +13 -2
  41. data/lib/pulp_deb_client/models/deb_apt_publication.rb +1 -1
  42. data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +1 -1
  43. data/lib/pulp_deb_client/models/deb_apt_remote.rb +1 -1
  44. data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +1 -1
  45. data/lib/pulp_deb_client/models/deb_apt_repository.rb +28 -2
  46. data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +28 -2
  47. data/lib/pulp_deb_client/models/deb_base_package.rb +1 -1
  48. data/lib/pulp_deb_client/models/deb_base_package_response.rb +1 -1
  49. data/lib/pulp_deb_client/models/deb_generic_content.rb +1 -1
  50. data/lib/pulp_deb_client/models/deb_generic_content_response.rb +1 -1
  51. data/lib/pulp_deb_client/models/deb_installer_file_index.rb +1 -1
  52. data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +1 -1
  53. data/lib/pulp_deb_client/models/deb_package_index.rb +1 -1
  54. data/lib/pulp_deb_client/models/deb_package_index_response.rb +1 -1
  55. data/lib/pulp_deb_client/models/deb_package_release_component.rb +1 -1
  56. data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +1 -1
  57. data/lib/pulp_deb_client/models/deb_release.rb +1 -1
  58. data/lib/pulp_deb_client/models/deb_release_architecture.rb +1 -1
  59. data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +1 -1
  60. data/lib/pulp_deb_client/models/deb_release_component.rb +1 -1
  61. data/lib/pulp_deb_client/models/deb_release_component_response.rb +1 -1
  62. data/lib/pulp_deb_client/models/deb_release_file.rb +1 -1
  63. data/lib/pulp_deb_client/models/deb_release_file_response.rb +1 -1
  64. data/lib/pulp_deb_client/models/deb_release_response.rb +1 -1
  65. data/lib/pulp_deb_client/models/deb_verbatim_publication.rb +1 -1
  66. data/lib/pulp_deb_client/models/deb_verbatim_publication_response.rb +1 -1
  67. data/lib/pulp_deb_client/models/paginated_repository_version_response_list.rb +1 -1
  68. data/lib/pulp_deb_client/models/paginateddeb_apt_distribution_response_list.rb +1 -1
  69. data/lib/pulp_deb_client/models/paginateddeb_apt_publication_response_list.rb +1 -1
  70. data/lib/pulp_deb_client/models/paginateddeb_apt_remote_response_list.rb +1 -1
  71. data/lib/pulp_deb_client/models/paginateddeb_apt_repository_response_list.rb +1 -1
  72. data/lib/pulp_deb_client/models/paginateddeb_base_package_response_list.rb +1 -1
  73. data/lib/pulp_deb_client/models/paginateddeb_generic_content_response_list.rb +1 -1
  74. data/lib/pulp_deb_client/models/paginateddeb_installer_file_index_response_list.rb +1 -1
  75. data/lib/pulp_deb_client/models/paginateddeb_package_index_response_list.rb +1 -1
  76. data/lib/pulp_deb_client/models/paginateddeb_package_release_component_response_list.rb +1 -1
  77. data/lib/pulp_deb_client/models/paginateddeb_release_architecture_response_list.rb +1 -1
  78. data/lib/pulp_deb_client/models/paginateddeb_release_component_response_list.rb +1 -1
  79. data/lib/pulp_deb_client/models/paginateddeb_release_file_response_list.rb +1 -1
  80. data/lib/pulp_deb_client/models/paginateddeb_release_response_list.rb +1 -1
  81. data/lib/pulp_deb_client/models/paginateddeb_verbatim_publication_response_list.rb +1 -1
  82. data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +13 -2
  83. data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +1 -1
  84. data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +28 -2
  85. data/lib/pulp_deb_client/models/policy_enum.rb +1 -1
  86. data/lib/pulp_deb_client/models/repository_add_remove_content.rb +3 -3
  87. data/lib/pulp_deb_client/models/repository_sync_url.rb +1 -1
  88. data/lib/pulp_deb_client/models/repository_version.rb +1 -1
  89. data/lib/pulp_deb_client/models/repository_version_response.rb +11 -2
  90. data/lib/pulp_deb_client/version.rb +2 -2
  91. data/pulp_deb_client.gemspec +1 -1
  92. data/spec/api/content_generic_contents_api_spec.rb +1 -1
  93. data/spec/api/content_installer_file_indices_api_spec.rb +1 -1
  94. data/spec/api/content_installer_packages_api_spec.rb +1 -1
  95. data/spec/api/content_package_indices_api_spec.rb +1 -1
  96. data/spec/api/content_package_release_components_api_spec.rb +1 -1
  97. data/spec/api/content_packages_api_spec.rb +1 -1
  98. data/spec/api/content_release_architectures_api_spec.rb +1 -1
  99. data/spec/api/content_release_components_api_spec.rb +1 -1
  100. data/spec/api/content_release_files_api_spec.rb +1 -1
  101. data/spec/api/content_releases_api_spec.rb +1 -1
  102. data/spec/api/distributions_apt_api_spec.rb +1 -1
  103. data/spec/api/publications_apt_api_spec.rb +3 -1
  104. data/spec/api/publications_verbatim_api_spec.rb +3 -1
  105. data/spec/api/remotes_apt_api_spec.rb +1 -1
  106. data/spec/api/repositories_apt_api_spec.rb +1 -1
  107. data/spec/api/repositories_deb_versions_api_spec.rb +1 -1
  108. data/spec/api_client_spec.rb +2 -2
  109. data/spec/configuration_spec.rb +1 -1
  110. data/spec/models/async_operation_response_spec.rb +1 -1
  111. data/spec/models/content_summary_response_spec.rb +1 -1
  112. data/spec/models/content_summary_spec.rb +1 -1
  113. data/spec/models/deb_apt_distribution_response_spec.rb +7 -1
  114. data/spec/models/deb_apt_distribution_spec.rb +7 -1
  115. data/spec/models/deb_apt_publication_response_spec.rb +1 -1
  116. data/spec/models/deb_apt_publication_spec.rb +1 -1
  117. data/spec/models/deb_apt_remote_response_spec.rb +1 -1
  118. data/spec/models/deb_apt_remote_spec.rb +1 -1
  119. data/spec/models/deb_apt_repository_response_spec.rb +7 -1
  120. data/spec/models/deb_apt_repository_spec.rb +7 -1
  121. data/spec/models/deb_base_package_response_spec.rb +1 -1
  122. data/spec/models/deb_base_package_spec.rb +1 -1
  123. data/spec/models/deb_generic_content_response_spec.rb +1 -1
  124. data/spec/models/deb_generic_content_spec.rb +1 -1
  125. data/spec/models/deb_installer_file_index_response_spec.rb +1 -1
  126. data/spec/models/deb_installer_file_index_spec.rb +1 -1
  127. data/spec/models/deb_package_index_response_spec.rb +1 -1
  128. data/spec/models/deb_package_index_spec.rb +1 -1
  129. data/spec/models/deb_package_release_component_response_spec.rb +1 -1
  130. data/spec/models/deb_package_release_component_spec.rb +1 -1
  131. data/spec/models/deb_release_architecture_response_spec.rb +1 -1
  132. data/spec/models/deb_release_architecture_spec.rb +1 -1
  133. data/spec/models/deb_release_component_response_spec.rb +1 -1
  134. data/spec/models/deb_release_component_spec.rb +1 -1
  135. data/spec/models/deb_release_file_response_spec.rb +1 -1
  136. data/spec/models/deb_release_file_spec.rb +1 -1
  137. data/spec/models/deb_release_response_spec.rb +1 -1
  138. data/spec/models/deb_release_spec.rb +1 -1
  139. data/spec/models/deb_verbatim_publication_response_spec.rb +1 -1
  140. data/spec/models/deb_verbatim_publication_spec.rb +1 -1
  141. data/spec/models/paginated_repository_version_response_list_spec.rb +1 -1
  142. data/spec/models/paginateddeb_apt_distribution_response_list_spec.rb +1 -1
  143. data/spec/models/paginateddeb_apt_publication_response_list_spec.rb +1 -1
  144. data/spec/models/paginateddeb_apt_remote_response_list_spec.rb +1 -1
  145. data/spec/models/paginateddeb_apt_repository_response_list_spec.rb +1 -1
  146. data/spec/models/paginateddeb_base_package_response_list_spec.rb +1 -1
  147. data/spec/models/paginateddeb_generic_content_response_list_spec.rb +1 -1
  148. data/spec/models/paginateddeb_installer_file_index_response_list_spec.rb +1 -1
  149. data/spec/models/paginateddeb_package_index_response_list_spec.rb +1 -1
  150. data/spec/models/paginateddeb_package_release_component_response_list_spec.rb +1 -1
  151. data/spec/models/paginateddeb_release_architecture_response_list_spec.rb +1 -1
  152. data/spec/models/paginateddeb_release_component_response_list_spec.rb +1 -1
  153. data/spec/models/paginateddeb_release_file_response_list_spec.rb +1 -1
  154. data/spec/models/paginateddeb_release_response_list_spec.rb +1 -1
  155. data/spec/models/paginateddeb_verbatim_publication_response_list_spec.rb +1 -1
  156. data/spec/models/patcheddeb_apt_distribution_spec.rb +7 -1
  157. data/spec/models/patcheddeb_apt_remote_spec.rb +1 -1
  158. data/spec/models/patcheddeb_apt_repository_spec.rb +7 -1
  159. data/spec/models/policy_enum_spec.rb +1 -1
  160. data/spec/models/repository_add_remove_content_spec.rb +1 -1
  161. data/spec/models/repository_sync_url_spec.rb +1 -1
  162. data/spec/models/repository_version_response_spec.rb +7 -1
  163. data/spec/models/repository_version_spec.rb +1 -1
  164. data/spec/spec_helper.rb +1 -1
  165. metadata +56 -56
@@ -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
 
@@ -142,26 +142,6 @@ module PulpDebClient
142
142
  if @api_client.config.client_side_validation && deb_apt_repository_href.nil?
143
143
  fail ArgumentError, "Missing the required parameter 'deb_apt_repository_href' when calling RepositoriesDebVersionsApi.list"
144
144
  end
145
- if @api_client.config.client_side_validation && !opts[:'number'].nil? && opts[:'number'] > 2147483647
146
- fail ArgumentError, 'invalid value for "opts[:"number"]" when calling RepositoriesDebVersionsApi.list, must be smaller than or equal to 2147483647.'
147
- end
148
-
149
- if @api_client.config.client_side_validation && !opts[:'number__gt'].nil? && opts[:'number__gt'] > 2147483647
150
- fail ArgumentError, 'invalid value for "opts[:"number__gt"]" when calling RepositoriesDebVersionsApi.list, must be smaller than or equal to 2147483647.'
151
- end
152
-
153
- if @api_client.config.client_side_validation && !opts[:'number__gte'].nil? && opts[:'number__gte'] > 2147483647
154
- fail ArgumentError, 'invalid value for "opts[:"number__gte"]" when calling RepositoriesDebVersionsApi.list, must be smaller than or equal to 2147483647.'
155
- end
156
-
157
- if @api_client.config.client_side_validation && !opts[:'number__lt'].nil? && opts[:'number__lt'] > 2147483647
158
- fail ArgumentError, 'invalid value for "opts[:"number__lt"]" when calling RepositoriesDebVersionsApi.list, must be smaller than or equal to 2147483647.'
159
- end
160
-
161
- if @api_client.config.client_side_validation && !opts[:'number__lte'].nil? && opts[:'number__lte'] > 2147483647
162
- fail ArgumentError, 'invalid value for "opts[:"number__lte"]" when calling RepositoriesDebVersionsApi.list, must be smaller than or equal to 2147483647.'
163
- end
164
-
165
145
  # resource path
166
146
  local_var_path = '{deb_apt_repository_href}versions/'.sub('{' + 'deb_apt_repository_href' + '}', CGI.escape(deb_apt_repository_href.to_s).gsub('%2F', '/'))
167
147
 
@@ -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
 
@@ -53,8 +53,10 @@ module PulpDebClient
53
53
  :client_cert => @config.ssl_client_cert,
54
54
  :client_key => @config.ssl_client_key
55
55
  }
56
-
57
- connection = Faraday.new(:url => config.base_url, :ssl => ssl_options) do |conn|
56
+ request_options = {
57
+ :params_encoder => @config.params_encoder
58
+ }
59
+ connection = Faraday.new(:url => config.base_url, :ssl => ssl_options, :request => request_options) do |conn|
58
60
  conn.basic_auth(config.username, config.password)
59
61
  if opts[:header_params]["Content-Type"] == "multipart/form-data"
60
62
  conn.request :multipart
@@ -285,11 +287,13 @@ module PulpDebClient
285
287
  tempfile.write(chunk)
286
288
  end
287
289
  request.on_complete do |response|
288
- tempfile.close if tempfile
289
- @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
290
- "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
291
- "will be deleted automatically with GC. It's also recommended to delete the temp file "\
292
- "explicitly with `tempfile.delete`"
290
+ if tempfile
291
+ tempfile.close
292
+ @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
293
+ "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
294
+ "will be deleted automatically with GC. It's also recommended to delete the temp file "\
295
+ "explicitly with `tempfile.delete`"
296
+ end
293
297
  end
294
298
  end
295
299
 
@@ -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
 
@@ -109,6 +109,12 @@ module PulpDebClient
109
109
  # Client private key file (for client certificate)
110
110
  attr_accessor :ssl_client_key
111
111
 
112
+ # Set this to customize parameters encoder of array parameter.
113
+ # Default to nil. Faraday uses NestedParamsEncoder when nil.
114
+ #
115
+ # @see The params_encoder option of Faraday. Related source code:
116
+ # https://github.com/lostisland/faraday/tree/main/lib/faraday/encoders
117
+ attr_accessor :params_encoder
112
118
  # Set this to customize parameters encoding of array parameter with multi collectionFormat.
113
119
  # Default to nil.
114
120
  #
@@ -133,6 +139,7 @@ module PulpDebClient
133
139
  @ssl_ca_file = nil
134
140
  @ssl_client_cert = nil
135
141
  @ssl_client_key = nil
142
+ @params_encoder = nil
136
143
  @debugging = false
137
144
  @inject_format = false
138
145
  @force_ending_format = false
@@ -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
 
@@ -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
 
@@ -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
 
@@ -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