pulp_deb_client 2.21.2 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContentPackagesApi.md +4 -0
  4. data/docs/ContentReleaseArchitecturesApi.md +2 -6
  5. data/docs/ContentReleaseComponentsApi.md +4 -6
  6. data/docs/ContentReleasesApi.md +10 -2
  7. data/docs/DebAptPublication.md +4 -2
  8. data/docs/DebAptPublicationResponse.md +4 -2
  9. data/docs/DebAptRepository.md +7 -1
  10. data/docs/DebAptRepositoryResponse.md +7 -1
  11. data/docs/DebRelease.md +9 -1
  12. data/docs/DebReleaseArchitecture.md +1 -5
  13. data/docs/DebReleaseArchitectureResponse.md +1 -5
  14. data/docs/DebReleaseComponent.md +1 -5
  15. data/docs/DebReleaseComponentResponse.md +1 -5
  16. data/docs/DebReleaseFile.md +3 -3
  17. data/docs/DebReleaseFileResponse.md +3 -3
  18. data/docs/DebReleaseResponse.md +9 -1
  19. data/docs/PatcheddebAptRepository.md +7 -1
  20. data/lib/pulp_deb_client/api/content_packages_api.rb +6 -0
  21. data/lib/pulp_deb_client/api/content_release_architectures_api.rb +3 -9
  22. data/lib/pulp_deb_client/api/content_release_components_api.rb +6 -9
  23. data/lib/pulp_deb_client/api/content_releases_api.rb +15 -3
  24. data/lib/pulp_deb_client/models/deb_apt_publication.rb +14 -5
  25. data/lib/pulp_deb_client/models/deb_apt_publication_response.rb +14 -5
  26. data/lib/pulp_deb_client/models/deb_apt_repository.rb +38 -5
  27. data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +38 -5
  28. data/lib/pulp_deb_client/models/deb_release.rb +104 -4
  29. data/lib/pulp_deb_client/models/deb_release_architecture.rb +4 -70
  30. data/lib/pulp_deb_client/models/deb_release_architecture_response.rb +4 -32
  31. data/lib/pulp_deb_client/models/deb_release_component.rb +4 -70
  32. data/lib/pulp_deb_client/models/deb_release_component_response.rb +4 -32
  33. data/lib/pulp_deb_client/models/deb_release_file.rb +3 -3
  34. data/lib/pulp_deb_client/models/deb_release_file_response.rb +3 -3
  35. data/lib/pulp_deb_client/models/deb_release_response.rb +44 -4
  36. data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +38 -5
  37. data/lib/pulp_deb_client/version.rb +1 -1
  38. data/spec/api/content_packages_api_spec.rb +2 -0
  39. data/spec/api/content_release_architectures_api_spec.rb +1 -3
  40. data/spec/api/content_release_components_api_spec.rb +2 -3
  41. data/spec/api/content_releases_api_spec.rb +5 -1
  42. data/spec/models/deb_apt_publication_response_spec.rb +6 -0
  43. data/spec/models/deb_apt_publication_spec.rb +6 -0
  44. data/spec/models/deb_apt_repository_response_spec.rb +18 -0
  45. data/spec/models/deb_apt_repository_spec.rb +18 -0
  46. data/spec/models/deb_release_architecture_response_spec.rb +0 -12
  47. data/spec/models/deb_release_architecture_spec.rb +0 -12
  48. data/spec/models/deb_release_component_response_spec.rb +0 -12
  49. data/spec/models/deb_release_component_spec.rb +0 -12
  50. data/spec/models/deb_release_response_spec.rb +24 -0
  51. data/spec/models/deb_release_spec.rb +24 -0
  52. data/spec/models/patcheddeb_apt_repository_spec.rb +18 -0
  53. metadata +1 -1
@@ -86,18 +86,17 @@ module PulpDebClient
86
86
  # List release components
87
87
  # A ReleaseComponent represents a single APT repository component. Associated artifacts: None; contains only metadata.
88
88
  # @param [Hash] opts the optional parameters
89
- # @option opts [String] :codename Filter results where codename matches value
90
89
  # @option opts [String] :component Filter results where component matches value
91
90
  # @option opts [String] :distribution Filter results where distribution matches value
