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.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +8 -8
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +3 -3
- data/docs/DebAptDistribution.md +2 -0
- data/docs/DebAptDistributionResponse.md +2 -0
- data/docs/DebAptRemote.md +7 -5
- data/docs/DebAptRemoteResponse.md +7 -5
- data/docs/DebAptRepository.md +2 -0
- data/docs/DebAptRepositoryResponse.md +2 -0
- data/docs/PatcheddebAptDistribution.md +2 -0
- data/docs/PatcheddebAptRemote.md +7 -5
- data/docs/PatcheddebAptRepository.md +2 -0
- data/docs/PublicationsAptApi.md +4 -0
- data/docs/PublicationsVerbatimApi.md +4 -0
- data/docs/{RepositoriesDebVersionsApi.md → RepositoriesAptVersionsApi.md} +13 -13
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/RepositoryVersionResponse.md +2 -0
- data/lib/pulp_deb_client.rb +2 -2
- data/lib/pulp_deb_client/api/content_generic_contents_api.rb +1 -1
- data/lib/pulp_deb_client/api/content_installer_file_indices_api.rb +1 -1
- data/lib/pulp_deb_client/api/content_installer_packages_api.rb +1 -9
- data/lib/pulp_deb_client/api/content_package_indices_api.rb +1 -1
- data/lib/pulp_deb_client/api/content_package_release_components_api.rb +1 -1
- data/lib/pulp_deb_client/api/content_packages_api.rb +1 -9
- data/lib/pulp_deb_client/api/content_release_architectures_api.rb +1 -1
- data/lib/pulp_deb_client/api/content_release_components_api.rb +1 -1
- data/lib/pulp_deb_client/api/content_release_files_api.rb +1 -1
- data/lib/pulp_deb_client/api/content_releases_api.rb +1 -1
- data/lib/pulp_deb_client/api/distributions_apt_api.rb +1 -1
- data/lib/pulp_deb_client/api/publications_apt_api.rb +7 -1
- data/lib/pulp_deb_client/api/publications_verbatim_api.rb +7 -1
- data/lib/pulp_deb_client/api/remotes_apt_api.rb +1 -1
- data/lib/pulp_deb_client/api/repositories_apt_api.rb +1 -1
- data/lib/pulp_deb_client/api/{repositories_deb_versions_api.rb → repositories_apt_versions_api.rb} +15 -35
- data/lib/pulp_deb_client/api_client.rb +12 -8
- data/lib/pulp_deb_client/api_error.rb +1 -1
- data/lib/pulp_deb_client/configuration.rb +8 -1
- data/lib/pulp_deb_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_deb_client/models/content_summary.rb +13 -7
- data/lib/pulp_deb_client/models/content_summary_response.rb +13 -7
- data/lib/pulp_deb_client/models/deb_apt_distribution.rb +13 -2
- data/lib/pulp_deb_client/models/deb_apt_distribution_response.rb +13 -2
- data/lib/pulp_deb_client/models/deb_apt_publication.rb +1 -1
- data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_apt_remote.rb +19 -7
- data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +19 -7
- data/lib/pulp_deb_client/models/deb_apt_repository.rb +28 -2
- data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +28 -2
- data/lib/pulp_deb_client/models/deb_base_package.rb +1 -1
- data/lib/pulp_deb_client/models/deb_base_package_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_generic_content.rb +1 -1
- data/lib/pulp_deb_client/models/deb_generic_content_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_installer_file_index.rb +1 -1
- data/lib/pulp_deb_client/models/deb_installer_file_index_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_package_index.rb +1 -1
- data/lib/pulp_deb_client/models/deb_package_index_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_package_release_component.rb +1 -1
- data/lib/pulp_deb_client/models/deb_package_release_component_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_release.rb +1 -1
- data/lib/pulp_deb_client/models/deb_release_architecture.rb +1 -1
- data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_release_component.rb +1 -1
- data/lib/pulp_deb_client/models/deb_release_component_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_release_file.rb +1 -1
- data/lib/pulp_deb_client/models/deb_release_file_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_release_response.rb +1 -1
- data/lib/pulp_deb_client/models/deb_verbatim_publication.rb +1 -1
- data/lib/pulp_deb_client/models/deb_verbatim_publication_response.rb +1 -1
- data/lib/pulp_deb_client/models/paginated_repository_version_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_apt_distribution_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_apt_publication_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_apt_remote_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_apt_repository_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_base_package_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_generic_content_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_installer_file_index_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_package_index_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_package_release_component_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_release_architecture_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_release_component_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_release_file_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_release_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/paginateddeb_verbatim_publication_response_list.rb +1 -1
- data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +13 -2
- data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +19 -7
- data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +28 -2
- data/lib/pulp_deb_client/models/policy_enum.rb +1 -1
- data/lib/pulp_deb_client/models/repository_add_remove_content.rb +3 -3
- data/lib/pulp_deb_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_deb_client/models/repository_version.rb +1 -1
- data/lib/pulp_deb_client/models/repository_version_response.rb +11 -2
- data/lib/pulp_deb_client/version.rb +2 -2
- data/pulp_deb_client.gemspec +1 -1
- data/spec/api/content_generic_contents_api_spec.rb +1 -1
- data/spec/api/content_installer_file_indices_api_spec.rb +1 -1
- data/spec/api/content_installer_packages_api_spec.rb +1 -1
- data/spec/api/content_package_indices_api_spec.rb +1 -1
- data/spec/api/content_package_release_components_api_spec.rb +1 -1
- data/spec/api/content_packages_api_spec.rb +1 -1
- data/spec/api/content_release_architectures_api_spec.rb +1 -1
- data/spec/api/content_release_components_api_spec.rb +1 -1
- data/spec/api/content_release_files_api_spec.rb +1 -1
- data/spec/api/content_releases_api_spec.rb +1 -1
- data/spec/api/distributions_apt_api_spec.rb +1 -1
- data/spec/api/publications_apt_api_spec.rb +3 -1
- data/spec/api/publications_verbatim_api_spec.rb +3 -1
- data/spec/api/remotes_apt_api_spec.rb +1 -1
- data/spec/api/repositories_apt_api_spec.rb +1 -1
- data/spec/api/{repositories_deb_versions_api_spec.rb → repositories_apt_versions_api_spec.rb} +7 -7
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_summary_response_spec.rb +1 -1
- data/spec/models/content_summary_spec.rb +1 -1
- data/spec/models/deb_apt_distribution_response_spec.rb +7 -1
- data/spec/models/deb_apt_distribution_spec.rb +7 -1
- data/spec/models/deb_apt_publication_response_spec.rb +1 -1
- data/spec/models/deb_apt_publication_spec.rb +1 -1
- data/spec/models/deb_apt_remote_response_spec.rb +7 -1
- data/spec/models/deb_apt_remote_spec.rb +7 -1
- data/spec/models/deb_apt_repository_response_spec.rb +7 -1
- data/spec/models/deb_apt_repository_spec.rb +7 -1
- data/spec/models/deb_base_package_response_spec.rb +1 -1
- data/spec/models/deb_base_package_spec.rb +1 -1
- data/spec/models/deb_generic_content_response_spec.rb +1 -1
- data/spec/models/deb_generic_content_spec.rb +1 -1
- data/spec/models/deb_installer_file_index_response_spec.rb +1 -1
- data/spec/models/deb_installer_file_index_spec.rb +1 -1
- data/spec/models/deb_package_index_response_spec.rb +1 -1
- data/spec/models/deb_package_index_spec.rb +1 -1
- data/spec/models/deb_package_release_component_response_spec.rb +1 -1
- data/spec/models/deb_package_release_component_spec.rb +1 -1
- data/spec/models/deb_release_architecture_response_spec.rb +1 -1
- data/spec/models/deb_release_architecture_spec.rb +1 -1
- data/spec/models/deb_release_component_response_spec.rb +1 -1
- data/spec/models/deb_release_component_spec.rb +1 -1
- data/spec/models/deb_release_file_response_spec.rb +1 -1
- data/spec/models/deb_release_file_spec.rb +1 -1
- data/spec/models/deb_release_response_spec.rb +1 -1
- data/spec/models/deb_release_spec.rb +1 -1
- data/spec/models/deb_verbatim_publication_response_spec.rb +1 -1
- data/spec/models/deb_verbatim_publication_spec.rb +1 -1
- data/spec/models/paginated_repository_version_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_apt_distribution_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_apt_publication_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_apt_remote_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_apt_repository_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_base_package_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_generic_content_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_installer_file_index_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_package_index_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_package_release_component_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_release_architecture_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_release_component_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_release_file_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_release_response_list_spec.rb +1 -1
- data/spec/models/paginateddeb_verbatim_publication_response_list_spec.rb +1 -1
- data/spec/models/patcheddeb_apt_distribution_spec.rb +7 -1
- data/spec/models/patcheddeb_apt_remote_spec.rb +7 -1
- data/spec/models/patcheddeb_apt_repository_spec.rb +7 -1
- data/spec/models/policy_enum_spec.rb +1 -1
- data/spec/models/repository_add_remove_content_spec.rb +1 -1
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/repository_version_response_spec.rb +7 -1
- data/spec/models/repository_version_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- 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.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -32,6 +32,9 @@ module PulpDebClient
|
|
32
32
|
# An optional description.
|
33
33
|
attr_accessor :description
|
34
34
|
|
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
|
37
|
+
|
35
38
|
attr_accessor :remote
|
36
39
|
|
37
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -44,6 +47,7 @@ module PulpDebClient
|
|
44
47
|
:'latest_version_href' => :'latest_version_href',
|
45
48
|
:'name' => :'name',
|
46
49
|
:'description' => :'description',
|
50
|
+
:'retained_versions' => :'retained_versions',
|
47
51
|
:'remote' => :'remote'
|
48
52
|
}
|
49
53
|
end
|
@@ -58,6 +62,7 @@ module PulpDebClient
|
|
58
62
|
:'latest_version_href' => :'String',
|
59
63
|
:'name' => :'String',
|
60
64
|
:'description' => :'String',
|
65
|
+
:'retained_versions' => :'Integer',
|
61
66
|
:'remote' => :'String'
|
62
67
|
}
|
63
68
|
end
|
@@ -66,6 +71,7 @@ module PulpDebClient
|
|
66
71
|
def self.openapi_nullable
|
67
72
|
Set.new([
|
68
73
|
:'description',
|
74
|
+
:'retained_versions',
|
69
75
|
:'remote'
|
70
76
|
])
|
71
77
|
end
|
@@ -113,6 +119,10 @@ module PulpDebClient
|
|
113
119
|
self.description = attributes[:'description']
|
114
120
|
end
|
115
121
|
|
122
|
+
if attributes.key?(:'retained_versions')
|
123
|
+
self.retained_versions = attributes[:'retained_versions']
|
124
|
+
end
|
125
|
+
|
116
126
|
if attributes.key?(:'remote')
|
117
127
|
self.remote = attributes[:'remote']
|
118
128
|
end
|
@@ -126,6 +136,10 @@ module PulpDebClient
|
|
126
136
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
127
137
|
end
|
128
138
|
|
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.')
|
141
|
+
end
|
142
|
+
|
129
143
|
invalid_properties
|
130
144
|
end
|
131
145
|
|
@@ -133,9 +147,20 @@ module PulpDebClient
|
|
133
147
|
# @return true if the model is valid
|
134
148
|
def valid?
|
135
149
|
return false if @name.nil?
|
150
|
+
return false if !@retained_versions.nil? && @retained_versions < 1
|
136
151
|
true
|
137
152
|
end
|
138
153
|
|
154
|
+
# 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.'
|
159
|
+
end
|
160
|
+
|
161
|
+
@retained_versions = retained_versions
|
162
|
+
end
|
163
|
+
|
139
164
|
# Checks equality by comparing each attribute.
|
140
165
|
# @param [Object] Object to be compared
|
141
166
|
def ==(o)
|
@@ -148,6 +173,7 @@ module PulpDebClient
|
|
148
173
|
latest_version_href == o.latest_version_href &&
|
149
174
|
name == o.name &&
|
150
175
|
description == o.description &&
|
176
|
+
retained_versions == o.retained_versions &&
|
151
177
|
remote == o.remote
|
152
178
|
end
|
153
179
|
|
@@ -160,7 +186,7 @@ module PulpDebClient
|
|
160
186
|
# Calculates hash code according to all attributes.
|
161
187
|
# @return [Integer] Hash code
|
162
188
|
def hash
|
163
|
-
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, remote].hash
|
189
|
+
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retained_versions, remote].hash
|
164
190
|
end
|
165
191
|
|
166
192
|
# Builds the object from hash
|