pulp_deb_client 2.13.0 → 2.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +9 -9
  4. data/docs/ContentGenericContentsApi.md +1 -1
  5. data/docs/ContentInstallerFileIndicesApi.md +1 -1
  6. data/docs/ContentInstallerPackagesApi.md +1 -1
  7. data/docs/ContentPackageIndicesApi.md +1 -1
  8. data/docs/ContentPackageReleaseComponentsApi.md +1 -1
  9. data/docs/ContentPackagesApi.md +1 -1
  10. data/docs/ContentReleaseArchitecturesApi.md +1 -1
  11. data/docs/ContentReleaseComponentsApi.md +1 -1
  12. data/docs/ContentReleaseFilesApi.md +1 -1
  13. data/docs/ContentReleasesApi.md +1 -1
  14. data/docs/DebAptRemote.md +7 -5
  15. data/docs/DebAptRemoteResponse.md +7 -5
  16. data/docs/DebAptRepository.md +3 -3
  17. data/docs/DebAptRepositoryResponse.md +3 -3
  18. data/docs/DistributionsAptApi.md +1 -1
  19. data/docs/PatcheddebAptRemote.md +7 -5
  20. data/docs/PatcheddebAptRepository.md +3 -3
  21. data/docs/PublicationsAptApi.md +1 -1
  22. data/docs/PublicationsVerbatimApi.md +1 -1
  23. data/docs/RemotesAptApi.md +1 -1
  24. data/docs/RepositoriesAptApi.md +1 -1
  25. data/docs/{RepositoriesDebVersionsApi.md → RepositoriesAptVersionsApi.md} +14 -14
  26. data/docs/RepositoryAddRemoveContent.md +2 -2
  27. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +1 -1
  28. data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +1 -1
  29. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +1 -1
  30. data/lib/pulp_deb_client/api/content_package_indices_api.rb +1 -1
  31. data/lib/pulp_deb_client/api/content_package_release_components_api.rb +1 -1
  32. data/lib/pulp_deb_client/api/content_packages_api.rb +1 -1
  33. data/lib/pulp_deb_client/api/content_release_architectures_api.rb +1 -1
  34. data/lib/pulp_deb_client/api/content_release_components_api.rb +1 -1
  35. data/lib/pulp_deb_client/api/content_release_files_api.rb +1 -1
  36. data/lib/pulp_deb_client/api/content_releases_api.rb +1 -1
  37. data/lib/pulp_deb_client/api/distributions_apt_api.rb +1 -1
  38. data/lib/pulp_deb_client/api/publications_apt_api.rb +1 -1
  39. data/lib/pulp_deb_client/api/publications_verbatim_api.rb +1 -1
  40. data/lib/pulp_deb_client/api/remotes_apt_api.rb +1 -1
  41. data/lib/pulp_deb_client/api/repositories_apt_api.rb +1 -1
  42. data/lib/pulp_deb_client/api/{repositories_deb_versions_api.rb → repositories_apt_versions_api.rb} +15 -15
  43. data/lib/pulp_deb_client/api_client.rb +12 -8
  44. data/lib/pulp_deb_client/api_error.rb +1 -1
  45. data/lib/pulp_deb_client/configuration.rb +10 -3
  46. data/lib/pulp_deb_client/models/async_operation_response.rb +1 -1
  47. data/lib/pulp_deb_client/models/content_summary.rb +1 -1
  48. data/lib/pulp_deb_client/models/content_summary_response.rb +1 -1
  49. data/lib/pulp_deb_client/models/deb_apt_distribution.rb +1 -1
  50. data/lib/pulp_deb_client/models/deb_apt_distribution_response.rb +1 -1
  51. data/lib/pulp_deb_client/models/deb_apt_publication.rb +1 -1
  52. data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +1 -1
  53. data/lib/pulp_deb_client/models/deb_apt_remote.rb +19 -7
  54. data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +19 -7
  55. data/lib/pulp_deb_client/models/deb_apt_repository.rb +18 -17
  56. data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +18 -17
  57. data/lib/pulp_deb_client/models/deb_base_package.rb +1 -1
  58. data/lib/pulp_deb_client/models/deb_base_package_response.rb +1 -1
  59. data/lib/pulp_deb_client/models/deb_generic_content.rb +1 -1
  60. data/lib/pulp_deb_client/models/deb_generic_content_response.rb +1 -1
  61. data/lib/pulp_deb_client/models/deb_installer_file_index.rb +1 -1
  62. data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +1 -1
  63. data/lib/pulp_deb_client/models/deb_package_index.rb +1 -1
  64. data/lib/pulp_deb_client/models/deb_package_index_response.rb +1 -1
  65. data/lib/pulp_deb_client/models/deb_package_release_component.rb +1 -1
  66. data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +1 -1
  67. data/lib/pulp_deb_client/models/deb_release.rb +1 -1
  68. data/lib/pulp_deb_client/models/deb_release_architecture.rb +1 -1
  69. data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +1 -1
  70. data/lib/pulp_deb_client/models/deb_release_component.rb +1 -1
  71. data/lib/pulp_deb_client/models/deb_release_component_response.rb +1 -1
  72. data/lib/pulp_deb_client/models/deb_release_file.rb +1 -1
  73. data/lib/pulp_deb_client/models/deb_release_file_response.rb +1 -1
  74. data/lib/pulp_deb_client/models/deb_release_response.rb +1 -1
  75. data/lib/pulp_deb_client/models/deb_verbatim_publication.rb +1 -1
  76. data/lib/pulp_deb_client/models/deb_verbatim_publication_response.rb +1 -1
  77. data/lib/pulp_deb_client/models/paginated_repository_version_response_list.rb +1 -1
  78. data/lib/pulp_deb_client/models/paginateddeb_apt_distribution_response_list.rb +1 -1
  79. data/lib/pulp_deb_client/models/paginateddeb_apt_publication_response_list.rb +1 -1
  80. data/lib/pulp_deb_client/models/paginateddeb_apt_remote_response_list.rb +1 -1
  81. data/lib/pulp_deb_client/models/paginateddeb_apt_repository_response_list.rb +1 -1
  82. data/lib/pulp_deb_client/models/paginateddeb_base_package_response_list.rb +1 -1
  83. data/lib/pulp_deb_client/models/paginateddeb_generic_content_response_list.rb +1 -1
  84. data/lib/pulp_deb_client/models/paginateddeb_installer_file_index_response_list.rb +1 -1
  85. data/lib/pulp_deb_client/models/paginateddeb_package_index_response_list.rb +1 -1
  86. data/lib/pulp_deb_client/models/paginateddeb_package_release_component_response_list.rb +1 -1
  87. data/lib/pulp_deb_client/models/paginateddeb_release_architecture_response_list.rb +1 -1
  88. data/lib/pulp_deb_client/models/paginateddeb_release_component_response_list.rb +1 -1
  89. data/lib/pulp_deb_client/models/paginateddeb_release_file_response_list.rb +1 -1
  90. data/lib/pulp_deb_client/models/paginateddeb_release_response_list.rb +1 -1
  91. data/lib/pulp_deb_client/models/paginateddeb_verbatim_publication_response_list.rb +1 -1
  92. data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +1 -1
  93. data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +19 -7
  94. data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +18 -17
  95. data/lib/pulp_deb_client/models/policy_enum.rb +1 -1
  96. data/lib/pulp_deb_client/models/repository_add_remove_content.rb +3 -3
  97. data/lib/pulp_deb_client/models/repository_sync_url.rb +1 -1
  98. data/lib/pulp_deb_client/models/repository_version.rb +1 -1
  99. data/lib/pulp_deb_client/models/repository_version_response.rb +1 -1
  100. data/lib/pulp_deb_client/version.rb +2 -2
  101. data/lib/pulp_deb_client.rb +2 -2
  102. data/pulp_deb_client.gemspec +1 -1
  103. data/spec/api/content_generic_contents_api_spec.rb +1 -1
  104. data/spec/api/content_installer_file_indices_api_spec.rb +1 -1
  105. data/spec/api/content_installer_packages_api_spec.rb +1 -1
  106. data/spec/api/content_package_indices_api_spec.rb +1 -1
  107. data/spec/api/content_package_release_components_api_spec.rb +1 -1
  108. data/spec/api/content_packages_api_spec.rb +1 -1
  109. data/spec/api/content_release_architectures_api_spec.rb +1 -1
  110. data/spec/api/content_release_components_api_spec.rb +1 -1
  111. data/spec/api/content_release_files_api_spec.rb +1 -1
  112. data/spec/api/content_releases_api_spec.rb +1 -1
  113. data/spec/api/distributions_apt_api_spec.rb +1 -1
  114. data/spec/api/publications_apt_api_spec.rb +1 -1
  115. data/spec/api/publications_verbatim_api_spec.rb +1 -1
  116. data/spec/api/remotes_apt_api_spec.rb +1 -1
  117. data/spec/api/repositories_apt_api_spec.rb +1 -1
  118. data/spec/api/{repositories_deb_versions_api_spec.rb → repositories_apt_versions_api_spec.rb} +7 -7
  119. data/spec/api_client_spec.rb +2 -2
  120. data/spec/configuration_spec.rb +4 -4
  121. data/spec/models/async_operation_response_spec.rb +1 -1
  122. data/spec/models/content_summary_response_spec.rb +1 -1
  123. data/spec/models/content_summary_spec.rb +1 -1
  124. data/spec/models/deb_apt_distribution_response_spec.rb +1 -1
  125. data/spec/models/deb_apt_distribution_spec.rb +1 -1
  126. data/spec/models/deb_apt_publication_response_spec.rb +1 -1
  127. data/spec/models/deb_apt_publication_spec.rb +1 -1
  128. data/spec/models/deb_apt_remote_response_spec.rb +7 -1
  129. data/spec/models/deb_apt_remote_spec.rb +7 -1
  130. data/spec/models/deb_apt_repository_response_spec.rb +2 -2
  131. data/spec/models/deb_apt_repository_spec.rb +2 -2
  132. data/spec/models/deb_base_package_response_spec.rb +1 -1
  133. data/spec/models/deb_base_package_spec.rb +1 -1
  134. data/spec/models/deb_generic_content_response_spec.rb +1 -1
  135. data/spec/models/deb_generic_content_spec.rb +1 -1
  136. data/spec/models/deb_installer_file_index_response_spec.rb +1 -1
  137. data/spec/models/deb_installer_file_index_spec.rb +1 -1
  138. data/spec/models/deb_package_index_response_spec.rb +1 -1
  139. data/spec/models/deb_package_index_spec.rb +1 -1
  140. data/spec/models/deb_package_release_component_response_spec.rb +1 -1
  141. data/spec/models/deb_package_release_component_spec.rb +1 -1
  142. data/spec/models/deb_release_architecture_response_spec.rb +1 -1
  143. data/spec/models/deb_release_architecture_spec.rb +1 -1
  144. data/spec/models/deb_release_component_response_spec.rb +1 -1
  145. data/spec/models/deb_release_component_spec.rb +1 -1
  146. data/spec/models/deb_release_file_response_spec.rb +1 -1
  147. data/spec/models/deb_release_file_spec.rb +1 -1
  148. data/spec/models/deb_release_response_spec.rb +1 -1
  149. data/spec/models/deb_release_spec.rb +1 -1
  150. data/spec/models/deb_verbatim_publication_response_spec.rb +1 -1
  151. data/spec/models/deb_verbatim_publication_spec.rb +1 -1
  152. data/spec/models/paginated_repository_version_response_list_spec.rb +1 -1
  153. data/spec/models/paginateddeb_apt_distribution_response_list_spec.rb +1 -1
  154. data/spec/models/paginateddeb_apt_publication_response_list_spec.rb +1 -1
  155. data/spec/models/paginateddeb_apt_remote_response_list_spec.rb +1 -1
  156. data/spec/models/paginateddeb_apt_repository_response_list_spec.rb +1 -1
  157. data/spec/models/paginateddeb_base_package_response_list_spec.rb +1 -1
  158. data/spec/models/paginateddeb_generic_content_response_list_spec.rb +1 -1
  159. data/spec/models/paginateddeb_installer_file_index_response_list_spec.rb +1 -1
  160. data/spec/models/paginateddeb_package_index_response_list_spec.rb +1 -1
  161. data/spec/models/paginateddeb_package_release_component_response_list_spec.rb +1 -1
  162. data/spec/models/paginateddeb_release_architecture_response_list_spec.rb +1 -1
  163. data/spec/models/paginateddeb_release_component_response_list_spec.rb +1 -1
  164. data/spec/models/paginateddeb_release_file_response_list_spec.rb +1 -1
  165. data/spec/models/paginateddeb_release_response_list_spec.rb +1 -1
  166. data/spec/models/paginateddeb_verbatim_publication_response_list_spec.rb +1 -1
  167. data/spec/models/patcheddeb_apt_distribution_spec.rb +1 -1
  168. data/spec/models/patcheddeb_apt_remote_spec.rb +7 -1
  169. data/spec/models/patcheddeb_apt_repository_spec.rb +2 -2
  170. data/spec/models/policy_enum_spec.rb +1 -1
  171. data/spec/models/repository_add_remove_content_spec.rb +1 -1
  172. data/spec/models/repository_sync_url_spec.rb +1 -1
  173. data/spec/models/repository_version_response_spec.rb +1 -1
  174. data/spec/models/repository_version_spec.rb +1 -1
  175. data/spec/spec_helper.rb +1 -1
  176. metadata +59 -59