92
91
  # @option opts [Integer] :limit Number of results to return per page.
93
92
  # @option opts [Integer] :offset The initial index from which to return the results.
94
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;component&#x60; - Component * &#x60;-component&#x60; - Component (descending) * &#x60;codename&#x60; - Codename * &#x60;-codename&#x60; - Codename (descending) * &#x60;suite&#x60; - Suite * &#x60;-suite&#x60; - Suite (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
93
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;component&#x60; - Component * &#x60;-component&#x60; - Component (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
94
+ # @option opts [String] :package Must be a comma-separated string: \&quot;package_href,repository_or_repository_version_href\&quot; package_href: Filter results where ReleaseComponent contains Package repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
95
95
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
96
96
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
97
97
  # @option opts [String] :repository_version Repository Version referenced by HREF
98
98
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
99
99
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
100
- # @option opts [String] :suite Filter results where suite matches value
101
100
  # @option opts [Array<String>] :fields A list of fields to include in the response.
102
101
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
103
102
  # @return [PaginateddebReleaseComponentResponseList]
@@ -109,18 +108,17 @@ module PulpDebClient
109
108
  # List release components
110
109
  # A ReleaseComponent represents a single APT repository component. Associated artifacts: None; contains only metadata.
111
110
  # @param [Hash] opts the optional parameters
112
- # @option opts [String] :codename Filter results where codename matches value
113
111
  # @option opts [String] :component Filter results where component matches value
114
112
  # @option opts [String] :distribution Filter results where distribution matches value
115
113
  # @option opts [Integer] :limit Number of results to return per page.
116
114
  # @option opts [Integer] :offset The initial index from which to return the results.
117
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;component&#x60; - Component * &#x60;-component&#x60; - Component (descending) * &#x60;codename&#x60; - Codename * &#x60;-codename&#x60; - Codename (descending) * &#x60;suite&#x60; - Suite * &#x60;-suite&#x60; - Suite (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
115
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;component&#x60; - Component * &#x60;-component&#x60; - Component (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
116
+ # @option opts [String] :package Must be a comma-separated string: \&quot;package_href,repository_or_repository_version_href\&quot; package_href: Filter results where ReleaseComponent contains Package repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
118
117
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
119
118
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
120
119
  # @option opts [String] :repository_version Repository Version referenced by HREF
121
120
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
122
121
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
123
- # @option opts [String] :suite Filter results where suite matches value
124
122
  # @option opts [Array<String>] :fields A list of fields to include in the response.
125
123
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
126
124
  # @return [Array<(PaginateddebReleaseComponentResponseList, Integer, Hash)>] PaginateddebReleaseComponentResponseList data, response status code and response headers
@@ -128,7 +126,7 @@ module PulpDebClient
128
126
  if @api_client.config.debugging
129
127
  @api_client.config.logger.debug 'Calling API: ContentReleaseComponentsApi.list ...'
130
128
  end
131
- allowable_values = ["-codename", "-component", "-distribution", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-suite", "-timestamp_of_interest", "-upstream_id", "codename", "component", "distribution", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "suite", "timestamp_of_interest", "upstream_id"]
129
+ allowable_values = ["-component", "-distribution", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "component", "distribution", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id"]
132
130
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
133
131
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
134
132
  end
@@ -137,18 +135,17 @@ module PulpDebClient
137
135
 
138
136
  # query parameters
139
137
  query_params = opts[:query_params] || {}
140
- query_params[:'codename'] = opts[:'codename'] if !opts[:'codename'].nil?
141
138
  query_params[:'component'] = opts[:'component'] if !opts[:'component'].nil?
142
139
  query_params[:'distribution'] = opts[:'distribution'] if !opts[:'distribution'].nil?
143
140
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
144
141
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
145
142
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
143
+ query_params[:'package'] = opts[:'package'] if !opts[:'package'].nil?
146
144
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
147
145
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
148
146
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
149
147
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
150
148
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
151
- query_params[:'suite'] = opts[:'suite'] if !opts[:'suite'].nil?
152
149
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
153
150
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
154
151
 
@@ -88,15 +88,19 @@ module PulpDebClient
88
88
  # @param [Hash] opts the optional parameters
89
89
  # @option opts [String] :codename Filter results where codename matches value
90
90
  # @option opts [String] :distribution Filter results where distribution matches value
91
+ # @option opts [String] :label Filter results where label matches value
91
92
  # @option opts [Integer] :limit Number of results to return per page.
92
93
  # @option opts [Integer] :offset The initial index from which to return the results.
93
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;codename&#x60; - Codename * &#x60;-codename&#x60; - Codename (descending) * &#x60;suite&#x60; - Suite * &#x60;-suite&#x60; - Suite (descending) * &#x60;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
94
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;codename&#x60; - Codename * &#x60;-codename&#x60; - Codename (descending) * &#x60;suite&#x60; - Suite * &#x60;-suite&#x60; - Suite (descending) * &#x60;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;origin&#x60; - Origin * &#x60;-origin&#x60; - Origin (descending) * &#x60;label&#x60; - Label * &#x60;-label&#x60; - Label (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
95
+ # @option opts [String] :origin Filter results where origin matches value
96
+ # @option opts [String] :package Must be a comma-separated string: \&quot;package_href,repository_or_repository_version_href\&quot; package_href: Filter results where Release contains Package repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
94
97
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
95
98
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
96
99
  # @option opts [String] :repository_version Repository Version referenced by HREF
97
100
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
98
101
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
99
102
  # @option opts [String] :suite Filter results where suite matches value
103
+ # @option opts [String] :version Filter results where version matches value
100
104
  # @option opts [Array<String>] :fields A list of fields to include in the response.
101
105
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
102
106
  # @return [PaginateddebReleaseResponseList]
@@ -110,15 +114,19 @@ module PulpDebClient
110
114
  # @param [Hash] opts the optional parameters
111
115
  # @option opts [String] :codename Filter results where codename matches value
112
116
  # @option opts [String] :distribution Filter results where distribution matches value
117
+ # @option opts [String] :label Filter results where label matches value
113
118
  # @option opts [Integer] :limit Number of results to return per page.
114
119
  # @option opts [Integer] :offset The initial index from which to return the results.
115
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;codename&#x60; - Codename * &#x60;-codename&#x60; - Codename (descending) * &#x60;suite&#x60; - Suite * &#x60;-suite&#x60; - Suite (descending) * &#x60;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
120
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;codename&#x60; - Codename * &#x60;-codename&#x60; - Codename (descending) * &#x60;suite&#x60; - Suite * &#x60;-suite&#x60; - Suite (descending) * &#x60;distribution&#x60; - Distribution * &#x60;-distribution&#x60; - Distribution (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;origin&#x60; - Origin * &#x60;-origin&#x60; - Origin (descending) * &#x60;label&#x60; - Label * &#x60;-label&#x60; - Label (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
121
+ # @option opts [String] :origin Filter results where origin matches value
122
+ # @option opts [String] :package Must be a comma-separated string: \&quot;package_href,repository_or_repository_version_href\&quot; package_href: Filter results where Release contains Package repository_or_repository_version_href: The RepositoryVersion href to filter by, or Repository href (assume latest version)
116
123
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
117
124
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
118
125
  # @option opts [String] :repository_version Repository Version referenced by HREF
119
126
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
120
127
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
121
128
  # @option opts [String] :suite Filter results where suite matches value
129
+ # @option opts [String] :version Filter results where version matches value
122
130
  # @option opts [Array<String>] :fields A list of fields to include in the response.
123
131
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
124
132
  # @return [Array<(PaginateddebReleaseResponseList, Integer, Hash)>] PaginateddebReleaseResponseList data, response status code and response headers
@@ -126,7 +134,7 @@ module PulpDebClient
126
134
  if @api_client.config.debugging
127
135
  @api_client.config.logger.debug 'Calling API: ContentReleasesApi.list ...'
128
136
  end
129
- allowable_values = ["-codename", "-distribution", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-suite", "-timestamp_of_interest", "-upstream_id", "codename", "distribution", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "suite", "timestamp_of_interest", "upstream_id"]
137
+ allowable_values = ["-codename", "-description", "-distribution", "-label", "-origin", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-suite", "-timestamp_of_interest", "-upstream_id", "-version", "codename", "description", "distribution", "label", "origin", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "suite", "timestamp_of_interest", "upstream_id", "version"]
130
138
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
131
139
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
132
140
  end
@@ -137,15 +145,19 @@ module PulpDebClient
137
145
  query_params = opts[:query_params] || {}
138
146
  query_params[:'codename'] = opts[:'codename'] if !opts[:'codename'].nil?
139
147
  query_params[:'distribution'] = opts[:'distribution'] if !opts[:'distribution'].nil?
148
+ query_params[:'label'] = opts[:'label'] if !opts[:'label'].nil?
140
149
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
141
150
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
142
151
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
152
+ query_params[:'origin'] = opts[:'origin'] if !opts[:'origin'].nil?
153
+ query_params[:'package'] = opts[:'package'] if !opts[:'package'].nil?
143
154
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
144
155
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
145
156
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
146
157
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
147
158
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
148
159
  query_params[:'suite'] = opts[:'suite'] if !opts[:'suite'].nil?
160
+ query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
149
161
  query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
150
162
  query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
151
163
 
@@ -29,6 +29,8 @@ module PulpDebClient
29
29
  # Sign Release files with this signing key
30
30
  attr_accessor :signing_service
31
31
 
32
+ attr_accessor :publish_upstream_release_fields
33
+
32
34
  # Attribute mapping from ruby-style variable name to JSON key.
33
35
  def self.attribute_map
34
36
  {
@@ -36,7 +38,8 @@ module PulpDebClient
36
38
  :'repository' => :'repository',
37
39
  :'simple' => :'simple',
38
40
  :'structured' => :'structured',
39
- :'signing_service' => :'signing_service'
41
+ :'signing_service' => :'signing_service',
42
+ :'publish_upstream_release_fields' => :'publish_upstream_release_fields'
40
43
  }
41
44
  end
42
45
 
@@ -47,7 +50,8 @@ module PulpDebClient
47
50
  :'repository' => :'String',
48
51
  :'simple' => :'Boolean',
49
52
  :'structured' => :'Boolean',
50
- :'signing_service' => :'String'
53
+ :'signing_service' => :'String',
54
+ :'publish_upstream_release_fields' => :'Boolean'
51
55
  }
52
56
  end
53
57
 
@@ -89,12 +93,16 @@ module PulpDebClient
89
93
  if attributes.key?(:'structured')
90
94
  self.structured = attributes[:'structured']
91
95
  else
92
- self.structured = false
96
+ self.structured = true
93
97
  end
94
98
 
95
99
  if attributes.key?(:'signing_service')
96
100
  self.signing_service = attributes[:'signing_service']
97
101
  end
102
+
103
+ if attributes.key?(:'publish_upstream_release_fields')
104
+ self.publish_upstream_release_fields = attributes[:'publish_upstream_release_fields']
105
+ end
98
106
  end
99
107
 
100
108
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -119,7 +127,8 @@ module PulpDebClient
119
127
  repository == o.repository &&
120
128
  simple == o.simple &&
121
129
  structured == o.structured &&
122
- signing_service == o.signing_service
130
+ signing_service == o.signing_service &&
131
+ publish_upstream_release_fields == o.publish_upstream_release_fields
123
132
  end
124
133
 
125
134
  # @see the `==` method
@@ -131,7 +140,7 @@ module PulpDebClient
131
140
  # Calculates hash code according to all attributes.
132
141
  # @return [Integer] Hash code
133
142
  def hash
134
- [repository_version, repository, simple, structured, signing_service].hash
143
+ [repository_version, repository, simple, structured, signing_service, publish_upstream_release_fields].hash
135
144
  end
136
145
 
137
146
  # Builds the object from hash
@@ -34,6 +34,8 @@ module PulpDebClient
34
34
  # Sign Release files with this signing key
35
35
  attr_accessor :signing_service
36
36
 
37
+ attr_accessor :publish_upstream_release_fields
38
+
37
39
  # Attribute mapping from ruby-style variable name to JSON key.
38
40
  def self.attribute_map
39
41
  {
@@ -43,7 +45,8 @@ module PulpDebClient
43
45
  :'repository' => :'repository',
44
46
  :'simple' => :'simple',
45
47
  :'structured' => :'structured',
46
- :'signing_service' => :'signing_service'
48
+ :'signing_service' => :'signing_service',
49
+ :'publish_upstream_release_fields' => :'publish_upstream_release_fields'
47
50
  }
48
51
  end
49
52
 
@@ -56,7 +59,8 @@ module PulpDebClient
56
59
  :'repository' => :'String',
57
60
  :'simple' => :'Boolean',
58
61
  :'structured' => :'Boolean',
59
- :'signing_service' => :'String'
62
+ :'signing_service' => :'String',
63
+ :'publish_upstream_release_fields' => :'Boolean'
60
64
  }
61
65
  end
62
66
 
@@ -106,12 +110,16 @@ module PulpDebClient
106
110
  if attributes.key?(:'structured')
107
111
  self.structured = attributes[:'structured']
108
112
  else
109
- self.structured = false
113
+ self.structured = true
110
114
  end
111
115
 
112
116
  if attributes.key?(:'signing_service')
113
117
  self.signing_service = attributes[:'signing_service']
114
118
  end
119
+
120
+ if attributes.key?(:'publish_upstream_release_fields')
121
+ self.publish_upstream_release_fields = attributes[:'publish_upstream_release_fields']
122
+ end
115
123
  end
116
124
 
117
125
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -138,7 +146,8 @@ module PulpDebClient
138
146
  repository == o.repository &&
139
147
  simple == o.simple &&
140
148
  structured == o.structured &&
141
- signing_service == o.signing_service
149
+ signing_service == o.signing_service &&
150
+ publish_upstream_release_fields == o.publish_upstream_release_fields
142
151
  end
143
152
 
144
153
  # @see the `==` method
@@ -150,7 +159,7 @@ module PulpDebClient
150
159
  # Calculates hash code according to all attributes.
151
160
  # @return [Integer] Hash code
152
161
  def hash
153
- [pulp_href, pulp_created, repository_version, repository, simple, structured, signing_service].hash
162
+ [pulp_href, pulp_created, repository_version, repository, simple, structured, signing_service, publish_upstream_release_fields].hash
154
163
  end
155
164
 
156
165
  # Builds the object from hash
@@ -29,6 +29,15 @@ module PulpDebClient
29
29
  # An optional remote to use by default when syncing.
30
30
  attr_accessor :remote
31
31
 
32
+ # Previously, pulp_deb only synced the Release file fields codename and suite, now version, origin, label, and description are also synced. Setting this setting to False will make Pulp revert to the old behaviour of using it's own internal values for the new fields during publish. This is primarily intended to avoid a sudden change in behaviour for existing Pulp repositories, since many Release file field changes need to be accepted by hosts consuming the published repository. The default for new repositories is True.
33
+ attr_accessor :publish_upstream_release_fields
34
+
35
+ # A reference to an associated signing service. Used if AptPublication.signing_service is not set
36
+ attr_accessor :signing_service
37
+
38
+ # A dictionary of Release distributions and the Signing Service URLs they should use.Example: {\"bionic\": \"/pulp/api/v3/signing-services/433a1f70-c589-4413-a803-c50b842ea9b5/\"}
39
+ attr_accessor :signing_service_release_overrides
40
+
32
41
  # Attribute mapping from ruby-style variable name to JSON key.
33
42
  def self.attribute_map
34
43
  {
@@ -36,7 +45,10 @@ module PulpDebClient
36
45
  :'name' => :'name',
37
46
  :'description' => :'description',
38
47
  :'retain_repo_versions' => :'retain_repo_versions',
39
- :'remote' => :'remote'
48
+ :'remote' => :'remote',
49
+ :'publish_upstream_release_fields' => :'publish_upstream_release_fields',
50
+ :'signing_service' => :'signing_service',
51
+ :'signing_service_release_overrides' => :'signing_service_release_overrides'
40
52
  }
41
53
  end
42
54
 
@@ -47,7 +59,10 @@ module PulpDebClient
47
59
  :'name' => :'String',
48
60
  :'description' => :'String',
49
61
  :'retain_repo_versions' => :'Integer',
50
- :'remote' => :'String'
62
+ :'remote' => :'String',
63
+ :'publish_upstream_release_fields' => :'Boolean',
64
+ :'signing_service' => :'String',
65
+ :'signing_service_release_overrides' => :'Hash<String, String>'
51
66
  }
52
67
  end
53
68
 
@@ -56,7 +71,8 @@ module PulpDebClient
56
71
  Set.new([
57
72
  :'description',
58
73
  :'retain_repo_versions',
59
- :'remote'
74
+ :'remote',
75
+ :'signing_service',
60
76
  ])
61
77
  end
62
78
 
@@ -96,6 +112,20 @@ module PulpDebClient
96
112
  if attributes.key?(:'remote')
97
113
  self.remote = attributes[:'remote']
98
114
  end
115
+
116
+ if attributes.key?(:'publish_upstream_release_fields')
117
+ self.publish_upstream_release_fields = attributes[:'publish_upstream_release_fields']
118
+ end
119
+
120
+ if attributes.key?(:'signing_service')
121
+ self.signing_service = attributes[:'signing_service']
122
+ end
123
+
124
+ if attributes.key?(:'signing_service_release_overrides')
125
+ if (value = attributes[:'signing_service_release_overrides']).is_a?(Hash)
126
+ self.signing_service_release_overrides = value
127
+ end
128
+ end
99
129
  end
100
130
 
101
131
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -174,7 +204,10 @@ module PulpDebClient
174
204
  name == o.name &&
175
205
  description == o.description &&
176
206
  retain_repo_versions == o.retain_repo_versions &&
177
- remote == o.remote
207
+ remote == o.remote &&
208
+ publish_upstream_release_fields == o.publish_upstream_release_fields &&
209
+ signing_service == o.signing_service &&
210
+ signing_service_release_overrides == o.signing_service_release_overrides
178
211
  end
179
212
 
180
213
  # @see the `==` method
@@ -186,7 +219,7 @@ module PulpDebClient
186
219
  # Calculates hash code according to all attributes.
187
220
  # @return [Integer] Hash code
188
221
  def hash
189
- [pulp_labels, name, description, retain_repo_versions, remote].hash
222
+ [pulp_labels, name, description, retain_repo_versions, remote, publish_upstream_release_fields, signing_service, signing_service_release_overrides].hash
190
223
  end
191
224
 
192
225
  # Builds the object from hash
@@ -38,6 +38,15 @@ module PulpDebClient
38
38
  # An optional remote to use by default when syncing.
39
39
  attr_accessor :remote
40
40
 
41
+ # Previously, pulp_deb only synced the Release file fields codename and suite, now version, origin, label, and description are also synced. Setting this setting to False will make Pulp revert to the old behaviour of using it's own internal values for the new fields during publish. This is primarily intended to avoid a sudden change in behaviour for existing Pulp repositories, since many Release file field changes need to be accepted by hosts consuming the published repository. The default for new repositories is True.
42
+ attr_accessor :publish_upstream_release_fields
43
+
44
+ # A reference to an associated signing service. Used if AptPublication.signing_service is not set
45
+ attr_accessor :signing_service
46
+
47
+ # A dictionary of Release distributions and the Signing Service URLs they should use.Example: {\"bionic\": \"/pulp/api/v3/signing-services/433a1f70-c589-4413-a803-c50b842ea9b5/\"}
48
+ attr_accessor :signing_service_release_overrides
49
+
41
50
  # Attribute mapping from ruby-style variable name to JSON key.
42
51
  def self.attribute_map
43
52
  {
@@ -49,7 +58,10 @@ module PulpDebClient
49
58
  :'name' => :'name',
50
59
  :'description' => :'description',
51
60
  :'retain_repo_versions' => :'retain_repo_versions',
52
- :'remote' => :'remote'
61
+ :'remote' => :'remote',
62
+ :'publish_upstream_release_fields' => :'publish_upstream_release_fields',
63
+ :'signing_service' => :'signing_service',
64
+ :'signing_service_release_overrides' => :'signing_service_release_overrides'
53
65
  }
54
66
  end
55
67
 
@@ -64,7 +76,10 @@ module PulpDebClient
64
76
  :'name' => :'String',
65
77
  :'description' => :'String',
66
78
  :'retain_repo_versions' => :'Integer',
67
- :'remote' => :'String'
79
+ :'remote' => :'String',
80
+ :'publish_upstream_release_fields' => :'Boolean',
81
+ :'signing_service' => :'String',
82
+ :'signing_service_release_overrides' => :'Hash<String, String>'
68
83
  }