@@ -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
 
@@ -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')
@@ -103,8 +104,8 @@ module PulpDebClient
103
104
  invalid_properties.push('invalid value for "name", name cannot be nil.')
104
105
  end
105
106
 
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.')
107
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
108
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
108
109
  end
109
110
 
110
111
  invalid_properties
@@ -114,18 +115,18 @@ module PulpDebClient
114
115
  # @return true if the model is valid
115
116
  def valid?
116
117
  return false if @name.nil?
117
- return false if !@retained_versions.nil? && @retained_versions < 1
118
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
118
119
  true
119
120
  end
120
121
 
121
122
  # 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.'
123
+ # @param [Object] retain_repo_versions Value to be assigned
124
+ def retain_repo_versions=(retain_repo_versions)
125
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
126
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
126
127
  end
127
128
 
128
- @retained_versions = retained_versions
129
+ @retain_repo_versions = retain_repo_versions
129
130
  end
130
131
 
131
132
  # Checks equality by comparing each attribute.
@@ -136,7 +137,7 @@ module PulpDebClient
136
137
  pulp_labels == o.pulp_labels &&
137
138
  name == o.name &&
138
139
  description == o.description &&
139
- retained_versions == o.retained_versions &&
140
+ retain_repo_versions == o.retain_repo_versions &&
140
141
  remote == o.remote