69
84
  end
70
85
 
@@ -73,7 +88,8 @@ module PulpDebClient
73
88
  Set.new([
74
89
  :'description',
75
90
  :'retain_repo_versions',
76
- :'remote'
91
+ :'remote',
92
+ :'signing_service',
77
93
  ])
78
94
  end
79
95
 
@@ -129,6 +145,20 @@ module PulpDebClient
129
145
  if attributes.key?(:'remote')
130
146
  self.remote = attributes[:'remote']
131
147
  end
148
+
149
+ if attributes.key?(:'publish_upstream_release_fields')
150
+ self.publish_upstream_release_fields = attributes[:'publish_upstream_release_fields']
151
+ end
152
+
153
+ if attributes.key?(:'signing_service')
154
+ self.signing_service = attributes[:'signing_service']
155
+ end
156
+
157
+ if attributes.key?(:'signing_service_release_overrides')
158
+ if (value = attributes[:'signing_service_release_overrides']).is_a?(Hash)
159
+ self.signing_service_release_overrides = value
160
+ end
161
+ end
132
162
  end
133
163
 
134
164
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -177,7 +207,10 @@ module PulpDebClient
177
207
  name == o.name &&
178
208
  description == o.description &&
179
209
  retain_repo_versions == o.retain_repo_versions &&
180
- remote == o.remote
210
+ remote == o.remote &&
211
+ publish_upstream_release_fields == o.publish_upstream_release_fields &&
212
+ signing_service == o.signing_service &&
213
+ signing_service_release_overrides == o.signing_service_release_overrides
181
214
  end
182
215
 
183
216
  # @see the `==` method
@@ -189,7 +222,7 @@ module PulpDebClient
189
222
  # Calculates hash code according to all attributes.
190
223
  # @return [Integer] Hash code
191
224
  def hash
192
- [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote].hash
225
+ [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, publish_upstream_release_fields, signing_service, signing_service_release_overrides].hash
193
226
  end
194
227
 
195
228
  # Builds the object from hash
@@ -24,13 +24,25 @@ module PulpDebClient
24
24
 
25
25
  attr_accessor :distribution
26
26
 
27
+ attr_accessor :version
28
+
29
+ attr_accessor :origin
30
+
31
+ attr_accessor :label
32
+
33
+ attr_accessor :description
34
+
27
35
  # Attribute mapping from ruby-style variable name to JSON key.
28
36
  def self.attribute_map
29
37
  {
30
38
  :'repository' => :'repository',
31
39
  :'codename' => :'codename',
32
40
  :'suite' => :'suite',
33
- :'distribution' => :'distribution'
41
+ :'distribution' => :'distribution',
42
+ :'version' => :'version',
43
+ :'origin' => :'origin',
44
+ :'label' => :'label',
45
+ :'description' => :'description'
34
46
  }