141
142
  end
142
143
 
@@ -149,7 +150,7 @@ module PulpDebClient
149
150
  # Calculates hash code according to all attributes.
150
151
  # @return [Integer] Hash code
151
152
  def hash
152
- [pulp_labels, name, description, retained_versions, remote].hash
153
+ [pulp_labels, name, description, retain_repo_versions, remote].hash
153
154
  end
154
155
 
155
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
 
@@ -33,8 +33,9 @@ module PulpDebClient
33
33
  attr_accessor :description
34
34
 
35
35
  # 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.
36
- attr_accessor :retained_versions
36
+ attr_accessor :retain_repo_versions
37
37
 
38
+ # An optional remote to use by default when syncing.
38
39
  attr_accessor :remote
39
40
 
40
41
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -47,7 +48,7 @@ module PulpDebClient
47
48
  :'latest_version_href' => :'latest_version_href',
48
49
  :'name' => :'name',
49
50
  :'description' => :'description',
50
- :'retained_versions' => :'retained_versions',
51
+ :'retain_repo_versions' => :'retain_repo_versions',
51
52
  :'remote' => :'remote'
52
53
  }
53
54
  end
@@ -62,7 +63,7 @@ module PulpDebClient
62
63
  :'latest_version_href' => :'String',
63
64
  :'name' => :'String',