35
47
  end
36
48
 
@@ -40,13 +52,21 @@ module PulpDebClient
40
52
  :'repository' => :'String',
41
53
  :'codename' => :'String',
42
54
  :'suite' => :'String',
43
- :'distribution' => :'String'
55
+ :'distribution' => :'String',
56
+ :'version' => :'String',
57
+ :'origin' => :'String',
58
+ :'label' => :'String',
59
+ :'description' => :'String'
44
60
  }
45
61
  end
46
62
 
47
63
  # List of attributes with nullable: true
48
64
  def self.openapi_nullable
49
65
  Set.new([
66
+ :'version',
67
+ :'origin',
68
+ :'label',
69
+ :'description'
50
70
  ])
51
71
  end
52
72
 
@@ -80,6 +100,22 @@ module PulpDebClient
80
100
  if attributes.key?(:'distribution')
81
101
  self.distribution = attributes[:'distribution']
82
102
  end
103
+
104
+ if attributes.key?(:'version')
105
+ self.version = attributes[:'version']
106
+ end
107
+
108
+ if attributes.key?(:'origin')
109
+ self.origin = attributes[:'origin']
110
+ end
111
+
112
+ if attributes.key?(:'label')
113
+ self.label = attributes[:'label']
114
+ end
115
+
116
+ if attributes.key?(:'description')
117
+ self.description = attributes[:'description']
118
+ end
83
119
  end