64
65
  :'description' => :'String',
65
- :'retained_versions' => :'Integer',
66
+ :'retain_repo_versions' => :'Integer',
66
67
  :'remote' => :'String'
67
68
  }
68
69
  end
@@ -71,7 +72,7 @@ module PulpDebClient
71
72
  def self.openapi_nullable
72
73
  Set.new([
73
74
  :'description',
74
- :'retained_versions',
75
+ :'retain_repo_versions',
75
76
  :'remote'
76
77
  ])
77
78
  end
@@ -119,8 +120,8 @@ module PulpDebClient
119
120
  self.description = attributes[:'description']
120
121
  end
121
122
 
122
- if attributes.key?(:'retained_versions')
123
- self.retained_versions = attributes[:'retained_versions']
123
+ if attributes.key?(:'retain_repo_versions')
124
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
124
125
  end
125
126
 
126
127
  if attributes.key?(:'remote')
@@ -136,8 +137,8 @@ module PulpDebClient
136
137
  invalid_properties.push('invalid value for "name", name cannot be nil.')
137
138
  end
138
139
 
139
- if !@retained_versions.nil? && @retained_versions < 1
140
- invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
140
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
141
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
141
142
  end
142
143
 
143
144
  invalid_properties
@@ -147,18 +148,18 @@ module PulpDebClient
147
148
  # @return true if the model is valid
148
149
  def valid?
149
150
  return false if @name.nil?
150
- return false if !@retained_versions.nil? && @retained_versions < 1
151
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
151
152
  true
152
153
  end
153
154
 
154
155
  # Custom attribute writer method with validation
155
- # @param [Object] retained_versions Value to be assigned
156
- def retained_versions=(retained_versions)
157
- if !retained_versions.nil? && retained_versions < 1
158
- fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
156
+ # @param [Object] retain_repo_versions Value to be assigned
157
+ def retain_repo_versions=(retain_repo_versions)
158
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
159
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
159
160
  end
160
161
 
161
- @retained_versions = retained_versions
162
+ @retain_repo_versions = retain_repo_versions
162
163
  end
163
164
 
164
165
  # Checks equality by comparing each attribute.
@@ -173,7 +174,7 @@ module PulpDebClient
173
174
  latest_version_href == o.latest_version_href &&
174
175
  name == o.name &&
175
176
  description == o.description &&
176
- retained_versions == o.retained_versions &&
177
+ retain_repo_versions == o.retain_repo_versions &&
177
178
  remote == o.remote
178
179
  end
179
180
 
@@ -186,7 +187,7 @@ module PulpDebClient
186
187
  # Calculates hash code according to all attributes.
187
188
  # @return [Integer] Hash code
188
189
  def hash
189
- [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retained_versions, remote].hash
190
+ [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote].hash
190
191
  end
191
192
 
192
193
  # 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
 
@@ -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
 
@@ -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