84
120
 
85
121
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -110,6 +146,22 @@ module PulpDebClient
110
146
  invalid_properties.push('invalid value for "distribution", the character length must be great than or equal to 1.')
111
147
  end
112
148
 
149
+ if !@version.nil? && @version.to_s.length < 1
150
+ invalid_properties.push('invalid value for "version", the character length must be great than or equal to 1.')
151
+ end
152
+
153
+ if !@origin.nil? && @origin.to_s.length < 1
154
+ invalid_properties.push('invalid value for "origin", the character length must be great than or equal to 1.')
155
+ end
156
+
157
+ if !@label.nil? && @label.to_s.length < 1
158
+ invalid_properties.push('invalid value for "label", the character length must be great than or equal to 1.')
159
+ end
160
+
161
+ if !@description.nil? && @description.to_s.length < 1
162
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
163
+ end
164
+
113
165
  invalid_properties
114
166
  end
115
167
 
@@ -122,6 +174,10 @@ module PulpDebClient
122
174
  return false if @suite.to_s.length < 1
123
175
  return false if @distribution.nil?
124
176
  return false if @distribution.to_s.length < 1
177
+ return false if !@version.nil? && @version.to_s.length < 1
178
+ return false if !@origin.nil? && @origin.to_s.length < 1
179
+ return false if !@label.nil? && @label.to_s.length < 1
180
+ return false if !@description.nil? && @description.to_s.length < 1
125
181
  true
126
182
  end
127
183
 
@@ -167,6 +223,46 @@ module PulpDebClient
167
223
  @distribution = distribution
168
224
  end
169
225
 
226
+ # Custom attribute writer method with validation
227
+ # @param [Object] version Value to be assigned
228
+ def version=(version)
229
+ if !version.nil? && version.to_s.length < 1
230
+ fail ArgumentError, 'invalid value for "version", the character length must be great than or equal to 1.'
231
+ end
232
+
233
+ @version = version
234
+ end
235
+
236
+ # Custom attribute writer method with validation
237
+ # @param [Object] origin Value to be assigned
238
+ def origin=(origin)
239
+ if !origin.nil? && origin.to_s.length < 1
240
+ fail ArgumentError, 'invalid value for "origin", the character length must be great than or equal to 1.'
241
+ end
242
+
243
+ @origin = origin
244
+ end
245
+
246
+ # Custom attribute writer method with validation
247
+ # @param [Object] label Value to be assigned
248
+ def label=(label)
249
+ if !label.nil? && label.to_s.length < 1
250
+ fail ArgumentError, 'invalid value for "label", the character length must be great than or equal to 1.'
251
+ end
252
+
253
+ @label = label
254
+ end
255
+
256
+ # Custom attribute writer method with validation
257
+ # @param [Object] description Value to be assigned
258
+ def description=(description)
259
+ if !description.nil? && description.to_s.length < 1
260
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
261
+ end
262
+
263
+ @description = description
264
+ end
265
+
170
266
  # Checks equality by comparing each attribute.
171
267
  # @param [Object] Object to be compared
172
268
  def ==(o)
@@ -175,7 +271,11 @@ module PulpDebClient
175
271
  repository == o.repository &&
176
272
  codename == o.codename &&
177
273
  suite == o.suite &&
178
- distribution == o.distribution
274
+ distribution == o.distribution &&
275
+ version == o.version &&
276
+ origin == o.origin &&
277
+ label == o.label &&
278
+ description == o.description
179
279
  end
180
280
 
181
281
  # @see the `==` method
@@ -187,7 +287,7 @@ module PulpDebClient
187
287
  # Calculates hash code according to all attributes.
188
288
  # @return [Integer] Hash code
189
289
  def hash
190
- [repository, codename, suite, distribution].hash
290
+ [repository, codename, suite, distribution, version, origin, label, description].hash
191
291
  end
192
292
 
193
293
  # Builds the object from hash